//
// sub_DA8888 from 0xda8888 to 0xda890c (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x1238f98
//
// 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 sub_DA8888(__int64 a1, __int64 a2)
{
char *cipher_data; // x19
unsigned int v4; // w0
cipher_data = (char *)EVP_CIPHER_CTX_get_cipher_data(a1);
v4 = EVP_CIPHER_CTX_key_length(a1);
RC4_set_key(cipher_data, v4, a2);
MD5_Init(cipher_data + 260);
memcpy(cipher_data + 352, cipher_data + 260, 0x5Cu);
memcpy(cipher_data + 444, cipher_data + 260, 0x5Cu);
*((_QWORD *)cipher_data + 67) = -1;
return 1;
}