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

Disassembly:
push ecx
mov edx, ecx
mov dword [esp], edx
test edx, edx
je 0x401428
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x401428
mov dword [ecx + 0xf0], 0xe
movzx eax, byte [edx + 1]
push ebx
push ebp
movzx ebp, byte [edx]
shl ebp, 8
xor ebp, eax
movzx eax, byte [edx + 2]
shl ebp, 8
xor ebp, eax
movzx eax, byte [edx + 3]
shl ebp, 8
xor ebp, eax
mov dword [ecx], ebp
movzx ebx, byte [edx + 4]
movzx eax, byte [edx + 5]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 6]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 7]
push esi
push edi
shl ebx, 8
xor ebx, eax
mov dword [ecx + 4], ebx
movzx edi, byte [edx + 8]
movzx eax, byte [edx + 9]
shl edi, 8
xor edi, eax
movzx eax, byte [edx + 0xa]
shl edi, 8
xor edi, eax
movzx eax, byte [edx + 0xb]
shl edi, 8
xor edi, eax
mov dword [ecx + 8], edi
movzx esi, byte [edx + 0xc]
movzx eax, byte [edx + 0xd]
shl esi, 8
xor esi, eax
movzx eax, byte [edx + 0xe]
shl esi, 8
xor esi, eax
movzx eax, byte [edx + 0xf]
shl esi, 8
xor esi, eax
mov dword [ecx + 0xc], esi
movzx ecx, byte [edx + 0x10]
movzx eax, byte [edx + 0x11]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 0x12]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 0x13]
shl ecx, 8
xor ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax + 0x10], ecx
movzx ecx, byte [edx + 0x14]
movzx eax, byte [edx + 0x15]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 0x16]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 0x17]
shl ecx, 8
xor ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax + 0x14], ecx
movzx ecx, byte [edx + 0x18]
movzx eax, byte [edx + 0x19]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 0x1a]
shl ecx, 8
xor ecx, eax
shl ecx, 8
movzx eax, byte [edx + 0x1b]
xor ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax + 0x18], ecx
movzx edx, byte [edx + 0x1c]
mov ecx, dword [esp + 0x10]
shl edx, 8
movzx eax, byte [ecx + 0x1d]
xor edx, eax
movzx eax, byte [ecx + 0x1e]
shl edx, 8
xor edx, eax
movzx eax, byte [ecx + 0x1f]
shl edx, 8
xor edx, eax
mov eax, dword [esp + 0x18]
mov dword [eax + 0x1c], edx
mov eax, 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, 0xff000000
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 [esp + 0x18]
xor ecx, ebp
mov dword [eax + 0x20], ecx
xor ecx, ebx
mov dword [eax + 0x24], ecx
xor ecx, edi
mov dword [eax + 0x28], ecx
mov edi, 0x4a0124
xor ecx, esi
lea esi, [eax + 0x30]
mov dword [eax + 0x2c], ecx
nop dword [eax + eax]
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, 0xff000000
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
xor ecx, eax
mov dword [esi + 4], eax
mov eax, dword [esi - 0x14]
xor eax, ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
call fcn.0041a040
mov ecx, dword [esi + 0xc]
lea esi, [esi + 0x20]
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, 0xff000000
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, 0x4a013c
jne 0x401330
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
or eax, 0xffffffff
pop ecx
ret