{"type": "func", "start": 8848092, "end": 8848144, "name": "BN_mod_sub", "pseudocode": "// \n// BN_mod_sub from 0x8702dc to 0x870310 (52 bytes)\n// \n// 4 xrefs:\n// > ossl_ecdsa_sign_setup @ 0x7ede50\n// > ossl_ecdsa_sign_sig @ 0x7ee7f8\n// > SRP_Calc_client_key @ 0x836f08\n// > <???> @ 0x61c6c\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\nint __fastcall BN_mod_sub(int *a1, int *a2, int *a3, int *a4, int ***a5)\n{\n  int result; // r0\n\n  result = BN_sub(a1, a2, a3);\n  if ( result )\n    return BN_nnmod(a1, a1, a4, a5, (int)a5);\n  return result;\n}", "assembly": "; \n; BN_mod_sub from 0x8702dc to 0x870310 (52 bytes)\n; \n; 4 xrefs:\n; > ossl_ecdsa_sign_setup @ 0x7ede50\n; > ossl_ecdsa_sign_sig @ 0x7ee7f8\n; > SRP_Calc_client_key @ 0x836f08\n; > <???> @ 0x61c6c\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-R6,LR}                                             ; +0x0, 0x8702dc\nLDR             R5, [SP,#arg_0]                                        ; +0x4, 0x8702e0\nMOV             R6, R3                                                 ; +0x8, 0x8702e4\nMOV             R4, R0                                                 ; +0xc, 0x8702e8\nBL              BN_sub                                                 ; +0x10, 0x8702ec\nCMP             R0, #0                                                 ; +0x14, 0x8702f0\nPOPEQ           {R4-R6,PC}                                             ; +0x18, 0x8702f4\nMOV             R2, R6                                                 ; +0x1c, 0x8702f8\nMOV             R3, R5                                                 ; +0x20, 0x8702fc\nMOV             R0, R4                                                 ; +0x24, 0x870300\nMOV             R1, R4                                                 ; +0x28, 0x870304\nPOP             {R4-R6,LR}                                             ; +0x2c, 0x870308\nB               BN_nnmod                                               ; +0x30, 0x87030c", "xrefs": ["ossl_ecdsa_sign_setup @ 0x7ede50", "ossl_ecdsa_sign_sig @ 0x7ee7f8", "SRP_Calc_client_key @ 0x836f08", "<???> @ 0x61c6c"], "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"}