{"type": "func", "start": 14377716, "end": 14377900, "name": "CRYPTO_secure_malloc_done", "pseudocode": "// \n// CRYPTO_secure_malloc_done from 0xdb62f4 to 0xdb63ac (184 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x42b40\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\n__int64 CRYPTO_secure_malloc_done()\n{\n  __int64 result; // x0\n\n  result = 0;\n  if ( !qword_125F168 )\n  {\n    CRYPTO_free((void *)qword_125F128, (__int64)\"crypto/mem_sec.c\", 445);\n    CRYPTO_free((void *)qword_125F140, (__int64)\"crypto/mem_sec.c\", 446);\n    CRYPTO_free((void *)qword_125F148, (__int64)\"crypto/mem_sec.c\", 447);\n    if ( qword_125F108 )\n    {\n      if ( qword_125F110 )\n        munmap((void *)qword_125F108, qword_125F110);\n    }\n    qword_125F108 = 0;\n    qword_125F110 = 0;\n    qword_125F118 = 0;\n    qword_125F120 = 0;\n    qword_125F128 = 0;\n    qword_125F130 = 0;\n    qword_125F138 = 0;\n    qword_125F140 = 0;\n    qword_125F148 = 0;\n    qword_125F150 = 0;\n    dword_125F158 = 0;\n    CRYPTO_THREAD_lock_free(qword_125F160);\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; CRYPTO_secure_malloc_done from 0xdb62f4 to 0xdb63ac (184 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x42b40\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xdb62f4\nMOV             W0, #0                                                 ; +0x4, 0xdb62f8\nMOV             X29, SP                                                ; +0x8, 0xdb62fc\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0xdb6300\nADRP            X19, #qword_125F108@PAGE                               ; +0x10, 0xdb6304\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x14, 0xdb6308\nADD             X20, X19, #qword_125F108@PAGEOFF                       ; +0x18, 0xdb630c\nLDR             X1, [X20,#(qword_125F168 - 0x125F108)]                 ; +0x1c, 0xdb6310\nCBZ             X1, loc_DB6328                                         ; +0x20, 0xdb6314\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x24, 0xdb6318\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x28, 0xdb631c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x2c, 0xdb6320\nRET                                                                    ; +0x30, 0xdb6324\nADRP            X21, #aCryptoMemSecC@PAGE; \"crypto/mem_sec.c\"          ; +0x34, 0xdb6328\nLDR             X0, [X20,#(qword_125F128 - 0x125F108)]                 ; +0x38, 0xdb632c\nADD             X21, X21, #aCryptoMemSecC@PAGEOFF; \"crypto/mem_sec.c\"  ; +0x3c, 0xdb6330\nMOV             W2, #0x1BD                                             ; +0x40, 0xdb6334\nMOV             X1, X21                                                ; +0x44, 0xdb6338\nBL              CRYPTO_free                                            ; +0x48, 0xdb633c\nLDR             X0, [X20,#(qword_125F140 - 0x125F108)]                 ; +0x4c, 0xdb6340\nMOV             X1, X21                                                ; +0x50, 0xdb6344\nMOV             W2, #0x1BE                                             ; +0x54, 0xdb6348\nBL              CRYPTO_free                                            ; +0x58, 0xdb634c\nLDR             X0, [X20,#(qword_125F148 - 0x125F108)]                 ; +0x5c, 0xdb6350\nMOV             X1, X21                                                ; +0x60, 0xdb6354\nMOV             W2, #0x1BF                                             ; +0x64, 0xdb6358\nBL              CRYPTO_free                                            ; +0x68, 0xdb635c\nLDR             X0, [X19,#qword_125F108@PAGEOFF]; addr                 ; +0x6c, 0xdb6360\nCBZ             X0, loc_DB6374                                         ; +0x70, 0xdb6364\nLDR             X1, [X20,#(qword_125F110 - 0x125F108)]; len            ; +0x74, 0xdb6368\nCBZ             X1, loc_DB6374                                         ; +0x78, 0xdb636c\nBL              .munmap                                                ; +0x7c, 0xdb6370\nADD             X1, X19, #qword_125F108@PAGEOFF                        ; +0x80, 0xdb6374\nLDR             X0, [X1,#(qword_125F160 - 0x125F108)]                  ; +0x84, 0xdb6378\nSTP             XZR, XZR, [X1]                                         ; +0x88, 0xdb637c\nSTP             XZR, XZR, [X1,#(qword_125F118 - 0x125F108)]            ; +0x8c, 0xdb6380\nSTP             XZR, XZR, [X1,#(qword_125F128 - 0x125F108)]            ; +0x90, 0xdb6384\nSTP             XZR, XZR, [X1,#(qword_125F138 - 0x125F108)]            ; +0x94, 0xdb6388\nSTP             XZR, XZR, [X1,#(qword_125F148 - 0x125F108)]            ; +0x98, 0xdb638c\nSTR             WZR, [X1,#(dword_125F158 - 0x125F108)]                 ; +0x9c, 0xdb6390\nBL              CRYPTO_THREAD_lock_free                                ; +0xa0, 0xdb6394\nLDR             X21, [SP,#0x30+var_10]                                 ; +0xa4, 0xdb6398\nMOV             W0, #1                                                 ; +0xa8, 0xdb639c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xac, 0xdb63a0\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xb0, 0xdb63a4\nRET                                                                    ; +0xb4, 0xdb63a8", "xrefs": ["<???> @ 0x42b40"], "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"}