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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov edx, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x18], ecx
mov eax, dword [ecx + 0x60]
mov dword [esp + 0x14], eax
mov word [esp], 0xc5d7
mov byte [esp + 2], 0xda
mov dword [esp + 3], 0
mov byte [esp + 7], 0
mov ebx, 0x804a374f
mov ebp, 0xb0
nop
nop
nop
nop
movzx ecx, byte [esp + ebx + 0x7fb5c8b1]
mov edi, ebp
xor edi, ebx
and edi, ecx
xor edi, ebx
mov ecx, edi
and ecx, 1
xor edi, 1
lea ecx, [edi + ecx*2]
add ecx, 0x8258f6
mov edi, ecx
xor edi, 0x82
and ecx, 0x7d
add ecx, ecx
sub ecx, edi
mov byte [esp + ebx + 0x7fb5c8b1], cl
inc ebx
dec ebp
cmp ebx, 0x804a3757
jne 0x40d9b0
mov dword [esp + 8], 0x46484452
mov word [esp + 0xc], 0x6d56
mov dword [esp + 0xe], 0
mov byte [esp + 0x12], 0
xor eax, eax
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + ebp + 8]
mov ebx, eax
and ebx, 0x18
mov ecx, ebp
xor ecx, 0x171e036c
add ecx, ebx
xor ecx, edi
mov edi, 0x1c
sub edi, ecx
not ecx
and ecx, 1
or edi, 1
sub ecx, edi
mov byte [esp + ebp + 8], cl
inc ebp
add eax, 2
cmp ebp, 0xb
jne 0x40da20
mov dword [esp + 0x1c], 0x6005c5d
mov dword [esp + 0x20], 0x202502c
mov dword [esp + 0x24], 0x1f0a004d
mov dword [esp + 0x28], 0x1a071e03
mov dword [esp + 0x2c], 0x42170302
mov dword [esp + 0x30], 0x8356f69
mov dword [esp + 0x34], 0xf5effdf6
mov dword [esp + 0x38], 0xf6cab0f8
mov dword [esp + 0x3c], 0xf0fdf1f3
mov dword [esp + 0x40], 0xf8fff1fd
mov dword [esp + 0x44], 0xfdbad3e6
mov dword [esp + 0x48], 0xa2e3efe3
mov dword [esp + 0x4c], 0xf2e6f0f4
mov dword [esp + 0x50], 0xf6e8b5df
mov dword [esp + 0x54], 0x89e7ccd5
mov byte [esp + 0x58], 0xac
mov dword [esp + 0x59], 0
mov byte [esp + 0x5d], 0
mov ebx, 0x1cad14e8
mov edi, 0x17
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + ebx - 0x1cad14cc]
mov ebp, edi
xor ebp, ebx
and ebp, eax
xor ebp, ebx
lea ecx, [ebp + 0x709e9777]
mov eax, ecx
xor eax, 0x7e
or ecx, 1
and ecx, eax
mov eax, 0x88
sub eax, ebp
and eax, 0xfe
or ebp, 0xfe
xor ebp, eax
lea eax, [ecx*2]
add eax, ebp
mov byte [esp + ebx - 0x1cad14cc], al
inc ebx
dec edi
cmp ebx, 0x1cad152a
jne 0x40daf0
mov eax, dword [esp + 0x74]
add eax, dword [esp + 0x14]
movzx ebx, byte [esp + 0x1c]
mov edi, eax
test bl, bl
je 0x40db6b
lea ecx, [esp + 0x1d]
mov edi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], bl
inc edi
movzx ebx, byte [ecx]
inc ecx
test bl, bl
jne 0x40db60
mov byte [edi], 0
movzx ebx, byte [esi]
test bl, bl
je 0x40db8b
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], bl
inc edi
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40db80
mov byte [edi], 0
movzx ebx, byte [esp + 8]
test bl, bl
je 0x40dbab
lea ecx, [esp + 9]
nop
nop
nop
nop
nop
mov byte [edi], bl
inc edi
movzx ebx, byte [ecx]
inc ecx
test bl, bl
jne 0x40dba0
mov byte [edi], 0
movzx ebx, byte [edx]
test bl, bl
je 0x40dbcb
inc edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], bl
inc edi
movzx ebx, byte [edx]
inc edx
test bl, bl
jne 0x40dbc0
mov byte [edi], 0
movzx edx, byte [esp]
test dl, dl
je 0x40dbeb
lea ecx, [esp + 1]
nop
nop
nop
nop
nop
nop
mov byte [edi], dl
inc edi
movzx edx, byte [ecx]
inc ecx
test dl, dl
jne 0x40dbe0
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