{"type": "func", "start": 8492596, "end": 8492668, "name": "CRYPTO_ocb128_tag", "pseudocode": "// \n// CRYPTO_ocb128_tag from 0x819634 to 0x81967c (72 bytes)\n// \n// 2 xrefs:\n// > sub_7FDC24 @ 0x7fdeac\n// > <???> @ 0x62d3c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall CRYPTO_ocb128_tag(int a1, void *a2, size_t a3)\n{\n  if ( a3 - 1 > 0xF )\n    return -1;\n  CRYPTO_ocb128_finish(a1, nullptr, 0, a3 - 1);\n  memcpy(a2, (const void *)(a1 + 88), a3);\n  return 1;\n}", "assembly": "; \n; CRYPTO_ocb128_tag from 0x819634 to 0x81967c (72 bytes)\n; \n; 2 xrefs:\n; > sub_7FDC24 @ 0x7fdeac\n; > <???> @ 0x62d3c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             R3, R2, #1                                             ; +0x0, 0x819634\nCMP             R3, #0xF                                               ; +0x4, 0x819638\nBHI             loc_819674                                             ; +0x8, 0x81963c\nPUSH            {R4-R6,LR}                                             ; +0xc, 0x819640\nMOV             R6, R1                                                 ; +0x10, 0x819644\nMOV             R1, #0                                                 ; +0x14, 0x819648\nMOV             R5, R0                                                 ; +0x18, 0x81964c\nMOV             R4, R2                                                 ; +0x1c, 0x819650\nMOV             R2, R1                                                 ; +0x20, 0x819654\nBL              CRYPTO_ocb128_finish                                   ; +0x24, 0x819658\nMOV             R0, R6; void *                                         ; +0x28, 0x81965c\nADD             R1, R5, #0x58 ; 'X'; void *                            ; +0x2c, 0x819660\nMOV             R2, R4; size_t                                         ; +0x30, 0x819664\nBL              memcpy                                                 ; +0x34, 0x819668\nMOV             R0, #1                                                 ; +0x38, 0x81966c\nPOP             {R4-R6,PC}                                             ; +0x3c, 0x819670\nMOV             R0, #0xFFFFFFFF                                        ; +0x40, 0x819674\nBX              LR                                                     ; +0x44, 0x819678", "xrefs": ["sub_7FDC24 @ 0x7fdeac", "<???> @ 0x62d3c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}