{"type": "func", "start": 16991828, "end": 16992012, "name": "CRYPTO_secure_malloc_done", "pseudocode": "// \n// CRYPTO_secure_malloc_done from 0x1034654 to 0x103470c (184 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x5f4e8\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:23 +0000\n// \n\n__int64 CRYPTO_secure_malloc_done()\n{\n  __int64 result; // x0\n\n  result = 0;\n  if ( !qword_1567F68 )\n  {\n    CRYPTO_free((void *)qword_1567F28, (__int64)\"crypto/mem_sec.c\", 445);\n    CRYPTO_free((void *)qword_1567F40, (__int64)\"crypto/mem_sec.c\", 446);\n    CRYPTO_free((void *)qword_1567F48, (__int64)\"crypto/mem_sec.c\", 447);\n    if ( qword_1567F08 )\n    {\n      if ( qword_1567F10 )\n        munmap((void *)qword_1567F08, qword_1567F10);\n    }\n    qword_1567F08 = 0;\n    qword_1567F10 = 0;\n    qword_1567F18 = 0;\n    qword_1567F20 = 0;\n    qword_1567F28 = 0;\n    qword_1567F30 = 0;\n    qword_1567F38 = 0;\n    qword_1567F40 = 0;\n    qword_1567F48 = 0;\n    qword_1567F50 = 0;\n    dword_1567F58 = 0;\n    CRYPTO_THREAD_lock_free(qword_1567F60);\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; CRYPTO_secure_malloc_done from 0x1034654 to 0x103470c (184 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x5f4e8\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:23 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x1034654\nMOV             W0, #0                                                 ; +0x4, 0x1034658\nMOV             X29, SP                                                ; +0x8, 0x103465c\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0x1034660\nADRP            X19, #qword_1567F08@PAGE                               ; +0x10, 0x1034664\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x14, 0x1034668\nADD             X20, X19, #qword_1567F08@PAGEOFF                       ; +0x18, 0x103466c\nLDR             X1, [X20,#(qword_1567F68 - 0x1567F08)]                 ; +0x1c, 0x1034670\nCBZ             X1, loc_1034688                                        ; +0x20, 0x1034674\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x24, 0x1034678\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x28, 0x103467c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x2c, 0x1034680\nRET                                                                    ; +0x30, 0x1034684\nADRP            X21, #aCryptoMemSecC@PAGE; \"crypto/mem_sec.c\"          ; +0x34, 0x1034688\nLDR             X0, [X20,#(qword_1567F28 - 0x1567F08)]                 ; +0x38, 0x103468c\nADD             X21, X21, #aCryptoMemSecC@PAGEOFF; \"crypto/mem_sec.c\"  ; +0x3c, 0x1034690\nMOV             W2, #0x1BD                                             ; +0x40, 0x1034694\nMOV             X1, X21                                                ; +0x44, 0x1034698\nBL              CRYPTO_free                                            ; +0x48, 0x103469c\nLDR             X0, [X20,#(qword_1567F40 - 0x1567F08)]                 ; +0x4c, 0x10346a0\nMOV             X1, X21                                                ; +0x50, 0x10346a4\nMOV             W2, #0x1BE                                             ; +0x54, 0x10346a8\nBL              CRYPTO_free                                            ; +0x58, 0x10346ac\nLDR             X0, [X20,#(qword_1567F48 - 0x1567F08)]                 ; +0x5c, 0x10346b0\nMOV             X1, X21                                                ; +0x60, 0x10346b4\nMOV             W2, #0x1BF                                             ; +0x64, 0x10346b8\nBL              CRYPTO_free                                            ; +0x68, 0x10346bc\nLDR             X0, [X19,#qword_1567F08@PAGEOFF]; addr                 ; +0x6c, 0x10346c0\nCBZ             X0, loc_10346D4                                        ; +0x70, 0x10346c4\nLDR             X1, [X20,#(qword_1567F10 - 0x1567F08)]; len            ; +0x74, 0x10346c8\nCBZ             X1, loc_10346D4                                        ; +0x78, 0x10346cc\nBL              .munmap                                                ; +0x7c, 0x10346d0\nADD             X1, X19, #qword_1567F08@PAGEOFF                        ; +0x80, 0x10346d4\nLDR             X0, [X1,#(qword_1567F60 - 0x1567F08)]                  ; +0x84, 0x10346d8\nSTP             XZR, XZR, [X1]                                         ; +0x88, 0x10346dc\nSTP             XZR, XZR, [X1,#(qword_1567F18 - 0x1567F08)]            ; +0x8c, 0x10346e0\nSTP             XZR, XZR, [X1,#(qword_1567F28 - 0x1567F08)]            ; +0x90, 0x10346e4\nSTP             XZR, XZR, [X1,#(qword_1567F38 - 0x1567F08)]            ; +0x94, 0x10346e8\nSTP             XZR, XZR, [X1,#(qword_1567F48 - 0x1567F08)]            ; +0x98, 0x10346ec\nSTR             WZR, [X1,#(dword_1567F58 - 0x1567F08)]                 ; +0x9c, 0x10346f0\nBL              CRYPTO_THREAD_lock_free                                ; +0xa0, 0x10346f4\nLDR             X21, [SP,#0x30+var_10]                                 ; +0xa4, 0x10346f8\nMOV             W0, #1                                                 ; +0xa8, 0x10346fc\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xac, 0x1034700\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xb0, 0x1034704\nRET                                                                    ; +0xb4, 0x1034708", "xrefs": ["<???> @ 0x5f4e8"], "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"}