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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp byte [ecx + 4], 0
mov dword [ebp - 0x10], ecx
jne 0x40153a
push section..data
lea ecx, [ebp - 0x24]
call fcn.00403363
push 0x412ed0
lea eax, [ebp - 0x24]
push eax
call fcn.00403416
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 1]
push ebx
push esi
movzx esi, byte [eax + 5]
push edi
movzx edi, byte [eax]
shl edx, 0x10
shl edi, 0x18
or edi, edx
movzx edx, byte [eax + 2]
shl edx, 8
or edi, edx
movzx edx, byte [eax + 3]
movzx ebx, byte [eax + 8]
shl esi, 0x10
or edi, edx
movzx edx, byte [eax + 4]
shl edx, 0x18
or edx, esi
movzx esi, byte [eax + 6]
shl esi, 8
or edx, esi
movzx esi, byte [eax + 7]
xor edi, dword [ecx + 8]
or edx, esi
movzx esi, byte [eax + 9]
xor edx, dword [ecx + 0xc]
shl esi, 0x10
shl ebx, 0x18
or ebx, esi
movzx esi, byte [eax + 0xa]
shl esi, 8
or ebx, esi
movzx esi, byte [eax + 0xb]
or ebx, esi
xor ebx, dword [ecx + 0x10]
movzx ecx, byte [eax + 0xc]
movzx esi, byte [eax + 0xd]
shl esi, 0x10
shl ecx, 0x18
or ecx, esi
movzx esi, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl esi, 8
or esi, eax
or esi, ecx
mov ecx, dword [ebp - 0x10]
xor esi, dword [ecx + 0x14]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
mov esi, dword [ecx + 0x3d0]
mov dword [ebp - 0x18], esi
mov eax, 0xff
cmp esi, 1
jle 0x401705
add ecx, 0x30
dec esi
mov dword [ebp + 8], ecx
mov dword [ebp - 0xc], esi
mov ecx, dword [ebp - 4]
mov esi, ebx
sar ecx, 8
and ecx, eax
sar esi, 0x10
and esi, eax
mov dword [ebp - 0x14], esi
mov esi, dword [ecx*4 + 0x40e3e0]
mov ecx, dword [ebp - 0x14]
xor esi, dword [ecx*4 + 0x40dfe0]
mov ecx, edx
sar ecx, 0x18
and ecx, eax
xor esi, dword [ecx*4 + 0x40dbe0]
sar ebx, 0x18
and ebx, eax
mov ecx, edi
and ecx, eax
xor esi, dword [ecx*4 + 0x40e7e0]
mov ecx, dword [ebp + 8]
xor esi, dword [ecx - 4]
mov ecx, dword [ebp - 4]
sar ecx, 0x10
and ecx, eax
mov ecx, dword [ecx*4 + 0x40dfe0]
xor ecx, dword [ebx*4 + 0x40dbe0]
mov ebx, edi
sar ebx, 8
and ebx, eax
xor ecx, dword [ebx*4 + 0x40e3e0]
mov ebx, edx
and ebx, eax
xor ecx, dword [ebx*4 + 0x40e7e0]
mov ebx, dword [ebp + 8]
xor ecx, dword [ebx]
mov ebx, edx
sar ebx, 8
and ebx, eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 4]
sar ecx, 0x18
and ecx, eax
mov ecx, dword [ecx*4 + 0x40dbe0]
xor ecx, dword [ebx*4 + 0x40e3e0]
mov ebx, edi
sar ebx, 0x10
and ebx, eax
xor ecx, dword [ebx*4 + 0x40dfe0]
mov ebx, dword [ebp - 8]
and ebx, eax
xor ecx, dword [ebx*4 + 0x40e7e0]
mov ebx, dword [ebp + 8]
xor ecx, dword [ebx + 4]
mov ebx, dword [ebp - 8]
sar ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + 0x40e3e0]
sar edx, 0x10
and edx, eax
xor ebx, dword [edx*4 + 0x40dfe0]
mov edx, dword [ebp - 4]
sar edi, 0x18
and edi, eax
xor ebx, dword [edi*4 + 0x40dbe0]
and edx, eax
xor ebx, dword [edx*4 + 0x40e7e0]
mov edx, dword [ebp + 8]
xor ebx, dword [edx - 8]
add dword [ebp + 8], 0x20
dec dword [ebp - 0xc]
mov edi, ebx
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
jne 0x4015f1
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
shl esi, 5
lea esi, [esi + ecx + 8]
mov ecx, dword [esi]
mov ebx, ecx
mov dword [ebp + 8], ecx
sar ebx, 0x18
sar ecx, 0x10
mov dword [ebp - 0xc], esi
mov esi, edi
sar esi, 0x18
and esi, eax
xor bl, byte [esi + str.cw]
mov esi, dword [ebp + 0xc]
mov byte [esi], bl
mov ebx, edx
sar ebx, 0x10
and ebx, eax
xor cl, byte [ebx + str.cw]
mov ebx, dword [ebp + 8]
mov byte [esi + 1], cl
mov ecx, dword [ebp - 8]
sar ecx, 8
and ecx, eax
sar ebx, 8
xor bl, byte [ecx + str.cw]
mov ecx, dword [ebp - 4]
and ecx, eax
mov byte [esi + 2], bl
mov cl, byte [ecx + str.cw]
xor cl, byte [ebp + 8]
mov ebx, edx
mov byte [esi + 3], cl
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 4]
mov dword [ebp + 8], ecx
sar ecx, 0x18
sar ebx, 0x18
and ebx, eax
xor cl, byte [ebx + str.cw]
mov ebx, dword [ebp + 8]
mov byte [esi + 4], cl
mov ecx, dword [ebp - 8]
sar ecx, 0x10
and ecx, eax
sar ebx, 0x10
xor bl, byte [ecx + str.cw]
mov ecx, dword [ebp - 4]
mov byte [esi + 5], bl
mov ebx, dword [ebp + 8]
sar ecx, 8
and ecx, eax
sar ebx, 8
xor bl, byte [ecx + str.cw]
mov ecx, edi
and ecx, eax
mov byte [esi + 6], bl
mov cl, byte [ecx + str.cw]
xor cl, byte [ebp + 8]
mov ebx, dword [ebp - 8]
mov byte [esi + 7], cl
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 8]
mov dword [ebp + 8], ecx
sar ebx, 0x18
sar ecx, 0x18
and ebx, eax
xor cl, byte [ebx + str.cw]
mov ebx, dword [ebp + 8]
mov byte [esi + 8], cl
mov ecx, dword [ebp - 4]
sar ecx, 0x10
and ecx, eax
sar ebx, 0x10
xor bl, byte [ecx + str.cw]
mov ecx, edi
mov byte [esi + 9], bl
mov ebx, dword [ebp + 8]
sar ecx, 8
and ecx, eax
sar ebx, 8
xor bl, byte [ecx + str.cw]
mov byte [esi + 0xa], bl
mov ecx, edx
and ecx, eax
mov cl, byte [ecx + str.cw]
xor cl, byte [ebp + 8]
sar edi, 0x10
mov byte [esi + 0xb], cl
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + 0xc]
mov ecx, dword [ebp - 4]
sar ecx, 0x18
and ecx, eax
mov dword [ebp + 8], ebx
sar ebx, 0x18
xor bl, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
sar ecx, 0x10
mov byte [esi + 0xc], bl
and edi, eax
xor cl, byte [edi + str.cw]
sar edx, 8
mov byte [esi + 0xd], cl
mov ecx, dword [ebp + 8]
sar ecx, 8
and edx, eax
xor cl, byte [edx + str.cw]
pop edi
mov byte [esi + 0xe], cl
mov ecx, dword [ebp - 8]
and ecx, eax
mov al, byte [ecx + str.cw]
xor al, byte [ebp + 8]
mov byte [esi + 0xf], al
pop esi
pop ebx
leave
ret 8