{"type": "func", "start": 14165288, "end": 14165548, "name": "CONF_module_add", "pseudocode": "// \n// CONF_module_add from 0xd82528 to 0xd8262c (260 bytes)\n// \n// 6 xrefs:\n// > SSL_add_ssl_module @ 0xd6095c\n// > ENGINE_add_conf_module @ 0xd9c414\n// > EVP_add_alg_module @ 0xda8f38\n// > ASN1_add_oid_module @ 0xe0e464\n// > ASN1_add_stable_module @ 0xe0e7c8\n// > <???> @ 0x53580\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 __fastcall CONF_module_add(__int64 a1, __int64 a2, __int64 a3)\n{\n  _QWORD *v6; // x0\n  _QWORD *v7; // x19\n  __int64 v8; // x0\n\n  if ( qword_125D588 || (qword_125D588 = OPENSSL_sk_new_null(a1)) != 0 )\n  {\n    v6 = (_QWORD *)CRYPTO_zalloc(48, \"crypto/conf/conf_mod.c\", 234);\n    v7 = v6;\n    if ( v6 )\n    {\n      *v6 = 0;\n      v8 = CRYPTO_strdup(a1, \"crypto/conf/conf_mod.c\", 239);\n      v7[2] = a2;\n      v7[1] = v8;\n      v7[3] = a3;\n      if ( v8 )\n      {\n        if ( (unsigned int)OPENSSL_sk_push(qword_125D588, v7) )\n          return 1;\n        CRYPTO_free(v7[1], \"crypto/conf/conf_mod.c\", 248);\n        CRYPTO_free(v7, \"crypto/conf/conf_mod.c\", 249);\n      }\n      else\n      {\n        CRYPTO_free(v7, \"crypto/conf/conf_mod.c\", 243);\n      }\n    }\n  }\n  return 0;\n}", "assembly": "; \n; CONF_module_add from 0xd82528 to 0xd8262c (260 bytes)\n; \n; 6 xrefs:\n; > SSL_add_ssl_module @ 0xd6095c\n; > ENGINE_add_conf_module @ 0xd9c414\n; > EVP_add_alg_module @ 0xda8f38\n; > ASN1_add_oid_module @ 0xe0e464\n; > ASN1_add_stable_module @ 0xe0e7c8\n; > <???> @ 0x53580\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,#-0x40+var_s0]!                          ; +0x0, 0xd82528\nMOV             X29, SP                                                ; +0x4, 0xd8252c\nSTP             X21, X22, [SP,#var_s20]                                ; +0x8, 0xd82530\nADRP            X21, #qword_125D588@PAGE                               ; +0xc, 0xd82534\nMOV             X22, X2                                                ; +0x10, 0xd82538\nSTP             X23, X24, [SP,#var_s30]                                ; +0x14, 0xd8253c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x18, 0xd82540\nLDR             X3, [X21,#qword_125D588@PAGEOFF]                       ; +0x1c, 0xd82544\nMOV             X24, X0                                                ; +0x20, 0xd82548\nMOV             X23, X1                                                ; +0x24, 0xd8254c\nCBZ             X3, loc_D82600                                         ; +0x28, 0xd82550\nADRP            X20, #aCryptoConfConf@PAGE; \"crypto/conf/conf_mod.c\"   ; +0x2c, 0xd82554\nMOV             X0, #0x30 ; '0'                                        ; +0x30, 0xd82558\nADD             X20, X20, #aCryptoConfConf@PAGEOFF; \"crypto/conf/conf_mod.c\" ; +0x34, 0xd8255c\nMOV             W2, #0xEA                                              ; +0x38, 0xd82560\nMOV             X1, X20                                                ; +0x3c, 0xd82564\nBL              CRYPTO_zalloc                                          ; +0x40, 0xd82568\nMOV             X19, X0                                                ; +0x44, 0xd8256c\nCBZ             X0, loc_D825E4                                         ; +0x48, 0xd82570\nSTR             XZR, [X0]                                              ; +0x4c, 0xd82574\nMOV             X1, X20                                                ; +0x50, 0xd82578\nMOV             X0, X24                                                ; +0x54, 0xd8257c\nMOV             W2, #0xEF                                              ; +0x58, 0xd82580\nBL              CRYPTO_strdup                                          ; +0x5c, 0xd82584\nSTR             X23, [X19,#0x10]                                       ; +0x60, 0xd82588\nSTR             X0, [X19,#8]                                           ; +0x64, 0xd8258c\nSTR             X22, [X19,#0x18]                                       ; +0x68, 0xd82590\nCBZ             X0, loc_D82614                                         ; +0x6c, 0xd82594\nLDR             X0, [X21,#qword_125D588@PAGEOFF]                       ; +0x70, 0xd82598\nMOV             X1, X19                                                ; +0x74, 0xd8259c\nBL              OPENSSL_sk_push                                        ; +0x78, 0xd825a0\nMOV             W1, #1                                                 ; +0x7c, 0xd825a4\nCBZ             W0, loc_D825C4                                         ; +0x80, 0xd825a8\nMOV             W0, W1                                                 ; +0x84, 0xd825ac\nLDP             X19, X20, [SP,#var_s10]                                ; +0x88, 0xd825b0\nLDP             X21, X22, [SP,#var_s20]                                ; +0x8c, 0xd825b4\nLDP             X23, X24, [SP,#var_s30]                                ; +0x90, 0xd825b8\nLDP             X29, X30, [SP+var_s0],#0x40                            ; +0x94, 0xd825bc\nRET                                                                    ; +0x98, 0xd825c0\nLDR             X0, [X19,#8]                                           ; +0x9c, 0xd825c4\nMOV             W2, #0xF8                                              ; +0xa0, 0xd825c8\nMOV             X1, X20                                                ; +0xa4, 0xd825cc\nBL              CRYPTO_free                                            ; +0xa8, 0xd825d0\nMOV             X0, X19                                                ; +0xac, 0xd825d4\nMOV             X1, X20                                                ; +0xb0, 0xd825d8\nMOV             W2, #0xF9                                              ; +0xb4, 0xd825dc\nBL              CRYPTO_free                                            ; +0xb8, 0xd825e0\nMOV             W1, #0                                                 ; +0xbc, 0xd825e4\nMOV             W0, W1                                                 ; +0xc0, 0xd825e8\nLDP             X19, X20, [SP,#var_s10]                                ; +0xc4, 0xd825ec\nLDP             X21, X22, [SP,#var_s20]                                ; +0xc8, 0xd825f0\nLDP             X23, X24, [SP,#var_s30]                                ; +0xcc, 0xd825f4\nLDP             X29, X30, [SP+var_s0],#0x40                            ; +0xd0, 0xd825f8\nRET                                                                    ; +0xd4, 0xd825fc\nBL              OPENSSL_sk_new_null                                    ; +0xd8, 0xd82600\nSTR             X0, [X21,#qword_125D588@PAGEOFF]                       ; +0xdc, 0xd82604\nCBNZ            X0, loc_D82554                                         ; +0xe0, 0xd82608\nMOV             W1, #0                                                 ; +0xe4, 0xd8260c\nB               loc_D825E8                                             ; +0xe8, 0xd82610\nMOV             X1, X20                                                ; +0xec, 0xd82614\nMOV             X0, X19                                                ; +0xf0, 0xd82618\nMOV             W2, #0xF3                                              ; +0xf4, 0xd8261c\nBL              CRYPTO_free                                            ; +0xf8, 0xd82620\nMOV             W1, #0                                                 ; +0xfc, 0xd82624\nB               loc_D825E8                                             ; +0x100, 0xd82628", "xrefs": ["SSL_add_ssl_module @ 0xd6095c", "ENGINE_add_conf_module @ 0xd9c414", "EVP_add_alg_module @ 0xda8f38", "ASN1_add_oid_module @ 0xe0e464", "ASN1_add_stable_module @ 0xe0e7c8", "<???> @ 0x53580"], "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"}