Function at 0x401000
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
test esi, esi
je 0x401294
mov edi, dword [ebp + 8]
test edi, edi
je 0x401294
mov dword [edi + 0xf0], 0xe
movzx ecx, byte [esi]
shl ecx, 8
movzx eax, byte [esi + 1]
xor ecx, eax
movzx eax, byte [esi + 2]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 3]
shl ecx, 8
xor ecx, eax
mov dword [edi], ecx
movzx ecx, byte [esi + 4]
shl ecx, 8
movzx eax, byte [esi + 5]
xor ecx, eax
movzx eax, byte [esi + 6]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
xor ecx, eax
mov dword [edi + 4], ecx
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 9]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 0xa]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 0xb]
shl ecx, 8
xor ecx, eax
mov dword [edi + 8], ecx
movzx ecx, byte [esi + 0xc]
movzx eax, byte [esi + 0xd]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 0xe]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 0xf]
shl ecx, 8
xor ecx, eax
mov dword [edi + 0xc], ecx
movzx ecx, byte [esi + 0x10]
movzx eax, byte [esi + 0x11]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 0x12]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 0x13]
shl ecx, 8
xor ecx, eax
mov dword [edi + 0x10], ecx
movzx ecx, byte [esi + 0x14]
movzx eax, byte [esi + 0x15]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 0x16]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 0x17]
shl ecx, 8
xor ecx, eax
mov dword [edi + 0x14], ecx
movzx ecx, byte [esi + 0x18]
movzx eax, byte [esi + 0x19]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 0x1a]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 0x1b]
shl ecx, 8
xor ecx, eax
mov dword [edi + 0x18], ecx
movzx edx, byte [esi + 0x1c]
push ebx
shl edx, 8
movzx eax, byte [esi + 0x1d]
mov ebx, 0xff000000
xor edx, eax
movzx eax, byte [esi + 0x1e]
shl edx, 8
xor edx, eax
movzx eax, byte [esi + 0x1f]
shl edx, 8
lea esi, [edi + 0x30]
xor edx, eax
mov eax, edx
mov dword [edi + 0x1c], edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
xor ecx, 0x1000000
movzx eax, al
and ecx, ebx
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff0000
xor ecx, eax
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, eax
movzx eax, dl
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff00
xor ecx, eax
mov eax, dword [edi + 4]
xor ecx, dword [edi]
xor eax, ecx
mov dword [edi + 0x20], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 0x24], eax
xor ecx, eax
mov eax, dword [edi + 0xc]
xor eax, ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], eax
mov edi, 0x654e44
mov ecx, dword [esi - 4]
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov edx, dword [eax*4 + str.ccccwwww]
mov eax, ecx
shr eax, 8
and edx, 0xff0000
movzx eax, al
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff00
xor edx, eax
mov eax, ecx
shr eax, 0x18
mov eax, dword [eax*4 + str.ccccwwww]
and eax, ebx
xor edx, eax
movzx eax, cl
mov ecx, dword [esi - 0x18]
movzx eax, byte [eax*4 + str.ccccwwww]
xor edx, eax
mov eax, dword [esi - 0x1c]
xor edx, dword [esi - 0x20]
xor eax, edx
mov dword [esi], edx
mov dword [esi + 4], eax
lea esi, [esi + 0x20]
xor ecx, eax
mov eax, dword [esi - 0x34]
xor eax, ecx
mov dword [esi - 0x18], ecx
mov dword [esi - 0x14], eax
mov ecx, dword [esi - 0x14]
mov eax, ecx
shr eax, 8
movzx eax, al
mov edx, dword [eax*4 + str.ccccwwww]
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
movzx eax, al
mov eax, dword [eax*4 + str.ccccwwww]
and eax, ebx
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor edx, eax
movzx eax, cl
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff00
xor edx, eax
xor edx, dword [esi - 0x30]
xor edx, dword [edi]
add edi, 4
mov dword [esi - 0x10], edx
mov eax, dword [esi - 0x2c]
xor eax, edx
mov dword [esi - 0xc], eax
mov ecx, dword [esi - 0x28]
xor ecx, eax
mov dword [esi - 8], ecx
mov eax, dword [esi - 0x24]
xor eax, ecx
mov dword [esi - 4], eax
cmp edi, 0x654e5c
jne 0x4011aa
xor eax, eax
pop ebx
jmp 0x401297
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret