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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa4
cmp dword [ecx + 0x20], 0
je 0x40a7b9
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xb], 0
test eax, eax
je 0x40a7c0
cmp al, 0x64
jb 0x40a7cb
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 + 0x43b318]
mov word [esp + 9], ax
mov ecx, 0xfffffffd
mov eax, edx
jmp 0x40a7d4
mov bl, 1
jmp 0x40acd0
lea ebp, [esp + 0xa]
mov byte [esp + 0xa], 0x30
jmp 0x40a810
mov ecx, 0xffffffff
cmp al, 9
ja 0x40a7e9
lea edx, [esp + 0xc]
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea ebp, [edx + ecx]
dec ebp
mov byte [esp + ecx + 0xb], al
jmp 0x40a810
mov ecx, eax
and ecx, 2
mov edx, eax
or eax, 2
imul eax, ecx
xor ecx, 2
and edx, 0x7d
imul edx, ecx
movzx eax, word [edx + eax + 0x43b318]
lea ebp, [esp + 9]
mov word [esp + 9], ax
lea eax, [esi + 0x10]
push eax
call fcn.00407620
add esp, 4
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
lea eax, [ecx + 0x400]
push eax
call fcn.004097d0
add esp, 4
mov edi, eax
mov dword [esp + 0x20], 0xdbdf12e0
mov byte [esp + 0x24], 0xb4
mov dword [esp + 0x25], 0
mov byte [esp + 0x29], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 9
ja 0x40a89e
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
add eax, 0xaa9fd81e
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x6a
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xa
jb 0x40a870
lea eax, [esp + 0x20]
mov ecx, esi
push 0x442be4
mov ebx, eax
push eax
push edi
call fcn.0040a130
mov dword [esp + 0x20], 0x3f9a90a8
mov word [esp + 0x24], 0
mov byte [esp + 0x26], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x40a90e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
add eax, 0xd61e674a
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x8e
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x40a8e0
mov ecx, esi
push ebp
push ebx
push edi
call fcn.0040a130
mov eax, dword [str.WpM2Co__TRAX]
mov dword [esp + 0x20], 0xf6a7074
mov byte [esp + 0x24], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 4
ja 0x40a970
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x20]
add ecx, 0x196f4782
xor ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0x76
mov edx, dword [esp]
mov byte [esp + edx + 0x20], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 5
jb 0x40a940
mov ecx, esi
push eax
push ebx
push edi
call fcn.0040a130
mov dword [esp + 0x20], 0x35003809
mov dword [esp + 0x24], 0x350c31
mov dword [esp + 0x28], 0x2e0f3401
mov byte [esp + 0x2c], 0x88
mov word [esp + 0x2d], 0
mov byte [esp + 0x2f], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x40a9ee
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 + 0x20]
add eax, 0x32f0f1a5
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xc7
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x40a9c0
mov dword [esp + 0xc], 0x33be9291
mov word [esp + 0x10], 0
mov byte [esp + 0x12], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x40aa51
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 + 0xc]
add eax, 0x19c68d4c
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0x84
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 7
jb 0x40aa20
lea ebp, [esp + 0xc]
mov ecx, esi
push ebx
push ebp
push edi
call fcn.0040a130
mov dword [esp + 0x20], 0xb6a2a4aa
mov byte [esp + 0x24], 0xd0
mov dword [esp + 0x25], 0
mov byte [esp + 0x29], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 9
ja 0x40aabe
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
add eax, 0xfe43f04d
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x7f
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xa
jb 0x40aa90
mov ecx, esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
push edi
call fcn.0040a3b0
mov eax, dword [esi + 0x60]
mov dword [esp + 0x20], 0x73e57133
mov dword [esp + 0x24], 0x6fe26dfa
mov dword [esp + 0x28], 0x6bfc69f5
mov dword [esp + 0x2c], 0x673365e8
mov dword [esp + 0x30], 0x63eb610c
mov dword [esp + 0x34], 0x9f039d0c
mov dword [esp + 0x38], 0x9bba99d2
mov dword [esp + 0x3c], 0x971b9501
mov dword [esp + 0x40], 0x931e9104
mov dword [esp + 0x44], 0x8f1e8d15
mov dword [esp + 0x48], 0x8b1889e9
mov dword [esp + 0x4c], 0x87d18508
mov dword [esp + 0x50], 0x8315811e
mov dword [esp + 0x54], 0xbf2bbd2e
mov dword [esp + 0x58], 0xbb26b9ed
mov dword [esp + 0x5c], 0xb73ab5d5
mov dword [esp + 0x60], 0xb3f9b1d1
mov dword [esp + 0x64], 0xafccad8c
mov dword [esp + 0x68], 0xab27a93f
mov dword [esp + 0x6c], 0xa73aa532
mov dword [esp + 0x70], 0xa330a1c1
mov dword [esp + 0x74], 0xdf9bdd55
mov dword [esp + 0x78], 0xdb47d9ba
mov dword [esp + 0x7c], 0xd79bd59c
mov dword [esp + 0x80], 0xd34fd14c
mov dword [esp + 0x84], 0xcf57cd81
mov dword [esp + 0x88], 0xcb56c958
mov dword [esp + 0x8c], 0xc7a5c553
mov dword [esp + 0x90], 0xc35fc159
mov dword [esp + 0x94], 0xff6cfd6e
mov dword [esp + 0x98], 0xfbabf965
mov dword [esp + 0x9c], 0xf7ccf5c1
mov dword [esp + 0xa0], 0xf1f0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x83
ja 0x40ac43
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x20]
add ecx, 0xef089c6c
xor ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0xe4
mov edx, dword [esp]
mov byte [esp + edx + 0x20], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x84
jb 0x40ac10
mov dword [esp + 0xc], 0x3f9f396b
mov dword [esp + 0x10], 0x238b3dac
mov dword [esp + 0x14], 0x2120
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xb
ja 0x40aca3
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0xc]
add ecx, 0xd09e740a
xor ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp]
add cl, 0xce
mov edx, dword [esp + 4]
mov byte [esp + edx + 0xc], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xc
jb 0x40ac70
push 0x493e0
push eax
push edi
push 0
push 0
push ebx
push ebp
call fcn.0040caa0
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, 0xa4
pop esi
pop edi
pop ebx
pop ebp
ret