Function at 0x140005d90
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x120
mov rdi, r9
mov rsi, rcx
mov r14, qword [0x14003da78]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x78]
xor ebx, ebx
xor r9d, r9d
call fcn.1400060c0
cmp qword [rsp + 0x78], 0
je 0x14000608d
mov dword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r15d, r15d
lea rbx, [rsp + 0x60]
mov rcx, rax
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_IsProcessInJob]
test eax, eax
je 0x140005ea3
cmp dword [rsp + 0x60], 0
je 0x140005ea3
xorps xmm0, xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x20], 0
xor r15d, r15d
lea r8, [rsp + 0x80]
xor ecx, ecx
mov edx, 9
mov r9d, 0x90
call qword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x140005ea3
mov eax, dword [rsp + 0x90]
test eax, 0x2000
je 0x140005ea3
shl eax, 0xd
and eax, 0x1000000
mov r15d, eax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0x80], 0x68
lea rax, str.winsta0Default
mov qword [rsp + 0x90], rax
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
test rdi, rdi
je 0x140005f36
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x58]
mov rdx, rdi
mov r8d, 1
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x140005f72
mov rax, qword [rsp + 0x58]
jmp 0x140005f7d
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0
mov rcx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
jmp 0x140005fd8
mov qword [rsp + 0x58], 0
xor eax, eax
mov r8, qword [rsp + 0x78]
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140005fd8
call sub.USERENV.dll_DestroyEnvironmentBlock
test ebx, ebx
je 0x140005ff3
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x60]
test rax, rax
je 0x140006064
mov qword [rax], rcx
jmp 0x14000606a
mov qword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
xor edx, edx
mov r8d, eax
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rax, qword [rsp + 0x58]
test rax, rax
lea rdx, [0x14003e164]
cmovne rdx, rax
lea rcx, str.Error_restarting:__s_n
call fcn.140006570
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140006075
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140006075
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x78], 0
test rcx, rcx
je 0x14000608d
call fcn.1400177b0
mov rax, qword [rsp + 0x118]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x1400060b1
mov eax, ebx
add rsp, 0x120
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140018700
int3