Function at 0x180018300
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov qword [rbp + 0x80], 0xfffffffffffffffe
mov rax, qword [0x1800ea550]
xor rax, rsp
mov qword [rbp + 0x178], rax
movzx esi, r8b
mov rbx, rdx
mov rdi, rcx
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rbp + 0x118], 7
mov qword [rbp + 0x110], r12
mov word [rbp + 0x100], r12w
lea r8d, [r12 + 0xe]
lea rdx, str.SeTcbPrivilege
lea rcx, [rbp + 0x100]
call fcn.180007850
nop
lea rcx, [rbp + 0x100]
call fcn.180019040
nop
cmp qword [rbp + 0x118], 8
jb 0x18001839a
mov rcx, qword [rbp + 0x100]
call fcn.18007309c
mov qword [rbp + 0x118], 7
mov qword [rbp + 0x110], r12
mov word [rbp + 0x100], r12w
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 0x1800185a1
lea edx, [rax + 2]
lea r8d, [rax + 1]
lea rcx, [rbp - 0x70]
call fcn.18000d500
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.QUT_FAILED._GetLastError:
lea rcx, [rbp - 0x70]
call fcn.180010b40
mov rcx, rax
mov edx, ebx
call fcn.18000cd70
mov qword [rbp + 0x140], 0xf
mov qword [rbp + 0x138], r12
mov byte [rbp + 0x128], 0
mov r8d, 0x23
lea rdx, str.CProcUtility::FXCreateProcessAsUser
lea rcx, [rbp + 0x128]
call fcn.1800071c0
nop
mov qword [rbp + 0x118], 0xf
mov qword [rbp + 0x110], r12
mov byte [rbp + 0x100], 0
mov r8d, 0xf
lea rdx, str.ProcUtility.cpp
lea rcx, [rbp + 0x100]
call fcn.1800071c0
nop
lea rdx, [rbp + 0x150]
lea rcx, [rbp - 0x70]
call fcn.18000d630
mov rbx, rax
call fcn.18000ddc0
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x128]
mov qword [rsp + 0x20], rax
mov r9d, 0x14e
lea r8, [rbp + 0x100]
xor edx, edx
call fcn.180002e80
nop
cmp qword [rbp + 0x168], 8
jb 0x1800184bf
mov rcx, qword [rbp + 0x150]
call fcn.18007309c
mov qword [rbp + 0x168], 7
mov qword [rbp + 0x160], r12
mov word [rbp + 0x150], r12w
cmp qword [rbp + 0x118], 0x10
jb 0x1800184ef
mov rcx, qword [rbp + 0x100]
call fcn.18007309c
mov qword [rbp + 0x118], 0xf
mov qword [rbp + 0x110], r12
mov byte [rbp + 0x100], 0
cmp qword [rbp + 0x140], 0x10
jb 0x18001851e
mov rcx, qword [rbp + 0x128]
call fcn.18007309c
mov qword [rbp + 0x140], 0xf
mov qword [rbp + 0x138], r12
mov byte [rbp + 0x128], 0
lea rax, [rbp + 0x18]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x70], rax
lea rcx, [rbp - 0x68]
call fcn.18000d670
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx - 0x70], rax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x70], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x18], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.1800724a4
xor al, al
jmp 0x180018a39
mov qword [rsp + 0x78], r12
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
xor edx, edx
lea r8d, [rax + 0x60]
lea rcx, [rbp + 0x98]
call fcn.180073cb0
mov dword [rbp + 0x90], 0x68
lea rax, str.winsta0default
mov qword [rbp + 0xa0], rax
mov dword [rbp + 0xcc], 1
mov eax, r12d
test sil, sil
setne al
mov word [rbp + 0xd0], ax
mov rcx, qword [rbx + 0x10]
inc rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180072c28
mov rsi, rax
test rax, rax
jne 0x1800187de
lea edx, [rax + 2]
lea r8d, [rax + 1]
lea rcx, [rbp - 0x70]
call fcn.18000d500
nop
lea rdx, str.new_FAILED.
lea rcx, [rbp - 0x70]
call fcn.180010b40
mov qword [rbp + 0x118], 0xf
mov qword [rbp + 0x110], r12
mov byte [rbp + 0x100], sil
lea r8d, [rsi + 0x23]
lea rdx, str.CProcUtility::FXCreateProcessAsUser
lea rcx, [rbp + 0x100]
call fcn.1800071c0
nop
mov qword [rbp + 0x140], 0xf
mov qword [rbp + 0x138], r12
mov byte [rbp + 0x128], sil
lea r8d, [rsi + 0xf]
lea rdx, str.ProcUtility.cpp
lea rcx, [rbp + 0x128]
call fcn.1800071c0
nop
lea rdx, [rbp + 0x150]
lea rcx, [rbp - 0x70]
call fcn.18000d630
mov rbx, rax
call fcn.18000ddc0
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
mov r9d, 0x15d
lea r8, [rbp + 0x128]
xor edx, edx
call fcn.180002e80
nop
cmp qword [rbp + 0x168], 8
jb 0x1800186fc
mov rcx, qword [rbp + 0x150]
call fcn.18007309c
mov qword [rbp + 0x168], 7
mov qword [rbp + 0x160], r12
mov word [rbp + 0x150], r12w
cmp qword [rbp + 0x140], 0x10
jb 0x18001872c
mov rcx, qword [rbp + 0x128]
call fcn.18007309c
mov qword [rbp + 0x140], 0xf
mov qword [rbp + 0x138], r12
mov byte [rbp + 0x128], 0
cmp qword [rbp + 0x118], 0x10
jb 0x18001875b
mov rcx, qword [rbp + 0x100]
call fcn.18007309c
mov qword [rbp + 0x118], 0xf
mov qword [rbp + 0x110], r12
mov byte [rbp + 0x100], 0
lea rax, [rbp + 0x18]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x70], rax
lea rcx, [rbp - 0x68]
call fcn.18000d670
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx - 0x70], rax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x70], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x18], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.1800724a4
xor al, al
jmp 0x180018a39
mov r8, qword [rbx + 0x10]
inc r8
xor edx, edx
mov rcx, rax
call fcn.180073cb0
cmp qword [rbx + 0x18], 8
jb 0x1800187f9
mov rbx, qword [rbx]
mov r8, rbx
lea rdx, [0x1800b742c]
mov rcx, rsi
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 bl, 1
cmp qword [rdi + 0x18], 8
jb 0x180018830
mov rdi, qword [rdi]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x90]
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, rsi
mov rdx, rdi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1800189f5
lea edx, [rax + 2]
lea r8d, [rax + 1]
lea rcx, [rbp - 0x70]
call fcn.180004950
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.CPAU_FAILED._GetLastError:
lea rcx, [rbp - 0x70]
call fcn.180009910
mov rcx, rax
mov edx, ebx
call fcn.180019fa0
mov qword [rbp + 0x118], 0xf
mov qword [rbp + 0x110], r12
mov byte [rbp + 0x100], 0
mov r8d, 0x23
lea rdx, str.CProcUtility::FXCreateProcessAsUser
lea rcx, [rbp + 0x100]
call fcn.1800071c0
nop
mov qword [rbp + 0x140], 0xf
mov qword [rbp + 0x138], r12
mov byte [rbp + 0x128], 0
mov r8d, 0xf
lea rdx, str.ProcUtility.cpp
lea rcx, [rbp + 0x128]
call fcn.1800071c0
nop
lea rdx, [rbp + 0x150]
lea rcx, [rbp - 0x70]
call fcn.180004ae0
mov rbx, rax
call fcn.18000ddc0
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
mov r9d, 0x174
lea r8, [rbp + 0x128]
xor edx, edx
call fcn.1800029b0
nop
cmp qword [rbp + 0x168], 0x10
jb 0x180018973
mov rcx, qword [rbp + 0x150]
call fcn.18007309c
mov qword [rbp + 0x168], 0xf
mov qword [rbp + 0x160], r12
mov byte [rbp + 0x150], 0
cmp qword [rbp + 0x140], 0x10
jb 0x1800189a2
mov rcx, qword [rbp + 0x128]
call fcn.18007309c
mov qword [rbp + 0x140], 0xf
mov qword [rbp + 0x138], r12
mov byte [rbp + 0x128], 0
cmp qword [rbp + 0x118], 0x10
jb 0x1800189d1
mov rcx, qword [rbp + 0x100]
call fcn.18007309c
mov qword [rbp + 0x118], 0xf
mov qword [rbp + 0x110], r12
mov byte [rbp + 0x100], 0
lea rcx, [rbp - 0x70]
call fcn.180002880
xor bl, bl
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], r12
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x80], r12
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r12
mov rcx, rsi
call fcn.180073b34
movzx eax, bl
mov rcx, qword [rbp + 0x178]
xor rcx, rsp
call fcn.180073c80
add rsp, 0x280
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret