{"type": "func", "start": 8848208, "end": 8848352, "name": "BN_mod_mul", "pseudocode": "// \n// BN_mod_mul from 0x870350 to 0x8703e0 (144 bytes)\n// \n// 37 xrefs:\n// > sub_7E255C @ 0x7e271c\n// > sub_7E255C @ 0x7e273c\n// > sub_7E28B8 @ 0x7e2c40\n// > sub_7E28B8 @ 0x7e2ca4\n// > ossl_ecdsa_sign_sig @ 0x7ee314\n// > ossl_ecdsa_sign_sig @ 0x7ee350\n// > ossl_ecdsa_verify_sig @ 0x7eec68\n// > ossl_ecdsa_verify_sig @ 0x7eedc4\n// > ec_GFp_simple_set_compressed_coordinates @ 0x7f2314\n// > ec_GFp_simple_set_compressed_coordinates @ 0x7f236c\n// > ec_GFp_simple_field_mul @ 0x7f3188\n// > ec_GFp_simple_group_check_discriminant @ 0x7f3330\n// > ec_GFp_simple_point_get_affine_coordinates @ 0x7f37a8\n// > SRP_Calc_server_key @ 0x836a0c\n// > SRP_Calc_B @ 0x836b68\n// > SRP_Calc_client_key @ 0x836ee4\n// > BN_BLINDING_invert_ex @ 0x86b938\n// > BN_BLINDING_invert_ex @ 0x86b960\n// > BN_BLINDING_update @ 0x86bd8c\n// > BN_BLINDING_update @ 0x86bdf4\n// > BN_BLINDING_convert_ex @ 0x86bebc\n// > BN_mod_exp_simple @ 0x86e4bc\n// > BN_mod_exp_simple @ 0x86e504\n// > BN_mod_exp_simple @ 0x86e5dc\n// > BN_mod_exp_simple @ 0x86e614\n// > BN_mod_exp_simple @ 0x86e6dc\n// > BN_mod_sqrt @ 0x871964\n// > BN_mod_sqrt @ 0x871998\n// > BN_mod_sqrt @ 0x8719b8\n// > BN_mod_sqrt @ 0x871c88\n// > BN_mod_sqrt @ 0x871ca8\n// > BN_mod_sqrt @ 0x871d1c\n// > BN_mod_sqrt @ 0x871df0\n// > BN_mod_sqrt @ 0x871e10\n// > BN_mod_sqrt @ 0x871e30\n// > BN_is_prime_fasttest_ex @ 0x8cacc8\n// > <???> @ 0x60f5c\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\nbool __fastcall BN_mod_mul(int *a1, int **a2, int **a3, int *a4, int ***a5)\n{\n  int **v9; // r0\n  int *v10; // r6\n  _BOOL4 v11; // r4\n  int savedregs; // [sp+0h] [bp+0h]\n\n  BN_CTX_start((int)a5);\n  v9 = BN_CTX_get(a5);\n  v10 = (int *)v9;\n  if ( !v9 )\n    goto LABEL_7;\n  if ( a2 == a3 )\n  {\n    if ( BN_sqr((int)v9, a2, (int)a5) )\n      goto LABEL_4;\nLABEL_7:\n    v11 = 0;\n    goto LABEL_5;\n  }\n  if ( !BN_mul(v9, a2, a3, (int)a5) )\n    goto LABEL_7;\nLABEL_4:\n  v11 = BN_nnmod(a1, v10, a4, a5, savedregs) != 0;\nLABEL_5:\n  BN_CTX_end(a5);\n  return v11;\n}", "assembly": "; \n; BN_mod_mul from 0x870350 to 0x8703e0 (144 bytes)\n; \n; 37 xrefs:\n; > sub_7E255C @ 0x7e271c\n; > sub_7E255C @ 0x7e273c\n; > sub_7E28B8 @ 0x7e2c40\n; > sub_7E28B8 @ 0x7e2ca4\n; > ossl_ecdsa_sign_sig @ 0x7ee314\n; > ossl_ecdsa_sign_sig @ 0x7ee350\n; > ossl_ecdsa_verify_sig @ 0x7eec68\n; > ossl_ecdsa_verify_sig @ 0x7eedc4\n; > ec_GFp_simple_set_compressed_coordinates @ 0x7f2314\n; > ec_GFp_simple_set_compressed_coordinates @ 0x7f236c\n; > ec_GFp_simple_field_mul @ 0x7f3188\n; > ec_GFp_simple_group_check_discriminant @ 0x7f3330\n; > ec_GFp_simple_point_get_affine_coordinates @ 0x7f37a8\n; > SRP_Calc_server_key @ 0x836a0c\n; > SRP_Calc_B @ 0x836b68\n; > SRP_Calc_client_key @ 0x836ee4\n; > BN_BLINDING_invert_ex @ 0x86b938\n; > BN_BLINDING_invert_ex @ 0x86b960\n; > BN_BLINDING_update @ 0x86bd8c\n; > BN_BLINDING_update @ 0x86bdf4\n; > BN_BLINDING_convert_ex @ 0x86bebc\n; > BN_mod_exp_simple @ 0x86e4bc\n; > BN_mod_exp_simple @ 0x86e504\n; > BN_mod_exp_simple @ 0x86e5dc\n; > BN_mod_exp_simple @ 0x86e614\n; > BN_mod_exp_simple @ 0x86e6dc\n; > BN_mod_sqrt @ 0x871964\n; > BN_mod_sqrt @ 0x871998\n; > BN_mod_sqrt @ 0x8719b8\n; > BN_mod_sqrt @ 0x871c88\n; > BN_mod_sqrt @ 0x871ca8\n; > BN_mod_sqrt @ 0x871d1c\n; > BN_mod_sqrt @ 0x871df0\n; > BN_mod_sqrt @ 0x871e10\n; > BN_mod_sqrt @ 0x871e30\n; > BN_is_prime_fasttest_ex @ 0x8cacc8\n; > <???> @ 0x60f5c\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-R8,LR}                                             ; +0x0, 0x870350\nMOV             R7, R0                                                 ; +0x4, 0x870354\nLDR             R0, [SP,#arg_0]                                        ; +0x8, 0x870358\nMOV             R4, R1                                                 ; +0xc, 0x87035c\nMOV             R5, R2                                                 ; +0x10, 0x870360\nMOV             R8, R3                                                 ; +0x14, 0x870364\nBL              BN_CTX_start                                           ; +0x18, 0x870368\nLDR             R0, [SP,#arg_0]                                        ; +0x1c, 0x87036c\nBL              BN_CTX_get                                             ; +0x20, 0x870370\nSUBS            R6, R0, #0                                             ; +0x24, 0x870374\nBEQ             loc_8703D8                                             ; +0x28, 0x870378\nCMP             R4, R5                                                 ; +0x2c, 0x87037c\nMOV             R1, R4                                                 ; +0x30, 0x870380\nBEQ             loc_8703C8                                             ; +0x34, 0x870384\nMOV             R2, R5                                                 ; +0x38, 0x870388\nLDR             R3, [SP,#arg_0]                                        ; +0x3c, 0x87038c\nBL              BN_mul                                                 ; +0x40, 0x870390\nCMP             R0, #0                                                 ; +0x44, 0x870394\nBEQ             loc_8703D8                                             ; +0x48, 0x870398\nMOV             R0, R7                                                 ; +0x4c, 0x87039c\nMOV             R1, R6                                                 ; +0x50, 0x8703a0\nMOV             R2, R8                                                 ; +0x54, 0x8703a4\nLDR             R3, [SP,#arg_0]                                        ; +0x58, 0x8703a8\nBL              BN_nnmod                                               ; +0x5c, 0x8703ac\nMOVS            R4, R0                                                 ; +0x60, 0x8703b0\nMOVNE           R4, #1                                                 ; +0x64, 0x8703b4\nLDR             R0, [SP,#arg_0]                                        ; +0x68, 0x8703b8\nBL              BN_CTX_end                                             ; +0x6c, 0x8703bc\nMOV             R0, R4                                                 ; +0x70, 0x8703c0\nPOP             {R4-R8,PC}                                             ; +0x74, 0x8703c4\nLDR             R2, [SP,#arg_0]                                        ; +0x78, 0x8703c8\nBL              BN_sqr                                                 ; +0x7c, 0x8703cc\nCMP             R0, #0                                                 ; +0x80, 0x8703d0\nBNE             loc_87039C                                             ; +0x84, 0x8703d4\nMOV             R4, #0                                                 ; +0x88, 0x8703d8\nB               loc_8703B8                                             ; +0x8c, 0x8703dc", "xrefs": ["sub_7E255C @ 0x7e271c", "sub_7E255C @ 0x7e273c", "sub_7E28B8 @ 0x7e2c40", "sub_7E28B8 @ 0x7e2ca4", "ossl_ecdsa_sign_sig @ 0x7ee314", "ossl_ecdsa_sign_sig @ 0x7ee350", "ossl_ecdsa_verify_sig @ 0x7eec68", "ossl_ecdsa_verify_sig @ 0x7eedc4", "ec_GFp_simple_set_compressed_coordinates @ 0x7f2314", "ec_GFp_simple_set_compressed_coordinates @ 0x7f236c", "ec_GFp_simple_field_mul @ 0x7f3188", "ec_GFp_simple_group_check_discriminant @ 0x7f3330", "ec_GFp_simple_point_get_affine_coordinates @ 0x7f37a8", "SRP_Calc_server_key @ 0x836a0c", "SRP_Calc_B @ 0x836b68", "SRP_Calc_client_key @ 0x836ee4", "BN_BLINDING_invert_ex @ 0x86b938", "BN_BLINDING_invert_ex @ 0x86b960", "BN_BLINDING_update @ 0x86bd8c", "BN_BLINDING_update @ 0x86bdf4", "BN_BLINDING_convert_ex @ 0x86bebc", "BN_mod_exp_simple @ 0x86e4bc", "BN_mod_exp_simple @ 0x86e504", "BN_mod_exp_simple @ 0x86e5dc", "BN_mod_exp_simple @ 0x86e614", "BN_mod_exp_simple @ 0x86e6dc", "BN_mod_sqrt @ 0x871964", "BN_mod_sqrt @ 0x871998", "BN_mod_sqrt @ 0x8719b8", "BN_mod_sqrt @ 0x871c88", "BN_mod_sqrt @ 0x871ca8", "BN_mod_sqrt @ 0x871d1c", "BN_mod_sqrt @ 0x871df0", "BN_mod_sqrt @ 0x871e10", "BN_mod_sqrt @ 0x871e30", "BN_is_prime_fasttest_ex @ 0x8cacc8", "<???> @ 0x60f5c"], "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"}