{"type": "func", "start": 10418168, "end": 10418320, "name": "CONF_get1_default_config_file", "pseudocode": "// \n// CONF_get1_default_config_file from 0x9ef7f8 to 0x9ef890 (152 bytes)\n// \n// 2 xrefs:\n// > CONF_modules_load_file @ 0x9ef950\n// > <???> @ 0x79e5c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:29 +0000\n// \n\nint CONF_get1_default_config_file()\n{\n  char *v0; // r0\n  const char *default_cert_area; // r0\n  size_t v3; // r5\n  int v4; // r4\n  int v5; // r0\n\n  v0 = getenv(\"OPENSSL_CONF\");\n  if ( v0 )\n    return CRYPTO_strdup(v0, \"crypto/conf/conf_mod.c\", 483);\n  default_cert_area = (const char *)X509_get_default_cert_area();\n  v3 = strlen(default_cert_area) + 13;\n  v4 = CRYPTO_malloc(v3, \"crypto/conf/conf_mod.c\", 491);\n  if ( v4 )\n  {\n    v5 = X509_get_default_cert_area();\n    OPENSSL_strlcpy(v4, v5, v3);\n    OPENSSL_strlcat(v4, &word_BF54E4, v3);\n    OPENSSL_strlcat(v4, \"openssl.cnf\", v3);\n  }\n  return v4;\n}", "assembly": "; \n; CONF_get1_default_config_file from 0x9ef7f8 to 0x9ef890 (152 bytes)\n; \n; 2 xrefs:\n; > CONF_modules_load_file @ 0x9ef950\n; > <???> @ 0x79e5c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:29 +0000\n; \nLDR             R0, =(aOpensslConf_0 - 0x9EF808); \"OPENSSL_CONF\"       ; +0x0, 0x9ef7f8\nPUSH            {R3-R5,LR}                                             ; +0x4, 0x9ef7fc\nADD             R0, PC, R0; \"OPENSSL_CONF\"                             ; +0x8, 0x9ef800\nBL              getenv                                                 ; +0xc, 0x9ef804\nCMP             R0, #0                                                 ; +0x10, 0x9ef808\nBEQ             loc_9EF824                                             ; +0x14, 0x9ef80c\nLDR             R1, =(aCryptoConfConf_0 - 0x9EF820); \"crypto/conf/conf_mod.c\" ; +0x18, 0x9ef810\nLDR             R2, =0x1E3                                             ; +0x1c, 0x9ef814\nADD             R1, PC, R1; \"crypto/conf/conf_mod.c\"                   ; +0x20, 0x9ef818\nPOP             {R3-R5,LR}                                             ; +0x24, 0x9ef81c\nB               CRYPTO_strdup                                          ; +0x28, 0x9ef820\nBL              X509_get_default_cert_area                             ; +0x2c, 0x9ef824\nBL              strlen                                                 ; +0x30, 0x9ef828\nLDR             R1, =(aCryptoConfConf_0 - 0x9EF83C); \"crypto/conf/conf_mod.c\" ; +0x34, 0x9ef82c\nLDR             R2, =0x1EB                                             ; +0x38, 0x9ef830\nADD             R1, PC, R1; \"crypto/conf/conf_mod.c\"                   ; +0x3c, 0x9ef834\nADD             R5, R0, #0xD                                           ; +0x40, 0x9ef838\nMOV             R0, R5                                                 ; +0x44, 0x9ef83c\nBL              CRYPTO_malloc                                          ; +0x48, 0x9ef840\nSUBS            R4, R0, #0                                             ; +0x4c, 0x9ef844\nBEQ             loc_9EF888                                             ; +0x50, 0x9ef848\nBL              X509_get_default_cert_area                             ; +0x54, 0x9ef84c\nMOV             R2, R5                                                 ; +0x58, 0x9ef850\nMOV             R1, R0                                                 ; +0x5c, 0x9ef854\nMOV             R0, R4                                                 ; +0x60, 0x9ef858\nBL              OPENSSL_strlcpy                                        ; +0x64, 0x9ef85c\nLDR             R1, =(word_BF54E4 - 0x9EF870)                          ; +0x68, 0x9ef860\nMOV             R2, R5                                                 ; +0x6c, 0x9ef864\nADD             R1, PC, R1; word_BF54E4                                ; +0x70, 0x9ef868\nMOV             R0, R4                                                 ; +0x74, 0x9ef86c\nBL              OPENSSL_strlcat                                        ; +0x78, 0x9ef870\nLDR             R1, =(aOpensslCnf - 0x9EF888); \"openssl.cnf\"           ; +0x7c, 0x9ef874\nMOV             R0, R4                                                 ; +0x80, 0x9ef878\nMOV             R2, R5                                                 ; +0x84, 0x9ef87c\nADD             R1, PC, R1; \"openssl.cnf\"                              ; +0x88, 0x9ef880\nBL              OPENSSL_strlcat                                        ; +0x8c, 0x9ef884\nMOV             R0, R4                                                 ; +0x90, 0x9ef888\nPOP             {R3-R5,PC}                                             ; +0x94, 0x9ef88c", "xrefs": ["CONF_modules_load_file @ 0x9ef950", "<???> @ 0x79e5c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}