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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x80
mov esi, dword [esp + 0x98]
mov edi, ecx
mov eax, dword [ecx + 0x80]
mov dword [esp], eax
mov dword [esp + 0x18], 0xf7eceec3
mov dword [esp + 0x1c], 0x2af2ebe1
mov dword [esp + 0x20], 0xeefaf0dc
mov dword [esp + 0x24], 0xfbef2d36
mov dword [esp + 0x28], 0xfbf1f0e4
mov dword [esp + 0x2c], 0xe3f8f0f9
mov dword [esp + 0x30], 0xf437e137
mov dword [esp + 0x34], 0xfcfbf7fe
mov dword [esp + 0x38], 0x2e282cd4
mov dword [esp + 0x3c], 0x252e
mov byte [esp + 0x40], 0
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ebp + 0x18]
lea ebx, [ebp - 0x6c3acac0]
and ebx, edx
mov eax, ebx
or al, 0xfd
inc al
mov ecx, ebx
and cl, 0x7d
mul cl
mov ecx, eax
add cl, dl
mov eax, ebx
shr al, 1
and al, 1
or bl, 2
mul bl
add al, al
sub cl, al
movzx eax, cl
add eax, ebp
mov byte [esp + ebp + 0x18], al
inc ebp
cmp ebp, 0x29
jne 0x40daa0
mov dword [esp + 0xc], 0x9398e4f2
mov word [esp + 0x10], 0
mov byte [esp + 0x12], 0
mov eax, 0xf0aace24
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0xf5531e8]
xor ecx, eax
lea edx, [ecx + 0x4b]
mov ebx, ecx
not ebx
or ecx, 0xfe
or edx, 1
and edx, ecx
and ebx, 1
lea ecx, [edx + ebx*2]
mov byte [esp + eax + 0xf5531e8], cl
inc eax
cmp eax, 0xf0aace2b
jne 0x40db00
mov dword [esp + 0x44], 0x986f2537
mov dword [esp + 0x48], 0x9f859b9a
mov dword [esp + 0x4c], 0x9e764098
mov dword [esp + 0x50], 0x80878785
mov dword [esp + 0x54], 0x88958f9b
mov dword [esp + 0x58], 0x975e418a
mov dword [esp + 0x5c], 0x72b1b58d
mov dword [esp + 0x60], 0xa2b2a0a4
mov dword [esp + 0x64], 0xaeb86b79
mov dword [esp + 0x68], 0x6b4da4bb
mov dword [esp + 0x6c], 0xbabebca6
mov dword [esp + 0x70], 0xbf766a76
mov dword [esp + 0x74], 0xabb1b7bb
mov dword [esp + 0x78], 0x5eb5acbf
mov dword [esp + 0x7c], 0x637a
xor eax, eax
mov ebp, edi
mov ebx, dword [esp + 0x94]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x87
xor cl, byte [esp + eax + 0x44]
add cl, 0x5d
mov byte [esp + eax + 0x44], cl
inc eax
cmp eax, 0x3c
jne 0x40dbc0
add ebx, dword [esp]
mov word [esp + 4], 0x9495
mov byte [esp + 6], 0x4e
mov dword [esp + 7], 0
mov eax, 0xa90e6512
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x56f19af2]
mov edx, eax
and edx, ecx
add edx, edx
sub ecx, edx
lea edx, [eax + ecx]
add ecx, eax
add ecx, 0xa5
not edx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov byte [esp + eax + 0x56f19af2], cl
inc eax
cmp eax, 0xa90e6519
jne 0x40dc00
movzx ecx, byte [esp + 4]
mov eax, ebx
test cl, cl
je 0x40dc5b
lea edi, [esp + 5]
mov eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [eax], cl
inc eax
movzx ecx, byte [edi]
inc edi
test cl, cl
jne 0x40dc50
mov byte [eax], 0
movzx ecx, byte [ebp + 0x60]
test cl, cl
je 0x40dc7b
lea edi, [ebp + 0x61]
nop
nop
nop
nop
nop
nop
nop
mov byte [eax], cl
inc eax
movzx ecx, byte [edi]
inc edi
test cl, cl
jne 0x40dc70
mov byte [eax], 0
movzx ecx, byte [esp + 0x44]
test cl, cl
je 0x40dc9b
lea edi, [esp + 0x45]
nop
nop
nop
nop
nop
mov byte [eax], cl
inc eax
movzx ecx, byte [edi]
inc edi
test cl, cl
jne 0x40dc90
mov byte [eax], 0
movzx ecx, byte [esi]
test cl, cl
je 0x40dcbb
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [eax], cl
inc eax
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40dcb0
mov byte [eax], 0
movzx ecx, byte [esp + 0xc]
test cl, cl
je 0x40dcdb
lea esi, [esp + 0xd]
nop
nop
nop
nop
nop
mov byte [eax], cl
inc eax
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40dcd0
mov dword [esp], ebp
mov byte [eax], 0
movzx ecx, byte [esp + 0x18]
test cl, cl
mov dword [esp + 0x14], ebx
je 0x40dd0b
lea esi, [esp + 0x19]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [eax], cl
inc eax
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40dd00
mov byte [eax], 0
mov edx, dword [esp + 0xa0]
mov ecx, edx
mov esi, edx
shr ecx, 2
mov ebp, dword [esp + 0x9c]
mov edx, ebp
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, esi
mov ebx, esi
and ebx, 0xfffffffc
lea esi, [eax + ebx]
add ebx, ebp
mov ecx, edx
mov ebp, edx
shr ecx, 1
and ecx, 1
mov edx, ebx
mov edi, esi
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov ecx, ebp
test cl, 1
je 0x40dd65
mov ecx, dword [esp + 0xa0]
and ecx, 2
movzx edx, byte [ebx + ecx]
mov byte [esi + ecx], dl
mov dword [esp + 0x44], 0x31333735
mov byte [esp + 0x48], 0x3c
mov dword [esp + 0x49], 0
mov dword [esp + 0x4c], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ecx
add dl, 0x8a
xor dl, byte [esp + ecx + 0x44]
add dl, 0x4e
mov byte [esp + ecx + 0x44], dl
mov edx, ecx
and edx, 1
mov esi, ecx
and esi, 0xe
add edx, ecx
xor ecx, 1
add ecx, edx
sub ecx, esi
cmp ecx, 0xc
jb 0x40dd90
mov dword [esp + 0x18], 0x36310d13
mov dword [esp + 0x1c], 0
mov dword [esp + 0x1f], 0
xor ecx, ecx
mov edi, dword [esp + 0x14]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ecx
add dl, 0x81
xor dl, byte [esp + ecx + 0x18]
add dl, 0x7b
mov byte [esp + ecx + 0x18], dl
inc ecx
cmp ecx, 0xb
jne 0x40dde0
add eax, dword [esp + 0xa0]
movzx ecx, byte [esp + 0x18]
test cl, cl
mov edx, dword [esp]
je 0x40de1b
lea esi, [esp + 0x19]
nop
nop
nop
mov byte [eax], cl
inc eax
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40de10
mov byte [eax], 0
movzx ecx, byte [edx + 0x60]
test cl, cl
je 0x40de3b
lea esi, [edx + 0x61]
nop
nop
nop
nop
nop
nop
nop
mov byte [eax], cl
inc eax
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40de30
mov byte [eax], 0
movzx ecx, byte [esp + 0x44]
test cl, cl
je 0x40de5b
lea esi, [esp + 0x45]
nop
nop
nop
nop
nop
mov byte [eax], cl
inc eax
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40de50
mov byte [eax], 0
sub eax, edi
add dword [edx + 0x80], eax
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret 0x10