{"type": "func", "start": 14164832, "end": 14165004, "name": "CONF_modules_finish", "pseudocode": "// \n// CONF_modules_finish from 0xd82360 to 0xd8240c (172 bytes)\n// \n// 3 xrefs:\n// > CONF_modules_unload @ 0xd82424\n// > conf_modules_free_int @ 0xd82634\n// > <???> @ 0x8eb18\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 CONF_modules_finish()\n{\n  __int64 v0; // x0\n  __int64 *v1; // x19\n  __int64 v2; // x3\n  void (*v3)(void); // x1\n  __int64 v4; // x0\n  __int64 result; // x0\n\n  while ( (int)OPENSSL_sk_num(qword_125D590) > 0 )\n  {\n    v0 = OPENSSL_sk_pop(qword_125D590);\n    v1 = (__int64 *)v0;\n    if ( v0 )\n    {\n      v2 = *(_QWORD *)v0;\n      v3 = *(void (**)(void))(*(_QWORD *)v0 + 24LL);\n      if ( v3 )\n      {\n        v3();\n        v2 = *v1;\n      }\n      v4 = v1[1];\n      --*(_DWORD *)(v2 + 32);\n      CRYPTO_free(v4, \"crypto/conf/conf_mod.c\", 405);\n      CRYPTO_free(v1[2], \"crypto/conf/conf_mod.c\", 406);\n      CRYPTO_free(v1, \"crypto/conf/conf_mod.c\", 407);\n    }\n  }\n  result = OPENSSL_sk_free(qword_125D590);\n  qword_125D590 = 0;\n  return result;\n}", "assembly": "; \n; CONF_modules_finish from 0xd82360 to 0xd8240c (172 bytes)\n; \n; 3 xrefs:\n; > CONF_modules_unload @ 0xd82424\n; > conf_modules_free_int @ 0xd82634\n; > <???> @ 0x8eb18\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, 0xd82360\nMOV             X29, SP                                                ; +0x4, 0xd82364\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0xd82368\nADRP            X20, #aCryptoConfConf@PAGE; \"crypto/conf/conf_mod.c\"   ; +0xc, 0xd8236c\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x10, 0xd82370\nADD             X20, X20, #aCryptoConfConf@PAGEOFF; \"crypto/conf/conf_mod.c\" ; +0x14, 0xd82374\nADRP            X21, #qword_125D588@PAGE                               ; +0x18, 0xd82378\nB               loc_D823DC                                             ; +0x1c, 0xd8237c\nBL              OPENSSL_sk_pop                                         ; +0x20, 0xd82380\nMOV             X19, X0                                                ; +0x24, 0xd82384\nCBZ             X0, loc_D823DC                                         ; +0x28, 0xd82388\nLDR             X3, [X0]                                               ; +0x2c, 0xd8238c\nLDR             X1, [X3,#0x18]                                         ; +0x30, 0xd82390\nCBZ             X1, loc_D823A0                                         ; +0x34, 0xd82394\nBLR             X1                                                     ; +0x38, 0xd82398\nLDR             X3, [X19]                                              ; +0x3c, 0xd8239c\nLDR             W4, [X3,#0x20]                                         ; +0x40, 0xd823a0\nMOV             X1, X20                                                ; +0x44, 0xd823a4\nLDR             X0, [X19,#8]                                           ; +0x48, 0xd823a8\nMOV             W2, #0x195                                             ; +0x4c, 0xd823ac\nSUB             W4, W4, #1                                             ; +0x50, 0xd823b0\nSTR             W4, [X3,#0x20]                                         ; +0x54, 0xd823b4\nBL              CRYPTO_free                                            ; +0x58, 0xd823b8\nLDR             X0, [X19,#0x10]                                        ; +0x5c, 0xd823bc\nMOV             W2, #0x196                                             ; +0x60, 0xd823c0\nMOV             X1, X20                                                ; +0x64, 0xd823c4\nBL              CRYPTO_free                                            ; +0x68, 0xd823c8\nMOV             X0, X19                                                ; +0x6c, 0xd823cc\nMOV             X1, X20                                                ; +0x70, 0xd823d0\nMOV             W2, #0x197                                             ; +0x74, 0xd823d4\nBL              CRYPTO_free                                            ; +0x78, 0xd823d8\nADD             X19, X21, #qword_125D588@PAGEOFF                       ; +0x7c, 0xd823dc\nLDR             X0, [X19,#(qword_125D590 - 0x125D588)]                 ; +0x80, 0xd823e0\nBL              OPENSSL_sk_num                                         ; +0x84, 0xd823e4\nCMP             W0, WZR                                                ; +0x88, 0xd823e8\nLDR             X0, [X19,#(qword_125D590 - 0x125D588)]                 ; +0x8c, 0xd823ec\nB.GT            loc_D82380                                             ; +0x90, 0xd823f0\nBL              OPENSSL_sk_free                                        ; +0x94, 0xd823f4\nSTR             XZR, [X19,#(qword_125D590 - 0x125D588)]                ; +0x98, 0xd823f8\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x9c, 0xd823fc\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xa0, 0xd82400\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xa4, 0xd82404\nRET                                                                    ; +0xa8, 0xd82408", "xrefs": ["CONF_modules_unload @ 0xd82424", "conf_modules_free_int @ 0xd82634", "<???> @ 0x8eb18"], "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"}