// // ec_GF2m_simple_make_affine from 0xe33a18 to 0xe33b2c (276 bytes) // // 2 xrefs: // > @ 0x83010 // > @ 0x1227218 // // 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_make_affine(__int64 a1, __int64 a2, int32x2_t *a3) { unsigned int v6; // w19 void **v8; // x23 __int64 v9; // x24 __int64 v10; // x19 int32x2_t *v11; // x0 if ( *(_DWORD *)(a2 + 32) ) return 1; v6 = EC_POINT_is_at_infinity(a1, (_QWORD *)a2); if ( v6 ) return 1; v8 = nullptr; if ( !a3 ) { v11 = (int32x2_t *)BN_CTX_new(); v8 = (void **)v11; if ( v11 ) { a3 = v11; goto LABEL_6; } return v6; } LABEL_6: BN_CTX_start((unsigned __int64)a3); v9 = BN_CTX_get(a3); v10 = BN_CTX_get(a3); if ( v10 ) { if ( (unsigned int)EC_POINT_get_affine_coordinates_GF2m(a1, (_QWORD *)a2) && BN_copy(*(unsigned __int64 **)(a2 + 8), v9) && BN_copy(*(unsigned __int64 **)(a2 + 16), v10) && (unsigned int)BN_set_word(*(_QWORD *)(a2 + 24), 1) ) { LODWORD(v10) = 1; *(_DWORD *)(a2 + 32) = 1; } else { LODWORD(v10) = 0; } } BN_CTX_end((__int64)a3); BN_CTX_free(v8); return (unsigned int)v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source