// // ec_GF2m_simple_is_on_curve from 0xe33b2c to 0xe33c98 (364 bytes) // // 2 xrefs: // > @ 0x72a38 // > @ 0x1227208 // // 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 ec_GF2m_simple_is_on_curve(_QWORD *a1, __int64 a2, int32x2_t *a3) { int v6; // w0 unsigned int v7; // w2 unsigned int (__fastcall *v8)(_QWORD *, __int64, __int64, _QWORD, int32x2_t *); // x24 unsigned int (__fastcall *v9)(_QWORD *, __int64, _QWORD, int32x2_t *); // x25 void **v10; // x23 __int64 v11; // x26 __int64 v12; // x0 __int64 v13; // x22 unsigned int is_zero; // w20 int32x2_t *v16; // x0 v6 = EC_POINT_is_at_infinity((__int64)a1, (_QWORD *)a2); v7 = 1; if ( v6 ) return v7; v8 = *(unsigned int (__fastcall **)(_QWORD *, __int64, __int64, _QWORD, int32x2_t *))(*a1 + 264LL); v9 = *(unsigned int (__fastcall **)(_QWORD *, __int64, _QWORD, int32x2_t *))(*a1 + 272LL); if ( !*(_DWORD *)(a2 + 32) ) return (unsigned int)-1; v10 = nullptr; if ( a3 ) goto LABEL_4; v16 = (int32x2_t *)BN_CTX_new(); v10 = (void **)v16; if ( !v16 ) return (unsigned int)-1; a3 = v16; LABEL_4: BN_CTX_start((unsigned __int64)a3); v11 = BN_CTX_get(a3); v12 = BN_CTX_get(a3); v13 = v12; if ( v12 && (unsigned int)BN_GF2m_add(v12, *(_QWORD *)(a2 + 8), a1[12]) && v8(a1, v13, v13, *(_QWORD *)(a2 + 8), a3) && (unsigned int)BN_GF2m_add(v13, v13, *(_QWORD *)(a2 + 16)) && v8(a1, v13, v13, *(_QWORD *)(a2 + 8), a3) && (unsigned int)BN_GF2m_add(v13, v13, a1[13]) && v9(a1, v11, *(_QWORD *)(a2 + 16), a3) && (unsigned int)BN_GF2m_add(v13, v13, v11) ) { is_zero = BN_is_zero(v13); } else { is_zero = -1; } BN_CTX_end((__int64)a3); BN_CTX_free(v10); return is_zero; }
GD Web Decomp Icon

GD Web Decomp

Raw Source