Function at 0x1400f7980
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x320]
sub rsp, 0x420
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rbp + 0x310], rax
mov rdi, rdx
mov r12d, ecx
xor r14b, r14b
xor ebx, ebx
mov qword [rbp - 8], rbx
mov qword [rbp - 0x10], rbx
mov r8d, ecx
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x1400f7a2e
lea rbx, str.0cg_
mov rax, qword [str.0cg_]
cmp rax, rbx
je 0x1400f7e95
test byte [rax + 0x1c], 1
je 0x1400f7e95
cmp byte [rax + 0x19], 2
jb 0x1400f7e95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov rax, qword [str.0cg_]
lea edx, [rsi + 0xa]
lea r8, [0x1405f7e88]
mov rcx, qword [rax + 0x10]
call fcn.140082b10
jmp 0x1400f7e95
mov rcx, rsi
call fcn.1401d2e70
mov r13d, ebx
test al, al
sete r13b
lea r8, [rbp - 8]
mov edx, 0x200eb
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400f7ab3
lea rbx, str.0cg_
mov rax, qword [str.0cg_]
cmp rax, rbx
je 0x1400f7aa5
test byte [rax + 0x1c], 1
je 0x1400f7aa5
cmp byte [rax + 0x19], 2
jb 0x1400f7aa5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [str.0cg_]
mov edx, 0xb
mov dword [rsp + 0x20], r8d
lea r9, [0x1405f7e00]
lea r8, [0x1405f7e88]
mov rcx, qword [rax + 0x10]
call fcn.140079f00
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400f7e95
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov r15d, eax
lea rbx, str.0cg_
test eax, eax
jne 0x1400f7b26
mov rcx, qword [str.0cg_]
cmp rcx, rbx
je 0x1400f7b26
test byte [rcx + 0x1c], 1
je 0x1400f7b26
cmp byte [rcx + 0x19], 2
jb 0x1400f7b26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov rax, qword [str.0cg_]
lea edx, [r15 + 0xc]
lea r8, [0x1405f7e88]
mov rcx, qword [rax + 0x10]
call fcn.140082b10
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15d, r15d
je 0x1400f7e95
call fcn.14011c100
mov rsi, rax
lea rcx, [0x140686d60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r15d, r15d
mov qword [rbp + 0x98], r15
mov qword [rbp + 0xa8], r15
mov qword [rbp + 0xb0], 7
mov word [rbp + 0x98], r15w
mov qword [rbp + 0xb8], r15
mov qword [rbp + 0xc8], r15
mov qword [rbp + 0xd0], 7
mov word [rbp + 0xb8], r15w
mov qword [rbp + 0xd8], r15
mov qword [rbp + 0xe8], r15
mov qword [rbp + 0xf0], 7
mov word [rbp + 0xd8], r15w
lea rax, [rbp + 0x98]
cmp rax, rdi
je 0x1400f7be6
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x1400f7bd7
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rbp + 0x98]
call fcn.1400739a0
mov dword [rbp + 0x90], r12d
mov dword [rbp + 0x94], r13d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 7
lea rcx, [rbp + 0xb8]
call fcn.140073b90
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp + 0xb8], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rbp + 0xc8], xmm1
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 7
lea rcx, [rbp + 0xd8]
call fcn.140073b90
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp + 0xd8], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rbp + 0xe8], xmm1
mov qword [rbp - 0x80], rsi
lea rax, [rbp - 0x78]
mov qword [rsp + 0x60], rax
mov eax, dword [rbp + 0x90]
mov dword [rbp - 0x78], eax
mov eax, dword [rbp + 0x94]
mov dword [rbp - 0x74], eax
lea rdx, [rbp + 0x98]
lea rcx, [rbp - 0x70]
call fcn.1400733c0
nop
lea rdx, [rbp + 0xb8]
lea rcx, [rbp - 0x50]
call fcn.1400733c0
nop
lea rdx, [rbp + 0xd8]
lea rcx, [rbp - 0x30]
call fcn.1400733c0
nop
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x60]
call fcn.1400f84a0
nop
lea rcx, [rbp - 0x30]
call fcn.140073b90
lea rcx, [rbp - 0x50]
call fcn.140073b90
lea rcx, [rbp - 0x70]
call fcn.140073b90
nop
lea rcx, [rbp + 0xd8]
call fcn.140073b90
lea rcx, [rbp + 0xb8]
call fcn.140073b90
lea rcx, [rbp + 0x98]
call fcn.140073b90
lea rcx, [0x140686d60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], rax
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x20], 0x68
lea rax, str.winsta0Default
mov qword [rbp + 0x30], rax
call fcn.1401d2a70
mov r9, rsi
mov r8, rax
lea rdx, str.__ls___restart:_016I64X
lea rcx, [rbp + 0x100]
call fcn.140087660
mov qword [rbp], r15
xor r8d, r8d
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov ecx, r15d
mov edx, 0x400
test eax, eax
cmovne ecx, edx
lea rax, [rbp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r15
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rbp + 0x100]
xor edx, edx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1400f7e2c
mov rax, qword [str.0cg_]
cmp rax, rbx
je 0x1400f7e86
test byte [rax + 0x1c], 1
je 0x1400f7e86
cmp byte [rax + 0x19], 2
jb 0x1400f7e86
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0xd
mov dword [rsp + 0x20], eax
lea r9, str.CreateProcessAsUser
lea r8, [0x1405f7e88]
mov rcx, qword [str.0cg_]
mov rcx, qword [rcx + 0x10]
call fcn.140079f00
jmp 0x1400f7e86
mov rcx, qword [str.0cg_]
cmp rcx, rbx
je 0x1400f7e60
test byte [rcx + 0x1c], 1
je 0x1400f7e60
cmp byte [rcx + 0x19], 2
jb 0x1400f7e60
mov edx, 0xe
lea r9, [rbp + 0x100]
lea r8, [0x1405f7e88]
mov rcx, qword [rcx + 0x10]
call fcn.1400786c0
mov edx, 0x2710
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14b, 1
mov rcx, qword [rbp]
test rcx, rcx
je 0x1400f7e95
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400f7ea4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, r14b
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.140359070
mov rbx, qword [rsp + 0x470]
add rsp, 0x420
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret