Function at 0x40a6c0
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], 0xe5eae835
mov dword [esp + 0x70], 0x30f8f50b
mov dword [esp + 0x74], 0xcf0fa1e
mov dword [esp + 0x78], 0xf10d4f28
mov dword [esp + 0x7c], 0x1070af6
mov dword [esp + 0x80], 0x906fa03
mov dword [esp + 0x84], 0x2c50bc1
mov dword [esp + 0x88], 0xf2f109f0
mov dword [esp + 0x8c], 0xacaeae06
mov word [esp + 0x90], 0x87b0
mov dword [esp + 0x92], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x29
ja 0x40a77e
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x6c]
add eax, 0xb360a1ec
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x6a
mov ecx, dword [esp]
mov byte [esp + ecx + 0x6c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x2a
jb 0x40a750
mov dword [esp], 0x100d0377
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 4
ja 0x40a7db
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx]
add eax, 0x64037d39
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, eax
xor ecx, 0x2c
and eax, 0x53
add eax, eax
sub eax, ecx
mov ecx, dword [esp + 8]
mov byte [esp + ecx], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 5
jb 0x40a7a0
mov dword [esp + 0x10], 0xbdb97b7a
mov dword [esp + 0x14], 0xb9bf8f8d
mov dword [esp + 0x18], 0xa2afb78a
mov dword [esp + 0x1c], 0xa1aca1ac
mov dword [esp + 0x20], 0x99acd6d7
mov dword [esp + 0x24], 0xa38e4246
mov dword [esp + 0x28], 0x9c94dca3
mov dword [esp + 0x2c], 0x9db75fe1
mov dword [esp + 0x30], 0xeb9698e4
mov dword [esp + 0x34], 0x9394e892
mov dword [esp + 0x38], 0x845fa693
mov dword [esp + 0x3c], 0x4988f28c
mov dword [esp + 0x40], 0x89fb8785
mov dword [esp + 0x44], 0x8d8154b0
mov dword [esp + 0x48], 0x30cc8b82
mov dword [esp + 0x4c], 0xf1fffbf7
mov dword [esp + 0x50], 0xfc27cd37
mov dword [esp + 0x54], 0xf0f8f0f2
mov dword [esp + 0x58], 0xdde4f3fe
mov word [esp + 0x5c], 0x1c23
mov byte [esp + 0x60], 0
mov word [esp + 0x5e], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x50
ja 0x40a8e1
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, 0x79
sub edx, eax
add eax, ecx
not ecx
or edx, ecx
lea eax, [eax + edx*2]
add eax, 0x7d130388
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x31
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x51
jb 0x40a8a0
mov eax, dword [esp + 0xb0]
movzx ecx, byte [esp + 0x10]
mov edx, edi
test cl, cl
je 0x40a90b
lea esi, [esp + 0x11]
mov edx, edi
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40a900
mov byte [edx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x40a92b
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 0x40a920
mov byte [edx], 0
movzx eax, byte [esp]
test al, al
je 0x40a94b
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 0x40a940
mov eax, dword [esp + 0xb8]
mov ebx, dword [esp + 0xb4]
mov byte [edx], 0
movzx ecx, byte [esp + 0x6c]
test cl, cl
mov dword [esp + 0x64], edi
je 0x40a97b
lea esi, [esp + 0x6d]
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40a970
mov byte [edx], 0
mov ecx, eax
shr ecx, 2
mov esi, ebx
mov edi, edx
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ebp, eax
and ebp, 0xfffffffc
lea esi, [edx + ebp]
add ebp, ebx
mov ecx, eax
not ecx
or ecx, 3
lea ebx, [eax + ecx]
inc ebx
mov ecx, ebx
shr ecx, 1
mov eax, ebp
mov edi, esi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, ebx
or eax, 1
mov ecx, ebx
xor ecx, 0xfffffffe
and ecx, eax
je 0x40aa5e
and ebx, 0xfffffffe
add esi, ebx
add ebp, ebx
mov edi, ecx
and edi, 7
je 0x40a9fc
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [ebp + ebx]
mov byte [esi + ebx], al
inc ebx
cmp edi, ebx
jne 0x40a9e0
add ebp, ebx
add esi, ebx
mov edi, ecx
sub edi, ebx
cmp ecx, 8
jae 0x40aa03
jmp 0x40aa5e
mov edi, ecx
cmp ecx, 8
jb 0x40aa5e
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [ebp + ecx]
mov byte [esi + ecx], al
movzx eax, byte [ebp + ecx + 1]
mov byte [esi + ecx + 1], al
movzx eax, byte [ebp + ecx + 2]
mov byte [esi + ecx + 2], al
movzx eax, byte [ebp + ecx + 3]
mov byte [esi + ecx + 3], al
movzx eax, byte [ebp + ecx + 4]
mov byte [esi + ecx + 4], al
movzx eax, byte [ebp + ecx + 5]
mov byte [esi + ecx + 5], al
movzx eax, byte [ebp + ecx + 6]
mov byte [esi + ecx + 6], al
movzx eax, byte [ebp + ecx + 7]
mov byte [esi + ecx + 7], al
add ecx, 8
cmp edi, ecx
jne 0x40aa10
mov dword [esp + 0x10], 0x686f0b0d
mov dword [esp + 0x14], 0x1c60b2b4
mov dword [esp + 0x18], 0xd41fceca
mov dword [esp + 0x1c], 0xc2d1cdd2
mov dword [esp + 0x20], 0xd5d2c6d9
mov dword [esp + 0x24], 0x617b16c1
mov word [esp + 0x28], 0x6365
mov byte [esp + 0x2a], 0x74
mov dword [esp + 0x2b], 0
mov byte [esp + 0x2f], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x1f
ja 0x40aaf9
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 + ecx]
add eax, 0x39
and eax, ecx
add eax, eax
sub esi, eax
add esi, 0x38643c39
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x6c]
add al, 0xd9
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x20
jb 0x40aac0
add edx, dword [esp + 0xb8]
movzx eax, byte [esp + 0x10]
test al, al
mov esi, dword [esp + 0x64]
je 0x40ab2b
lea ecx, [esp + 0x11]
nop
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 0x40ab20
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