Function at 0x40a460
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 0x40a4c4
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x40a4cb
cmp al, 0x64
jb 0x40a4da
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
shr ecx, 0xc
imul edx, ecx, 0x64
sub al, dl
movzx eax, al
mov edx, eax
and edx, 2
mov edi, eax
or eax, 2
imul eax, edx
xor edx, 2
and edi, 0x7d
imul edi, edx
movzx eax, word [edi + eax + 0x439520]
mov word [esp + 0xd], ax
mov edx, 0xfffffffd
mov eax, ecx
jmp 0x40a4e3
mov bl, 1
jmp 0x40aae5
lea eax, [esp + 0xe]
mov dword [esp + 0x2c], eax
mov byte [esp + 0xe], 0x30
jmp 0x40a510
mov edx, 0xffffffff
cmp al, 9
ja 0x40a4fb
lea ecx, [esp + 0x10]
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
add ecx, edx
dec ecx
mov dword [esp + 0x2c], ecx
mov byte [esp + edx + 0xf], al
jmp 0x40a510
movzx eax, word [eax + eax + 0x439520]
lea ecx, [esp + 0xd]
mov dword [esp + 0x2c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406fc0
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xc0], eax
lea ebx, [esp + 0xcb]
push ebx
call fcn.0042e910
add esp, 4
mov dword [esp + 0xc4], edi
lea eax, [edi + 0x400]
push eax
call fcn.00409030
add esp, 4
mov edi, eax
mov dword [esp + 0x30], 0x37332630
mov byte [esp + 0x34], 0xe4
mov word [esp + 0x35], 0
mov byte [esp + 0x37], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x40a5be
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
mov edx, 0x43
sub edx, eax
add eax, 0x859be9bc
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xdc
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 8
jb 0x40a580
lea eax, [esp + 0x30]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.00409da0
mov dword [esp + 0x30], 0xb3080206
mov dword [esp + 0x34], 0
mov dword [esp + 0x37], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x40a63e
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
mov edx, 0xe6
sub edx, eax
add eax, 0x82855019
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x51
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x40a600
mov ecx, esi
push dword [esp + 0x2c]
push ebx
push edi
call fcn.00409da0
mov eax, dword [str.WpM2Co__PRIVEIT]
mov dword [esp + 0x30], 0x433c3a32
mov dword [esp + 0x34], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 7
ja 0x40a6c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
mov ebx, 0xb4
sub ebx, ecx
add ecx, 0xe026fd4b
xor ebx, ecx
and ebx, edx
xor ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0xf3
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 8
jb 0x40a680
mov ecx, esi
push eax
lea ebx, [esp + 0x34]
push ebx
push edi
call fcn.00409da0
mov dword [esp + 0x30], 0xc7ccc4f3
mov dword [esp + 0x34], 0xf4c3c8db
mov dword [esp + 0x38], 0xcecdc8fb
mov byte [esp + 0x3c], 0x6c
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, 0x17
ja 0x40a75e
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 + 0x30]
mov edx, 0x2f
sub edx, eax
add eax, 0xb01ab3d0
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x50
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x18
jb 0x40a720
mov dword [esp + 0x10], 0xab36c2cd
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov word [esp + 0x1c], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0xd
ja 0x40a7ce
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, 0x45
sub edx, eax
add eax, 0xabfaf8ba
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0xea
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0xe
jb 0x40a790
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.00409da0
mov dword [esp + 0x30], 0xf6fef4f6
mov byte [esp + 0x34], 0x68
mov dword [esp + 0x35], 0
mov dword [esp + 0x39], 0
mov byte [esp + 0x3d], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xd
ja 0x40a84e
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
mov edx, 0xcd
sub edx, eax
add eax, 0x29d87a32
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xa2
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xe
jb 0x40a810
mov ecx, esi
push dword [esp + 0xc4]
push dword [esp + 0xc4]
push ebx
push edi
call fcn.0040a040
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], 0xeb25d513
mov dword [esp + 0x34], 0xef1ce918
mov dword [esp + 0x38], 0xe31eed15
mov dword [esp + 0x3c], 0xe7d3e116
mov dword [esp + 0x40], 0xfb6be532
mov dword [esp + 0x44], 0xff03f90a
mov dword [esp + 0x48], 0xf3dcfd30
mov dword [esp + 0x4c], 0xf77bf101
mov dword [esp + 0x50], 0x8b00f50a
mov dword [esp + 0x54], 0x8f788975
mov dword [esp + 0x58], 0x837a8d69
mov dword [esp + 0x5c], 0x87b18176
mov dword [esp + 0x60], 0x9b75857c
mov dword [esp + 0x64], 0x9f6b996c
mov dword [esp + 0x68], 0x93789dad
mov dword [esp + 0x6c], 0x97649175
mov dword [esp + 0x70], 0xab599571
mov dword [esp + 0x74], 0xaf4ea98a
mov dword [esp + 0x78], 0xa327ad5f
mov dword [esp + 0x7c], 0xa744a150
mov dword [esp + 0x80], 0xbb52a541
mov dword [esp + 0x84], 0xbf7bb935
mov dword [esp + 0x88], 0xb347bd58
mov dword [esp + 0x8c], 0xb77bb17a
mov dword [esp + 0x90], 0x4b4fb552
mov dword [esp + 0x94], 0x4fb74981
mov dword [esp + 0x98], 0x43a84dbe
mov dword [esp + 0x9c], 0x47a541b3
mov dword [esp + 0xa0], 0x5bbf45b9
mov dword [esp + 0xa4], 0x5fae59ac
mov dword [esp + 0xa8], 0x536b5da5
mov dword [esp + 0xac], 0x574e5141
mov word [esp + 0xb0], 0x5556
mov word [esp + 0xbe], 0
mov dword [esp + 0xba], 0
mov dword [esp + 0xb6], 0
mov dword [esp + 0xb2], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x8f
ja 0x40aa23
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
mov ebx, 0x62
sub ebx, ecx
add ecx, 0xc08c849d
xor ebx, ecx
and ebx, edx
xor ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0xb5
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x90
jb 0x40a9e0
mov dword [esp + 0x10], 0xb313b1cf
mov dword [esp + 0x14], 0xb70fb504
mov word [esp + 0x18], 0x8988
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x22], 0
mov word [esp + 0x26], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x17
ja 0x40aab0
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx + 0x10]
mov ebx, 0x67
sub ebx, ecx
add ecx, 0x8069c498
xor ebx, ecx
and ebx, edx
xor ebx, ecx
mov dword [esp + 4], ebx
mov ecx, dword [esp + 4]
add cl, 0xd8
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x18
jb 0x40aa70
push 0x493e0
push eax
push edi
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040c7f0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00409040
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