// // ec_GFp_simple_group_get_curve from 0x1017570 to 0x10176c0 (336 bytes) // // 4 xrefs: // > @ 0xaef88 // > @ 0x1539eb0 // > @ 0x153a030 // > @ 0x153a1b0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:16:06 +0000 // bool __fastcall ec_GFp_simple_group_get_curve( __int64 *a1, unsigned __int64 *a2, unsigned __int64 *a3, unsigned __int64 *a4, __int64 a5) { __int64 v9; // x0 __int64 v10; // x24 _BOOL4 v11; // w20 __int64 v13; // x0 if ( a2 && !BN_copy(a2, a1[8]) ) return 0; if ( !a3 && !a4 ) { LABEL_11: v10 = 0; v11 = 1; goto LABEL_12; } v9 = *(_QWORD *)(*a1 + 296); if ( !v9 ) { if ( a3 && !BN_copy(a3, a1[12]) ) { v10 = 0; v11 = 0; goto LABEL_12; } if ( a4 ) { v10 = 0; v11 = BN_copy(a4, a1[13]) != nullptr; goto LABEL_12; } goto LABEL_11; } v10 = 0; if ( a5 ) { if ( !a3 ) goto LABEL_9; LABEL_8: v11 = 0; if ( (*(unsigned int (__fastcall **)(__int64 *, unsigned __int64 *, __int64, __int64))(*a1 + 296))( a1, a3, a1[12], a5) ) { goto LABEL_9; } LABEL_12: BN_CTX_free(v10); return v11; } v13 = BN_CTX_new(v9, a2, a3); a5 = v13; if ( v13 ) { v10 = v13; if ( !a3 ) { LABEL_9: v11 = 1; if ( a4 ) v11 = (*(__int64 (__fastcall **)(__int64 *, unsigned __int64 *, __int64, __int64))(*a1 + 296))( a1, a4, a1[13], a5) != 0; goto LABEL_12; } goto LABEL_8; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source