{"type": "func", "start": 8447276, "end": 8447424, "name": "CRYPTO_realloc", "pseudocode": "// \n// CRYPTO_realloc from 0x80e52c to 0x80e5c0 (148 bytes)\n// \n// 29 xrefs:\n// > SSL_CTX_dane_mtype_set @ 0x796620\n// > SSL_CTX_dane_mtype_set @ 0x796648\n// > SSL_CTX_use_serverinfo @ 0x79cf28\n// > SSL_CTX_use_serverinfo_file @ 0x79d238\n// > SSL_CTX_add_server_custom_ext @ 0x7ad494\n// > SSL_CTX_add_client_custom_ext @ 0x7ad5ec\n// > ASN1_STRING_set @ 0x7c2b18\n// > sub_7CCAAC @ 0x7ccbb4\n// > sub_7CCC68 @ 0x7cd558\n// > sub_7CD900 @ 0x7cdbd4\n// > sub_7CD900 @ 0x7cde24\n// > BUF_MEM_grow @ 0x7d8ce0\n// > ERR_add_error_vdata @ 0x7fb5b4\n// > OPENSSL_LH_insert @ 0x80c5a8\n// > OPENSSL_LH_delete @ 0x80c83c\n// > CRYPTO_realloc @ 0x80e560\n// > sub_817860 @ 0x8179fc\n// > OPENSSL_sk_insert @ 0x838790\n// > sub_858480 @ 0x8586e0\n// > sub_858480 @ 0x85885c\n// > sub_858480 @ 0x858908\n// > a2i_ASN1_STRING @ 0x867374\n// > <???> @ 0x5ba0c\n// > CRYPTO_realloc @ 0x80e53c\n// > CRYPTO_realloc @ 0x80e540\n// > CRYPTO_set_mem_functions @ 0x80e5fc\n// > CRYPTO_get_mem_functions @ 0x80e688\n// > <???> @ 0xab863c\n// > <???> @ 0xac0e18\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_realloc(void *a1, void *a2, int a3, int a4)\n{\n  bool v4; // zf\n\n  v4 = off_AC0E18 == nullptr;\n  if ( off_AC0E18 )\n    v4 = (char *)off_AC0E18 == (char *)CRYPTO_realloc;\n  if ( !v4 )\n    return (void *)((int (__fastcall *)(void *, void *, int, int))off_AC0E18)(a1, a2, a3, a4);\n  if ( !a1 )\n    return CRYPTO_malloc(a2, a3, a4);\n  if ( a2 )\n  {\n    dword_AC0E0C = 0;\n    return realloc(a1, (size_t)a2);\n  }\n  else\n  {\n    CRYPTO_free(a1, a3, a4);\n    return a2;\n  }\n}", "assembly": "; \n; CRYPTO_realloc from 0x80e52c to 0x80e5c0 (148 bytes)\n; \n; 29 xrefs:\n; > SSL_CTX_dane_mtype_set @ 0x796620\n; > SSL_CTX_dane_mtype_set @ 0x796648\n; > SSL_CTX_use_serverinfo @ 0x79cf28\n; > SSL_CTX_use_serverinfo_file @ 0x79d238\n; > SSL_CTX_add_server_custom_ext @ 0x7ad494\n; > SSL_CTX_add_client_custom_ext @ 0x7ad5ec\n; > ASN1_STRING_set @ 0x7c2b18\n; > sub_7CCAAC @ 0x7ccbb4\n; > sub_7CCC68 @ 0x7cd558\n; > sub_7CD900 @ 0x7cdbd4\n; > sub_7CD900 @ 0x7cde24\n; > BUF_MEM_grow @ 0x7d8ce0\n; > ERR_add_error_vdata @ 0x7fb5b4\n; > OPENSSL_LH_insert @ 0x80c5a8\n; > OPENSSL_LH_delete @ 0x80c83c\n; > CRYPTO_realloc @ 0x80e560\n; > sub_817860 @ 0x8179fc\n; > OPENSSL_sk_insert @ 0x838790\n; > sub_858480 @ 0x8586e0\n; > sub_858480 @ 0x85885c\n; > sub_858480 @ 0x858908\n; > a2i_ASN1_STRING @ 0x867374\n; > <???> @ 0x5ba0c\n; > CRYPTO_realloc @ 0x80e53c\n; > CRYPTO_realloc @ 0x80e540\n; > CRYPTO_set_mem_functions @ 0x80e5fc\n; > CRYPTO_get_mem_functions @ 0x80e688\n; > <???> @ 0xab863c\n; > <???> @ 0xac0e18\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-R8,LR}                                             ; +0x0, 0x80e52c\nLDR             LR, =(off_AC0E10 - 0x80E540)                           ; +0x4, 0x80e530\nLDR             R12, =(CRYPTO_realloc_ptr - 0x80E544)                  ; +0x8, 0x80e534\nADD             LR, PC, LR; off_AC0E10                                 ; +0xc, 0x80e538\nLDR             R12, [PC,R12]; CRYPTO_realloc                          ; +0x10, 0x80e53c\nLDR             LR, [LR,#(off_AC0E18 - 0xAC0E10)]; CRYPTO_realloc      ; +0x14, 0x80e540\nCMP             LR, #0                                                 ; +0x18, 0x80e544\nCMPNE           LR, R12                                                ; +0x1c, 0x80e548\nMOVNE           R12, #1                                                ; +0x20, 0x80e54c\nMOVEQ           R12, #0                                                ; +0x24, 0x80e550\nBEQ             loc_80E564                                             ; +0x28, 0x80e554\nMOV             R12, LR                                                ; +0x2c, 0x80e558\nPOP             {R4-R8,LR}                                             ; +0x30, 0x80e55c\nBX              R12; CRYPTO_realloc                                    ; +0x34, 0x80e560\nCMP             R0, #0                                                 ; +0x38, 0x80e564\nMOV             R5, R0                                                 ; +0x3c, 0x80e568\nMOV             R4, R1                                                 ; +0x40, 0x80e56c\nMOV             R7, R2                                                 ; +0x44, 0x80e570\nMOV             R6, R3                                                 ; +0x48, 0x80e574\nBEQ             loc_80E5AC                                             ; +0x4c, 0x80e578\nCMP             R1, #0                                                 ; +0x50, 0x80e57c\nBEQ             loc_80E598                                             ; +0x54, 0x80e580\nLDR             R3, =(dword_AC0E0C - 0x80E594)                         ; +0x58, 0x80e584\nPOP             {R4-R8,LR}                                             ; +0x5c, 0x80e588\nADD             R3, PC, R3; dword_AC0E0C                               ; +0x60, 0x80e58c\nSTR             R12, [R3]                                              ; +0x64, 0x80e590\nB               realloc                                                ; +0x68, 0x80e594\nMOV             R2, R3                                                 ; +0x6c, 0x80e598\nMOV             R1, R7                                                 ; +0x70, 0x80e59c\nBL              CRYPTO_free                                            ; +0x74, 0x80e5a0\nMOV             R0, R4                                                 ; +0x78, 0x80e5a4\nPOP             {R4-R8,PC}                                             ; +0x7c, 0x80e5a8\nMOV             R0, R1                                                 ; +0x80, 0x80e5ac\nPOP             {R4-R8,LR}                                             ; +0x84, 0x80e5b0\nMOV             R1, R2                                                 ; +0x88, 0x80e5b4\nMOV             R2, R3                                                 ; +0x8c, 0x80e5b8\nB               CRYPTO_malloc                                          ; +0x90, 0x80e5bc", "xrefs": ["SSL_CTX_dane_mtype_set @ 0x796620", "SSL_CTX_dane_mtype_set @ 0x796648", "SSL_CTX_use_serverinfo @ 0x79cf28", "SSL_CTX_use_serverinfo_file @ 0x79d238", "SSL_CTX_add_server_custom_ext @ 0x7ad494", "SSL_CTX_add_client_custom_ext @ 0x7ad5ec", "ASN1_STRING_set @ 0x7c2b18", "sub_7CCAAC @ 0x7ccbb4", "sub_7CCC68 @ 0x7cd558", "sub_7CD900 @ 0x7cdbd4", "sub_7CD900 @ 0x7cde24", "BUF_MEM_grow @ 0x7d8ce0", "ERR_add_error_vdata @ 0x7fb5b4", "OPENSSL_LH_insert @ 0x80c5a8", "OPENSSL_LH_delete @ 0x80c83c", "CRYPTO_realloc @ 0x80e560", "sub_817860 @ 0x8179fc", "OPENSSL_sk_insert @ 0x838790", "sub_858480 @ 0x8586e0", "sub_858480 @ 0x85885c", "sub_858480 @ 0x858908", "a2i_ASN1_STRING @ 0x867374", "<???> @ 0x5ba0c", "CRYPTO_realloc @ 0x80e53c", "CRYPTO_realloc @ 0x80e540", "CRYPTO_set_mem_functions @ 0x80e5fc", "CRYPTO_get_mem_functions @ 0x80e688", "<???> @ 0xab863c", "<???> @ 0xac0e18"], "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"}