Function at 0x40d3e0
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 + 0x14], ecx
add edi, dword [ecx + 0x60]
mov dword [esp + 0x6c], 0xfdf8faa1
mov dword [esp + 0x70], 0xbefafdc3
mov dword [esp + 0x74], 0xfac2ccd8
mov dword [esp + 0x78], 0xc1f1b78e
mov dword [esp + 0x7c], 0xf1fffcc0
mov dword [esp + 0x80], 0xc9ccf4cb
mov dword [esp + 0x84], 0xd091db8d
mov dword [esp + 0x88], 0xe0ede9e6
mov dword [esp + 0x8c], 0xba44b8d0
mov word [esp + 0x90], 0x4f46
mov dword [esp + 0x92], 0
mov word [esp + 0x96], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x2b
ja 0x40d4c8
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x6c]
lea edx, [eax + ecx]
add edx, 0xfedb2f97
add eax, 0xfedb2f97
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
mov ecx, eax
not ecx
and ecx, 0xf3
and eax, 0xc
sub eax, ecx
mov ecx, dword [esp]
mov byte [esp + ecx + 0x6c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x2c
jb 0x40d480
mov dword [esp], 0x3124201e
mov word [esp + 4], 0
mov byte [esp + 6], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 6
ja 0x40d52c
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx]
mov edx, eax
xor edx, 0x970892f5
and eax, 0x170892f5
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add al, 0x37
mov ecx, dword [esp + 8]
mov byte [esp + ecx], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 7
jb 0x40d4f0
mov dword [esp + 0x18], 0xe2dc2857
mov dword [esp + 0x1c], 0xe6da3430
mov dword [esp + 0x20], 0xd5e2ec37
mov dword [esp + 0x24], 0xeee9d2e1
mov dword [esp + 0x28], 0x3ef1fde2
mov dword [esp + 0x2c], 0xfc2b111b
mov dword [esp + 0x30], 0xf3f9f7fe
mov dword [esp + 0x34], 0xfa2234f4
mov dword [esp + 0x38], 0xcccbcbf1
mov dword [esp + 0x3c], 0xccc1cbc7
mov dword [esp + 0x40], 0xcb321dce
mov dword [esp + 0x44], 0x6c5c1c1
mov dword [esp + 0x48], 0xeedeecf0
mov dword [esp + 0x4c], 0xeadc2f05
mov dword [esp + 0x50], 0x2701d8df
mov dword [esp + 0x54], 0xdedad8da
mov dword [esp + 0x58], 0x23daf622
mov dword [esp + 0x5c], 0x2f252327
mov dword [esp + 0x60], 0xf229201b
mov word [esp + 0x64], 0xb7d6
mov byte [esp + 0x6a], 0
mov dword [esp + 0x66], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x52
ja 0x40d623
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esp + ecx + 0x18]
add eax, 0x3f95b1bf
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x45
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x18], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x53
jb 0x40d5f0
mov eax, dword [esp + 0xb0]
movzx ecx, byte [esp + 0x18]
mov edx, edi
test cl, cl
je 0x40d64b
lea esi, [esp + 0x19]
mov edx, edi
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40d640
mov byte [edx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x40d66b
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 0x40d660
mov byte [edx], 0
movzx eax, byte [esp]
test al, al
je 0x40d68b
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 0x40d680
mov ebp, dword [esp + 0xb4]
mov byte [edx], 0
movzx eax, byte [esp + 0x6c]
test al, al
mov dword [esp + 0x10], edi
je 0x40d6bb
lea ecx, [esp + 0x6d]
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 0x40d6b0
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
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 0x40d704
mov ecx, dword [esp + 0xb8]
and ecx, 2
movzx eax, byte [eax + ecx]
mov byte [esi + ecx], al
mov dword [esp + 0x18], 0x1a193d3f
mov dword [esp + 0x1c], 0xe0edcd6
mov dword [esp + 0x20], 0xd609d8d8
mov dword [esp + 0x24], 0x202f23d0
mov dword [esp + 0x28], 0x3734202b
mov dword [esp + 0x2c], 0xc3c5f823
mov dword [esp + 0x30], 0xb2c5c7
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x1b
mov edi, dword [esp + 0x10]
ja 0x40d790
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
mov esi, eax
not esi
or esi, 0x4eeb0f73
add esi, eax
xor eax, 0x4eeb0f73
lea eax, [eax + esi*2]
add eax, 2
xor eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
add al, 0xc1
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x1c
jb 0x40d750
add edx, dword [esp + 0xb8]
movzx eax, byte [esp + 0x18]
test al, al
je 0x40d7bb
lea ecx, [esp + 0x19]
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 0x40d7b0
mov byte [edx], 0
mov eax, edx
xor eax, edi
not edi
and edi, edx
add edi, edi
sub edi, eax
mov eax, dword [esp + 0x14]
add dword [eax + 0x60], edi
add esp, 0x98
pop esi
pop edi
pop ebx
pop ebp
ret 0x10