Function at 0x40d8a0
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], 0xad9096f9
mov dword [esp + 0x70], 0xcaae959f
mov dword [esp + 0x74], 0x868eb490
mov dword [esp + 0x78], 0xb999dbf2
mov dword [esp + 0x7c], 0x898b94b8
mov dword [esp + 0x80], 0x81848c87
mov dword [esp + 0x84], 0xb8f987fd
mov dword [esp + 0x88], 0xb8b5b1aa
mov dword [esp + 0x8c], 0x161c1088
mov word [esp + 0x90], 0x31a
mov dword [esp + 0x92], 0
mov byte [esp + 0x96], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x2a
ja 0x40d985
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x6c]
mov edx, eax
xor edx, 0xa6e59e49
and eax, 0x26e59e49
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, eax
not ecx
and ecx, 0x6d
and eax, 0x92
sub eax, ecx
mov ecx, dword [esp]
mov byte [esp + ecx + 0x6c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x2b
jb 0x40d940
mov dword [esp], 0x59444822
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 7
ja 0x40d9f4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx]
mov edx, eax
xor edx, 0xeae60f6f
and eax, 0xeae60f6f
lea eax, [edx + eax*2]
mov edx, eax
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xd5
mov ecx, dword [esp + 8]
mov byte [esp + ecx], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 8
jb 0x40d9b0
mov dword [esp + 0x10], 0xb6ac6063
mov dword [esp + 0x14], 0xb2b66468
mov dword [esp + 0x18], 0xbda6bc63
mov dword [esp + 0x1c], 0xbab1bea9
mov dword [esp + 0x20], 0x52b9adae
mov dword [esp + 0x24], 0x94a7696f
mov dword [esp + 0x28], 0x8781938a
mov dword [esp + 0x2c], 0x86ae449c
mov dword [esp + 0x30], 0x849f9f99
mov dword [esp + 0x34], 0x8499879b
mov dword [esp + 0x38], 0x9f564d9a
mov dword [esp + 0x3c], 0x52958989
mov dword [esp + 0x40], 0xe28a9c98
mov dword [esp + 0x44], 0xe6ec233d
mov dword [esp + 0x48], 0x2b39e0eb
mov dword [esp + 0x4c], 0xeae6e0ee
mov dword [esp + 0x50], 0xf72e322e
mov dword [esp + 0x54], 0xfbf5fffb
mov dword [esp + 0x58], 0x26f1f8f7
mov word [esp + 0x5c], 0x1b3a
mov byte [esp + 0x62], 0
mov dword [esp + 0x5e], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x52
ja 0x40db05
nop
nop
nop
nop
nop
nop
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, eax
xor edx, 0xea9faf8d
and eax, 0xea9faf8d
lea eax, [edx + eax*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0x3f
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x53
jb 0x40dac0
mov eax, dword [esp + 0xb0]
movzx ecx, byte [esp + 0x10]
mov edx, edi
test cl, cl
je 0x40db2b
lea esi, [esp + 0x11]
mov edx, edi
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40db20
mov byte [edx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x40db4b
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 0x40db40
mov byte [edx], 0
movzx eax, byte [esp]
test al, al
je 0x40db6b
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 0x40db60
mov ebp, dword [esp + 0xb4]
mov byte [edx], 0
movzx ecx, byte [esp + 0x6c]
test cl, cl
mov dword [esp + 0x64], edi
je 0x40db9b
lea eax, [esp + 0x6d]
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 0x40db90
mov byte [edx], 0
mov ebx, dword [esp + 0xb8]
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
and ebx, 3
mov ecx, ebx
shr ecx, 1
mov ebp, eax
mov edi, esi
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
mov ecx, dword [esp + 0xb8]
test cl, 1
je 0x40dbe3
movzx eax, byte [eax + ebx - 1]
mov byte [esi + ebx - 1], al
mov dword [esp + 0x10], 0xeae9cdcf
mov dword [esp + 0x14], 0xfefe8c96
mov dword [esp + 0x18], 0xb6f98888
mov dword [esp + 0x1c], 0x80bf83b0
mov dword [esp + 0x20], 0xb7b480bb
mov dword [esp + 0x24], 0xe3e5c883
mov word [esp + 0x28], 0xe5e7
mov byte [esp + 0x2a], 0x12
mov word [esp + 0x2b], 0
mov byte [esp + 0x2d], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x1d
mov edi, dword [esp + 0x64]
ja 0x40dc97
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
mov esi, eax
xor esi, 0xecc0aecb
and eax, 0xecc0aecb
lea eax, [esi + eax*2]
lea esi, [eax + ecx]
and eax, ecx
mov ecx, esi
xor ecx, eax
add ecx, eax
not eax
and eax, esi
add eax, eax
sub eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
mov ecx, eax
not ecx
and ecx, 0xf7
and eax, 8
sub eax, ecx
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x1e
jb 0x40dc40
add edx, dword [esp + 0xb8]
movzx eax, byte [esp + 0x10]
test al, al
je 0x40dcbb
lea ecx, [esp + 0x11]
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40dcb0
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