{"type": "func", "start": 11013032, "end": 11013192, "name": "BN_CTX_free", "pseudocode": "// \n// BN_CTX_free from 0xa80ba8 to 0xa80c48 (160 bytes)\n// \n// 80 xrefs:\n// > sub_9F4C18 @ 0x9f4ce8\n// > sub_9F4DE0 @ 0x9f4eb0\n// > sub_9F5DC4 @ 0x9f5e7c\n// > sub_9F715C @ 0x9f7218\n// > sub_9F74B8 @ 0x9f7640\n// > sub_9F74B8 @ 0x9f76c4\n// > sub_9F7978 @ 0x9f7a24\n// > EC_GROUP_new_by_curve_name @ 0x9fcd54\n// > ec_key_simple_generate_key @ 0x9fdac4\n// > ec_key_simple_check_key @ 0x9fdca0\n// > EC_KEY_set_public_key_affine_coordinates @ 0x9fe13c\n// > EC_GROUP_cmp @ 0xa00134\n// > EC_GROUP_cmp @ 0xa0029c\n// > ec_precompute_mont_data @ 0xa00534\n// > ec_wNAF_mul @ 0xa00aac\n// > ec_wNAF_mul @ 0xa00bc0\n// > ec_wNAF_mul @ 0xa00c90\n// > ec_wNAF_mul @ 0xa00efc\n// > ec_wNAF_mul @ 0xa012c8\n// > ec_wNAF_mul @ 0xa01330\n// > ec_wNAF_precompute_mult @ 0xa01838\n// > ec_wNAF_precompute_mult @ 0xa01950\n// > ec_wNAF_precompute_mult @ 0xa01af8\n// > ec_wNAF_precompute_mult @ 0xa01c7c\n// > ecdh_simple_compute_key @ 0xa023b4\n// > ossl_ecdsa_sign_setup @ 0xa02788\n// > ossl_ecdsa_sign_sig @ 0xa02e44\n// > ossl_ecdsa_verify_sig @ 0xa03768\n// > ECPKParameters_print @ 0xa04014\n// > ec_GFp_mont_group_set_curve @ 0xa047a4\n// > sub_A05194 @ 0xa06080\n// > sub_A067A0 @ 0xa068b0\n// > ec_GFp_simple_set_compressed_coordinates @ 0xa06ec4\n// > ec_GFp_simple_point2oct @ 0xa072d8\n// > ec_GFp_simple_point2oct @ 0xa074a0\n// > ec_GFp_simple_oct2point @ 0xa07774\n// > ec_GFp_simple_group_get_curve @ 0xa07b60\n// > ec_GFp_simple_get_Jprojective_coordinates_GFp @ 0xa07c4c\n// > ec_GFp_simple_group_check_discriminant @ 0xa07e2c\n// > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0xa0802c\n// > ec_GFp_simple_point_get_affine_coordinates @ 0xa082e0\n// > ec_GFp_simple_dbl @ 0xa08564\n// > ec_GFp_simple_group_set_curve @ 0xa08b78\n// > ec_GFp_simple_cmp @ 0xa08da4\n// > ec_GFp_simple_add @ 0xa09118\n// > ec_GFp_simple_is_on_curve @ 0xa095d0\n// > ec_GFp_simple_make_affine @ 0xa09870\n// > ec_GFp_simple_points_make_affine @ 0xa09964\n// > ec_GFp_simple_points_make_affine @ 0xa099cc\n// > RSA_setup_blinding @ 0xa420f4\n// > sub_A42E10 @ 0xa42f78\n// > sub_A431F4 @ 0xa43330\n// > sub_A43568 @ 0xa43644\n// > sub_A43A80 @ 0xa43d58\n// > SRP_Calc_server_key @ 0xa4b5d4\n// > SRP_Calc_B @ 0xa4b70c\n// > SRP_Calc_A @ 0xa4b9e8\n// > SRP_Calc_client_key @ 0xa4bb30\n// > SRP_Verify_B_mod_N @ 0xa4bc3c\n// > SRP_create_verifier_BN @ 0xa4cdf0\n// > DH_check @ 0xa941d4\n// > DH_check_pub_key @ 0xa943cc\n// > dsa_builtin_paramgen @ 0xa95534\n// > dsa_builtin_paramgen2 @ 0xa959f8\n// > ec_GF2m_simple_set_compressed_coordinates @ 0xa9dabc\n// > ec_GF2m_simple_point2oct @ 0xa9dd08\n// > ec_GF2m_simple_point2oct @ 0xa9deec\n// > ec_GF2m_simple_oct2point @ 0xa9e1f4\n// > ec_GF2m_simple_group_check_discriminant @ 0xa9e78c\n// > ec_GF2m_simple_cmp @ 0xa9ec38\n// > ec_GF2m_simple_make_affine @ 0xa9eda4\n// > ec_GF2m_simple_is_on_curve @ 0xa9eea0\n// > ec_GF2m_simple_add @ 0xa9f2c4\n// > RSA_generate_key_ex @ 0xad4b24\n// > BN_is_prime_fasttest_ex @ 0xadfd24\n// > BN_generate_prime_ex @ 0xae030c\n// > DH_generate_parameters_ex @ 0xae5a38\n// > DSA_generate_key @ 0xae5f28\n// > ec_GF2m_simple_mul @ 0xae69bc\n// > <???> @ 0x7a4fc\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:08:49 +0000\n// \n\nvoid __fastcall BN_CTX_free(void **a1)\n{\n  _DWORD *v2; // r4\n  bool v3; // zf\n  _DWORD *v4; // r5\n  _BYTE *v5; // r0\n  void *v6; // r0\n\n  if ( a1 )\n  {\n    CRYPTO_free(a1[5], (int)\"crypto/bn/bn_ctx.c\", 247);\n    v2 = *a1;\n    v3 = *a1 == nullptr;\n    a1[5] = nullptr;\n    if ( !v3 )\n    {\n      do\n      {\n        v4 = v2 + 80;\n        do\n        {\n          v5 = v2;\n          v3 = *v2 == 0;\n          v2 += 5;\n          if ( !v3 )\n            BN_clear_free(v5);\n        }\n        while ( v2 != v4 );\n        v6 = *a1;\n        a1[1] = *((void **)*a1 + 81);\n        CRYPTO_free(v6, (int)\"crypto/bn/bn_ctx.c\", 296);\n        v2 = a1[1];\n        *a1 = v2;\n      }\n      while ( v2 );\n    }\n    CRYPTO_free(a1, (int)\"crypto/bn/bn_ctx.c\", 178);\n  }\n}", "assembly": "; \n; BN_CTX_free from 0xa80ba8 to 0xa80c48 (160 bytes)\n; \n; 80 xrefs:\n; > sub_9F4C18 @ 0x9f4ce8\n; > sub_9F4DE0 @ 0x9f4eb0\n; > sub_9F5DC4 @ 0x9f5e7c\n; > sub_9F715C @ 0x9f7218\n; > sub_9F74B8 @ 0x9f7640\n; > sub_9F74B8 @ 0x9f76c4\n; > sub_9F7978 @ 0x9f7a24\n; > EC_GROUP_new_by_curve_name @ 0x9fcd54\n; > ec_key_simple_generate_key @ 0x9fdac4\n; > ec_key_simple_check_key @ 0x9fdca0\n; > EC_KEY_set_public_key_affine_coordinates @ 0x9fe13c\n; > EC_GROUP_cmp @ 0xa00134\n; > EC_GROUP_cmp @ 0xa0029c\n; > ec_precompute_mont_data @ 0xa00534\n; > ec_wNAF_mul @ 0xa00aac\n; > ec_wNAF_mul @ 0xa00bc0\n; > ec_wNAF_mul @ 0xa00c90\n; > ec_wNAF_mul @ 0xa00efc\n; > ec_wNAF_mul @ 0xa012c8\n; > ec_wNAF_mul @ 0xa01330\n; > ec_wNAF_precompute_mult @ 0xa01838\n; > ec_wNAF_precompute_mult @ 0xa01950\n; > ec_wNAF_precompute_mult @ 0xa01af8\n; > ec_wNAF_precompute_mult @ 0xa01c7c\n; > ecdh_simple_compute_key @ 0xa023b4\n; > ossl_ecdsa_sign_setup @ 0xa02788\n; > ossl_ecdsa_sign_sig @ 0xa02e44\n; > ossl_ecdsa_verify_sig @ 0xa03768\n; > ECPKParameters_print @ 0xa04014\n; > ec_GFp_mont_group_set_curve @ 0xa047a4\n; > sub_A05194 @ 0xa06080\n; > sub_A067A0 @ 0xa068b0\n; > ec_GFp_simple_set_compressed_coordinates @ 0xa06ec4\n; > ec_GFp_simple_point2oct @ 0xa072d8\n; > ec_GFp_simple_point2oct @ 0xa074a0\n; > ec_GFp_simple_oct2point @ 0xa07774\n; > ec_GFp_simple_group_get_curve @ 0xa07b60\n; > ec_GFp_simple_get_Jprojective_coordinates_GFp @ 0xa07c4c\n; > ec_GFp_simple_group_check_discriminant @ 0xa07e2c\n; > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0xa0802c\n; > ec_GFp_simple_point_get_affine_coordinates @ 0xa082e0\n; > ec_GFp_simple_dbl @ 0xa08564\n; > ec_GFp_simple_group_set_curve @ 0xa08b78\n; > ec_GFp_simple_cmp @ 0xa08da4\n; > ec_GFp_simple_add @ 0xa09118\n; > ec_GFp_simple_is_on_curve @ 0xa095d0\n; > ec_GFp_simple_make_affine @ 0xa09870\n; > ec_GFp_simple_points_make_affine @ 0xa09964\n; > ec_GFp_simple_points_make_affine @ 0xa099cc\n; > RSA_setup_blinding @ 0xa420f4\n; > sub_A42E10 @ 0xa42f78\n; > sub_A431F4 @ 0xa43330\n; > sub_A43568 @ 0xa43644\n; > sub_A43A80 @ 0xa43d58\n; > SRP_Calc_server_key @ 0xa4b5d4\n; > SRP_Calc_B @ 0xa4b70c\n; > SRP_Calc_A @ 0xa4b9e8\n; > SRP_Calc_client_key @ 0xa4bb30\n; > SRP_Verify_B_mod_N @ 0xa4bc3c\n; > SRP_create_verifier_BN @ 0xa4cdf0\n; > DH_check @ 0xa941d4\n; > DH_check_pub_key @ 0xa943cc\n; > dsa_builtin_paramgen @ 0xa95534\n; > dsa_builtin_paramgen2 @ 0xa959f8\n; > ec_GF2m_simple_set_compressed_coordinates @ 0xa9dabc\n; > ec_GF2m_simple_point2oct @ 0xa9dd08\n; > ec_GF2m_simple_point2oct @ 0xa9deec\n; > ec_GF2m_simple_oct2point @ 0xa9e1f4\n; > ec_GF2m_simple_group_check_discriminant @ 0xa9e78c\n; > ec_GF2m_simple_cmp @ 0xa9ec38\n; > ec_GF2m_simple_make_affine @ 0xa9eda4\n; > ec_GF2m_simple_is_on_curve @ 0xa9eea0\n; > ec_GF2m_simple_add @ 0xa9f2c4\n; > RSA_generate_key_ex @ 0xad4b24\n; > BN_is_prime_fasttest_ex @ 0xadfd24\n; > BN_generate_prime_ex @ 0xae030c\n; > DH_generate_parameters_ex @ 0xae5a38\n; > DSA_generate_key @ 0xae5f28\n; > ec_GF2m_simple_mul @ 0xae69bc\n; > <???> @ 0x7a4fc\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:08:49 +0000\n; \nCMP             R0, #0                                                 ; +0x0, 0xa80ba8\nBXEQ            LR                                                     ; +0x4, 0xa80bac\nPUSH            {R3-R7,LR}                                             ; +0x8, 0xa80bb0\nLDR             R7, =(aCryptoBnBnCtxC - 0xA80BC4); \"crypto/bn/bn_ctx.c\" ; +0xc, 0xa80bb4\nMOV             R6, R0                                                 ; +0x10, 0xa80bb8\nADD             R7, PC, R7; \"crypto/bn/bn_ctx.c\"                       ; +0x14, 0xa80bbc\nLDR             R0, [R0,#0x14]                                         ; +0x18, 0xa80bc0\nMOV             R1, R7                                                 ; +0x1c, 0xa80bc4\nMOV             R2, #0xF7                                              ; +0x20, 0xa80bc8\nBL              CRYPTO_free                                            ; +0x24, 0xa80bcc\nLDR             R4, [R6]                                               ; +0x28, 0xa80bd0\nMOV             R3, #0                                                 ; +0x2c, 0xa80bd4\nCMP             R4, R3                                                 ; +0x30, 0xa80bd8\nSTR             R3, [R6,#0x14]                                         ; +0x34, 0xa80bdc\nBEQ             loc_A80C30                                             ; +0x38, 0xa80be0\nADD             R5, R4, #0x140                                         ; +0x3c, 0xa80be4\nLDR             R3, [R4]                                               ; +0x40, 0xa80be8\nMOV             R0, R4                                                 ; +0x44, 0xa80bec\nCMP             R3, #0                                                 ; +0x48, 0xa80bf0\nADD             R4, R4, #0x14                                          ; +0x4c, 0xa80bf4\nBEQ             loc_A80C00                                             ; +0x50, 0xa80bf8\nBL              BN_clear_free                                          ; +0x54, 0xa80bfc\nCMP             R4, R5                                                 ; +0x58, 0xa80c00\nBNE             loc_A80BE8                                             ; +0x5c, 0xa80c04\nLDR             R0, [R6]                                               ; +0x60, 0xa80c08\nMOV             R1, R7                                                 ; +0x64, 0xa80c0c\nLDR             R3, [R0,#0x144]                                        ; +0x68, 0xa80c10\nSTR             R3, [R6,#4]                                            ; +0x6c, 0xa80c14\nMOV             R2, #0x128                                             ; +0x70, 0xa80c18\nBL              CRYPTO_free                                            ; +0x74, 0xa80c1c\nLDR             R4, [R6,#4]                                            ; +0x78, 0xa80c20\nSTR             R4, [R6]                                               ; +0x7c, 0xa80c24\nCMP             R4, #0                                                 ; +0x80, 0xa80c28\nBNE             loc_A80BE4                                             ; +0x84, 0xa80c2c\nLDR             R1, =(aCryptoBnBnCtxC - 0xA80C40); \"crypto/bn/bn_ctx.c\" ; +0x88, 0xa80c30\nMOV             R0, R6                                                 ; +0x8c, 0xa80c34\nADD             R1, PC, R1; \"crypto/bn/bn_ctx.c\"                       ; +0x90, 0xa80c38\nMOV             R2, #0xB2                                              ; +0x94, 0xa80c3c\nPOP             {R3-R7,LR}                                             ; +0x98, 0xa80c40\nB               CRYPTO_free                                            ; +0x9c, 0xa80c44", "xrefs": ["sub_9F4C18 @ 0x9f4ce8", "sub_9F4DE0 @ 0x9f4eb0", "sub_9F5DC4 @ 0x9f5e7c", "sub_9F715C @ 0x9f7218", "sub_9F74B8 @ 0x9f7640", "sub_9F74B8 @ 0x9f76c4", "sub_9F7978 @ 0x9f7a24", "EC_GROUP_new_by_curve_name @ 0x9fcd54", "ec_key_simple_generate_key @ 0x9fdac4", "ec_key_simple_check_key @ 0x9fdca0", "EC_KEY_set_public_key_affine_coordinates @ 0x9fe13c", "EC_GROUP_cmp @ 0xa00134", "EC_GROUP_cmp @ 0xa0029c", "ec_precompute_mont_data @ 0xa00534", "ec_wNAF_mul @ 0xa00aac", "ec_wNAF_mul @ 0xa00bc0", "ec_wNAF_mul @ 0xa00c90", "ec_wNAF_mul @ 0xa00efc", "ec_wNAF_mul @ 0xa012c8", "ec_wNAF_mul @ 0xa01330", "ec_wNAF_precompute_mult @ 0xa01838", "ec_wNAF_precompute_mult @ 0xa01950", "ec_wNAF_precompute_mult @ 0xa01af8", "ec_wNAF_precompute_mult @ 0xa01c7c", "ecdh_simple_compute_key @ 0xa023b4", "ossl_ecdsa_sign_setup @ 0xa02788", "ossl_ecdsa_sign_sig @ 0xa02e44", "ossl_ecdsa_verify_sig @ 0xa03768", "ECPKParameters_print @ 0xa04014", "ec_GFp_mont_group_set_curve @ 0xa047a4", "sub_A05194 @ 0xa06080", "sub_A067A0 @ 0xa068b0", "ec_GFp_simple_set_compressed_coordinates @ 0xa06ec4", "ec_GFp_simple_point2oct @ 0xa072d8", "ec_GFp_simple_point2oct @ 0xa074a0", "ec_GFp_simple_oct2point @ 0xa07774", "ec_GFp_simple_group_get_curve @ 0xa07b60", "ec_GFp_simple_get_Jprojective_coordinates_GFp @ 0xa07c4c", "ec_GFp_simple_group_check_discriminant @ 0xa07e2c", "ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0xa0802c", "ec_GFp_simple_point_get_affine_coordinates @ 0xa082e0", "ec_GFp_simple_dbl @ 0xa08564", "ec_GFp_simple_group_set_curve @ 0xa08b78", "ec_GFp_simple_cmp @ 0xa08da4", "ec_GFp_simple_add @ 0xa09118", "ec_GFp_simple_is_on_curve @ 0xa095d0", "ec_GFp_simple_make_affine @ 0xa09870", "ec_GFp_simple_points_make_affine @ 0xa09964", "ec_GFp_simple_points_make_affine @ 0xa099cc", "RSA_setup_blinding @ 0xa420f4", "sub_A42E10 @ 0xa42f78", "sub_A431F4 @ 0xa43330", "sub_A43568 @ 0xa43644", "sub_A43A80 @ 0xa43d58", "SRP_Calc_server_key @ 0xa4b5d4", "SRP_Calc_B @ 0xa4b70c", "SRP_Calc_A @ 0xa4b9e8", "SRP_Calc_client_key @ 0xa4bb30", "SRP_Verify_B_mod_N @ 0xa4bc3c", "SRP_create_verifier_BN @ 0xa4cdf0", "DH_check @ 0xa941d4", "DH_check_pub_key @ 0xa943cc", "dsa_builtin_paramgen @ 0xa95534", "dsa_builtin_paramgen2 @ 0xa959f8", "ec_GF2m_simple_set_compressed_coordinates @ 0xa9dabc", "ec_GF2m_simple_point2oct @ 0xa9dd08", "ec_GF2m_simple_point2oct @ 0xa9deec", "ec_GF2m_simple_oct2point @ 0xa9e1f4", "ec_GF2m_simple_group_check_discriminant @ 0xa9e78c", "ec_GF2m_simple_cmp @ 0xa9ec38", "ec_GF2m_simple_make_affine @ 0xa9eda4", "ec_GF2m_simple_is_on_curve @ 0xa9eea0", "ec_GF2m_simple_add @ 0xa9f2c4", "RSA_generate_key_ex @ 0xad4b24", "BN_is_prime_fasttest_ex @ 0xadfd24", "BN_generate_prime_ex @ 0xae030c", "DH_generate_parameters_ex @ 0xae5a38", "DSA_generate_key @ 0xae5f28", "ec_GF2m_simple_mul @ 0xae69bc", "<???> @ 0x7a4fc"], "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"}