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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xd0
cmp dword [ecx + 0x20], 0
je 0x40aae9
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xb], 0
test eax, eax
je 0x40aaf0
cmp al, 0x64
jb 0x40aafb
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 0x40ab04
mov bl, 1
jmp 0x40b000
lea ebx, [esp + 0xa]
mov byte [esp + 0xa], 0x30
jmp 0x40ab2a
mov ecx, 0xffffffff
cmp al, 9
ja 0x40ab19
lea edx, [esp + 0xc]
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea ebx, [edx + ecx]
dec ebx
mov byte [esp + ecx + 0xb], al
jmp 0x40ab2a
movzx eax, word [eax + eax + 0x43b318]
lea ebx, [esp + 9]
mov word [esp + 9], ax
lea eax, [esi + 0x10]
push eax
call fcn.00407370
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x1c], eax
lea ebp, [esp + 0xaf]
push ebp
call fcn.00430be0
add esp, 4
mov dword [esp + 0x20], edi
lea eax, [edi + 0x400]
push eax
call fcn.00409510
add esp, 4
mov edi, eax
mov dword [esp + 0x24], 0xbfbba8be
mov byte [esp + 0x28], 0x22
mov word [esp + 0x29], 0
mov byte [esp + 0x2b], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x40abbe
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
add eax, 0xb3e804db
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 3
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x40ab90
lea eax, [esp + 0x24]
mov ecx, esi
push ebp
mov ebp, eax
push eax
push edi
call fcn.0040a3a0
mov dword [esp + 0x24], 0x33d6c8c0
mov dword [esp + 0x28], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x40ac1e
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
add eax, 0xc08a1578
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xb8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x40abf0
mov ecx, esi
push ebx
push ebp
push edi
call fcn.0040a3a0
mov eax, dword [str.WpM2Co__TRAX]
mov dword [esp + 0x24], 0x83687272
mov word [esp + 0x28], 0
mov byte [esp + 0x2a], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 6
ja 0x40ac80
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x24]
add ecx, 0x102f2541
xor ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0x39
mov edx, dword [esp]
mov byte [esp + edx + 0x24], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 7
jb 0x40ac50
mov ecx, esi
push eax
push ebp
push edi
call fcn.0040a3a0
mov dword [esp + 0x24], 0x9f869e93
mov dword [esp + 0x28], 0x8a9b829b
mov dword [esp + 0x2c], 0x9489928b
mov byte [esp + 0x30], 0x72
mov dword [esp + 0x31], 0
mov word [esp + 0x35], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x12
ja 0x40acfe
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, 0x488e70af
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x37
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x13
jb 0x40acd0
mov dword [esp + 0xc], 0xbb6a2ad
mov word [esp + 0x10], 0
mov byte [esp + 0x12], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x40ad61
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, 0x49b6882a
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0xda
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 7
jb 0x40ad30
lea ebx, [esp + 0xc]
mov ecx, esi
push ebp
push ebx
push edi
call fcn.0040a3a0
mov dword [esp + 0x24], 0x464e4046
mov byte [esp + 0x28], 0xd4
mov dword [esp + 0x29], 0
mov dword [esp + 0x2c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x40adce
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
add eax, 0xb0a8bd64
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x44
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x40ada0
mov ecx, esi
push dword [esp + 0x20]
push dword [esp + 0x20]
push ebp
push edi
call fcn.0040a600
mov eax, dword [esi + 0x60]
mov dword [esp + 0x24], 0x33a5358b
mov dword [esp + 0x28], 0x2fbc31a0
mov dword [esp + 0x2c], 0x2bbe2db5
mov dword [esp + 0x30], 0x277b29a6
mov dword [esp + 0x34], 0x23a3258a
mov dword [esp + 0x38], 0x1fbb21b2
mov dword [esp + 0x3c], 0x1b7c1d58
mov dword [esp + 0x40], 0x17931989
mov dword [esp + 0x44], 0x13981582
mov dword [esp + 0x48], 0xf801185
mov dword [esp + 0x4c], 0xb820d91
mov dword [esp + 0x50], 0x7590986
mov dword [esp + 0x54], 0x395059c
mov dword [esp + 0x58], 0x7f93018c
mov dword [esp + 0x5c], 0x7be07d2d
mov dword [esp + 0x60], 0x77f479e5
mov dword [esp + 0x64], 0x733175e9
mov dword [esp + 0x68], 0x6fee7112
mov dword [esp + 0x6c], 0x6be76dff
mov dword [esp + 0x70], 0x67f469f8
mov dword [esp + 0x74], 0x63ea65f9
mov dword [esp + 0x78], 0x5f2361e5
mov dword [esp + 0x7c], 0x5bc75dc0
mov dword [esp + 0x80], 0x57135912
mov dword [esp + 0x84], 0x53cf55ca
mov dword [esp + 0x88], 0x4fc75119
mov dword [esp + 0x8c], 0x4bd04dde
mov dword [esp + 0x90], 0x47d549db
mov dword [esp + 0x94], 0x43df45d1
mov dword [esp + 0x98], 0xbfce41cc
mov dword [esp + 0x9c], 0xbbf3bd25
mov dword [esp + 0xa0], 0xb7ceb9c9
mov word [esp + 0xa4], 0xb5b6
mov dword [esp + 0xa6], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x85
ja 0x40af63
nop
nop
nop
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, 0x4d480709
xor ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0xc1
mov edx, dword [esp]
mov byte [esp + edx + 0x24], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x86
jb 0x40af30
mov dword [esp + 0xc], 0x5bbb598f
mov dword [esp + 0x10], 0x47af45d4
mov word [esp + 0x14], 0x4140
mov dword [esp + 0x16], 0
mov word [esp + 0x1a], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xf
ja 0x40afd3
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0xc]
add ecx, 0x37d54b8c
xor ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp]
add cl, 0x2c
mov edx, dword [esp + 4]
mov byte [esp + edx + 0xc], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x10
jb 0x40afa0
push 0x493e0
push eax
push edi
push 0
push 0
push ebp
push ebx
call fcn.0040cbd0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00409520
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
add esp, 0xd0
pop esi
pop edi
pop ebx
pop ebp
ret