// // i2o_ECPublicKey from 0xd8ed54 to 0xd8eedc (392 bytes) // // 7 xrefs: // > sub_D8B4C0 @ 0xd8b9bc // > sub_D8B4C0 @ 0xd8b9f0 // > sub_D8C300 @ 0xd8c374 // > sub_D8C300 @ 0xd8c3ac // > sub_D8C300 @ 0xd8c49c // > sub_D8C300 @ 0xd8c4d4 // > @ 0x83868 // // 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 i2o_ECPublicKey(__int64 a1, __int64 *a2) { __int64 v4; // x0 __int64 v5; // x20 __int64 v7; // x0 if ( !a1 ) { ERR_put_error(16, 151, 67, "crypto/ec/ec_asn1.c", 1131); return 0; } v4 = EC_POINT_point2oct(*(_QWORD *)(a1 + 24), *(_QWORD *)(a1 + 32), *(unsigned int *)(a1 + 52), 0, 0, 0); v5 = v4; if ( v4 && a2 ) { if ( *a2 ) { if ( !EC_POINT_point2oct(*(_QWORD *)(a1 + 24), *(_QWORD *)(a1 + 32), *(unsigned int *)(a1 + 52), *a2, v4, 0) ) { ERR_put_error(16, 151, 16, "crypto/ec/ec_asn1.c", 1151); return 0; } *a2 += v5; } else { v7 = CRYPTO_malloc(v4, "crypto/ec/ec_asn1.c", 1143); *a2 = v7; if ( !v7 ) { ERR_put_error(16, 151, 65, "crypto/ec/ec_asn1.c", 1144); return 0; } if ( !EC_POINT_point2oct(*(_QWORD *)(a1 + 24), *(_QWORD *)(a1 + 32), *(unsigned int *)(a1 + 52), v7, v5, 0) ) { ERR_put_error(16, 151, 16, "crypto/ec/ec_asn1.c", 1151); CRYPTO_free(*a2, "crypto/ec/ec_asn1.c", 1153); *a2 = 0; return 0; } } } return (unsigned int)v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source