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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov eax, ecx
push ecx
mov dword [ebp - 4], eax
call fcn.0040cc40
mov esi, eax
add esp, 4
xor ebx, ebx
mov dword [ebp - 8], esi
lea edi, [esi*4]
test edi, edi
jle 0x40cf08
mov eax, dword [ebp - 4]
lea esi, [eax + 8]
lea esi, [esi + edi*4]
lea ecx, [eax + 8]
mov edx, dword [ecx - 8]
lea ecx, [ecx + 0x10]
mov eax, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [ecx - 0x18], eax
add ebx, 4
mov eax, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [ecx - 0x14]
mov dword [ecx - 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [ecx - 0x10]
mov dword [ecx - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0xc], eax
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x40cec5
mov esi, dword [ebp - 8]
cmp esi, 1
jle 0x40d08a
mov edi, dword [ebp - 4]
lea ebx, [esi - 1]
add edi, 4
nop word [eax + eax]
mov edx, dword [edi + 0xc]
lea edi, [edi + 0x10]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [edi - 3]
mov ecx, dword [ecx*4 + reloc.USER32.dll_PeekMessageA]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + reloc.USER32.dll_PeekMessageA]
movzx eax, dl
mov edx, dword [edi]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + reloc.USER32.dll_PeekMessageA]
movzx eax, byte [edi - 2]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + reloc.USER32.dll_PeekMessageA]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi - 4], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + reloc.USER32.dll_PeekMessageA]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + reloc.USER32.dll_PeekMessageA]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + reloc.USER32.dll_PeekMessageA]
movzx eax, dl
mov edx, dword [edi + 4]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + reloc.USER32.dll_PeekMessageA]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + reloc.USER32.dll_PeekMessageA]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + reloc.USER32.dll_PeekMessageA]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + reloc.USER32.dll_PeekMessageA]
movzx eax, dl
mov edx, dword [edi + 8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + reloc.USER32.dll_PeekMessageA]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi + 4], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + reloc.USER32.dll_PeekMessageA]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + reloc.USER32.dll_PeekMessageA]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + reloc.USER32.dll_PeekMessageA]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + reloc.USER32.dll_PeekMessageA]
mov dword [edi + 8], ecx
sub ebx, 1
jne 0x40cf20
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret