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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov esi, dword [esp + 0x78]
mov dword [esp + 0x18], ecx
mov eax, dword [ecx + 0x60]
mov dword [esp + 0x14], eax
mov word [esp], 0x1b1d
mov byte [esp + 2], 0x22
mov word [esp + 3], 0
mov byte [esp + 5], 0
mov edi, 0xb8
mov ebx, 0x47
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + edi - 0xb8]
mov ecx, ebx
xor ecx, edi
and ecx, ebp
xor ecx, edi
add cl, 0x68
mov byte [esp + edi - 0xb8], cl
inc edi
dec ebx
cmp edi, 0xbe
jne 0x40da00
mov dword [esp + 8], 0x1210142e
mov dword [esp + 0xc], 0xd12
mov byte [esp + 0x10], 0
mov edi, 0x42
mov ebx, 0xbd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + edi - 0x3a]
mov ecx, ebx
xor ecx, edi
and ecx, ebp
xor ecx, edi
add cl, 0xb6
mov byte [esp + edi - 0x3a], cl
inc edi
dec ebx
cmp edi, 0x4b
jne 0x40da50
mov dword [esp + 0x1c], 0xe6e02c2d
mov dword [esp + 0x20], 0xe2e2303c
mov dword [esp + 0x24], 0xeffae03d
mov dword [esp + 0x28], 0xeae7eee3
mov dword [esp + 0x2c], 0x22f7e3e2
mov dword [esp + 0x30], 0xf8d51f19
mov dword [esp + 0x34], 0xf5ffedf6
mov dword [esp + 0x38], 0xf6da30e8
mov dword [esp + 0x3c], 0xd0cdd1d3
mov dword [esp + 0x40], 0xc8cfd1cd
mov dword [esp + 0x44], 0xcd0a13c6
mov dword [esp + 0x48], 0x2c3dfc3
mov dword [esp + 0x4c], 0xd2c6d0d4
mov dword [esp + 0x50], 0xd6d8150f
mov dword [esp + 0x54], 0x1907dcd5
mov byte [esp + 0x58], 0x3c
mov dword [esp + 0x59], 0
mov dword [esp + 0x5c], 0
mov ebx, 0x20e75840
mov ebp, 0xdf18a7bf
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + ebx - 0x20e75824]
lea edi, [ebx - 0x20e75800]
and edi, ecx
mov eax, edi
and eax, 0xfffffffd
mov edx, edi
and edx, 2
or edi, 2
imul edi, edx
xor edx, 2
imul edx, eax
add edi, edx
lea eax, [ebx + ecx]
mov edx, ebp
sub edx, ecx
and edx, edi
not edi
and edi, eax
sub edi, edx
mov eax, edi
and eax, 0x1b7b46bf
xor edi, 0x5b7b46bf
lea eax, [edi + eax*2]
mov ecx, eax
or ecx, 1
add ecx, eax
not eax
or eax, 1
add ecx, eax
inc cl
mov byte [esp + ebx - 0x20e75824], cl
inc ebx
dec ebp
cmp ebx, 0x20e75884
jne 0x40db10
mov eax, dword [esp + 0x74]
add eax, dword [esp + 0x14]
movzx ecx, byte [esp + 0x1c]
mov edi, eax
test cl, cl
je 0x40dbab
lea ebx, [esp + 0x1d]
mov edi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], cl
inc edi
movzx ecx, byte [ebx]
inc ebx
test cl, cl
jne 0x40dba0
mov byte [edi], 0
movzx ecx, byte [esi]
test cl, cl
je 0x40dbcd
inc esi
mov edx, dword [esp + 0x7c]
nop
nop
nop
nop
nop
nop
mov byte [edi], cl
inc edi
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40dbc0
jmp 0x40dbd1
mov edx, dword [esp + 0x7c]
mov byte [edi], 0
movzx ecx, byte [esp + 8]
test cl, cl
je 0x40dbfb
lea esi, [esp + 9]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], cl
inc edi
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40dbf0
mov byte [edi], 0
movzx ecx, byte [edx]
test cl, cl
je 0x40dc1b
inc edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], cl
inc edi
movzx ecx, byte [edx]
inc edx
test cl, cl
jne 0x40dc10
mov byte [edi], 0
movzx ecx, byte [esp]
test cl, cl
je 0x40dc3b
lea edx, [esp + 1]
nop
nop
nop
nop
nop
nop
mov byte [edi], cl
inc edi
movzx ecx, byte [edx]
inc edx
test cl, cl
jne 0x40dc30
mov byte [edi], 0
sub edi, eax
mov eax, dword [esp + 0x18]
add dword [eax + 0x60], edi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 0xc