{"type": "func", "start": 8447436, "end": 8447528, "name": "CRYPTO_set_mem_functions", "pseudocode": "// \n// CRYPTO_set_mem_functions from 0x80e5cc to 0x80e628 (92 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x6414c\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_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_AC0E0C;\n  if ( dword_AC0E0C )\n  {\n    if ( a1 )\n      off_AC0E14 = a1;\n    if ( a2 )\n      off_AC0E18 = a2;\n    v3 = 1;\n    if ( a3 )\n      off_AC0E10 = a3;\n  }\n  return v3;\n}", "assembly": "; \n; CRYPTO_set_mem_functions from 0x80e5cc to 0x80e628 (92 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x6414c\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\nLDR             R3, =(dword_AC0E0C - 0x80E5D8)                         ; +0x0, 0x80e5cc\nADD             R3, PC, R3; dword_AC0E0C                               ; +0x4, 0x80e5d0\nLDR             R3, [R3]                                               ; +0x8, 0x80e5d4\nCMP             R3, #0                                                 ; +0xc, 0x80e5d8\nBEQ             loc_80E618                                             ; +0x10, 0x80e5dc\nCMP             R0, #0                                                 ; +0x14, 0x80e5e0\nLDRNE           R3, =(off_AC0E10 - 0x80E5F0)                           ; +0x18, 0x80e5e4\nADDNE           R3, PC, R3; off_AC0E10                                 ; +0x1c, 0x80e5e8\nSTRNE           R0, [R3,#(off_AC0E14 - 0xAC0E10)]; CRYPTO_malloc       ; +0x20, 0x80e5ec\nCMP             R1, #0                                                 ; +0x24, 0x80e5f0\nLDRNE           R3, =(off_AC0E10 - 0x80E600)                           ; +0x28, 0x80e5f4\nADDNE           R3, PC, R3; off_AC0E10                                 ; +0x2c, 0x80e5f8\nSTRNE           R1, [R3,#(off_AC0E18 - 0xAC0E10)]; CRYPTO_realloc      ; +0x30, 0x80e5fc\nCMP             R2, #0                                                 ; +0x34, 0x80e600\nBEQ             loc_80E620                                             ; +0x38, 0x80e604\nLDR             R1, =(off_AC0E10 - 0x80E618)                           ; +0x3c, 0x80e608\nMOV             R3, #1                                                 ; +0x40, 0x80e60c\nADD             R1, PC, R1; off_AC0E10                                 ; +0x44, 0x80e610\nSTR             R2, [R1]; CRYPTO_free                                  ; +0x48, 0x80e614\nMOV             R0, R3                                                 ; +0x4c, 0x80e618\nBX              LR                                                     ; +0x50, 0x80e61c\nMOV             R3, #1                                                 ; +0x54, 0x80e620\nB               loc_80E618                                             ; +0x58, 0x80e624", "xrefs": ["<???> @ 0x6414c"], "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"}