{"type": "func", "start": 8830740, "end": 8830860, "name": "BN_CTX_new", "pseudocode": "// \n// BN_CTX_new from 0x86bf14 to 0x86bf8c (120 bytes)\n// \n// 69 xrefs:\n// > sub_7E0018 @ 0x7e0040\n// > sub_7E01E0 @ 0x7e01ec\n// > sub_7E11C4 @ 0x7e12f0\n// > sub_7E255C @ 0x7e25dc\n// > sub_7E28B8 @ 0x7e2948\n// > sub_7E2D78 @ 0x7e2f5c\n// > EC_GROUP_new_by_curve_name @ 0x7e7fdc\n// > ec_key_simple_generate_key @ 0x7e8e48\n// > ec_key_simple_check_key @ 0x7e90b8\n// > EC_KEY_set_public_key_affine_coordinates @ 0x7e94b8\n// > EC_GROUP_cmp @ 0x7eb678\n// > ec_precompute_mont_data @ 0x7eb8e8\n// > ec_wNAF_mul @ 0x7ec2e0\n// > ec_wNAF_precompute_mult @ 0x7ecebc\n// > ecdh_simple_compute_key @ 0x7ed640\n// > ossl_ecdsa_sign_setup @ 0x7edbd8\n// > ossl_ecdsa_sign_sig @ 0x7ee010\n// > ossl_ecdsa_verify_sig @ 0x7eead0\n// > ECPKParameters_print @ 0x7ef370\n// > ec_GFp_mont_group_set_curve @ 0x7efc5c\n// > sub_7F0594 @ 0x7f16d8\n// > sub_7F1BA0 @ 0x7f1f2c\n// > ec_GFp_simple_set_compressed_coordinates @ 0x7f246c\n// > ec_GFp_simple_point2oct @ 0x7f28ac\n// > ec_GFp_simple_oct2point @ 0x7f2c48\n// > ec_GFp_simple_group_get_curve @ 0x7f2fc0\n// > ec_GFp_simple_get_Jprojective_coordinates_GFp @ 0x7f312c\n// > ec_GFp_simple_group_check_discriminant @ 0x7f3284\n// > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0x7f3538\n// > ec_GFp_simple_point_get_affine_coordinates @ 0x7f37e0\n// > ec_GFp_simple_dbl @ 0x7f3ce8\n// > ec_GFp_simple_group_set_curve @ 0x7f3f88\n// > ec_GFp_simple_cmp @ 0x7f4260\n// > ec_GFp_simple_add @ 0x7f453c\n// > ec_GFp_simple_is_on_curve @ 0x7f4a40\n// > ec_GFp_simple_make_affine @ 0x7f4cd8\n// > ec_GFp_simple_points_make_affine @ 0x7f4e24\n// > RSA_setup_blinding @ 0x82d590\n// > sub_82E210 @ 0x82e25c\n// > sub_82E5F4 @ 0x82e640\n// > sub_82E968 @ 0x82e980\n// > sub_82EE80 @ 0x82ee98\n// > SRP_Calc_server_key @ 0x836998\n// > SRP_Calc_B @ 0x836a94\n// > SRP_Calc_A @ 0x836db0\n// > SRP_Calc_client_key @ 0x836e5c\n// > SRP_Verify_B_mod_N @ 0x837004\n// > SRP_create_verifier_BN @ 0x838194\n// > BN_CTX_secure_new @ 0x86bf94\n// > DH_check @ 0x87f500\n// > DH_check_pub_key @ 0x87f788\n// > dsa_builtin_paramgen @ 0x8802f8\n// > dsa_builtin_paramgen2 @ 0x880c90\n// > dsa_builtin_paramgen2 @ 0x880e18\n// > ec_GF2m_simple_set_compressed_coordinates @ 0x888f1c\n// > ec_GF2m_simple_point2oct @ 0x8892f8\n// > ec_GF2m_simple_oct2point @ 0x8896c8\n// > ec_GF2m_simple_group_check_discriminant @ 0x889bb0\n// > ec_GF2m_simple_cmp @ 0x88a0f0\n// > ec_GF2m_simple_make_affine @ 0x88a1fc\n// > ec_GF2m_simple_is_on_curve @ 0x88a364\n// > ec_GF2m_simple_add @ 0x88a748\n// > RSA_generate_key_ex @ 0x8bf978\n// > BN_is_prime_fasttest_ex @ 0x8cab80\n// > BN_generate_prime_ex @ 0x8cb1e4\n// > DH_generate_parameters_ex @ 0x8d08d4\n// > DSA_generate_key @ 0x8d0eb4\n// > ec_GF2m_simple_mul @ 0x8d1b78\n// > <???> @ 0x60a5c\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_DWORD *BN_CTX_new()\n{\n  _DWORD *v0; // r0\n  _DWORD *v1; // r4\n\n  v0 = CRYPTO_zalloc(&word_30, (int)\"crypto/bn/bn_ctx.c\", 138);\n  v1 = v0;\n  if ( v0 )\n  {\n    v0[2] = 0;\n    v0[1] = 0;\n    *v0 = 0;\n    v0[4] = 0;\n    v0[3] = 0;\n    v0[5] = 0;\n    v0[7] = 0;\n    v0[6] = 0;\n  }\n  else\n  {\n    ERR_put_error(3, 106, 65, (int)\"crypto/bn/bn_ctx.c\", 139);\n  }\n  return v1;\n}", "assembly": "; \n; BN_CTX_new from 0x86bf14 to 0x86bf8c (120 bytes)\n; \n; 69 xrefs:\n; > sub_7E0018 @ 0x7e0040\n; > sub_7E01E0 @ 0x7e01ec\n; > sub_7E11C4 @ 0x7e12f0\n; > sub_7E255C @ 0x7e25dc\n; > sub_7E28B8 @ 0x7e2948\n; > sub_7E2D78 @ 0x7e2f5c\n; > EC_GROUP_new_by_curve_name @ 0x7e7fdc\n; > ec_key_simple_generate_key @ 0x7e8e48\n; > ec_key_simple_check_key @ 0x7e90b8\n; > EC_KEY_set_public_key_affine_coordinates @ 0x7e94b8\n; > EC_GROUP_cmp @ 0x7eb678\n; > ec_precompute_mont_data @ 0x7eb8e8\n; > ec_wNAF_mul @ 0x7ec2e0\n; > ec_wNAF_precompute_mult @ 0x7ecebc\n; > ecdh_simple_compute_key @ 0x7ed640\n; > ossl_ecdsa_sign_setup @ 0x7edbd8\n; > ossl_ecdsa_sign_sig @ 0x7ee010\n; > ossl_ecdsa_verify_sig @ 0x7eead0\n; > ECPKParameters_print @ 0x7ef370\n; > ec_GFp_mont_group_set_curve @ 0x7efc5c\n; > sub_7F0594 @ 0x7f16d8\n; > sub_7F1BA0 @ 0x7f1f2c\n; > ec_GFp_simple_set_compressed_coordinates @ 0x7f246c\n; > ec_GFp_simple_point2oct @ 0x7f28ac\n; > ec_GFp_simple_oct2point @ 0x7f2c48\n; > ec_GFp_simple_group_get_curve @ 0x7f2fc0\n; > ec_GFp_simple_get_Jprojective_coordinates_GFp @ 0x7f312c\n; > ec_GFp_simple_group_check_discriminant @ 0x7f3284\n; > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0x7f3538\n; > ec_GFp_simple_point_get_affine_coordinates @ 0x7f37e0\n; > ec_GFp_simple_dbl @ 0x7f3ce8\n; > ec_GFp_simple_group_set_curve @ 0x7f3f88\n; > ec_GFp_simple_cmp @ 0x7f4260\n; > ec_GFp_simple_add @ 0x7f453c\n; > ec_GFp_simple_is_on_curve @ 0x7f4a40\n; > ec_GFp_simple_make_affine @ 0x7f4cd8\n; > ec_GFp_simple_points_make_affine @ 0x7f4e24\n; > RSA_setup_blinding @ 0x82d590\n; > sub_82E210 @ 0x82e25c\n; > sub_82E5F4 @ 0x82e640\n; > sub_82E968 @ 0x82e980\n; > sub_82EE80 @ 0x82ee98\n; > SRP_Calc_server_key @ 0x836998\n; > SRP_Calc_B @ 0x836a94\n; > SRP_Calc_A @ 0x836db0\n; > SRP_Calc_client_key @ 0x836e5c\n; > SRP_Verify_B_mod_N @ 0x837004\n; > SRP_create_verifier_BN @ 0x838194\n; > BN_CTX_secure_new @ 0x86bf94\n; > DH_check @ 0x87f500\n; > DH_check_pub_key @ 0x87f788\n; > dsa_builtin_paramgen @ 0x8802f8\n; > dsa_builtin_paramgen2 @ 0x880c90\n; > dsa_builtin_paramgen2 @ 0x880e18\n; > ec_GF2m_simple_set_compressed_coordinates @ 0x888f1c\n; > ec_GF2m_simple_point2oct @ 0x8892f8\n; > ec_GF2m_simple_oct2point @ 0x8896c8\n; > ec_GF2m_simple_group_check_discriminant @ 0x889bb0\n; > ec_GF2m_simple_cmp @ 0x88a0f0\n; > ec_GF2m_simple_make_affine @ 0x88a1fc\n; > ec_GF2m_simple_is_on_curve @ 0x88a364\n; > ec_GF2m_simple_add @ 0x88a748\n; > RSA_generate_key_ex @ 0x8bf978\n; > BN_is_prime_fasttest_ex @ 0x8cab80\n; > BN_generate_prime_ex @ 0x8cb1e4\n; > DH_generate_parameters_ex @ 0x8d08d4\n; > DSA_generate_key @ 0x8d0eb4\n; > ec_GF2m_simple_mul @ 0x8d1b78\n; > <???> @ 0x60a5c\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\nPUSH            {R4,R5,LR}                                             ; +0x0, 0x86bf14\nLDR             R5, =(aCryptoBnBnCtxC - 0x86BF28); \"crypto/bn/bn_ctx.c\" ; +0x4, 0x86bf18\nSUB             SP, SP, #0xC                                           ; +0x8, 0x86bf1c\nADD             R5, PC, R5; \"crypto/bn/bn_ctx.c\"                       ; +0xc, 0x86bf20\nMOV             R0, #0x30 ; '0'                                        ; +0x10, 0x86bf24\nMOV             R1, R5                                                 ; +0x14, 0x86bf28\nMOV             R2, #0x8A                                              ; +0x18, 0x86bf2c\nBL              CRYPTO_zalloc                                          ; +0x1c, 0x86bf30\nSUBS            R4, R0, #0                                             ; +0x20, 0x86bf34\nBEQ             loc_86BF6C                                             ; +0x24, 0x86bf38\nMOV             R3, #0                                                 ; +0x28, 0x86bf3c\nSTR             R3, [R4,#8]                                            ; +0x2c, 0x86bf40\nSTR             R3, [R4,#4]                                            ; +0x30, 0x86bf44\nSTR             R3, [R4]                                               ; +0x34, 0x86bf48\nSTR             R3, [R4,#0x10]                                         ; +0x38, 0x86bf4c\nSTR             R3, [R4,#0xC]                                          ; +0x3c, 0x86bf50\nSTR             R3, [R4,#0x14]                                         ; +0x40, 0x86bf54\nSTR             R3, [R4,#0x1C]                                         ; +0x44, 0x86bf58\nSTR             R3, [R4,#0x18]                                         ; +0x48, 0x86bf5c\nMOV             R0, R4                                                 ; +0x4c, 0x86bf60\nADD             SP, SP, #0xC                                           ; +0x50, 0x86bf64\nPOP             {R4,R5,PC}                                             ; +0x54, 0x86bf68\nMOV             R2, #0x8B                                              ; +0x58, 0x86bf6c\nSTR             R2, [SP,#0xC+var_C]                                    ; +0x5c, 0x86bf70\nMOV             R3, R5                                                 ; +0x60, 0x86bf74\nMOV             R0, #3                                                 ; +0x64, 0x86bf78\nMOV             R1, #0x6A ; 'j'                                        ; +0x68, 0x86bf7c\nMOV             R2, #0x41 ; 'A'                                        ; +0x6c, 0x86bf80\nBL              ERR_put_error                                          ; +0x70, 0x86bf84\nB               loc_86BF60                                             ; +0x74, 0x86bf88", "xrefs": ["sub_7E0018 @ 0x7e0040", "sub_7E01E0 @ 0x7e01ec", "sub_7E11C4 @ 0x7e12f0", "sub_7E255C @ 0x7e25dc", "sub_7E28B8 @ 0x7e2948", "sub_7E2D78 @ 0x7e2f5c", "EC_GROUP_new_by_curve_name @ 0x7e7fdc", "ec_key_simple_generate_key @ 0x7e8e48", "ec_key_simple_check_key @ 0x7e90b8", "EC_KEY_set_public_key_affine_coordinates @ 0x7e94b8", "EC_GROUP_cmp @ 0x7eb678", "ec_precompute_mont_data @ 0x7eb8e8", "ec_wNAF_mul @ 0x7ec2e0", "ec_wNAF_precompute_mult @ 0x7ecebc", "ecdh_simple_compute_key @ 0x7ed640", "ossl_ecdsa_sign_setup @ 0x7edbd8", "ossl_ecdsa_sign_sig @ 0x7ee010", "ossl_ecdsa_verify_sig @ 0x7eead0", "ECPKParameters_print @ 0x7ef370", "ec_GFp_mont_group_set_curve @ 0x7efc5c", "sub_7F0594 @ 0x7f16d8", "sub_7F1BA0 @ 0x7f1f2c", "ec_GFp_simple_set_compressed_coordinates @ 0x7f246c", "ec_GFp_simple_point2oct @ 0x7f28ac", "ec_GFp_simple_oct2point @ 0x7f2c48", "ec_GFp_simple_group_get_curve @ 0x7f2fc0", "ec_GFp_simple_get_Jprojective_coordinates_GFp @ 0x7f312c", "ec_GFp_simple_group_check_discriminant @ 0x7f3284", "ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0x7f3538", "ec_GFp_simple_point_get_affine_coordinates @ 0x7f37e0", "ec_GFp_simple_dbl @ 0x7f3ce8", "ec_GFp_simple_group_set_curve @ 0x7f3f88", "ec_GFp_simple_cmp @ 0x7f4260", "ec_GFp_simple_add @ 0x7f453c", "ec_GFp_simple_is_on_curve @ 0x7f4a40", "ec_GFp_simple_make_affine @ 0x7f4cd8", "ec_GFp_simple_points_make_affine @ 0x7f4e24", "RSA_setup_blinding @ 0x82d590", "sub_82E210 @ 0x82e25c", "sub_82E5F4 @ 0x82e640", "sub_82E968 @ 0x82e980", "sub_82EE80 @ 0x82ee98", "SRP_Calc_server_key @ 0x836998", "SRP_Calc_B @ 0x836a94", "SRP_Calc_A @ 0x836db0", "SRP_Calc_client_key @ 0x836e5c", "SRP_Verify_B_mod_N @ 0x837004", "SRP_create_verifier_BN @ 0x838194", "BN_CTX_secure_new @ 0x86bf94", "DH_check @ 0x87f500", "DH_check_pub_key @ 0x87f788", "dsa_builtin_paramgen @ 0x8802f8", "dsa_builtin_paramgen2 @ 0x880c90", "dsa_builtin_paramgen2 @ 0x880e18", "ec_GF2m_simple_set_compressed_coordinates @ 0x888f1c", "ec_GF2m_simple_point2oct @ 0x8892f8", "ec_GF2m_simple_oct2point @ 0x8896c8", "ec_GF2m_simple_group_check_discriminant @ 0x889bb0", "ec_GF2m_simple_cmp @ 0x88a0f0", "ec_GF2m_simple_make_affine @ 0x88a1fc", "ec_GF2m_simple_is_on_curve @ 0x88a364", "ec_GF2m_simple_add @ 0x88a748", "RSA_generate_key_ex @ 0x8bf978", "BN_is_prime_fasttest_ex @ 0x8cab80", "BN_generate_prime_ex @ 0x8cb1e4", "DH_generate_parameters_ex @ 0x8d08d4", "DSA_generate_key @ 0x8d0eb4", "ec_GF2m_simple_mul @ 0x8d1b78", "<???> @ 0x60a5c"], "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"}