// // EVP_PKEY_encrypt from 0xdad284 to 0xdad394 (272 bytes) // // 8 xrefs: // > sub_D4843C @ 0xd485cc // > tls_construct_client_key_exchange @ 0xd4a8e8 // > tls_construct_client_key_exchange @ 0xd4a908 // > PKCS7_dataInit @ 0xdcc7f8 // > PKCS7_dataInit @ 0xdcc834 // > CMS_RecipientInfo_encrypt @ 0xe1e4e8 // > CMS_RecipientInfo_encrypt @ 0xe1e52c // > @ 0x4e138 // // 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 EVP_PKEY_encrypt(__int64 *a1, __int64 a2, _QWORD *a3) { __int64 v4; // x5 __int64 (__fastcall *v5)(__int64 *); // x0 int v6; // w0 if ( a1 && (v4 = *a1) != 0 && (v5 = *(__int64 (__fastcall **)(__int64 *))(v4 + 152)) != nullptr ) { if ( *((_DWORD *)a1 + 8) == 256 ) { if ( (*(_DWORD *)(v4 + 4) & 2) != 0 ) { v6 = EVP_PKEY_size(a1[2]); if ( a2 ) { if ( (unsigned __int64)v6 > *a3 ) { ERR_put_error(6, 105, 155, (__int64)"crypto/evp/pmeth_fn.c", 164); return 0; } else { return (*(__int64 (__fastcall **)(__int64 *))(*a1 + 152))(a1); } } else { *a3 = v6; return 1; } } else { return v5(a1); } } else { ERR_put_error(6, 105, 151, (__int64)"crypto/evp/pmeth_fn.c", 161); return 0xFFFFFFFFLL; } } else { ERR_put_error(6, 105, 150, (__int64)"crypto/evp/pmeth_fn.c", 157); return 4294967294LL; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source