Function at 0x40a0c0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf0
cmp dword [ecx + 0x20], 0
je 0x40a114
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x40a11b
cmp al, 0x64
jb 0x40a12a
movzx ecx, al
lea edx, [ecx + ecx*4]
lea ecx, [ecx + edx*8]
movzx edx, cx
shr edx, 0xc
imul ecx, edx, 0x64
sub al, cl
movzx eax, al
movzx eax, word [eax + eax + 0x439528]
mov word [esp + 0xd], ax
mov ecx, 1
mov eax, edx
jmp 0x40a133
mov bl, 1
jmp 0x40a767
lea eax, [esp + 0xe]
mov dword [esp + 0x2c], eax
mov byte [esp + 0xe], 0x30
jmp 0x40a162
mov ecx, 3
cmp al, 9
ja 0x40a14d
movzx eax, al
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea edx, [esp + ecx]
add edx, 0xb
mov dword [esp + 0x2c], edx
mov byte [esp + ecx + 0xb], al
jmp 0x40a162
movzx eax, word [eax + eax + 0x439528]
lea ecx, [esp + 0xd]
mov dword [esp + 0x2c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406de0
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x30], eax
lea ebx, [esp + 0xcb]
push ebx
call fcn.004307d0
add esp, 4
mov dword [esp + 0x34], edi
lea eax, [edi + 0x400]
push eax
call fcn.00408f60
add esp, 4
mov edi, eax
mov dword [esp + 0x38], 0x4fab9cae
mov byte [esp + 0x3c], 0xea
mov dword [esp + 0x3d], 0
mov dword [esp + 0x41], 0
mov dword [esp + 0x44], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x40a21b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x38]
lea edx, [eax - 0x16f95083]
add eax, 0x7d
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x95
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x40a1e0
lea eax, [esp + 0x38]
mov ecx, esi
push ebx
push eax
push edi
call fcn.004099d0
mov dword [esp + 0x38], 0x23bcbab6
mov dword [esp + 0x3c], 0
mov dword [esp + 0x3f], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x40a2a9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x38]
lea edx, [eax + 0x6e073d7b]
add eax, 0x7b
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov ecx, eax
xor ecx, 0xa2
and eax, 0x22
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x40a260
mov ecx, esi
push dword [esp + 0x2c]
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.004099d0
mov eax, dword [str.P6Mk0M__world]
mov dword [esp + 0x38], 0x6388f2f2
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x43], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xe
ja 0x40a332
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x38]
lea ebx, [ecx + edx]
add ebx, 0xd2ac6e31
add ecx, 0xd2ac6e31
and ecx, edx
add ecx, ecx
sub ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0xa9
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x38], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xf
jb 0x40a2f0
mov ecx, esi
push eax
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.004099d0
mov dword [esp + 0x38], 0x878c84f3
mov dword [esp + 0x3c], 0xf483889b
mov dword [esp + 0x40], 0x8e8d88fb
mov byte [esp + 0x44], 0x6c
mov dword [esp + 0x45], 0
mov byte [esp + 0x49], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x11
ja 0x40a3be
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x38]
mov edx, eax
and edx, 0xf2602530
xor eax, 0xf2602530
lea eax, [eax + edx*2]
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xb0
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x12
jb 0x40a380
mov dword [esp + 0x10], 0x5bd6faf9
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0xf
ja 0x40a42f
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0xb4]
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add eax, 0xb9cf9b4
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x14
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x10
jb 0x40a3f0
lea edx, [esp + 0x10]
mov ecx, esi
lea eax, [esp + 0x38]
push eax
push edx
push edi
call fcn.004099d0
mov dword [esp + 0x38], 0x2820222c
mov byte [esp + 0x3c], 0xb2
mov dword [esp + 0x3d], 0
mov word [esp + 0x41], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x40a4c0
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx edx, byte [esp + ecx + 0x38]
lea ebx, [eax - 0x22bc97b7]
lea ecx, [eax + edx]
add ecx, 0xdd436849
and ebx, edx
add eax, 0x49
and eax, edx
add eax, ebx
mov edx, ecx
not edx
and edx, eax
not eax
and eax, ecx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x40a470
mov ecx, esi
push dword [esp + 0x34]
push dword [esp + 0x34]
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x40], edi
push edi
call fcn.00409c80
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0xb305b5eb
mov dword [esp + 0x3c], 0x8f3cb100
mov dword [esp + 0x40], 0x8b3e8d35
mov dword [esp + 0x44], 0x87fb8906
mov dword [esp + 0x48], 0x8303852a
mov dword [esp + 0x4c], 0x9f3b8132
mov dword [esp + 0x50], 0x9bfc9dd8
mov dword [esp + 0x54], 0x97139929
mov dword [esp + 0x58], 0x93189522
mov dword [esp + 0x5c], 0xef209125
mov dword [esp + 0x60], 0xeb62ed51
mov dword [esp + 0x64], 0xe799e966
mov dword [esp + 0x68], 0xe355e55c
mov dword [esp + 0x6c], 0xff53e16c
mov dword [esp + 0x70], 0xfb40fd8d
mov dword [esp + 0x74], 0xf774f945
mov dword [esp + 0x78], 0xf3b1f549
mov dword [esp + 0x7c], 0xcf4ef192
mov dword [esp + 0x80], 0xcb47cd7f
mov dword [esp + 0x84], 0xc774c978
mov dword [esp + 0x88], 0xc34ac579
mov dword [esp + 0x8c], 0xdf83c145
mov dword [esp + 0x90], 0xdb67dd60
mov dword [esp + 0x94], 0xd793d992
mov dword [esp + 0x98], 0xd36fd56a
mov dword [esp + 0x9c], 0x2f67d199
mov dword [esp + 0xa0], 0x2b902d9e
mov dword [esp + 0xa4], 0x2795299b
mov dword [esp + 0xa8], 0x239f2591
mov dword [esp + 0xac], 0x3fae21ac
mov dword [esp + 0xb0], 0x3b733d85
mov dword [esp + 0xb4], 0x372e3929
mov word [esp + 0xb8], 0x3536
mov dword [esp + 0xc2], 0
mov dword [esp + 0xbe], 0
mov dword [esp + 0xba], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x8d
ja 0x40a6b0
nop
nop
nop
nop
nop
nop
nop
mov ebx, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx eax, byte [esp + ecx + 0x38]
lea ecx, [ebx + 0x99]
mov edx, 0x66
sub edx, ebx
sub edx, eax
lea edi, [ebx + eax]
add edi, 0x53958b99
and ecx, eax
add ecx, ecx
and edx, ecx
not ecx
and ecx, edi
sub ecx, edx
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov ecx, eax
xor ecx, 0xd0
and eax, 0x50
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x8e
jb 0x40a650
mov dword [esp + 0x10], 0x8b6b8dbf
mov dword [esp + 0x14], 0x877f8978
mov word [esp + 0x18], 0x8584
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov word [esp + 0x22], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x13
ja 0x40a72b
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax - 0x73d375be]
add eax, 0x42
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x32
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x14
jb 0x40a6f0
push 0x493e0
push dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
push edi
push 0
push 0
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040ddc0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408f70
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret