// // EC_KEY_set_public_key_affine_coordinates from 0xd903ec to 0xd905e8 (508 bytes) // // 1 xrefs: // > @ 0x65400 // // 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 // bool __fastcall EC_KEY_set_public_key_affine_coordinates(_QWORD *a1, __int64 *a2, __int64 *a3) { __int64 v6; // x1 __int64 v7; // x0 __int64 v8; // x21 __int64 v9; // x23 __int64 *v10; // x25 __int64 *v11; // x24 __int64 v12; // x0 _BOOL4 v13; // w19 if ( a1 && (v6 = a1[3]) != 0 && a2 && a3 ) { v7 = BN_CTX_new(a1, v6, a3); v8 = v7; if ( v7 ) { BN_CTX_start(v7); v9 = EC_POINT_new(a1[3]); if ( !v9 ) goto LABEL_10; v10 = (__int64 *)BN_CTX_get(v8); v11 = (__int64 *)BN_CTX_get(v8); if ( !v11 ) goto LABEL_10; v12 = EC_GROUP_method_of(a1[3]); if ( (unsigned int)EC_METHOD_get_field_type(v12) == 407 ) { if ( !(unsigned int)EC_POINT_set_affine_coordinates_GF2m(a1[3], v9, a2, a3, v8) || !(unsigned int)EC_POINT_get_affine_coordinates_GF2m(a1[3], v9, v10, v11, v8) ) { goto LABEL_10; } } else if ( !(unsigned int)EC_POINT_set_affine_coordinates_GFp(a1[3], v9, a2, a3, v8) || !(unsigned int)EC_POINT_get_affine_coordinates_GFp(a1[3], v9, v10, v11, v8) ) { goto LABEL_10; } if ( (unsigned int)BN_cmp(a2, v10) || (unsigned int)BN_cmp(a3, v11) || (BN_cmp(a2, *(__int64 **)(a1[3] + 64LL)) & 0x80000000) == 0 || (BN_cmp(a3, *(__int64 **)(a1[3] + 64LL)) & 0x80000000) == 0 ) { v13 = 0; ERR_put_error(16, 229, 146, "crypto/ec/ec_key.c", 399); goto LABEL_11; } if ( (unsigned int)EC_KEY_set_public_key(a1, v9) ) { v13 = EC_KEY_check_key((__int64)a1) != 0; goto LABEL_11; } LABEL_10: v13 = 0; LABEL_11: BN_CTX_end(v8); BN_CTX_free(v8); EC_POINT_free(v9); return v13; } } else { ERR_put_error(16, 229, 67, "crypto/ec/ec_key.c", 350); } return 0; }