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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xac
cmp dword [ecx + 0x20], 0
je 0x40dcad
mov esi, ecx
movzx eax, byte [ecx]
lea ecx, [esp + 0xa8]
push 0xa
push 4
push ecx
push eax
call fcn.0040dcc0
add esp, 0x10
mov dword [esp], eax
lea eax, [esi + 0x10]
push eax
call fcn.0040a500
add esp, 4
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
lea eax, [ecx + 0x400]
push eax
call fcn.0040c820
add esp, 4
mov edi, eax
mov dword [esp + 0x20], 0xefebfee8
mov byte [esp + 0x24], 0x6c
mov dword [esp + 0x25], 0
mov byte [esp + 0x29], 0
mov eax, 0xe4c6cbec
mov ecx, 0x13
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x1b393434]
mov ebp, eax
or ebp, edx
not edx
or edx, ecx
and edx, ebp
lea ebp, [edx + 0x63]
not edx
and edx, 1
xor ebp, 1
lea edx, [edx*2]
add edx, ebp
mov byte [esp + eax + 0x1b393434], dl
inc eax
dec ecx
cmp eax, 0xe4c6cbf6
jne 0x40d810
lea ebp, [esp + 0x20]
mov ecx, esi
push str.1D061ABF9578BE4C0ADF174CB00A672F
push ebp
push edi
call fcn.0040d1f0
mov dword [esp + 0x20], 0xcfaa5058
mov byte [esp + 0x24], 0
mov eax, 0xc6c03d2b
mov ebx, 0x8d807a56
nop
mov ecx, ebx
and ecx, 0x24
mov edx, eax
xor edx, 0x52
add edx, ecx
add dl, 0xd5
xor dl, byte [esp + eax + 0x393fc2f5]
add dl, 0x66
mov byte [esp + eax + 0x393fc2f5], dl
inc eax
add ebx, 2
cmp eax, 0xc6c03d30
jne 0x40d870
mov ecx, esi
push dword [esp]
push ebp
mov dword [esp + 8], edi
push edi
call fcn.0040d1f0
mov eax, dword [str.tLYMe5__5]
mov dword [esp + 4], eax
mov dword [esp + 0x20], 0x4faad0d4
mov dword [esp + 0x24], 0
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + edi + 0x20]
mov ecx, edi
and ecx, 6
xor ecx, 0x82caba6e
mov edx, edi
and edx, 1
sub edx, ecx
mov ecx, edx
and ecx, ebx
mov eax, ebx
not eax
or eax, edx
xor edx, ebx
sub edx, ebx
add edx, ecx
lea ebx, [eax + eax]
not ebx
add ebx, eax
or ebx, edx
mov eax, ebx
not eax
and eax, 0xdb
and ebx, 0x24
sub ebx, eax
inc bl
mov byte [esp + edi + 0x20], bl
inc edi
cmp edi, 8
jne 0x40d8d0
mov ecx, esi
push dword [esp + 4]
push ebp
push dword [esp + 8]
call fcn.0040d1f0
mov dword [esp + 0x20], 0xafa4aca3
mov dword [esp + 0x24], 0xdcd3d8cb
mov dword [esp + 0x28], 0xd6d5c8db
mov byte [esp + 0x2c], 0x64
mov word [esp + 0x2d], 0
mov byte [esp + 0x2f], 0
mov eax, 0x46933343
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [ebp]
lea edx, [ecx + ecx]
not edx
add edx, ecx
and edx, 0x8ac7a4e8
and ecx, 0x17
or ecx, edx
mov edx, eax
xor edx, 0x75385b17
mov edi, ecx
and edi, edx
add edx, ecx
add edi, edi
sub edx, edi
add dl, 0x54
mov byte [ebp], dl
inc ebp
dec eax
cmp eax, 0x46933333
jne 0x40d960
mov dword [esp + 8], 0x138e7271
mov byte [esp + 0xc], 0
mov eax, 0x6d502984
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x6d50297c]
lea edx, [eax - 0x6d502900]
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
mov edx, ecx
xor edx, 0xa7eaa98f
and ecx, 0xd8155670
add ecx, ecx
sub ecx, edx
mov edx, ecx
and edx, 0x6b
xor ecx, 0x6b
lea ecx, [ecx + edx*2]
add cl, 0x90
mov byte [esp + eax - 0x6d50297c], cl
inc eax
cmp eax, 0x6d502989
jne 0x40d9b0
lea edx, [esp + 0x20]
lea eax, [esp + 8]
mov dword [esp + 4], esi
mov ecx, esi
push edx
push eax
push dword [esp + 8]
call fcn.0040d1f0
mov dword [esp + 0x20], 0xbeb2bcba
mov byte [esp + 0x24], 0x20
mov word [esp + 0x25], 0
mov byte [esp + 0x27], 0
mov ebx, 0x3b528239
mov ecx, 0xc4ad7dc6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + ebx - 0x3b528219]
mov eax, ebx
and eax, ebp
add eax, eax
sub eax, ebp
add eax, ecx
and eax, ebx
mov edi, eax
and edi, 0x3b52827d
mov esi, eax
and esi, 2
mov edx, eax
or edx, 0xfffffffd
inc edx
imul edx, edi
or eax, 2
imul eax, esi
add edx, ebp
sub edx, eax
add edx, ebx
mov eax, edx
and eax, 0x62
xor edx, 0xe2
lea eax, [edx + eax*2]
inc al
mov byte [esp + ebx - 0x3b528219], al
inc ebx
dec ecx
cmp ebx, 0x3b528241
jne 0x40da40
mov esi, dword [esp + 4]
mov ecx, esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
lea ebx, [esp + 0x28]
push ebx
mov edi, dword [esp + 0xc]
push edi
call fcn.0040d3f0
mov eax, dword [esi + 0x60]
mov dword [esp + 0x20], 0x219727f9
mov dword [esp + 0x24], 0x3dae2396
mov dword [esp + 0x28], 0x39883f83
mov dword [esp + 0x2c], 0x35cd3bb4
mov dword [esp + 0x30], 0x31bd3798
mov dword [esp + 0x34], 0xd8d3380
mov dword [esp + 0x38], 0x9ee0fc6
mov dword [esp + 0x3c], 0x5850bbf
mov dword [esp + 0x40], 0x18a07b0
mov dword [esp + 0x44], 0x1db203bb
mov dword [esp + 0x48], 0x19ac1fbf
mov dword [esp + 0x4c], 0x15eb1b94
mov dword [esp + 0x50], 0x11a717aa
mov dword [esp + 0x54], 0xeda513a2
mov dword [esp + 0x58], 0xe952ef1b
mov dword [esp + 0x5c], 0xe566eb4b
mov dword [esp + 0x60], 0xe123e747
mov dword [esp + 0x64], 0xfd40e300
mov dword [esp + 0x68], 0xf971ff4d
mov dword [esp + 0x6c], 0xf546fb4e
mov dword [esp + 0x70], 0xf144f757
mov dword [esp + 0x74], 0xcd35f37b
mov dword [esp + 0x78], 0xc971cf6e
mov dword [esp + 0x7c], 0xc505cb00
mov dword [esp + 0x80], 0xc179c778
mov dword [esp + 0x84], 0xdd79c30f
mov dword [esp + 0x88], 0xd962df6c
mov dword [esp + 0x8c], 0xd567db69
mov dword [esp + 0x90], 0xd169d76f
mov dword [esp + 0x94], 0xad60d362
mov dword [esp + 0x98], 0xa95daf13
mov dword [esp + 0x9c], 0xa5b0abbf
mov word [esp + 0xa0], 0xa7a4
mov word [esp + 0xa6], 0
mov dword [esp + 0xa2], 0
mov ecx, 0x4c00f7c9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx - 0x4c00f7a9]
xor edx, ecx
add edx, 0x75cf0bb
mov esi, edx
and esi, 0x12
xor edx, 0x12
lea edx, [edx + esi*2]
add dl, 0x46
mov byte [esp + ecx - 0x4c00f7a9], dl
inc ecx
cmp ecx, 0x4c00f851
jne 0x40dc00
mov dword [esp + 8], 0x79dd7b55
mov dword [esp + 0xc], 0x7de17fe8
mov word [esp + 0x10], 0x737c
mov dword [esp + 0x12], 0
mov word [esp + 0x16], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ecx
add dl, 0x3f
xor dl, byte [esp + ecx + 8]
add dl, 0xc5
mov byte [esp + ecx + 8], dl
inc ecx
cmp ecx, 0x10
jne 0x40dc60
push 0x493e0
push eax
push edi
push 0
push 0
push ebx
lea eax, [esp + 0x20]
push eax
call fcn.0040fb60
add esp, 0x1c
mov ebx, eax
push edi
call fcn.0040c830
add esp, 4
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x60]
add dword [ecx + 4], eax
mov dword [ecx + 0x60], 0
jmp 0x40dcaf
mov bl, 1
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret