{"type": "func", "start": 14767696, "end": 14767816, "name": "BN_CTX_new", "pseudocode": "// \n// BN_CTX_new from 0xe15650 to 0xe156c8 (120 bytes)\n// \n// 69 xrefs:\n// > sub_D877EC @ 0xd87820\n// > sub_D87990 @ 0xd879a8\n// > sub_D88A48 @ 0xd88b74\n// > sub_D89E18 @ 0xd89ea8\n// > sub_D8A128 @ 0xd8a1ac\n// > sub_D8A57C @ 0xd8a754\n// > EC_GROUP_new_by_curve_name @ 0xd8f114\n// > ec_key_simple_generate_key @ 0xd8fe44\n// > ec_key_simple_check_key @ 0xd9009c\n// > EC_KEY_set_public_key_affine_coordinates @ 0xd90424\n// > EC_GROUP_cmp @ 0xd92480\n// > ec_precompute_mont_data @ 0xd926e0\n// > ec_wNAF_mul @ 0xd92dc0\n// > ec_wNAF_precompute_mult @ 0xd93af4\n// > ecdh_simple_compute_key @ 0xd94230\n// > ossl_ecdsa_sign_setup @ 0xd947a8\n// > ossl_ecdsa_sign_sig @ 0xd94b58\n// > ossl_ecdsa_verify_sig @ 0xd954c0\n// > ECPKParameters_print @ 0xd95c78\n// > ec_GFp_mont_group_set_curve @ 0xd964c4\n// > sub_D96D88 @ 0xd97c9c\n// > sub_D98060 @ 0xd984f8\n// > ec_GFp_simple_set_compressed_coordinates @ 0xd987cc\n// > ec_GFp_simple_point2oct @ 0xd98c14\n// > ec_GFp_simple_oct2point @ 0xd98fb4\n// > ec_GFp_simple_group_get_curve @ 0xd9933c\n// > ec_GFp_simple_get_Jprojective_coordinates_GFp @ 0xd9944c\n// > ec_GFp_simple_group_check_discriminant @ 0xd995fc\n// > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0xd99864\n// > ec_GFp_simple_point_get_affine_coordinates @ 0xd99ae4\n// > ec_GFp_simple_dbl @ 0xd99f80\n// > ec_GFp_simple_group_set_curve @ 0xd9a234\n// > ec_GFp_simple_cmp @ 0xd9a510\n// > ec_GFp_simple_add @ 0xd9a7ec\n// > ec_GFp_simple_is_on_curve @ 0xd9ac80\n// > ec_GFp_simple_make_affine @ 0xd9aee4\n// > ec_GFp_simple_points_make_affine @ 0xd9b048\n// > RSA_setup_blinding @ 0xdd3b20\n// > sub_DD47A4 @ 0xdd4810\n// > sub_DD4B3C @ 0xdd4ba8\n// > sub_DD4EB0 @ 0xdd4ee8\n// > sub_DD535C @ 0xdd5394\n// > SRP_Calc_server_key @ 0xdde5a8\n// > SRP_Calc_B @ 0xdde6b8\n// > SRP_Calc_A @ 0xdde9d8\n// > SRP_Calc_client_key @ 0xddea8c\n// > SRP_Verify_B_mod_N @ 0xddec38\n// > SRP_create_verifier_BN @ 0xde0070\n// > BN_CTX_secure_new @ 0xe156d0\n// > DH_check @ 0xe29778\n// > DH_check_pub_key @ 0xe29a08\n// > dsa_builtin_paramgen @ 0xe2a5d0\n// > dsa_builtin_paramgen2 @ 0xe2b060\n// > dsa_builtin_paramgen2 @ 0xe2b34c\n// > ec_GF2m_simple_set_compressed_coordinates @ 0xe32740\n// > ec_GF2m_simple_point2oct @ 0xe32b30\n// > ec_GF2m_simple_oct2point @ 0xe32f20\n// > ec_GF2m_simple_group_check_discriminant @ 0xe33450\n// > ec_GF2m_simple_cmp @ 0xe339fc\n// > ec_GF2m_simple_make_affine @ 0xe33b18\n// > ec_GF2m_simple_is_on_curve @ 0xe33c7c\n// > ec_GF2m_simple_add @ 0xe34044\n// > RSA_generate_key_ex @ 0xe6a9e0\n// > BN_is_prime_fasttest_ex @ 0xe770b4\n// > BN_generate_prime_ex @ 0xe776e0\n// > DH_generate_parameters_ex @ 0xe7c528\n// > DSA_generate_key @ 0xe7cadc\n// > ec_GF2m_simple_mul @ 0xe7d6c8\n// > <???> @ 0x4a970\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_QWORD *BN_CTX_new()\n{\n  _QWORD *v0; // x0\n  _QWORD *v1; // x19\n\n  v0 = CRYPTO_zalloc(&dword_40, (__int64)\"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    *((_DWORD *)v0 + 7) = 0;\n    *((_DWORD *)v0 + 6) = 0;\n    v0[4] = 0;\n    *((_DWORD *)v0 + 11) = 0;\n    *((_DWORD *)v0 + 10) = 0;\n  }\n  else\n  {\n    ERR_put_error(3, 106, 65, (__int64)\"crypto/bn/bn_ctx.c\", 139);\n  }\n  return v1;\n}", "assembly": "; \n; BN_CTX_new from 0xe15650 to 0xe156c8 (120 bytes)\n; \n; 69 xrefs:\n; > sub_D877EC @ 0xd87820\n; > sub_D87990 @ 0xd879a8\n; > sub_D88A48 @ 0xd88b74\n; > sub_D89E18 @ 0xd89ea8\n; > sub_D8A128 @ 0xd8a1ac\n; > sub_D8A57C @ 0xd8a754\n; > EC_GROUP_new_by_curve_name @ 0xd8f114\n; > ec_key_simple_generate_key @ 0xd8fe44\n; > ec_key_simple_check_key @ 0xd9009c\n; > EC_KEY_set_public_key_affine_coordinates @ 0xd90424\n; > EC_GROUP_cmp @ 0xd92480\n; > ec_precompute_mont_data @ 0xd926e0\n; > ec_wNAF_mul @ 0xd92dc0\n; > ec_wNAF_precompute_mult @ 0xd93af4\n; > ecdh_simple_compute_key @ 0xd94230\n; > ossl_ecdsa_sign_setup @ 0xd947a8\n; > ossl_ecdsa_sign_sig @ 0xd94b58\n; > ossl_ecdsa_verify_sig @ 0xd954c0\n; > ECPKParameters_print @ 0xd95c78\n; > ec_GFp_mont_group_set_curve @ 0xd964c4\n; > sub_D96D88 @ 0xd97c9c\n; > sub_D98060 @ 0xd984f8\n; > ec_GFp_simple_set_compressed_coordinates @ 0xd987cc\n; > ec_GFp_simple_point2oct @ 0xd98c14\n; > ec_GFp_simple_oct2point @ 0xd98fb4\n; > ec_GFp_simple_group_get_curve @ 0xd9933c\n; > ec_GFp_simple_get_Jprojective_coordinates_GFp @ 0xd9944c\n; > ec_GFp_simple_group_check_discriminant @ 0xd995fc\n; > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0xd99864\n; > ec_GFp_simple_point_get_affine_coordinates @ 0xd99ae4\n; > ec_GFp_simple_dbl @ 0xd99f80\n; > ec_GFp_simple_group_set_curve @ 0xd9a234\n; > ec_GFp_simple_cmp @ 0xd9a510\n; > ec_GFp_simple_add @ 0xd9a7ec\n; > ec_GFp_simple_is_on_curve @ 0xd9ac80\n; > ec_GFp_simple_make_affine @ 0xd9aee4\n; > ec_GFp_simple_points_make_affine @ 0xd9b048\n; > RSA_setup_blinding @ 0xdd3b20\n; > sub_DD47A4 @ 0xdd4810\n; > sub_DD4B3C @ 0xdd4ba8\n; > sub_DD4EB0 @ 0xdd4ee8\n; > sub_DD535C @ 0xdd5394\n; > SRP_Calc_server_key @ 0xdde5a8\n; > SRP_Calc_B @ 0xdde6b8\n; > SRP_Calc_A @ 0xdde9d8\n; > SRP_Calc_client_key @ 0xddea8c\n; > SRP_Verify_B_mod_N @ 0xddec38\n; > SRP_create_verifier_BN @ 0xde0070\n; > BN_CTX_secure_new @ 0xe156d0\n; > DH_check @ 0xe29778\n; > DH_check_pub_key @ 0xe29a08\n; > dsa_builtin_paramgen @ 0xe2a5d0\n; > dsa_builtin_paramgen2 @ 0xe2b060\n; > dsa_builtin_paramgen2 @ 0xe2b34c\n; > ec_GF2m_simple_set_compressed_coordinates @ 0xe32740\n; > ec_GF2m_simple_point2oct @ 0xe32b30\n; > ec_GF2m_simple_oct2point @ 0xe32f20\n; > ec_GF2m_simple_group_check_discriminant @ 0xe33450\n; > ec_GF2m_simple_cmp @ 0xe339fc\n; > ec_GF2m_simple_make_affine @ 0xe33b18\n; > ec_GF2m_simple_is_on_curve @ 0xe33c7c\n; > ec_GF2m_simple_add @ 0xe34044\n; > RSA_generate_key_ex @ 0xe6a9e0\n; > BN_is_prime_fasttest_ex @ 0xe770b4\n; > BN_generate_prime_ex @ 0xe776e0\n; > DH_generate_parameters_ex @ 0xe7c528\n; > DSA_generate_key @ 0xe7cadc\n; > ec_GF2m_simple_mul @ 0xe7d6c8\n; > <???> @ 0x4a970\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,#-0x20+var_s0]!                          ; +0x0, 0xe15650\nMOV             X0, #0x40 ; '@'                                        ; +0x4, 0xe15654\nMOV             W2, #0x8A                                              ; +0x8, 0xe15658\nMOV             X29, SP                                                ; +0xc, 0xe1565c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x10, 0xe15660\nADRL            X20, aCryptoBnBnCtxC; \"crypto/bn/bn_ctx.c\"             ; +0x14, 0xe15664\nMOV             X1, X20                                                ; +0x1c, 0xe1566c\nBL              CRYPTO_zalloc                                          ; +0x20, 0xe15670\nMOV             X19, X0                                                ; +0x24, 0xe15674\nCBZ             X0, loc_E156AC                                         ; +0x28, 0xe15678\nSTR             XZR, [X0,#0x10]                                        ; +0x2c, 0xe1567c\nSTR             XZR, [X0,#8]                                           ; +0x30, 0xe15680\nSTR             XZR, [X0]                                              ; +0x34, 0xe15684\nSTR             WZR, [X0,#0x1C]                                        ; +0x38, 0xe15688\nSTR             WZR, [X0,#0x18]                                        ; +0x3c, 0xe1568c\nSTR             XZR, [X0,#0x20]                                        ; +0x40, 0xe15690\nSTR             WZR, [X0,#0x2C]                                        ; +0x44, 0xe15694\nSTR             WZR, [X0,#0x28]                                        ; +0x48, 0xe15698\nMOV             X0, X19                                                ; +0x4c, 0xe1569c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x50, 0xe156a0\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x54, 0xe156a4\nRET                                                                    ; +0x58, 0xe156a8\nMOV             W0, #3                                                 ; +0x5c, 0xe156ac\nMOV             W1, #0x6A ; 'j'                                        ; +0x60, 0xe156b0\nMOV             W2, #0x41 ; 'A'                                        ; +0x64, 0xe156b4\nMOV             X3, X20                                                ; +0x68, 0xe156b8\nMOV             W4, #0x8B                                              ; +0x6c, 0xe156bc\nBL              ERR_put_error                                          ; +0x70, 0xe156c0\nB               loc_E1569C                                             ; +0x74, 0xe156c4", "xrefs": ["sub_D877EC @ 0xd87820", "sub_D87990 @ 0xd879a8", "sub_D88A48 @ 0xd88b74", "sub_D89E18 @ 0xd89ea8", "sub_D8A128 @ 0xd8a1ac", "sub_D8A57C @ 0xd8a754", "EC_GROUP_new_by_curve_name @ 0xd8f114", "ec_key_simple_generate_key @ 0xd8fe44", "ec_key_simple_check_key @ 0xd9009c", "EC_KEY_set_public_key_affine_coordinates @ 0xd90424", "EC_GROUP_cmp @ 0xd92480", "ec_precompute_mont_data @ 0xd926e0", "ec_wNAF_mul @ 0xd92dc0", "ec_wNAF_precompute_mult @ 0xd93af4", "ecdh_simple_compute_key @ 0xd94230", "ossl_ecdsa_sign_setup @ 0xd947a8", "ossl_ecdsa_sign_sig @ 0xd94b58", "ossl_ecdsa_verify_sig @ 0xd954c0", "ECPKParameters_print @ 0xd95c78", "ec_GFp_mont_group_set_curve @ 0xd964c4", "sub_D96D88 @ 0xd97c9c", "sub_D98060 @ 0xd984f8", "ec_GFp_simple_set_compressed_coordinates @ 0xd987cc", "ec_GFp_simple_point2oct @ 0xd98c14", "ec_GFp_simple_oct2point @ 0xd98fb4", "ec_GFp_simple_group_get_curve @ 0xd9933c", "ec_GFp_simple_get_Jprojective_coordinates_GFp @ 0xd9944c", "ec_GFp_simple_group_check_discriminant @ 0xd995fc", "ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0xd99864", "ec_GFp_simple_point_get_affine_coordinates @ 0xd99ae4", "ec_GFp_simple_dbl @ 0xd99f80", "ec_GFp_simple_group_set_curve @ 0xd9a234", "ec_GFp_simple_cmp @ 0xd9a510", "ec_GFp_simple_add @ 0xd9a7ec", "ec_GFp_simple_is_on_curve @ 0xd9ac80", "ec_GFp_simple_make_affine @ 0xd9aee4", "ec_GFp_simple_points_make_affine @ 0xd9b048", "RSA_setup_blinding @ 0xdd3b20", "sub_DD47A4 @ 0xdd4810", "sub_DD4B3C @ 0xdd4ba8", "sub_DD4EB0 @ 0xdd4ee8", "sub_DD535C @ 0xdd5394", "SRP_Calc_server_key @ 0xdde5a8", "SRP_Calc_B @ 0xdde6b8", "SRP_Calc_A @ 0xdde9d8", "SRP_Calc_client_key @ 0xddea8c", "SRP_Verify_B_mod_N @ 0xddec38", "SRP_create_verifier_BN @ 0xde0070", "BN_CTX_secure_new @ 0xe156d0", "DH_check @ 0xe29778", "DH_check_pub_key @ 0xe29a08", "dsa_builtin_paramgen @ 0xe2a5d0", "dsa_builtin_paramgen2 @ 0xe2b060", "dsa_builtin_paramgen2 @ 0xe2b34c", "ec_GF2m_simple_set_compressed_coordinates @ 0xe32740", "ec_GF2m_simple_point2oct @ 0xe32b30", "ec_GF2m_simple_oct2point @ 0xe32f20", "ec_GF2m_simple_group_check_discriminant @ 0xe33450", "ec_GF2m_simple_cmp @ 0xe339fc", "ec_GF2m_simple_make_affine @ 0xe33b18", "ec_GF2m_simple_is_on_curve @ 0xe33c7c", "ec_GF2m_simple_add @ 0xe34044", "RSA_generate_key_ex @ 0xe6a9e0", "BN_is_prime_fasttest_ex @ 0xe770b4", "BN_generate_prime_ex @ 0xe776e0", "DH_generate_parameters_ex @ 0xe7c528", "DSA_generate_key @ 0xe7cadc", "ec_GF2m_simple_mul @ 0xe7d6c8", "<???> @ 0x4a970"], "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"}