//
// sub_1024DEC from 0x1024dec to 0x1024e40 (84 bytes)
//
// 4 xrefs:
// > ??> @ 0x1401e40
// > ??> @ 0x1401e98
// > ??> @ 0x1401ef0
// > ??> @ 0x1401f48
//
// 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:13 +0000
//
__int64 __fastcall sub_1024DEC(__int64 a1, unsigned __int64 a2)
{
__int64 cipher_data; // x19
cipher_data = EVP_CIPHER_CTX_get_cipher_data(a1);
*(_QWORD *)(cipher_data + 384) = 0;
DES_set_key_unchecked(a2, (_DWORD *)cipher_data);
DES_set_key_unchecked(a2 + 8, (_DWORD *)(cipher_data + 128));
memcpy((void *)(cipher_data + 256), (const void *)cipher_data, 0x80u);
return 1;
}