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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x98
mov edi, dword [esp + 0xac]
mov dword [esp + 0x68], ecx
add edi, dword [ecx + 0x60]
mov dword [esp + 0x6c], 0x8a8383e8
mov dword [esp + 0x70], 0xc78d86ba
mov dword [esp + 0x74], 0xb38d85af
mov dword [esp + 0x78], 0x86b8f8c5
mov dword [esp + 0x7c], 0xaea6a587
mov dword [esp + 0x80], 0x9e97ad92
mov dword [esp + 0x84], 0x99d894d4
mov dword [esp + 0x88], 0xa9a4a2ad
mov dword [esp + 0x8c], 0x3ff0197
mov word [esp + 0x90], 0xf0fd
mov dword [esp + 0x92], 0
mov word [esp + 0x96], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x2b
ja 0x40a27e
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x6c]
add eax, 0xa1b87bdf
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xc
mov ecx, dword [esp]
mov byte [esp + ecx + 0x6c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x2c
jb 0x40a250
mov dword [esp], 0x59525a74
mov word [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 5
ja 0x40a2d1
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx]
add eax, 0x6991796
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x40
mov ecx, dword [esp + 8]
mov byte [esp + ecx], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 6
jb 0x40a2a0
mov dword [esp + 0x10], 0x9690dca3
mov dword [esp + 0x14], 0x9296e0e4
mov dword [esp + 0x18], 0x999690e3
mov dword [esp + 0x1c], 0x9a959e95
mov dword [esp + 0x20], 0xf285b1ae
mov dword [esp + 0x24], 0x88e72d2f
mov dword [esp + 0x28], 0x878dbb8a
mov dword [esp + 0x2c], 0x86eec0b8
mov dword [esp + 0x30], 0x80bfbfbd
mov dword [esp + 0x34], 0xb8bd87bb
mov dword [esp + 0x38], 0xbfe6c1ba
mov dword [esp + 0x3c], 0xf2b18db5
mov dword [esp + 0x40], 0xa292a0bc
mov dword [esp + 0x44], 0xa6a8fbd9
mov dword [esp + 0x48], 0xebd5acab
mov dword [esp + 0x4c], 0xaaa6a4ae
mov dword [esp + 0x50], 0x570e2aee
mov dword [esp + 0x54], 0x5b515f5b
mov dword [esp + 0x58], 0x265d5457
mov word [esp + 0x5c], 0xe31a
mov dword [esp + 0x5e], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x51
ja 0x40a3c3
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esp + ecx + 0x10]
add eax, 0x780a43bf
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x11
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x52
jb 0x40a390
mov eax, dword [esp + 0xb0]
movzx ecx, byte [esp + 0x10]
mov edx, edi
test cl, cl
je 0x40a3eb
lea esi, [esp + 0x11]
mov edx, edi
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40a3e0
mov byte [edx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x40a40b
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [eax]
inc eax
test cl, cl
jne 0x40a400
mov byte [edx], 0
movzx eax, byte [esp]
test al, al
je 0x40a42b
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 0x40a420
mov ebx, dword [esp + 0xb8]
mov ebp, dword [esp + 0xb4]
mov byte [edx], 0
movzx eax, byte [esp + 0x6c]
test al, al
mov dword [esp + 0x64], edi
je 0x40a45b
lea ecx, [esp + 0x6d]
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40a450
mov byte [edx], 0
mov ecx, ebx
shr ecx, 2
mov eax, ebp
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and eax, 0xfffffffc
lea esi, [edx + eax]
add eax, ebp
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov ebp, eax
mov edi, esi
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
test bl, 1
je 0x40a498
mov ecx, ebx
and ecx, 2
movzx eax, byte [eax + ecx]
mov byte [esi + ecx], al
mov dword [esp + 0x10], 0xe8e9c9cb
mov dword [esp + 0x14], 0xe4e0b6b4
mov dword [esp + 0x18], 0x8cd98a8a
mov dword [esp + 0x1c], 0x8e938f92
mov dword [esp + 0x20], 0x93928287
mov dword [esp + 0x24], 0xfffdda87
mov word [esp + 0x28], 0xe1e3
mov byte [esp + 0x2a], 0xf4
mov dword [esp + 0x2b], 0
mov byte [esp + 0x2f], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x1f
mov edi, dword [esp + 0x64]
ja 0x40a53a
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 + 0x10]
lea esi, [eax + 0xd8]
add eax, ecx
and esi, ecx
add esi, esi
sub eax, esi
add eax, 0x3052e1d8
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
add al, 0xfa
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x20
jb 0x40a500
add edx, ebx
movzx eax, byte [esp + 0x10]
test al, al
je 0x40a55b
lea ecx, [esp + 0x11]
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40a550
mov byte [edx], 0
sub edx, edi
mov eax, dword [esp + 0x68]
add dword [eax + 0x60], edx
add esp, 0x98
pop esi
pop edi
pop ebx
pop ebp
ret 0x10