//
// sub_1026BE8 from 0x1026be8 to 0x1026c6c (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x1552278
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:16:14 +0000
//
__int64 __fastcall sub_1026BE8(__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;
}