// // SRP_Calc_client_key from 0xddea40 to 0xddec18 (472 bytes) // // 2 xrefs: // > srp_generate_client_master_secret @ 0xd5c9c4 // > @ 0xaf008 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall SRP_Calc_client_key(__int64 *a1, __int64 a2, __int64 *a3, _QWORD **a4, __int64 a5, _QWORD **a6) { __int64 v11; // x25 _BYTE *v12; // x26 _BYTE *v13; // x27 _BYTE *v14; // x28 __int64 v15; // x19 unsigned __int64 *v16; // x24 __int64 v18; // x0 __int64 v19; // x0 if ( !a6 ) return 0; if ( !a2 ) return 0; if ( !a1 ) return 0; if ( !a3 ) return 0; if ( !a4 ) return 0; if ( !a5 ) return 0; v11 = BN_CTX_new(a1, a2, a3); if ( !v11 ) return 0; v12 = (_BYTE *)BN_new(); if ( v12 && (v13 = (_BYTE *)BN_new()) != nullptr ) { v14 = (_BYTE *)BN_new(); if ( v14 && (unsigned int)BN_mod_exp(v12, a3, a4, a1, v11) ) { v16 = sub_DDE2E0(a1, a3, a1); if ( v16 ) { v15 = 0; if ( (unsigned int)BN_mod_mul(v13, v12, v16, a1, v11) ) { if ( (unsigned int)BN_mod_sub(v12, a2, v13, a1, v11) ) { if ( (unsigned int)BN_mul((__int64)v14, a6, a4, v11) ) { if ( (unsigned int)BN_add(v13, a5, v14) ) { v18 = BN_new(); v15 = v18; if ( v18 ) { if ( !(unsigned int)BN_mod_exp(v18, v12, v13, a1, v11) ) { v19 = v15; v15 = 0; BN_free(v19); } } } } } } } else { v15 = 0; } } else { v15 = 0; v16 = nullptr; } } else { v15 = 0; v16 = nullptr; v14 = nullptr; v13 = nullptr; } BN_CTX_free(v11); BN_clear_free(v12); BN_clear_free(v13); BN_clear_free(v14); BN_free((__int64)v16); return v15; }
GD Web Decomp Icon

GD Web Decomp

Raw Source