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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa8
cmp dword [ecx + 0x20], 0
je 0x40e42d
mov esi, ecx
movzx eax, byte [ecx]
lea ecx, [esp + 0xa4]
push 0xa
push 4
push ecx
push eax
call fcn.0040e440
add esp, 0x10
mov ebx, eax
lea eax, [esi + 0x10]
push eax
call fcn.0040ac70
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], ecx
lea eax, [ecx + 0x400]
push eax
call fcn.0040ce10
add esp, 4
mov edi, eax
mov dword [esp + 0x1c], 0xafab9ea8
mov byte [esp + 0x20], 0x6c
mov dword [esp + 0x21], 0
mov eax, 0x7698213c
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x76982120]
lea edx, [eax - 0x76982100]
and edx, ecx
or ecx, eax
xor ecx, edx
mov edx, ecx
and edx, 0x4e
xor ecx, 0x4e
lea ecx, [ecx + edx*2]
add cl, 0x86
mov byte [esp + eax - 0x76982120], cl
inc eax
cmp eax, 0x76982145
jne 0x40dfe0
lea ebp, [esp + 0x1c]
mov ecx, esi
push str.C3BC53E89578BE4C0ADF174CB00A672F
push ebp
push edi
call fcn.0040d960
mov dword [esp + 0x1c], 0x59fee4f4
mov word [esp + 0x20], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, eax
and edx, 1
xor edx, 0x91
mov ecx, eax
and ecx, 6
sub ecx, edx
xor cl, byte [esp + eax + 0x1c]
add cl, 0xd5
mov byte [esp + eax + 0x1c], cl
inc eax
cmp eax, 6
jne 0x40e040
mov ecx, esi
push ebx
push ebp
push edi
call fcn.0040d960
mov eax, dword [str.BVnUqo___BrunoAgazzi]
mov dword [esp + 0x1c], 0x933e3804
mov word [esp + 0x20], 0
mov byte [esp + 0x22], 0
mov ecx, 0x97300324
nop
nop
nop
nop
nop
movzx ebx, byte [esp + ecx + 0x68cffcf8]
xor ebx, ecx
mov edx, ebx
or edx, 0xfe
add edx, ebx
not ebx
and ebx, 1
add edx, ebx
add dl, 0x4d
mov byte [esp + ecx + 0x68cffcf8], dl
inc ecx
cmp ecx, 0x9730032b
jne 0x40e090
mov ecx, esi
push eax
push ebp
mov dword [esp + 0x1c], edi
push edi
call fcn.0040d960
mov dword [esp + 0x1c], 0x47bc44b3
mov dword [esp + 0x20], 0xb443b84b
mov dword [esp + 0x24], 0x3e3d38cb
mov byte [esp + 0x28], 0x5c
mov dword [esp + 0x29], 0
mov byte [esp + 0x2d], 0
mov edx, 0xa5adb8
mov ebp, 0x75a5247
movzx edi, byte [esp + edx - 0xa5ad9c]
mov eax, ebp
or eax, edi
lea ebx, [ebp - 0x75a5200]
and ebx, edi
xor ebx, eax
and ebx, edx
mov eax, ebx
or al, 0xfd
inc al
mov ecx, ebx
and cl, 0xfd
mul cl
mov ecx, eax
mov eax, edi
add cl, al
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, edx
add al, 0x68
mov byte [esp + edx - 0xa5ad9c], al
inc edx
dec ebp
cmp edx, 0xa5adca
jne 0x40e100
mov dword [esp + 4], 0xf9661613
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov eax, 0x2ebb52ab
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x2ebb52a7]
xor ecx, eax
mov edx, ecx
not edx
or edx, 0x165762a8
add edx, ecx
inc edx
or ecx, 0x165762a8
mov ebx, edx
and ebx, ecx
xor ecx, edx
lea ecx, [ecx + ebx*2]
inc cl
mov byte [esp + eax - 0x2ebb52a7], cl
inc eax
cmp eax, 0x2ebb52b2
jne 0x40e170
lea eax, [esp + 4]
mov ecx, esi
lea ebx, [esp + 0x1c]
push ebx
push eax
mov edi, dword [esp + 0x1c]
push edi
call fcn.0040d960
mov dword [esp + 0x1c], 0x126e6c16
mov byte [esp + 0x20], 0xf8
mov dword [esp + 0x21], 0
mov byte [esp + 0x25], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x2b
xor cl, byte [esp + eax + 0x1c]
add cl, 0x29
mov byte [esp + eax + 0x1c], cl
inc eax
cmp eax, 0xa
jne 0x40e1e0
mov ecx, esi
push dword [esp]
push dword [esp + 0x1c]
push ebx
push edi
call fcn.0040db90
mov eax, dword [esi + 0x60]
mov dword [esp], eax
mov dword [esp + 0x1c], 0x1fad195f
mov dword [esp + 0x20], 0x63d61dae
mov dword [esp + 0x24], 0x67d461c5
mov dword [esp + 0x28], 0x6b0765d0
mov dword [esp + 0x2c], 0x6fd7693c
mov dword [esp + 0x30], 0x73d76ddc
mov dword [esp + 0x34], 0x7716710e
mov dword [esp + 0x38], 0x7bcf75d9
mov dword [esp + 0x3c], 0x7fca79d4
mov dword [esp + 0x40], 0x43f27dd5
mov dword [esp + 0x44], 0x47f041e1
mov dword [esp + 0x48], 0x4b3945f0
mov dword [esp + 0x4c], 0x4ffd49e2
mov dword [esp + 0x50], 0x53ff4dfa
mov dword [esp + 0x54], 0x57f2513d
mov dword [esp + 0x58], 0x5bee55f5
mov dword [esp + 0x5c], 0x5f2159f9
mov dword [esp + 0x60], 0xa3045d3c
mov dword [esp + 0x64], 0xa713a113
mov dword [esp + 0x68], 0xab0ea516
mov dword [esp + 0x6c], 0xaf18a909
mov dword [esp + 0x70], 0xb3cfad15
mov dword [esp + 0x74], 0xb713b116
mov dword [esp + 0x78], 0xbbcfb5cc
mov dword [esp + 0x7c], 0xbf1bb91c
mov dword [esp + 0x80], 0x832bbdc9
mov dword [esp + 0x84], 0x87228130
mov dword [esp + 0x88], 0x8b2d8537
mov dword [esp + 0x8c], 0x8f2b8921
mov dword [esp + 0x90], 0x93248d3a
mov dword [esp + 0x94], 0x97e79135
mov dword [esp + 0x98], 0x9b949599
mov word [esp + 0x9c], 0x9998
mov word [esp + 0xa2], 0
mov dword [esp + 0x9e], 0
mov eax, 0x65c3feba
mov ebx, 0x1a3c0145
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + eax - 0x65c3fe9e]
mov edx, ebx
and edx, 0x1028006e
mov ecx, eax
and ecx, 0x4183df91
or ecx, edx
xor ecx, ebp
xor ecx, 0x3468206e
add ecx, 0x32c065d
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov byte [esp + eax - 0x65c3fe9e], cl
inc eax
dec ebx
cmp eax, 0x65c3ff42
jne 0x40e350
mov dword [esp + 4], 0x57f7493b
mov dword [esp + 8], 0x53fb55e4
mov word [esp + 0xc], 0x5150
mov dword [esp + 0xe], 0
mov byte [esp + 0x12], 0
mov ecx, 0x1bdee6ee
nop
nop
nop
nop
movzx eax, byte [esp + ecx - 0x1bdee6ea]
mov edx, ecx
and edx, eax
add edx, edx
sub eax, edx
lea ebx, [ecx + eax]
and ebx, 1
lea edx, [ecx + eax]
add edx, 0x59
or edx, 1
sub edx, ebx
inc dl
mov byte [esp + ecx - 0x1bdee6ea], dl
inc ecx
cmp ecx, 0x1bdee6fd
jne 0x40e3c0
push 0x493e0
push dword [esp + 4]
push edi
push 0
push 0
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004108f0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.0040ce20
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
jmp 0x40e42f
mov bl, 1
mov eax, ebx
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret