Function at 0x180034050
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 [0x1801c3938]
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.180012650
nop
lea rcx, [rbp + 0xf0]
call fcn.1800349b0
nop
lea rcx, [rbp + 0xf0]
call fcn.1800126d0
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 0x1800341ae
lea rcx, [rbp - 0x70]
call fcn.180012fc0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.QUT_FAILED._GetLastError:
lea rcx, [rbp - 0x70]
call fcn.18001da90
mov rcx, rax
mov edx, ebx
call fcn.18002ef10
lea rdx, str.CProcUtility::FXCreateProcessAsUser
lea rcx, [rbp + 0x118]
call fcn.1800104c0
nop
lea rdx, str.ProcUtility.cpp
lea rcx, [rbp + 0xf0]
call fcn.1800104c0
nop
lea rdx, [rbp + 0x140]
lea rcx, [rbp - 0x70]
call fcn.1800130a0
mov rbx, rax
call fcn.180014440
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x118]
mov qword [rsp + 0x20], rax
mov r9d, 0x14e
lea r8, [rbp + 0xf0]
xor edx, edx
call fcn.1800326a0
nop
lea rcx, [rbp + 0x140]
call fcn.1800126d0
nop
lea rcx, [rbp + 0xf0]
call fcn.18008f070
nop
lea rcx, [rbp + 0x118]
call fcn.18008f070
nop
lea rcx, [rbp + 0x18]
call fcn.180013040
lea rcx, [rbp + 0x18]
call fcn.180012100
xor al, al
jmp 0x1800344b9
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.1800c7520
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 [0x1801c7920]
inc rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800bd9f0
mov rdi, rax
test rax, rax
jne 0x1800342ee
lea rcx, [rbp - 0x70]
call fcn.180012fc0
nop
lea rdx, str.new_FAILED.
lea rcx, [rbp - 0x70]
call fcn.18001da90
lea rdx, str.CProcUtility::FXCreateProcessAsUser
lea rcx, [rbp + 0xf0]
call fcn.1800104c0
nop
lea rdx, str.ProcUtility.cpp
lea rcx, [rbp + 0x118]
call fcn.1800104c0
nop
lea rdx, [rbp + 0x140]
lea rcx, [rbp - 0x70]
call fcn.1800130a0
mov rbx, rax
call fcn.180014440
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, 0x15d
lea r8, [rbp + 0x118]
xor edx, edx
call fcn.1800326a0
nop
lea rcx, [rbp + 0x140]
call fcn.1800126d0
nop
lea rcx, [rbp + 0x118]
call fcn.18008f070
nop
lea rcx, [rbp + 0xf0]
call fcn.18008f070
nop
lea rcx, [rbp + 0x18]
call fcn.180013040
lea rcx, [rbp + 0x18]
call fcn.180012100
xor al, al
jmp 0x1800344b9
mov r8, qword [0x1801c7920]
inc r8
xor edx, edx
mov rcx, rax
call fcn.1800c7520
lea r8, [0x1801c7910]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae r8, qword [0x1801c7910]
lea rdx, [0x18014b8ec]
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 0x18003434e
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 0x180034472
lea rcx, [rbp - 0x70]
call fcn.1800127f0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.CPAU_FAILED._GetLastError:
lea rcx, [rbp - 0x70]
call fcn.18001d620
mov rcx, rax
mov edx, ebx
call fcn.180010db0
lea rdx, str.CProcUtility::FXCreateProcessAsUser
lea rcx, [rbp + 0xf0]
call fcn.1800104c0
nop
lea rdx, str.ProcUtility.cpp
lea rcx, [rbp + 0x118]
call fcn.1800104c0
nop
lea rdx, [rbp + 0x140]
lea rcx, [rbp - 0x70]
call fcn.180012930
mov rbx, rax
call fcn.180014440
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, 0x174
lea r8, [rbp + 0x118]
xor edx, edx
call fcn.1800322f0
nop
lea rcx, [rbp + 0x140]
call fcn.18008f070
nop
lea rcx, [rbp + 0x118]
call fcn.18008f070
nop
lea rcx, [rbp + 0xf0]
call fcn.18008f070
nop
lea rcx, [rbp + 0x18]
call fcn.1800128d0
lea rcx, [rbp + 0x18]
call fcn.180012100
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.1800bf278
movzx eax, sil
mov rcx, qword [rbp + 0x168]
xor rcx, rsp
call fcn.1800be9b0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret