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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x90
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0x10], ecx
mov edx, dword [ecx + 0x60]
mov dword [esp + 0x64], 0x8f8486d3
mov dword [esp + 0x68], 0xca828bf1
mov dword [esp + 0x6c], 0xf68a80e4
mov dword [esp + 0x70], 0x9be725de
mov dword [esp + 0x74], 0xebe1e09c
mov dword [esp + 0x78], 0x9398e099
mov dword [esp + 0x7c], 0x9cdf91df
mov dword [esp + 0x80], 0xd4dbdfd6
mov dword [esp + 0x84], 0x63804ac
mov word [esp + 0x88], 0x3d36
mov dword [esp + 0x8a], 0
xor eax, eax
xor esi, esi
nop
mov edi, esi
xor edi, 0xbc
mov ebx, eax
and ebx, 6
sub ebx, edi
xor bl, byte [esp + esi + 0x64]
add bl, 0xac
mov byte [esp + esi + 0x64], bl
inc esi
add eax, 2
cmp esi, 0x2a
jne 0x40d9c0
mov dword [esp], 0x938884b2
mov byte [esp + 4], 0
mov eax, 0x9d49de1c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax + 0x62b621e4]
xor esi, eax
mov edi, esi
and edi, 1
xor esi, 1
lea ebx, [esi + edi*2]
add bl, 0x73
mov byte [esp + eax + 0x62b621e4], bl
inc eax
cmp eax, 0x9d49de21
jne 0x40da00
mov dword [esp + 0x14], 0x5254989f
mov dword [esp + 0x18], 0x5e5a8c80
mov dword [esp + 0x1c], 0x5d52548f
mov dword [esp + 0x20], 0x66696251
mov dword [esp + 0x24], 0xb6617572
mov dword [esp + 0x28], 0x648bc1cb
mov dword [esp + 0x2c], 0x63697f66
mov dword [esp + 0x30], 0x7a92bc7c
mov dword [esp + 0x34], 0x647b7b61
mov dword [esp + 0x38], 0x74716b7f
mov dword [esp + 0x3c], 0x7bc2a576
mov dword [esp + 0x40], 0x4e8d9171
mov dword [esp + 0x44], 0x86968480
mov dword [esp + 0x48], 0x8a84375d
mov dword [esp + 0x4c], 0x4f518887
mov dword [esp + 0x50], 0x969a988a
mov dword [esp + 0x54], 0x932a4e52
mov dword [esp + 0x58], 0x979d939f
mov dword [esp + 0x5c], 0x4299909b
mov dword [esp + 0x60], 0x3f5e
xor eax, eax
mov ecx, dword [esp + 0xa4]
mov ebx, eax
add bl, 0xd3
xor bl, byte [esp + eax + 0x14]
add bl, 0xe1
mov byte [esp + eax + 0x14], bl
inc eax
cmp eax, 0x50
jne 0x40dad0
add ecx, edx
movzx eax, byte [esp + 0x14]
mov edx, ecx
test al, al
je 0x40db0b
lea esi, [esp + 0x15]
mov edx, ecx
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [esi]
inc esi
test al, al
jne 0x40db00
mov byte [edx], 0
movzx eax, byte [ebp]
test al, al
je 0x40db2c
inc ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ebp]
inc ebp
test al, al
jne 0x40db20
mov dword [esp + 0xc], ecx
mov byte [edx], 0
movzx eax, byte [esp]
test al, al
je 0x40db4b
lea ecx, [esp + 1]
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40db40
mov byte [edx], 0
movzx eax, byte [esp + 0x64]
test al, al
je 0x40db6b
lea ecx, [esp + 0x65]
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40db60
mov byte [edx], 0
mov ebx, dword [esp + 0xb0]
mov ecx, ebx
shr ecx, 2
mov eax, dword [esp + 0xac]
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ebp, ebx
and ebp, 0xfffffffc
lea esi, [edx + ebp]
add ebp, dword [esp + 0xac]
mov ecx, ebx
and ecx, 3
mov eax, ecx
not eax
or eax, 1
add eax, ecx
shr ecx, 1
mov ebx, ebp
mov edi, esi
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ebx, eax
inc ebx
je 0x40dc4e
mov ecx, dword [esp + 0xb0]
and ecx, 2
add ebp, ecx
add esi, ecx
mov ecx, ebx
and ecx, 7
je 0x40dbf7
mov dword [esp + 8], eax
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [ebp + edi]
mov byte [esi + edi], al
inc edi
cmp ecx, edi
jne 0x40dbe0
add ebp, edi
add esi, edi
sub ebx, edi
mov eax, dword [esp + 8]
cmp eax, 7
jb 0x40dc4e
xor eax, eax
nop
nop
movzx ecx, byte [ebp + eax]
mov byte [esi + eax], cl
movzx ecx, byte [ebp + eax + 1]
mov byte [esi + eax + 1], cl
movzx ecx, byte [ebp + eax + 2]
mov byte [esi + eax + 2], cl
movzx ecx, byte [ebp + eax + 3]
mov byte [esi + eax + 3], cl
movzx ecx, byte [ebp + eax + 4]
mov byte [esi + eax + 4], cl
movzx ecx, byte [ebp + eax + 5]
mov byte [esi + eax + 5], cl
movzx ecx, byte [ebp + eax + 6]
mov byte [esi + eax + 6], cl
movzx ecx, byte [ebp + eax + 7]
mov byte [esi + eax + 7], cl
add eax, 8
cmp ebx, eax
jne 0x40dc00
mov dword [esp + 0x14], 0xb2b39795
mov dword [esp + 0x18], 0x969a787a
mov dword [esp + 0x1c], 0x4e934444
mov dword [esp + 0x20], 0x4c594154
mov dword [esp + 0x24], 0x59584c41
mov dword [esp + 0x28], 0xbdbf9c49
mov word [esp + 0x2c], 0xbfbd
mov byte [esp + 0x2e], 0xb6
mov dword [esp + 0x2f], 0
mov byte [esp + 0x33], 0
mov eax, 0xec9da75a
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x136258ba]
mov ebx, ecx
and ebx, eax
add bl, bl
sub cl, bl
movzx ecx, cl
add ecx, eax
add cl, 0x3e
mov byte [esp + eax + 0x136258ba], cl
inc eax
cmp eax, 0xec9da77a
jne 0x40dca0
add edx, dword [esp + 0xb0]
movzx eax, byte [esp + 0x14]
test al, al
je 0x40dceb
lea ecx, [esp + 0x15]
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40dce0
mov byte [edx], 0
sub edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
add dword [eax + 0x60], edx
add esp, 0x90
pop esi
pop edi
pop ebx
pop ebp
ret 0x10