{"type": "func", "start": 10629580, "end": 10629672, "name": "CRYPTO_set_mem_functions", "pseudocode": "// \n// CRYPTO_set_mem_functions from 0xa231cc to 0xa23228 (92 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x7dbcc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:57 +0000\n// \n\nint __fastcall CRYPTO_set_mem_functions(\n        int (__fastcall *a1)(_DWORD, _DWORD, _DWORD),\n        int (*a2)(),\n        int (__fastcall *a3)(_DWORD, _DWORD, _DWORD))\n{\n  int v3; // r3\n\n  v3 = dword_D25FE4;\n  if ( dword_D25FE4 )\n  {\n    if ( a1 )\n      off_D25FEC = a1;\n    if ( a2 )\n      off_D25FF0 = a2;\n    v3 = 1;\n    if ( a3 )\n      off_D25FE8 = a3;\n  }\n  return v3;\n}", "assembly": "; \n; CRYPTO_set_mem_functions from 0xa231cc to 0xa23228 (92 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x7dbcc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:57 +0000\n; \nLDR             R3, =(dword_D25FE4 - 0xA231D8)                         ; +0x0, 0xa231cc\nADD             R3, PC, R3; dword_D25FE4                               ; +0x4, 0xa231d0\nLDR             R3, [R3]                                               ; +0x8, 0xa231d4\nCMP             R3, #0                                                 ; +0xc, 0xa231d8\nBEQ             loc_A23218                                             ; +0x10, 0xa231dc\nCMP             R0, #0                                                 ; +0x14, 0xa231e0\nLDRNE           R3, =(off_D25FE8 - 0xA231F0)                           ; +0x18, 0xa231e4\nADDNE           R3, PC, R3; off_D25FE8                                 ; +0x1c, 0xa231e8\nSTRNE           R0, [R3,#(off_D25FEC - 0xD25FE8)]; CRYPTO_malloc       ; +0x20, 0xa231ec\nCMP             R1, #0                                                 ; +0x24, 0xa231f0\nLDRNE           R3, =(off_D25FE8 - 0xA23200)                           ; +0x28, 0xa231f4\nADDNE           R3, PC, R3; off_D25FE8                                 ; +0x2c, 0xa231f8\nSTRNE           R1, [R3,#(off_D25FF0 - 0xD25FE8)]; CRYPTO_realloc      ; +0x30, 0xa231fc\nCMP             R2, #0                                                 ; +0x34, 0xa23200\nBEQ             loc_A23220                                             ; +0x38, 0xa23204\nLDR             R1, =(off_D25FE8 - 0xA23218)                           ; +0x3c, 0xa23208\nMOV             R3, #1                                                 ; +0x40, 0xa2320c\nADD             R1, PC, R1; off_D25FE8                                 ; +0x44, 0xa23210\nSTR             R2, [R1]; CRYPTO_free                                  ; +0x48, 0xa23214\nMOV             R0, R3                                                 ; +0x4c, 0xa23218\nBX              LR                                                     ; +0x50, 0xa2321c\nMOV             R3, #1                                                 ; +0x54, 0xa23220\nB               loc_A23218                                             ; +0x58, 0xa23224", "xrefs": ["<???> @ 0x7dbcc"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}