Function at 0x4cf0a8
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp byte [edi], 0
je 0x4cf426
mov esi, dword [ebp + 8]
movzx ebx, byte [esi]
movzx edx, byte [esi + 1]
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ebx, 8
or ebx, edx
movzx edx, byte [esi + 5]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 6]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 7]
xor ebx, dword [edi + 0x1e4]
mov dword [ebp + 8], ebx
movzx ebx, byte [esi + 4]
shl ebx, 8
or ebx, edx
movzx edx, byte [esi + 9]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 0xa]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xb]
xor ebx, dword [edi + 0x1e8]
mov dword [ebp - 4], ebx
movzx ebx, byte [esi + 8]
shl ebx, 8
or ebx, edx
movzx edx, byte [esi + 0xc]
shl ebx, 8
or ebx, ecx
shl edx, 8
mov ecx, dword [edi + 0x3cc]
shl ebx, 8
or ebx, eax
mov dword [ebp - 0xc], ecx
movzx eax, byte [esi + 0xd]
xor ebx, dword [edi + 0x1ec]
or edx, eax
movzx eax, byte [esi + 0xe]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 0xf]
shl edx, 8
or edx, eax
xor edx, dword [edi + 0x1f0]
mov dword [ebp - 0x10], edx
cmp ecx, 1
jle 0x4cf2a0
lea eax, [edi + 0x20c]
mov dword [ebp - 8], eax
lea eax, [ecx - 1]
mov dword [ebp - 0x18], eax
mov eax, edx
sar eax, 8
movzx ecx, al
mov eax, dword [ebp - 4]
sar eax, 0x18
movzx eax, al
mov edi, dword [ecx*4 + 0x5392a0]
xor edi, dword [eax*4 + 0x538aa0]
mov eax, dword [ebp + 8]
sar eax, 0x10
movzx eax, al
xor edi, dword [eax*4 + 0x538ea0]
movzx eax, bl
xor edi, dword [eax*4 + 0x5396a0]
mov eax, dword [ebp - 8]
xor edi, dword [eax - 4]
mov eax, ebx
sar eax, 0x18
movzx ecx, al
mov eax, dword [ebp - 4]
sar eax, 0x10
movzx eax, al
mov esi, dword [ecx*4 + 0x538aa0]
xor esi, dword [eax*4 + 0x538ea0]
mov eax, dword [ebp + 8]
sar eax, 8
movzx eax, al
xor esi, dword [eax*4 + 0x5392a0]
movzx eax, dl
xor esi, dword [eax*4 + 0x5396a0]
mov eax, dword [ebp - 8]
xor esi, dword [eax]
mov eax, edx
sar eax, 0x18
movzx ecx, al
mov eax, ebx
sar eax, 0x10
movzx eax, al
sar ebx, 8
mov edx, dword [ecx*4 + 0x538aa0]
xor edx, dword [eax*4 + 0x538ea0]
mov eax, dword [ebp - 4]
sar eax, 8
movzx eax, al
xor edx, dword [eax*4 + 0x5392a0]
mov eax, dword [ebp + 8]
movzx eax, al
xor edx, dword [eax*4 + 0x5396a0]
mov eax, dword [ebp - 8]
xor edx, dword [eax + 4]
mov eax, dword [ebp - 0x10]
sar eax, 0x10
movzx ecx, al
movzx eax, bl
mov ebx, esi
mov dword [ebp - 0x10], edx
mov ecx, dword [ecx*4 + 0x538ea0]
xor ecx, dword [eax*4 + 0x5392a0]
mov eax, dword [ebp + 8]
sar eax, 0x18
movzx eax, al
xor ecx, dword [eax*4 + 0x538aa0]
mov eax, dword [ebp - 4]
movzx eax, al
mov dword [ebp - 4], edi
xor ecx, dword [eax*4 + 0x5396a0]
mov eax, dword [ebp - 8]
add dword [ebp - 8], 0x20
xor ecx, dword [eax - 8]
sub dword [ebp - 0x18], 1
mov eax, ecx
mov dword [ebp + 8], eax
jne 0x4cf17f
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
jmp 0x4cf2a3
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
sar eax, 0x18
shl ecx, 5
movzx eax, al
mov dword [ebp - 0xc], ecx
mov edx, dword [ecx + edi + 0x1e4]
mov ecx, edx
sar ecx, 0x18
xor cl, byte [eax + 0x5379a0]
mov eax, dword [ebp - 0x10]
sar eax, 0x10
movzx eax, al
mov byte [esi], cl
mov ecx, edx
sar ecx, 0x10
mov edi, dword [ebp - 0x14]
xor cl, byte [eax + 0x5379a0]
mov eax, ebx
sar eax, 8
movzx eax, al
mov byte [esi + 1], cl
mov ecx, edx
sar ecx, 8
xor cl, byte [eax + 0x5379a0]
mov byte [esi + 2], cl
mov ecx, dword [ebp - 4]
movzx eax, cl
mov al, byte [eax + 0x5379a0]
xor al, dl
mov edx, dword [ebp - 0x14]
mov byte [esi + 3], al
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + edx + 0x1e8]
mov eax, ecx
sar eax, 0x18
mov ecx, edx
movzx eax, al
sar ecx, 0x18
xor cl, byte [eax + 0x5379a0]
mov eax, dword [ebp + 8]
sar eax, 0x10
mov byte [esi + 4], cl
mov ecx, edx
movzx eax, al
sar ecx, 0x10
xor cl, byte [eax + 0x5379a0]
mov eax, dword [ebp - 0x10]
sar eax, 8
mov byte [esi + 5], cl
mov ecx, edx
movzx eax, al
sar ecx, 8
xor cl, byte [eax + 0x5379a0]
mov byte [esi + 6], cl
movzx eax, bl
mov al, byte [eax + 0x5379a0]
xor al, dl
mov byte [esi + 7], al
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + edi + 0x1ec]
mov eax, ebx
sar eax, 0x18
mov ecx, edx
movzx eax, al
sar ecx, 0x18
xor cl, byte [eax + 0x5379a0]
mov eax, dword [ebp - 4]
sar eax, 0x10
mov byte [esi + 8], cl
mov ecx, edx
movzx eax, al
sar ecx, 0x10
xor cl, byte [eax + 0x5379a0]
mov eax, dword [ebp + 8]
sar eax, 8
mov byte [esi + 9], cl
mov ecx, edx
movzx eax, al
sar ecx, 8
xor cl, byte [eax + 0x5379a0]
mov byte [esi + 0xa], cl
mov ecx, dword [ebp - 0x10]
movzx eax, cl
sar ecx, 0x18
sar ebx, 0x10
mov al, byte [eax + 0x5379a0]
xor al, dl
mov byte [esi + 0xb], al
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + edi + 0x1f0]
movzx eax, cl
mov ecx, edx
sar ecx, 0x18
pop edi
xor cl, byte [eax + 0x5379a0]
mov byte [esi + 0xc], cl
mov ecx, edx
movzx eax, bl
sar ecx, 0x10
xor cl, byte [eax + 0x5379a0]
mov eax, dword [ebp - 4]
sar eax, 8
mov byte [esi + 0xd], cl
mov ecx, edx
movzx eax, al
sar ecx, 8
xor cl, byte [eax + 0x5379a0]
mov eax, dword [ebp + 8]
movzx eax, al
mov byte [esi + 0xe], cl
mov al, byte [eax + 0x5379a0]
xor al, dl
mov byte [esi + 0xf], al
pop esi
pop ebx
leave
ret 8
push dword [0x56717c]
lea ecx, [ebp - 0x24]
call fcn.004589e1
push 0x56125c
lea eax, [ebp - 0x24]
push eax
call fcn.004d4a8e
int3