{"type": "func", "start": 17024388, "end": 17024564, "name": "CRYPTO_ocb128_copy_ctx", "pseudocode": "// \n// CRYPTO_ocb128_copy_ctx from 0x103c584 to 0x103c634 (176 bytes)\n// \n// 2 xrefs:\n// > sub_1022194 @ 0x1022268\n// > <???> @ 0x580f0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:16:27 +0000\n// \n\nvoid *__fastcall CRYPTO_ocb128_copy_ctx(_QWORD *a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  void *result; // x0\n\n  memcpy(a1, (const void *)a2, 0xC0u);\n  if ( a3 )\n    a1[2] = a3;\n  if ( a4 )\n    a1[3] = a4;\n  if ( !*(_QWORD *)(a2 + 88) )\n    return dword_0 + 1;\n  result = CRYPTO_malloc((void *)(16LL * *(_QWORD *)(a2 + 48)), (__int64)\"crypto/modes/ocb128.c\", 213);\n  a1[11] = result;\n  if ( result )\n  {\n    memcpy(result, *(const void **)(a2 + 88), 16 * (*(_QWORD *)(a2 + 40) + 1LL));\n    return dword_0 + 1;\n  }\n  return result;\n}", "assembly": "; \n; CRYPTO_ocb128_copy_ctx from 0x103c584 to 0x103c634 (176 bytes)\n; \n; 2 xrefs:\n; > sub_1022194 @ 0x1022268\n; > <???> @ 0x580f0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:16:27 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x103c584\nMOV             X29, SP                                                ; +0x4, 0x103c588\nSTR             X21, [SP,#0x40+var_20]                                 ; +0x8, 0x103c58c\nMOV             X21, X2                                                ; +0xc, 0x103c590\nMOV             X2, #0xC0; size_t                                      ; +0x10, 0x103c594\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x14, 0x103c598\nSTR             X3, [X29,#0x40+var_8]                                  ; +0x18, 0x103c59c\nMOV             X20, X0                                                ; +0x1c, 0x103c5a0\nMOV             X19, X1                                                ; +0x20, 0x103c5a4\nBL              .memcpy                                                ; +0x24, 0x103c5a8\nLDR             X3, [X29,#0x40+var_8]                                  ; +0x28, 0x103c5ac\nCBZ             X21, loc_103C5B8                                       ; +0x2c, 0x103c5b0\nSTR             X21, [X20,#0x10]                                       ; +0x30, 0x103c5b4\nCBZ             X3, loc_103C5C0                                        ; +0x34, 0x103c5b8\nSTR             X3, [X20,#0x18]                                        ; +0x38, 0x103c5bc\nLDR             X0, [X19,#0x58]                                        ; +0x3c, 0x103c5c0\nCBZ             X0, loc_103C610                                        ; +0x40, 0x103c5c4\nLDR             X0, [X19,#0x30]                                        ; +0x44, 0x103c5c8\nADRL            X1, aCryptoModesOcb; \"crypto/modes/ocb128.c\"           ; +0x48, 0x103c5cc\nMOV             W2, #0xD5                                              ; +0x50, 0x103c5d4\nLSL             X0, X0, #4                                             ; +0x54, 0x103c5d8\nBL              CRYPTO_malloc                                          ; +0x58, 0x103c5dc\nSTR             X0, [X20,#0x58]                                        ; +0x5c, 0x103c5e0\nCBZ             X0, loc_103C624                                        ; +0x60, 0x103c5e4\nLDR             X2, [X19,#0x28]                                        ; +0x64, 0x103c5e8\nLDR             X1, [X19,#0x58]; void *                                ; +0x68, 0x103c5ec\nADD             X2, X2, #1                                             ; +0x6c, 0x103c5f0\nLSL             X2, X2, #4; size_t                                     ; +0x70, 0x103c5f4\nBL              .memcpy                                                ; +0x74, 0x103c5f8\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x78, 0x103c5fc\nMOV             W0, #1                                                 ; +0x7c, 0x103c600\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x80, 0x103c604\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x84, 0x103c608\nRET                                                                    ; +0x88, 0x103c60c\nMOV             W0, #1                                                 ; +0x8c, 0x103c610\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x90, 0x103c614\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x94, 0x103c618\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x98, 0x103c61c\nRET                                                                    ; +0x9c, 0x103c620\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xa0, 0x103c624\nLDR             X21, [SP,#0x40+var_20]                                 ; +0xa4, 0x103c628\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xa8, 0x103c62c\nRET                                                                    ; +0xac, 0x103c630", "xrefs": ["sub_1022194 @ 0x1022268", "<???> @ 0x580f0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}