{"type": "func", "start": 8486556, "end": 8486688, "name": "CRYPTO_ocb128_new", "pseudocode": "// \n// CRYPTO_ocb128_new from 0x817e9c to 0x817f20 (132 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x6421c\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\nvoid *__fastcall CRYPTO_ocb128_new(int a1, int a2, void (__fastcall *a3)(_DWORD *, _DWORD *, int), int a4, int a5)\n{\n  _DWORD *v9; // r0\n  void *v10; // r4\n  void *v11; // r6\n  void *result; // r0\n\n  v9 = CRYPTO_malloc(&dword_A8, (int)\"crypto/modes/ocb128.c\", 146);\n  v10 = v9;\n  if ( !v9 )\n    return nullptr;\n  v11 = CRYPTO_ocb128_init(v9, a1, a2, a3, a4, a5);\n  result = v10;\n  if ( !v11 )\n  {\n    CRYPTO_free(v10, (int)\"crypto/modes/ocb128.c\", 151);\n    return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; CRYPTO_ocb128_new from 0x817e9c to 0x817f20 (132 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x6421c\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\nPUSH            {R4-R9,LR}                                             ; +0x0, 0x817e9c\nLDR             R5, =(aCryptoModesOcb - 0x817EB0); \"crypto/modes/ocb128.c\" ; +0x4, 0x817ea0\nSUB             SP, SP, #0xC                                           ; +0x8, 0x817ea4\nADD             R5, PC, R5; \"crypto/modes/ocb128.c\"                    ; +0xc, 0x817ea8\nMOV             R8, R0                                                 ; +0x10, 0x817eac\nMOV             R7, R1                                                 ; +0x14, 0x817eb0\nMOV             R6, R2                                                 ; +0x18, 0x817eb4\nMOV             R1, R5                                                 ; +0x1c, 0x817eb8\nMOV             R0, #0xA8                                              ; +0x20, 0x817ebc\nMOV             R2, #0x92                                              ; +0x24, 0x817ec0\nMOV             R9, R3                                                 ; +0x28, 0x817ec4\nBL              CRYPTO_malloc                                          ; +0x2c, 0x817ec8\nSUBS            R4, R0, #0                                             ; +0x30, 0x817ecc\nBEQ             loc_817F04                                             ; +0x34, 0x817ed0\nLDR             R3, [SP,#0xC+arg_0]                                    ; +0x38, 0x817ed4\nSTR             R3, [SP,#0xC+var_8]                                    ; +0x3c, 0x817ed8\nSTR             R9, [SP,#0xC+var_C]                                    ; +0x40, 0x817edc\nMOV             R3, R6                                                 ; +0x44, 0x817ee0\nMOV             R1, R8                                                 ; +0x48, 0x817ee4\nMOV             R2, R7                                                 ; +0x4c, 0x817ee8\nBL              CRYPTO_ocb128_init                                     ; +0x50, 0x817eec\nSUBS            R6, R0, #0                                             ; +0x54, 0x817ef0\nMOV             R0, R4                                                 ; +0x58, 0x817ef4\nBEQ             loc_817F0C                                             ; +0x5c, 0x817ef8\nADD             SP, SP, #0xC                                           ; +0x60, 0x817efc\nPOP             {R4-R9,PC}                                             ; +0x64, 0x817f00\nMOV             R0, R4                                                 ; +0x68, 0x817f04\nB               loc_817EFC                                             ; +0x6c, 0x817f08\nMOV             R1, R5                                                 ; +0x70, 0x817f0c\nMOV             R2, #0x97                                              ; +0x74, 0x817f10\nBL              CRYPTO_free                                            ; +0x78, 0x817f14\nMOV             R0, R6                                                 ; +0x7c, 0x817f18\nB               loc_817EFC                                             ; +0x80, 0x817f1c", "xrefs": ["<???> @ 0x6421c"], "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"}