// // ec_GF2m_simple_cmp from 0xe33854 to 0xe33a18 (452 bytes) // // 2 xrefs: // > @ 0x69e70 // > @ 0x1227210 // // 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_cmp(__int64 a1, __int64 a2, __int64 a3, int32x2_t *a4) { void **v8; // x23 __int64 *v9; // x25 __int64 *v10; // x26 __int64 *v11; // x27 __int64 *v12; // x24 unsigned int v13; // w20 int32x2_t *v15; // x0 if ( (unsigned int)EC_POINT_is_at_infinity(a1, (_QWORD *)a2) ) return (unsigned int)EC_POINT_is_at_infinity(a1, (_QWORD *)a3) == 0; if ( (unsigned int)EC_POINT_is_at_infinity(a1, (_QWORD *)a3) ) return 1; if ( *(_DWORD *)(a2 + 32) && *(_DWORD *)(a3 + 32) ) { if ( !(unsigned int)BN_cmp(*(__int64 **)(a2 + 8), *(__int64 **)(a3 + 8)) ) return (unsigned int)BN_cmp(*(__int64 **)(a2 + 16), *(__int64 **)(a3 + 16)) != 0; return 1; } v8 = nullptr; if ( !a4 ) { v15 = (int32x2_t *)BN_CTX_new(); v8 = (void **)v15; if ( !v15 ) return 0xFFFFFFFFLL; a4 = v15; } BN_CTX_start((unsigned __int64)a4); v9 = (__int64 *)BN_CTX_get(a4); v10 = (__int64 *)BN_CTX_get(a4); v11 = (__int64 *)BN_CTX_get(a4); v12 = (__int64 *)BN_CTX_get(a4); if ( v12 && (unsigned int)EC_POINT_get_affine_coordinates_GF2m(a1, (_QWORD *)a2) && (unsigned int)EC_POINT_get_affine_coordinates_GF2m(a1, (_QWORD *)a3) ) { v13 = 1; if ( !(unsigned int)BN_cmp(v9, v11) ) v13 = BN_cmp(v10, v12) != 0; } else { v13 = -1; } BN_CTX_end((__int64)a4); BN_CTX_free(v8); return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source