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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [esp + 0x74]
add eax, dword [ecx + 0x60]
mov word [esp + 0x14], 0x9d93
mov byte [esp + 0x16], 0xe6
mov word [esp + 0x17], 0
mov byte [esp + 0x19], 0
mov dword [esp + 8], 0
mov edx, dword [esp + 8]
cmp edx, 5
ja 0x40d26f
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 8]
mov esi, dword [esp + 8]
movzx esi, byte [esp + esi + 0x14]
mov edi, edx
xor edi, 0x1ba8a9d9
add edx, edx
and edx, 0x375153b2
mov ebx, edx
and ebx, edi
xor edx, edi
lea edx, [edx + ebx*2]
lea edi, [edx + esi]
and edx, esi
add edx, edx
sub edi, edx
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x1c]
add dl, 0xc3
mov esi, dword [esp + 8]
mov byte [esp + esi + 0x14], dl
inc dword [esp + 8]
mov edx, dword [esp + 8]
cmp edx, 6
jb 0x40d220
mov dword [esp + 8], 0x1210142e
mov dword [esp + 0xc], 0xd12
mov byte [esp + 0x10], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 8
ja 0x40d2e2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 8]
mov edi, edx
not edi
or edi, 0x3a9b5902
add edi, edx
xor edx, 0xba9b5902
lea edx, [edx + edi*2]
add edx, 2
xor edx, esi
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x1c]
add dl, 0xf6
mov esi, dword [esp]
mov byte [esp + esi + 8], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 9
jb 0x40d2a0
mov dword [esp + 0x1c], 0x8a88cccd
mov dword [esp + 0x20], 0x8e8ed8dc
mov dword [esp + 0x24], 0x939e88dd
mov dword [esp + 0x28], 0x9693929f
mov dword [esp + 0x2c], 0xd69b8786
mov dword [esp + 0x30], 0x90fd3331
mov dword [esp + 0x34], 0xada38d92
mov dword [esp + 0x38], 0xa2c6e8b0
mov dword [esp + 0x3c], 0xb8a5a9b7
mov dword [esp + 0x40], 0xa0abb9ad
mov dword [esp + 0x44], 0xb50ef7a2
mov dword [esp + 0x48], 0xfebfa3bf
mov dword [esp + 0x4c], 0xc6aac8b4
mov dword [esp + 0x50], 0xc2b005e3
mov dword [esp + 0x54], 0x11bbcb5
mov byte [esp + 0x58], 0xdc
mov dword [esp + 0x59], 0
mov word [esp + 0x5d], 0
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
cmp edx, 0x42
ja 0x40d3d3
nop
mov edx, dword [esp + 4]
mov esi, dword [esp + 4]
movzx esi, byte [esp + esi + 0x1c]
lea edi, [edx + edx]
and edi, 0x68dc498c
mov ebx, edx
xor ebx, 0x4b91db39
mov ebp, edx
or ebp, 0x346e24c6
and ebp, ebx
sub edx, edi
lea edx, [edx + ebp*2]
add edx, 0xb46e24c6
xor edx, esi
mov dword [esp], edx
mov edx, dword [esp]
add dl, 0x22
mov esi, dword [esp + 4]
mov byte [esp + esi + 0x1c], dl
inc dword [esp + 4]
mov edx, dword [esp + 4]
cmp edx, 0x43
jb 0x40d380
mov esi, dword [esp + 0x78]
movzx ebx, byte [esp + 0x1c]
mov edx, eax
test bl, bl
je 0x40d3fb
lea edi, [esp + 0x1d]
mov edx, eax
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x40d3f0
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x40d41b
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40d410
mov esi, dword [esp + 0x7c]
mov byte [edx], 0
movzx ebx, byte [esp + 8]
test bl, bl
je 0x40d43b
lea edi, [esp + 9]
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x40d430
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x40d45b
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40d450
mov byte [edx], 0
movzx ebx, byte [esp + 0x14]
test bl, bl
je 0x40d47b
lea esi, [esp + 0x15]
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40d470
mov byte [edx], 0
sub edx, eax
add dword [ecx + 0x60], edx
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 0xc