{"type": "func", "start": 8450068, "end": 8450264, "name": "CRYPTO_secure_malloc_done", "pseudocode": "// \n// CRYPTO_secure_malloc_done from 0x80f014 to 0x80f0d8 (196 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x6418c\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 CRYPTO_secure_malloc_done()\n{\n  if ( dword_AD44F8 )\n    return 0;\n  CRYPTO_free((void *)dword_AD44D8, (int)\"crypto/mem_sec.c\", 445);\n  CRYPTO_free((void *)dword_AD44E4, (int)\"crypto/mem_sec.c\", 446);\n  CRYPTO_free((void *)dword_AD44E8, (int)\"crypto/mem_sec.c\", 447);\n  if ( dword_AD44C8 )\n  {\n    if ( dword_AD44CC )\n      munmap((void *)dword_AD44C8, dword_AD44CC);\n  }\n  dword_AD44C8 = 0;\n  dword_AD44CC = 0;\n  dword_AD44D0 = 0;\n  dword_AD44D4 = 0;\n  dword_AD44D8 = 0;\n  dword_AD44DC = 0;\n  dword_AD44E0 = 0;\n  dword_AD44E4 = 0;\n  dword_AD44E8 = 0;\n  dword_AD44EC = 0;\n  dword_AD44F0 = 0;\n  CRYPTO_THREAD_lock_free(dword_AD44F4);\n  return 1;\n}", "assembly": "; \n; CRYPTO_secure_malloc_done from 0x80f014 to 0x80f0d8 (196 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x6418c\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            {R3-R5,LR}                                             ; +0x0, 0x80f014\nLDR             R4, =(dword_AD44C8 - 0x80F024)                         ; +0x4, 0x80f018\nADD             R4, PC, R4; dword_AD44C8                               ; +0x8, 0x80f01c\nLDR             R3, [R4,#(dword_AD44F8 - 0xAD44C8)]                    ; +0xc, 0x80f020\nCMP             R3, #0                                                 ; +0x10, 0x80f024\nBEQ             loc_80F034                                             ; +0x14, 0x80f028\nMOV             R0, #0                                                 ; +0x18, 0x80f02c\nPOP             {R3-R5,PC}                                             ; +0x1c, 0x80f030\nLDR             R5, =(aCryptoMemSecC - 0x80F044); \"crypto/mem_sec.c\"   ; +0x20, 0x80f034\nLDR             R0, [R4,#(dword_AD44D8 - 0xAD44C8)]                    ; +0x24, 0x80f038\nADD             R5, PC, R5; \"crypto/mem_sec.c\"                         ; +0x28, 0x80f03c\nMOV             R1, R5                                                 ; +0x2c, 0x80f040\nLDR             R2, =0x1BD                                             ; +0x30, 0x80f044\nBL              CRYPTO_free                                            ; +0x34, 0x80f048\nMOV             R1, R5                                                 ; +0x38, 0x80f04c\nLDR             R0, [R4,#(dword_AD44E4 - 0xAD44C8)]                    ; +0x3c, 0x80f050\nLDR             R2, =0x1BE                                             ; +0x40, 0x80f054\nBL              CRYPTO_free                                            ; +0x44, 0x80f058\nLDR             R0, [R4,#(dword_AD44E8 - 0xAD44C8)]                    ; +0x48, 0x80f05c\nMOV             R1, R5                                                 ; +0x4c, 0x80f060\nLDR             R2, =0x1BF                                             ; +0x50, 0x80f064\nBL              CRYPTO_free                                            ; +0x54, 0x80f068\nLDR             R0, [R4]; addr                                         ; +0x58, 0x80f06c\nCMP             R0, #0                                                 ; +0x5c, 0x80f070\nBEQ             loc_80F088                                             ; +0x60, 0x80f074\nLDR             R1, [R4,#(dword_AD44CC - 0xAD44C8)]; len               ; +0x64, 0x80f078\nCMP             R1, #0                                                 ; +0x68, 0x80f07c\nBEQ             loc_80F088                                             ; +0x6c, 0x80f080\nBL              munmap                                                 ; +0x70, 0x80f084\nLDR             R1, =(dword_AD44C8 - 0x80F098)                         ; +0x74, 0x80f088\nMOV             R2, #0                                                 ; +0x78, 0x80f08c\nADD             R1, PC, R1; dword_AD44C8                               ; +0x7c, 0x80f090\nMOV             R3, R1                                                 ; +0x80, 0x80f094\nSTR             R2, [R3],#4                                            ; +0x84, 0x80f098\nADD             R3, R3, #4                                             ; +0x88, 0x80f09c\nSTR             R2, [R1,#(dword_AD44CC - 0xAD44C8)]                    ; +0x8c, 0x80f0a0\nLDR             R0, [R1,#(dword_AD44F4 - 0xAD44C8)]                    ; +0x90, 0x80f0a4\nSTR             R2, [R3],#4                                            ; +0x94, 0x80f0a8\nSTR             R2, [R3],#4                                            ; +0x98, 0x80f0ac\nSTR             R2, [R3],#4                                            ; +0x9c, 0x80f0b0\nSTR             R2, [R3],#4                                            ; +0xa0, 0x80f0b4\nSTR             R2, [R3],#4                                            ; +0xa4, 0x80f0b8\nSTR             R2, [R3],#4                                            ; +0xa8, 0x80f0bc\nSTR             R2, [R3],#4                                            ; +0xac, 0x80f0c0\nSTR             R2, [R3]                                               ; +0xb0, 0x80f0c4\nSTR             R2, [R1,#(dword_AD44F0 - 0xAD44C8)]                    ; +0xb4, 0x80f0c8\nBL              CRYPTO_THREAD_lock_free                                ; +0xb8, 0x80f0cc\nMOV             R0, #1                                                 ; +0xbc, 0x80f0d0\nPOP             {R3-R5,PC}                                             ; +0xc0, 0x80f0d4", "xrefs": ["<???> @ 0x6418c"], "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"}