{"type": "func", "start": 16778944, "end": 16779116, "name": "CONF_modules_finish", "pseudocode": "// \n// CONF_modules_finish from 0x10006c0 to 0x100076c (172 bytes)\n// \n// 3 xrefs:\n// > CONF_modules_unload @ 0x1000784\n// > conf_modules_free_int @ 0x1000994\n// > <???> @ 0xbcde8\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:15:53 +0000\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_1566390) > 0 )\n  {\n    v0 = OPENSSL_sk_pop(qword_1566390);\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_1566390);\n  qword_1566390 = 0;\n  return result;\n}", "assembly": "; \n; CONF_modules_finish from 0x10006c0 to 0x100076c (172 bytes)\n; \n; 3 xrefs:\n; > CONF_modules_unload @ 0x1000784\n; > conf_modules_free_int @ 0x1000994\n; > <???> @ 0xbcde8\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:15:53 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x10006c0\nMOV             X29, SP                                                ; +0x4, 0x10006c4\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x10006c8\nADRP            X20, #aCryptoConfConf@PAGE; \"crypto/conf/conf_mod.c\"   ; +0xc, 0x10006cc\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x10, 0x10006d0\nADD             X20, X20, #aCryptoConfConf@PAGEOFF; \"crypto/conf/conf_mod.c\" ; +0x14, 0x10006d4\nADRP            X21, #qword_1566388@PAGE                               ; +0x18, 0x10006d8\nB               loc_100073C                                            ; +0x1c, 0x10006dc\nBL              OPENSSL_sk_pop                                         ; +0x20, 0x10006e0\nMOV             X19, X0                                                ; +0x24, 0x10006e4\nCBZ             X0, loc_100073C                                        ; +0x28, 0x10006e8\nLDR             X3, [X0]                                               ; +0x2c, 0x10006ec\nLDR             X1, [X3,#0x18]                                         ; +0x30, 0x10006f0\nCBZ             X1, loc_1000700                                        ; +0x34, 0x10006f4\nBLR             X1                                                     ; +0x38, 0x10006f8\nLDR             X3, [X19]                                              ; +0x3c, 0x10006fc\nLDR             W4, [X3,#0x20]                                         ; +0x40, 0x1000700\nMOV             X1, X20                                                ; +0x44, 0x1000704\nLDR             X0, [X19,#8]                                           ; +0x48, 0x1000708\nMOV             W2, #0x195                                             ; +0x4c, 0x100070c\nSUB             W4, W4, #1                                             ; +0x50, 0x1000710\nSTR             W4, [X3,#0x20]                                         ; +0x54, 0x1000714\nBL              CRYPTO_free                                            ; +0x58, 0x1000718\nLDR             X0, [X19,#0x10]                                        ; +0x5c, 0x100071c\nMOV             W2, #0x196                                             ; +0x60, 0x1000720\nMOV             X1, X20                                                ; +0x64, 0x1000724\nBL              CRYPTO_free                                            ; +0x68, 0x1000728\nMOV             X0, X19                                                ; +0x6c, 0x100072c\nMOV             X1, X20                                                ; +0x70, 0x1000730\nMOV             W2, #0x197                                             ; +0x74, 0x1000734\nBL              CRYPTO_free                                            ; +0x78, 0x1000738\nADD             X19, X21, #qword_1566388@PAGEOFF                       ; +0x7c, 0x100073c\nLDR             X0, [X19,#(qword_1566390 - 0x1566388)]                 ; +0x80, 0x1000740\nBL              OPENSSL_sk_num                                         ; +0x84, 0x1000744\nCMP             W0, WZR                                                ; +0x88, 0x1000748\nLDR             X0, [X19,#(qword_1566390 - 0x1566388)]                 ; +0x8c, 0x100074c\nB.GT            loc_10006E0                                            ; +0x90, 0x1000750\nBL              OPENSSL_sk_free                                        ; +0x94, 0x1000754\nSTR             XZR, [X19,#(qword_1566390 - 0x1566388)]                ; +0x98, 0x1000758\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x9c, 0x100075c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xa0, 0x1000760\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xa4, 0x1000764\nRET                                                                    ; +0xa8, 0x1000768", "xrefs": ["CONF_modules_unload @ 0x1000784", "conf_modules_free_int @ 0x1000994", "<???> @ 0xbcde8"], "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"}