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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x98
mov dword [esp + 0x68], ecx
mov ecx, dword [ecx + 0x60]
mov dword [esp + 0x6c], 0xbfa4a6f3
mov dword [esp + 0x70], 0xfaa2bbb1
mov dword [esp + 0x74], 0xb6baa084
mov dword [esp + 0x78], 0xab87c5ee
mov dword [esp + 0x7c], 0xbb8180ac
mov dword [esp + 0x80], 0x93888089
mov dword [esp + 0x84], 0x8ccf91cf
mov dword [esp + 0x88], 0xb48b8fb6
mov dword [esp + 0x8c], 0xe6e8e49c
mov dword [esp + 0x90], 0xdf6
mov byte [esp + 0x94], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x28
ja 0x40a35e
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x6c]
add eax, 0x98876bcc
xor eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 4
mov edx, dword [esp]
mov byte [esp + edx + 0x6c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x29
jb 0x40a330
mov dword [esp], 0x77007c66
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 4
ja 0x40a3b1
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx]
add eax, 0x36e3c8be
xor eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x4a
mov edx, dword [esp + 8]
mov byte [esp + edx], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 5
jb 0x40a380
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], 0x1214282f
mov dword [esp + 0x14], 0xe0a3c20
mov dword [esp + 0x18], 0xdf2f43f
mov dword [esp + 0x1c], 0x6f902f1
mov dword [esp + 0x20], 0x3601f5f2
mov dword [esp + 0x24], 0x4dba15b
mov dword [esp + 0x28], 0x3f90f06
mov dword [esp + 0x2c], 0xad2cc0c
mov dword [esp + 0x30], 0x40b0b01
mov dword [esp + 0x34], 0x14111b0f
mov dword [esp + 0x38], 0xeba2c516
mov dword [esp + 0x3c], 0xde1d1111
mov dword [esp + 0x40], 0xe616e4e0
mov dword [esp + 0x44], 0xda2497cd
mov dword [esp + 0x48], 0x9ff1d827
mov dword [esp + 0x4c], 0xd62a28da
mov dword [esp + 0x50], 0xd39afe92
mov dword [esp + 0x54], 0x37cd332f
mov dword [esp + 0x58], 0xe2c930cb
mov word [esp + 0x5c], 0xaf8e
mov byte [esp + 0x62], 0
mov dword [esp + 0x5e], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x52
ja 0x40a4be
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
movzx edx, byte [esp + edx + 0x10]
lea esi, [eax + edx]
add eax, 0x6b
and eax, edx
add eax, eax
sub esi, eax
add esi, 0xb783696b
mov dword [esp + 8], esi
mov eax, dword [esp + 8]
add al, 0xe9
mov edx, dword [esp + 0xc]
mov byte [esp + edx + 0x10], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x53
jb 0x40a480
mov esi, dword [esp + 0xb0]
add edi, ecx
movzx eax, byte [esp + 0x10]
mov edx, edi
test al, al
je 0x40a4eb
lea ecx, [esp + 0x11]
mov edx, edi
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40a4e0
mov byte [edx], 0
movzx eax, byte [esi]
test al, al
je 0x40a50b
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [esi]
inc esi
test al, al
jne 0x40a500
mov byte [edx], 0
movzx eax, byte [esp]
test al, al
je 0x40a52b
lea ecx, [esp + 1]
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40a520
mov ebx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
mov byte [edx], 0
movzx ecx, byte [esp + 0x6c]
test cl, cl
mov dword [esp + 0x64], edi
je 0x40a55b
lea esi, [esp + 0x6d]
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40a550
mov byte [edx], 0
mov ecx, ebx
shr ecx, 2
mov esi, eax
mov edi, edx
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ebp, ebx
and ebp, 0xfffffffc
lea esi, [edx + ebp]
add ebp, eax
mov eax, ebx
and eax, 3
mov ecx, eax
shr ecx, 1
mov ebx, ebp
mov edi, esi
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ecx, eax
xor ecx, 0xfffffffe
or eax, 1
and eax, ecx
je 0x40a5c5
mov ecx, dword [esp + 0xb8]
and ecx, 2
movzx ebx, byte [ebp + ecx]
mov byte [esi + ecx], bl
cmp eax, 1
je 0x40a5c5
movzx ebx, byte [ebp + ecx + 1]
mov byte [esi + ecx + 1], bl
cmp eax, 2
je 0x40a5c5
movzx eax, byte [ebp + ecx + 2]
mov byte [esi + ecx + 2], al
mov dword [esp + 0x10], 0x8e816563
mov dword [esp + 0x14], 0x82bad4d2
mov dword [esp + 0x18], 0xf281d0d0
mov dword [esp + 0x1c], 0xe8fbeff8
mov dword [esp + 0x20], 0xf3fce8f7
mov dword [esp + 0x24], 0x5f5db0e7
mov word [esp + 0x28], 0x5d5b
mov byte [esp + 0x2a], 0x46
mov word [esp + 0x2b], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x1c
mov esi, dword [esp + 0x64]
ja 0x40a64e
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
add eax, 0x5ce69715
xor eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
add al, 0x97
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x1d
jb 0x40a620
add edx, dword [esp + 0xb8]
movzx eax, byte [esp + 0x10]
test al, al
je 0x40a67b
lea ecx, [esp + 0x11]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40a670
mov byte [edx], 0
sub edx, esi
mov eax, dword [esp + 0x68]
add dword [eax + 0x60], edx
add esp, 0x98
pop esi
pop edi
pop ebx
pop ebp
ret 0x10