Function at 0x40a160
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 0x40a1c7
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x40a1ce
cmp al, 0x64
jb 0x40a1dd
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
movzx ecx, cx
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 + 0x43e528]
mov word [esp + 0xd], ax
mov edx, 1
mov eax, ecx
jmp 0x40a1e6
mov bl, 1
jmp 0x40a81c
lea eax, [esp + 0xe]
mov dword [esp + 0x2c], eax
mov byte [esp + 0xe], 0x30
jmp 0x40a212
mov edx, 3
cmp al, 9
ja 0x40a1fd
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea ecx, [esp + edx]
add ecx, 0xb
mov dword [esp + 0x2c], ecx
mov byte [esp + edx + 0xb], al
jmp 0x40a212
movzx eax, word [eax + eax + 0x43e528]
lea ecx, [esp + 0xd]
mov dword [esp + 0x2c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406dc0
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x30], eax
lea ebx, [esp + 0xcb]
push ebx
call fcn.00433a20
add esp, 4
mov dword [esp + 0x34], edi
lea eax, [edi + 0x400]
push eax
call fcn.00408f00
add esp, 4
mov edi, eax
mov dword [esp + 0x38], 0xff3fc0e
mov byte [esp + 0x3c], 0x62
mov dword [esp + 0x3d], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x40a2c9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov eax, dword [esp + 4]
movzx edx, byte [esp + eax + 0x38]
add ecx, 0x1f8752f1
mov eax, ecx
and eax, edx
xor ecx, edx
lea ecx, [ecx + eax*2]
add eax, eax
mov edx, ecx
not edx
and edx, eax
not eax
and eax, ecx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x69
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x40a280
lea eax, [esp + 0x38]
mov ecx, esi
push ebx
push eax
push edi
call fcn.00409a40
mov dword [esp + 0x38], 0xb3c8c2c6
mov dword [esp + 0x3c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x40a34f
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x38]
mov edx, eax
and edx, 0xd8657ab9
xor eax, 0xd8657ab9
lea eax, [eax + edx*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
mov ecx, edx
not ecx
and ecx, eax
not eax
and eax, edx
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xf1
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 8
jb 0x40a300
mov ecx, esi
push dword [esp + 0x2c]
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.00409a40
mov eax, dword [str.eLMNFu__Shell]
mov dword [esp + 0x38], 0xfb9c625a
mov dword [esp + 0x3c], 0
mov byte [esp + 0x40], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 8
ja 0x40a3d2
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x38]
lea ebx, [ecx + edx]
add ebx, 0x3b572adf
add ecx, 0x3b572adf
and ecx, edx
add ecx, ecx
sub ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0xe7
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x38], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 9
jb 0x40a390
mov ecx, esi
push eax
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.00409a40
mov dword [esp + 0x38], 0xe7ece4eb
mov dword [esp + 0x3c], 0xe4ebe0f3
mov dword [esp + 0x40], 0xeeedf0e3
mov byte [esp + 0x44], 0x2c
mov dword [esp + 0x45], 0
mov dword [esp + 0x48], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x13
ja 0x40a45f
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x38]
lea edx, [eax - 0x2154d7cc]
and edx, ecx
add eax, ecx
add eax, 0xdeab2834
add edx, edx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x94
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x14
jb 0x40a420
mov dword [esp + 0x10], 0x33b8a8a9
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 9
ja 0x40a4e3
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0x33f74529]
mov ebx, ecx
not ebx
or ebx, edx
and edx, ecx
add edx, ebx
neg edx
add eax, edx
add eax, 0x33f74528
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
mov ecx, eax
xor ecx, 0xe0
and eax, 0x60
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0xa
jb 0x40a490
lea edx, [esp + 0x10]
mov ecx, esi
lea eax, [esp + 0x38]
push eax
push edx
push edi
call fcn.00409a40
mov dword [esp + 0x38], 0x3c343a38
mov byte [esp + 0x3c], 0xa2
mov dword [esp + 0x3d], 0
mov dword [esp + 0x40], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x40a56f
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 + 0x38]
lea edx, [eax + 0xf01b]
and edx, ecx
add eax, ecx
add eax, 0xf01b
add edx, edx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x43
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xc
jb 0x40a530
mov ecx, esi
push dword [esp + 0x34]
push dword [esp + 0x34]
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x40], edi
push edi
call fcn.00409ce0
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0x9b0d995b
mov dword [esp + 0x3c], 0x971a9502
mov dword [esp + 0x40], 0x9304910d
mov dword [esp + 0x44], 0x8f5b8d00
mov dword [esp + 0x48], 0x8b038964
mov dword [esp + 0x4c], 0x871b8514
mov dword [esp + 0x50], 0x83a2814a
mov dword [esp + 0x54], 0xbf33bd29
mov dword [esp + 0x58], 0xbb36b92c
mov dword [esp + 0x5c], 0xb726b52d
mov dword [esp + 0x60], 0xb320b151
mov dword [esp + 0x64], 0xaf79ad20
mov dword [esp + 0x68], 0xab3da936
mov dword [esp + 0x6c], 0xa733a536
mov dword [esp + 0x70], 0xa33ea175
mov dword [esp + 0x74], 0x5fd25dbd
mov dword [esp + 0x78], 0x5b9159b9
mov dword [esp + 0x7c], 0x57b45574
mov dword [esp + 0x80], 0x53df51c7
mov dword [esp + 0x84], 0x4fd24dda
mov dword [esp + 0x88], 0x4bd849a9
mov dword [esp + 0x8c], 0x478345cd
mov dword [esp + 0x90], 0x43df41a2
mov dword [esp + 0x94], 0x7fb37db4
mov dword [esp + 0x98], 0x7be779e4
mov dword [esp + 0x9c], 0x77ef75b9
mov dword [esp + 0xa0], 0x73ee71e0
mov dword [esp + 0xa4], 0x6f8d6dfb
mov dword [esp + 0xa8], 0x6bf769f1
mov dword [esp + 0xac], 0x67f465f6
mov dword [esp + 0xb0], 0x63b361fd
mov dword [esp + 0xb4], 0x1f241d29
mov word [esp + 0xb8], 0x1918
mov byte [esp + 0xc6], 0
mov dword [esp + 0xc2], 0
mov dword [esp + 0xbe], 0
mov dword [esp + 0xba], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x8e
ja 0x40a75f
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x38]
lea ebx, [ecx - 0x2685de3c]
lea eax, [ecx + 0xc4]
mov edi, ebx
and edi, eax
and edi, edx
xor ebx, eax
and ebx, edx
lea eax, [ecx + edx]
add eax, 0xd97a21c4
lea ecx, [ebx + edi*2]
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, eax
xor ecx, 0xa3
and eax, 0x23
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x8f
jb 0x40a700
mov dword [esp + 0x10], 0x6383614f
mov dword [esp + 0x14], 0x678f65f4
mov word [esp + 0x18], 0x6968
mov dword [esp + 0x1e], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x11
ja 0x40a7e0
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0x2b8ce1b0
add eax, 0x2b8ce1b0
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x30
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x12
jb 0x40a7a0
push 0x493e0
push dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
push edi
push 0
push 0
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040daa0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408f10
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