Function at 0x18001f1d0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov rax, qword [0x1800b44b0]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov ebx, r9d
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
mov qword [rbp - 0x70], r14
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x50], r14d
xor edx, edx
lea r8d, [r14 + 0x60]
lea rcx, [rbp - 0x48]
call fcn.180021c80
mov qword [rsp + 0x60], r14
call fcn.18001f040
test ebx, ebx
je 0x18001f276
mov qword [rsp + 0x68], r14
lea rdx, [rsp + 0x68]
mov ecx, ebx
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x18001f26f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x68]
lea edx, [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18001f608
mov rbx, qword [rsp + 0x68]
jmp 0x18001f2c4
call fcn.18001f120
cmp eax, 0xffffffff
je 0x18001f608
mov qword [rsp + 0x70], r14
lea rdx, [rsp + 0x70]
mov ecx, eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x18001f2bf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x70]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rbx, r14
test eax, eax
cmovne rbx, qword [rsp + 0x70]
jmp 0x18001f2c4
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x18001f608
mov dword [rbp - 0x50], 0x68
lea rax, str.winsta0default
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x78], r14
mov dword [rbp - 0x80], r14d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rbp - 0x78]
lea edx, [r9 + 0xb]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x18001f318
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbp - 0x78]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
mov edx, 0x2000000
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x18001f35e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001f608
mov qword [rsp + 0x78], r14
mov r8d, 1
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x78]
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x18001f345
lea rdx, [0x1800831e8]
test rdi, rdi
cmovne rdx, rdi
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], r14
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r14
mov word [rbp + 0x20], r14w
cmp word [rdx], r14w
jne 0x18001f3ae
mov r8, r14
jmp 0x18001f3bc
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r14w
jne 0x18001f3b2
lea rcx, [rbp + 0x20]
call fcn.1800046a0
nop
mov qword [rbp + 0x70], r14
mov qword [rbp + 0x78], r14
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], r14
mov word [rbp + 0x60], r14w
mov r8d, 2
lea rdx, [0x180083170]
lea rcx, [rbp + 0x60]
call fcn.1800046a0
nop
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x58], r14
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r14
mov word [rbp + 0x40], r14w
mov r8d, 1
lea rdx, [0x18008690c]
lea rcx, [rbp + 0x40]
call fcn.1800046a0
nop
mov r8, rsi
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0xc0]
call fcn.180002f40
nop
lea r8, [rbp + 0x60]
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.18001ef80
nop
lea r8, [rbp + 0x20]
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.18001ef80
nop
cmp qword [rbp + 0xb8], 8
jb 0x18001f478
mov rcx, qword [rbp + 0xa0]
call fcn.180022e04
mov qword [rbp + 0xb8], 7
mov qword [rbp + 0xb0], r14
mov word [rbp + 0xa0], r14w
cmp qword [rbp + 0xd8], 8
jb 0x18001f4a8
mov rcx, qword [rbp + 0xc0]
call fcn.180022e04
mov qword [rbp + 0xd8], 7
mov qword [rbp + 0xd0], r14
mov word [rbp + 0xc0], r14w
cmp qword [rbp + 0x58], 8
jb 0x18001f4d2
mov rcx, qword [rbp + 0x40]
call fcn.180022e04
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r14
mov word [rbp + 0x40], r14w
cmp qword [rbp + 0x78], 8
jb 0x18001f4f3
mov rcx, qword [rbp + 0x60]
call fcn.180022e04
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], r14
mov word [rbp + 0x60], r14w
cmp qword [rbp + 0x38], 8
jb 0x18001f514
mov rcx, qword [rbp + 0x20]
call fcn.180022e04
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r14
mov word [rbp + 0x20], r14w
lea r8, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae r8, qword [rbp + 0x80]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r14
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x420
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x18001f5a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call sub.USERENV.dll_DestroyEnvironmentBlock
mov rbx, r14
jmp 0x18001f5d3
mov rcx, qword [rsp + 0x78]
call sub.USERENV.dll_DestroyEnvironmentBlock
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbp - 0x70]
cmp qword [rbp + 0x98], 8
jb 0x18001f5e9
mov rcx, qword [rbp + 0x80]
call fcn.180022e04
mov qword [rbp + 0x98], 7
mov qword [rbp + 0x90], r14
mov word [rbp + 0x80], r14w
mov rax, rbx
jmp 0x18001f60a
xor eax, eax
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.180022a00
add rsp, 0x1f0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret