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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa8
cmp dword [ecx + 0x20], 0
je 0x40a839
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xb], 0
test eax, eax
je 0x40a840
cmp al, 0x64
jb 0x40a84b
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*8]
shr edx, 0xc
imul ecx, edx, 0x64
sub al, cl
movzx eax, al
movzx eax, word [eax + eax + 0x43a318]
mov word [esp + 9], ax
mov ecx, 0xfffffffd
mov eax, edx
jmp 0x40a854
mov bl, 1
jmp 0x40ad50
lea ebx, [esp + 0xa]
mov byte [esp + 0xa], 0x30
jmp 0x40a87a
mov ecx, 0xffffffff
cmp al, 9
ja 0x40a869
lea edx, [esp + 0xc]
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea ebx, [edx + ecx]
dec ebx
mov byte [esp + ecx + 0xb], al
jmp 0x40a87a
movzx eax, word [eax + eax + 0x43a318]
lea ebx, [esp + 9]
mov word [esp + 9], ax
lea eax, [esi + 0x10]
push eax
call fcn.004076c0
add esp, 4
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
lea eax, [ecx + 0x400]
push eax
call fcn.004097d0
add esp, 4
mov edi, eax
mov dword [esp + 0x24], 0xafab9ea8
mov byte [esp + 0x28], 0x6c
mov dword [esp + 0x29], 0
mov byte [esp + 0x2d], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 9
ja 0x40a90e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
add eax, 0x3197e3c
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xd4
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xa
jb 0x40a8e0
lea eax, [esp + 0x24]
mov ecx, esi
push 0x441b88
mov ebp, eax
push eax
push edi
call fcn.0040a1d0
mov dword [esp + 0x24], 0x41aaacd4
mov byte [esp + 0x28], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x40a97a
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
add eax, 0x14411
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, eax
not ecx
and ecx, 0x55
and eax, 0xaa
sub eax, ecx
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x40a940
mov ecx, esi
push ebx
mov ebx, ebp
push ebp
push edi
call fcn.0040a1d0
mov eax, dword [str.WpM2Co__TRAX]
mov dword [esp], 0xc1aaac50
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0xc]
cmp ecx, 3
ja 0x40a9e3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
movzx edx, byte [esp + edx]
add ecx, 0x692b78d1
xor ecx, edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x24]
add cl, 0xeb
mov edx, dword [esp + 0xc]
mov byte [esp + edx], cl
inc dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
cmp ecx, 4
jb 0x40a9b0
mov edx, esp
mov ecx, esi
push eax
push edx
push edi
call fcn.0040a1d0
mov dword [esp + 0x24], 0xebfcecff
mov dword [esp + 0x28], 0xf4e7f0ef
mov dword [esp + 0x2c], 0xe2fde0f7
mov byte [esp + 0x30], 4
mov dword [esp + 0x31], 0
mov byte [esp + 0x35], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x11
ja 0x40aa5e
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
add eax, 0xfdd42742
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xb6
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x12
jb 0x40aa30
mov dword [esp + 0xc], 0x334e5251
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x40aab1
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0xc]
add eax, 0x35226734
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0xfc
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 8
jb 0x40aa80
lea ebp, [esp + 0xc]
mov ecx, esi
push ebx
push ebp
push edi
call fcn.0040a1d0
mov dword [esp + 0x24], 0xc6fef8c6
mov byte [esp + 0x28], 0x64
mov dword [esp + 0x29], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x40ab2b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
lea edx, [eax + ecx]
add edx, 0xbeb49298
add eax, 0xbeb49298
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x40aaf0
mov ecx, esi
push dword [esp + 0x20]
push dword [esp + 0x20]
push ebx
push edi
call fcn.0040a430
mov eax, dword [esi + 0x60]
mov dword [esp + 0x24], 0xb7258947
mov dword [esp + 0x28], 0xb32eb526
mov dword [esp + 0x2c], 0xbf2cb15d
mov dword [esp + 0x30], 0xbb6fbd20
mov dword [esp + 0x34], 0xa73fb944
mov dword [esp + 0x38], 0xa34fa534
mov dword [esp + 0x3c], 0xaf8ea166
mov dword [esp + 0x40], 0xab37ad39
mov dword [esp + 0x44], 0x57caa93c
mov dword [esp + 0x48], 0x53c255bd
mov dword [esp + 0x4c], 0x5fc051b1
mov dword [esp + 0x50], 0x5b895dc0
mov dword [esp + 0x54], 0x47d559b2
mov dword [esp + 0x58], 0x43d745da
mov dword [esp + 0x5c], 0x4fa24195
mov dword [esp + 0x60], 0x4bd64dad
mov dword [esp + 0x64], 0x77b149a9
mov dword [esp + 0x68], 0x739c7554
mov dword [esp + 0x6c], 0x7fe371e3
mov dword [esp + 0x70], 0x7b967dee
mov dword [esp + 0x74], 0x67f87999
mov dword [esp + 0x78], 0x63a765fd
mov dword [esp + 0x7c], 0x6f83618e
mov dword [esp + 0x80], 0x6bb76db4
mov dword [esp + 0x84], 0x17fb6984
mov dword [esp + 0x88], 0x13fb15c9
mov dword [esp + 0x8c], 0x1ff21180
mov dword [esp + 0x90], 0x1bf51d8f
mov dword [esp + 0x94], 0x7eb19f1
mov dword [esp + 0x98], 0x39c059a
mov dword [esp + 0x9c], 0xfdf01ed
mov dword [esp + 0xa0], 0xb3c0d39
mov dword [esp + 0xa4], 0x908
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x83
ja 0x40acb3
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x24]
add ecx, 0x69da9f5e
xor ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0x2a
mov edx, dword [esp]
mov byte [esp + edx + 0x24], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x84
jb 0x40ac80
mov dword [esp + 0xc], 0xf757f98b
mov dword [esp + 0x10], 0xf34bf544
mov dword [esp + 0x14], 0xf1f0
mov byte [esp + 0x18], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xc
ja 0x40ad23
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 + 0xc]
add ecx, 0x1281b2d6
xor ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp]
add cl, 0xd2
mov edx, dword [esp + 4]
mov byte [esp + edx + 0xc], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xd
jb 0x40acf0
push 0x493e0
push eax
push edi
push 0
push 0
push ebx
push ebp
call fcn.0040cb60
add esp, 0x1c
mov ebx, eax
push edi
call fcn.004097e0
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret