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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xcc
cmp dword [ecx + 0x20], 0
je 0x40a94f
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0x17], 0
test eax, eax
je 0x40a956
cmp al, 0x64
jb 0x40a961
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, 0x7d
mov edi, eax
and edi, 2
or eax, 2
imul eax, edi
xor edi, 2
imul edi, edx
movzx eax, word [edi + eax + 0x439318]
mov word [esp + 0x15], ax
mov edx, 0xfffffffd
mov eax, ecx
jmp 0x40a96a
mov bl, 1
jmp 0x40ae50
lea ebx, [esp + 0x16]
mov byte [esp + 0x16], 0x30
jmp 0x40a990
mov edx, 0xffffffff
cmp al, 9
ja 0x40a97f
lea ecx, [esp + 0x18]
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea ebx, [ecx + edx]
dec ebx
mov byte [esp + edx + 0x17], al
jmp 0x40a990
movzx eax, word [eax + eax + 0x439318]
lea ebx, [esp + 0x15]
mov word [esp + 0x15], ax
lea eax, [esi + 0x10]
push eax
call fcn.004075b0
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x18], eax
lea ebp, [esp + 0xab]
push ebp
call fcn.0042f2e0
add esp, 4
mov dword [esp + 0x1c], edi
lea eax, [edi + 0x400]
push eax
call fcn.00409600
add esp, 4
mov edi, eax
mov dword [esp + 0x20], 0x77738674
mov byte [esp + 0x24], 8
mov dword [esp + 0x25], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x40aa2e
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, 0xe4d07e82
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x72
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x40aa00
lea eax, [esp + 0x20]
mov ecx, esi
push ebp
mov ebp, eax
push eax
push edi
call fcn.0040a2e0
mov dword [esp + 0x20], 0x3b9c92a6
mov byte [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x40aa8e
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
add eax, 0x2c374a07
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xcf
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x40aa60
mov ecx, esi
push ebx
push ebp
push edi
call fcn.0040a2e0
mov eax, dword [str.bcmcEw__ScWork]
mov dword [esp], 0x63c8f2f2
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 3
ja 0x40aaf3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx]
add ecx, 0xac5b3511
xor ecx, edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x20]
add cl, 0x89
mov edx, dword [esp + 8]
mov byte [esp + edx], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 4
jb 0x40aac0
mov edx, esp
mov ecx, esi
push eax
push edx
push edi
call fcn.0040a2e0
mov dword [esp + 0x20], 0x8f968e93
mov dword [esp + 0x24], 0x9a839a8b
mov dword [esp + 0x28], 0x98858a9b
mov byte [esp + 0x2c], 0x32
mov dword [esp + 0x2d], 0
mov word [esp + 0x31], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x12
ja 0x40ab6e
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
add eax, 0x9d5feb05
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xdd
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x13
jb 0x40ab40
mov dword [esp + 8], 0x73868a8d
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x40abc1
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
add eax, 0x9861662e
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0xbe
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 8
jb 0x40ab90
lea ebx, [esp + 8]
mov ecx, esi
push ebp
push ebx
push edi
call fcn.0040a2e0
mov dword [esp + 0x20], 0xb68eb0b6
mov byte [esp + 0x24], 4
mov word [esp + 0x25], 0
mov byte [esp + 0x27], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x40ac2e
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, 0x212b24ac
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x4c
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x40ac00
mov ecx, esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebp
push edi
call fcn.0040a550
mov eax, dword [esi + 0x60]
mov dword [esp + 0x20], 0x6bf96d13
mov dword [esp + 0x24], 0x67ea69fa
mov dword [esp + 0x28], 0x63f065f9
mov dword [esp + 0x2c], 0x9fcb61ec
mov dword [esp + 0x30], 0x9b139df0
mov dword [esp + 0x34], 0x970b9908
mov dword [esp + 0x38], 0x93b295d2
mov dword [esp + 0x3c], 0x8f039105
mov dword [esp + 0x40], 0x8b068d18
mov dword [esp + 0x44], 0x87168911
mov dword [esp + 0x48], 0x830c85e5
mov dword [esp + 0x4c], 0xbfed810c
mov dword [esp + 0x50], 0xbb29bd26
mov dword [esp + 0x54], 0xb723b936
mov dword [esp + 0x58], 0xb32eb5e1
mov dword [esp + 0x5c], 0xaf22b1d1
mov dword [esp + 0x60], 0xabedadcd
mov dword [esp + 0x64], 0xa738a988
mov dword [esp + 0x68], 0xa32fa537
mov dword [esp + 0x6c], 0xdf42a132
mov dword [esp + 0x70], 0xdb54ddbd
mov dword [esp + 0x74], 0xd793d951
mov dword [esp + 0x78], 0xd34fd54a
mov dword [esp + 0x7c], 0xcf83d198
mov dword [esp + 0x80], 0xcb57cd50
mov dword [esp + 0x84], 0xc75fc985
mov dword [esp + 0x88], 0xc35ec554
mov dword [esp + 0x8c], 0xff61c153
mov dword [esp + 0x90], 0xfb67fd65
mov dword [esp + 0x94], 0xf778f976
mov dword [esp + 0x98], 0xf3a3f569
mov dword [esp + 0x9c], 0xefd8f1c5
mov word [esp + 0xa0], 0xedec
mov byte [esp + 0xa4], 0
mov word [esp + 0xa2], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x84
ja 0x40adc3
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x20]
add ecx, 0xc822c0f2
xor ecx, edx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
add cl, 0x62
mov edx, dword [esp]
mov byte [esp + edx + 0x20], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x85
jb 0x40ad90
mov dword [esp + 8], 0x33ab3567
mov dword [esp + 0xc], 0x2fa731a2
mov dword [esp + 0x10], 0x2d2e
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xb
ja 0x40ae23
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 8]
add ecx, 0x3bf0e689
xor ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp]
add cl, 0x41
mov edx, dword [esp + 4]
mov byte [esp + edx + 8], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xc
jb 0x40adf0
push 0x493e0
push eax
push edi
push 0
push 0
push ebp
push ebx
call fcn.0040ca90
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00409610
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
add esp, 0xcc
pop esi
pop edi
pop ebx
pop ebp
ret