Function at 0x180032140
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x188]
sub rsp, 0x270
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1801c2938]
xor rax, rsp
mov qword [rbp + 0x168], rax
mov rbx, rcx
xor r12d, r12d
mov qword [rsp + 0x60], r12
lea rdx, str.SeTcbPrivilege
lea rcx, [rbp + 0xf0]
call fcn.180014430
nop
lea rcx, [rbp + 0xf0]
call fcn.180032aa0
nop
lea rcx, [rbp + 0xf0]
call fcn.1800a20a0
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea rdx, [rsp + 0x60]
mov ecx, eax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x18003229e
lea rcx, [rbp - 0x70]
call fcn.180014d60
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.QUT_FAILED._GetLastError:
lea rcx, [rbp - 0x70]
call fcn.180022d00
mov rcx, rax
mov edx, ebx
call fcn.18002d850
lea rdx, str.CProcUtility::FXCreateProcessAsUser
lea rcx, [rbp + 0x118]
call fcn.180012480
nop
lea rdx, str.ProcUtility.cpp
lea rcx, [rbp + 0xf0]
call fcn.180012480
nop
lea rdx, [rbp + 0x140]
lea rcx, [rbp - 0x70]
call fcn.180014e40
mov rbx, rax
call fcn.180016d70
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x118]
mov qword [rsp + 0x20], rax
mov r9d, 0x156
lea r8, [rbp + 0xf0]
xor edx, edx
call fcn.180030340
nop
lea rcx, [rbp + 0x140]
call fcn.1800a20a0
nop
lea rcx, [rbp + 0xf0]
call fcn.180001850
nop
lea rcx, [rbp + 0x118]
call fcn.180001850
nop
lea rcx, [rbp + 0x18]
call fcn.180014de0
lea rcx, [rbp + 0x18]
call fcn.180013e40
xor al, al
jmp 0x1800325a9
mov qword [rsp + 0x70], r12
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
xor edx, edx
lea r8d, [rax + 0x60]
lea rcx, [rbp + 0x88]
call fcn.1800c6a90
mov dword [rbp + 0x80], 0x68
lea rax, str.winsta0default
mov qword [rbp + 0x90], rax
mov dword [rbp + 0xbc], 1
mov word [rbp + 0xc0], r12w
mov rcx, qword [0x1801c69a8]
inc rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800bd064
mov rdi, rax
test rax, rax
jne 0x1800323de
lea rcx, [rbp - 0x70]
call fcn.180014d60
nop
lea rdx, str.new_FAILED.
lea rcx, [rbp - 0x70]
call fcn.180022d00
lea rdx, str.CProcUtility::FXCreateProcessAsUser
lea rcx, [rbp + 0xf0]
call fcn.180012480
nop
lea rdx, str.ProcUtility.cpp
lea rcx, [rbp + 0x118]
call fcn.180012480
nop
lea rdx, [rbp + 0x140]
lea rcx, [rbp - 0x70]
call fcn.180014e40
mov rbx, rax
call fcn.180016d70
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, 0x165
lea r8, [rbp + 0x118]
xor edx, edx
call fcn.180030340
nop
lea rcx, [rbp + 0x140]
call fcn.1800a20a0
nop
lea rcx, [rbp + 0x118]
call fcn.180001850
nop
lea rcx, [rbp + 0xf0]
call fcn.180001850
nop
lea rcx, [rbp + 0x18]
call fcn.180014de0
lea rcx, [rbp + 0x18]
call fcn.180013e40
xor al, al
jmp 0x1800325a9
mov r8, qword [0x1801c69a8]
inc r8
xor edx, edx
mov rcx, rax
call fcn.1800c6a90
lea r8, [0x1801c6998]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae r8, qword [0x1801c6998]
lea rdx, [0x18014ac74]
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x68], r12
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov sil, 1
cmp qword [rbx + 0x18], 8
jb 0x18003243e
mov rbx, qword [rbx]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x420
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x180032562
lea rcx, [rbp - 0x70]
call fcn.180014590
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.CPAU_FAILED._GetLastError:
lea rcx, [rbp - 0x70]
call fcn.180021c60
mov rcx, rax
mov edx, ebx
call fcn.180012f50
lea rdx, str.CProcUtility::FXCreateProcessAsUser
lea rcx, [rbp + 0xf0]
call fcn.180012480
nop
lea rdx, str.ProcUtility.cpp
lea rcx, [rbp + 0x118]
call fcn.180012480
nop
lea rdx, [rbp + 0x140]
lea rcx, [rbp - 0x70]
call fcn.1800146d0
mov rbx, rax
call fcn.180016d70
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, 0x17c
lea r8, [rbp + 0x118]
xor edx, edx
call fcn.18002ff90
nop
lea rcx, [rbp + 0x140]
call fcn.180001850
nop
lea rcx, [rbp + 0x118]
call fcn.180001850
nop
lea rcx, [rbp + 0xf0]
call fcn.180001850
nop
lea rcx, [rbp + 0x18]
call fcn.180014670
lea rcx, [rbp + 0x18]
call fcn.180013e40
xor sil, sil
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], r12
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], r12
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r12
mov rcx, rdi
call fcn.1800be7e8
movzx eax, sil
mov rcx, qword [rbp + 0x168]
xor rcx, rsp
call fcn.1800bdf20
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret