{"type": "func", "start": 17381712, "end": 17381832, "name": "BN_CTX_new", "pseudocode": "// \n// BN_CTX_new from 0x1093950 to 0x10939c8 (120 bytes)\n// \n// 69 xrefs:\n// > sub_1005B4C @ 0x1005b80\n// > sub_1005CF0 @ 0x1005d08\n// > sub_1006DA8 @ 0x1006ed4\n// > sub_1008178 @ 0x1008208\n// > sub_1008488 @ 0x100850c\n// > sub_10088DC @ 0x1008ab4\n// > EC_GROUP_new_by_curve_name @ 0x100d474\n// > ec_key_simple_generate_key @ 0x100e1a4\n// > ec_key_simple_check_key @ 0x100e3fc\n// > EC_KEY_set_public_key_affine_coordinates @ 0x100e784\n// > EC_GROUP_cmp @ 0x10107e0\n// > ec_precompute_mont_data @ 0x1010a40\n// > ec_wNAF_mul @ 0x1011120\n// > ec_wNAF_precompute_mult @ 0x1011e54\n// > ecdh_simple_compute_key @ 0x1012590\n// > ossl_ecdsa_sign_setup @ 0x1012b08\n// > ossl_ecdsa_sign_sig @ 0x1012eb8\n// > ossl_ecdsa_verify_sig @ 0x1013820\n// > ECPKParameters_print @ 0x1013fd8\n// > ec_GFp_mont_group_set_curve @ 0x1014824\n// > sub_10150E8 @ 0x1015ffc\n// > sub_10163C0 @ 0x1016858\n// > ec_GFp_simple_set_compressed_coordinates @ 0x1016b2c\n// > ec_GFp_simple_point2oct @ 0x1016f74\n// > ec_GFp_simple_oct2point @ 0x1017314\n// > ec_GFp_simple_group_get_curve @ 0x101769c\n// > ec_GFp_simple_get_Jprojective_coordinates_GFp @ 0x10177ac\n// > ec_GFp_simple_group_check_discriminant @ 0x101795c\n// > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0x1017bc4\n// > ec_GFp_simple_point_get_affine_coordinates @ 0x1017e44\n// > ec_GFp_simple_dbl @ 0x10182e0\n// > ec_GFp_simple_group_set_curve @ 0x1018594\n// > ec_GFp_simple_cmp @ 0x1018870\n// > ec_GFp_simple_add @ 0x1018b4c\n// > ec_GFp_simple_is_on_curve @ 0x1018fe0\n// > ec_GFp_simple_make_affine @ 0x1019244\n// > ec_GFp_simple_points_make_affine @ 0x10193a8\n// > RSA_setup_blinding @ 0x1051e80\n// > sub_1052B04 @ 0x1052b70\n// > sub_1052E9C @ 0x1052f08\n// > sub_1053210 @ 0x1053248\n// > sub_10536BC @ 0x10536f4\n// > SRP_Calc_server_key @ 0x105c8e8\n// > SRP_Calc_B @ 0x105c9f8\n// > SRP_Calc_A @ 0x105cd18\n// > SRP_Calc_client_key @ 0x105cdcc\n// > SRP_Verify_B_mod_N @ 0x105cf78\n// > SRP_create_verifier_BN @ 0x105e3b0\n// > BN_CTX_secure_new @ 0x10939d0\n// > DH_check @ 0x10a7a78\n// > DH_check_pub_key @ 0x10a7d08\n// > dsa_builtin_paramgen @ 0x10a88d0\n// > dsa_builtin_paramgen2 @ 0x10a9360\n// > dsa_builtin_paramgen2 @ 0x10a964c\n// > ec_GF2m_simple_set_compressed_coordinates @ 0x10b0a40\n// > ec_GF2m_simple_point2oct @ 0x10b0e30\n// > ec_GF2m_simple_oct2point @ 0x10b1220\n// > ec_GF2m_simple_group_check_discriminant @ 0x10b1750\n// > ec_GF2m_simple_cmp @ 0x10b1cfc\n// > ec_GF2m_simple_make_affine @ 0x10b1e18\n// > ec_GF2m_simple_is_on_curve @ 0x10b1f7c\n// > ec_GF2m_simple_add @ 0x10b2344\n// > RSA_generate_key_ex @ 0x10e89e0\n// > BN_is_prime_fasttest_ex @ 0x10f50b4\n// > BN_generate_prime_ex @ 0x10f56e0\n// > DH_generate_parameters_ex @ 0x10fa528\n// > DSA_generate_key @ 0x10faadc\n// > ec_GF2m_simple_mul @ 0x10fb6c8\n// > <???> @ 0x69100\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:17:22 +0000\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 0x1093950 to 0x10939c8 (120 bytes)\n; \n; 69 xrefs:\n; > sub_1005B4C @ 0x1005b80\n; > sub_1005CF0 @ 0x1005d08\n; > sub_1006DA8 @ 0x1006ed4\n; > sub_1008178 @ 0x1008208\n; > sub_1008488 @ 0x100850c\n; > sub_10088DC @ 0x1008ab4\n; > EC_GROUP_new_by_curve_name @ 0x100d474\n; > ec_key_simple_generate_key @ 0x100e1a4\n; > ec_key_simple_check_key @ 0x100e3fc\n; > EC_KEY_set_public_key_affine_coordinates @ 0x100e784\n; > EC_GROUP_cmp @ 0x10107e0\n; > ec_precompute_mont_data @ 0x1010a40\n; > ec_wNAF_mul @ 0x1011120\n; > ec_wNAF_precompute_mult @ 0x1011e54\n; > ecdh_simple_compute_key @ 0x1012590\n; > ossl_ecdsa_sign_setup @ 0x1012b08\n; > ossl_ecdsa_sign_sig @ 0x1012eb8\n; > ossl_ecdsa_verify_sig @ 0x1013820\n; > ECPKParameters_print @ 0x1013fd8\n; > ec_GFp_mont_group_set_curve @ 0x1014824\n; > sub_10150E8 @ 0x1015ffc\n; > sub_10163C0 @ 0x1016858\n; > ec_GFp_simple_set_compressed_coordinates @ 0x1016b2c\n; > ec_GFp_simple_point2oct @ 0x1016f74\n; > ec_GFp_simple_oct2point @ 0x1017314\n; > ec_GFp_simple_group_get_curve @ 0x101769c\n; > ec_GFp_simple_get_Jprojective_coordinates_GFp @ 0x10177ac\n; > ec_GFp_simple_group_check_discriminant @ 0x101795c\n; > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0x1017bc4\n; > ec_GFp_simple_point_get_affine_coordinates @ 0x1017e44\n; > ec_GFp_simple_dbl @ 0x10182e0\n; > ec_GFp_simple_group_set_curve @ 0x1018594\n; > ec_GFp_simple_cmp @ 0x1018870\n; > ec_GFp_simple_add @ 0x1018b4c\n; > ec_GFp_simple_is_on_curve @ 0x1018fe0\n; > ec_GFp_simple_make_affine @ 0x1019244\n; > ec_GFp_simple_points_make_affine @ 0x10193a8\n; > RSA_setup_blinding @ 0x1051e80\n; > sub_1052B04 @ 0x1052b70\n; > sub_1052E9C @ 0x1052f08\n; > sub_1053210 @ 0x1053248\n; > sub_10536BC @ 0x10536f4\n; > SRP_Calc_server_key @ 0x105c8e8\n; > SRP_Calc_B @ 0x105c9f8\n; > SRP_Calc_A @ 0x105cd18\n; > SRP_Calc_client_key @ 0x105cdcc\n; > SRP_Verify_B_mod_N @ 0x105cf78\n; > SRP_create_verifier_BN @ 0x105e3b0\n; > BN_CTX_secure_new @ 0x10939d0\n; > DH_check @ 0x10a7a78\n; > DH_check_pub_key @ 0x10a7d08\n; > dsa_builtin_paramgen @ 0x10a88d0\n; > dsa_builtin_paramgen2 @ 0x10a9360\n; > dsa_builtin_paramgen2 @ 0x10a964c\n; > ec_GF2m_simple_set_compressed_coordinates @ 0x10b0a40\n; > ec_GF2m_simple_point2oct @ 0x10b0e30\n; > ec_GF2m_simple_oct2point @ 0x10b1220\n; > ec_GF2m_simple_group_check_discriminant @ 0x10b1750\n; > ec_GF2m_simple_cmp @ 0x10b1cfc\n; > ec_GF2m_simple_make_affine @ 0x10b1e18\n; > ec_GF2m_simple_is_on_curve @ 0x10b1f7c\n; > ec_GF2m_simple_add @ 0x10b2344\n; > RSA_generate_key_ex @ 0x10e89e0\n; > BN_is_prime_fasttest_ex @ 0x10f50b4\n; > BN_generate_prime_ex @ 0x10f56e0\n; > DH_generate_parameters_ex @ 0x10fa528\n; > DSA_generate_key @ 0x10faadc\n; > ec_GF2m_simple_mul @ 0x10fb6c8\n; > <???> @ 0x69100\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:17:22 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x1093950\nMOV             X0, #0x40 ; '@'                                        ; +0x4, 0x1093954\nMOV             W2, #0x8A                                              ; +0x8, 0x1093958\nMOV             X29, SP                                                ; +0xc, 0x109395c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x10, 0x1093960\nADRL            X20, aCryptoBnBnCtxC; \"crypto/bn/bn_ctx.c\"             ; +0x14, 0x1093964\nMOV             X1, X20                                                ; +0x1c, 0x109396c\nBL              CRYPTO_zalloc                                          ; +0x20, 0x1093970\nMOV             X19, X0                                                ; +0x24, 0x1093974\nCBZ             X0, loc_10939AC                                        ; +0x28, 0x1093978\nSTR             XZR, [X0,#0x10]                                        ; +0x2c, 0x109397c\nSTR             XZR, [X0,#8]                                           ; +0x30, 0x1093980\nSTR             XZR, [X0]                                              ; +0x34, 0x1093984\nSTR             WZR, [X0,#0x1C]                                        ; +0x38, 0x1093988\nSTR             WZR, [X0,#0x18]                                        ; +0x3c, 0x109398c\nSTR             XZR, [X0,#0x20]                                        ; +0x40, 0x1093990\nSTR             WZR, [X0,#0x2C]                                        ; +0x44, 0x1093994\nSTR             WZR, [X0,#0x28]                                        ; +0x48, 0x1093998\nMOV             X0, X19                                                ; +0x4c, 0x109399c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x50, 0x10939a0\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x54, 0x10939a4\nRET                                                                    ; +0x58, 0x10939a8\nMOV             W0, #3                                                 ; +0x5c, 0x10939ac\nMOV             W1, #0x6A ; 'j'                                        ; +0x60, 0x10939b0\nMOV             W2, #0x41 ; 'A'                                        ; +0x64, 0x10939b4\nMOV             X3, X20                                                ; +0x68, 0x10939b8\nMOV             W4, #0x8B                                              ; +0x6c, 0x10939bc\nBL              ERR_put_error                                          ; +0x70, 0x10939c0\nB               loc_109399C                                            ; +0x74, 0x10939c4", "xrefs": ["sub_1005B4C @ 0x1005b80", "sub_1005CF0 @ 0x1005d08", "sub_1006DA8 @ 0x1006ed4", "sub_1008178 @ 0x1008208", "sub_1008488 @ 0x100850c", "sub_10088DC @ 0x1008ab4", "EC_GROUP_new_by_curve_name @ 0x100d474", "ec_key_simple_generate_key @ 0x100e1a4", "ec_key_simple_check_key @ 0x100e3fc", "EC_KEY_set_public_key_affine_coordinates @ 0x100e784", "EC_GROUP_cmp @ 0x10107e0", "ec_precompute_mont_data @ 0x1010a40", "ec_wNAF_mul @ 0x1011120", "ec_wNAF_precompute_mult @ 0x1011e54", "ecdh_simple_compute_key @ 0x1012590", "ossl_ecdsa_sign_setup @ 0x1012b08", "ossl_ecdsa_sign_sig @ 0x1012eb8", "ossl_ecdsa_verify_sig @ 0x1013820", "ECPKParameters_print @ 0x1013fd8", "ec_GFp_mont_group_set_curve @ 0x1014824", "sub_10150E8 @ 0x1015ffc", "sub_10163C0 @ 0x1016858", "ec_GFp_simple_set_compressed_coordinates @ 0x1016b2c", "ec_GFp_simple_point2oct @ 0x1016f74", "ec_GFp_simple_oct2point @ 0x1017314", "ec_GFp_simple_group_get_curve @ 0x101769c", "ec_GFp_simple_get_Jprojective_coordinates_GFp @ 0x10177ac", "ec_GFp_simple_group_check_discriminant @ 0x101795c", "ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0x1017bc4", "ec_GFp_simple_point_get_affine_coordinates @ 0x1017e44", "ec_GFp_simple_dbl @ 0x10182e0", "ec_GFp_simple_group_set_curve @ 0x1018594", "ec_GFp_simple_cmp @ 0x1018870", "ec_GFp_simple_add @ 0x1018b4c", "ec_GFp_simple_is_on_curve @ 0x1018fe0", "ec_GFp_simple_make_affine @ 0x1019244", "ec_GFp_simple_points_make_affine @ 0x10193a8", "RSA_setup_blinding @ 0x1051e80", "sub_1052B04 @ 0x1052b70", "sub_1052E9C @ 0x1052f08", "sub_1053210 @ 0x1053248", "sub_10536BC @ 0x10536f4", "SRP_Calc_server_key @ 0x105c8e8", "SRP_Calc_B @ 0x105c9f8", "SRP_Calc_A @ 0x105cd18", "SRP_Calc_client_key @ 0x105cdcc", "SRP_Verify_B_mod_N @ 0x105cf78", "SRP_create_verifier_BN @ 0x105e3b0", "BN_CTX_secure_new @ 0x10939d0", "DH_check @ 0x10a7a78", "DH_check_pub_key @ 0x10a7d08", "dsa_builtin_paramgen @ 0x10a88d0", "dsa_builtin_paramgen2 @ 0x10a9360", "dsa_builtin_paramgen2 @ 0x10a964c", "ec_GF2m_simple_set_compressed_coordinates @ 0x10b0a40", "ec_GF2m_simple_point2oct @ 0x10b0e30", "ec_GF2m_simple_oct2point @ 0x10b1220", "ec_GF2m_simple_group_check_discriminant @ 0x10b1750", "ec_GF2m_simple_cmp @ 0x10b1cfc", "ec_GF2m_simple_make_affine @ 0x10b1e18", "ec_GF2m_simple_is_on_curve @ 0x10b1f7c", "ec_GF2m_simple_add @ 0x10b2344", "RSA_generate_key_ex @ 0x10e89e0", "BN_is_prime_fasttest_ex @ 0x10f50b4", "BN_generate_prime_ex @ 0x10f56e0", "DH_generate_parameters_ex @ 0x10fa528", "DSA_generate_key @ 0x10faadc", "ec_GF2m_simple_mul @ 0x10fb6c8", "<???> @ 0x69100"], "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"}