Function at 0x14000318c
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
lea rbp, [rax - 0x608]
sub rsp, 0x700
or rax, 0xffffffffffffffff
xor ebx, ebx
mov qword [rsp + 0x68], rax
mov qword [rbp + 0x618], rax
call qword [sym.imp.ADVAPI32.dll_ImpersonateNamedPipeClient]
test eax, eax
je 0x140003417
lea rcx, str...._named_pipe_impersonation_successful
call fcn.140002d38
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rcx, rax
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x140003423
mov rcx, qword [rsp + 0x68]
lea rax, [rbp + 0x618]
mov qword [rsp + 0x28], rax
lea r9d, [rbx + 2]
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14000340a
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x20a
call fcn.14000fb70
xorps xmm0, xmm0
mov qword [rsp + 0x60], rbx
xor eax, eax
lea r8d, [rbx + 0x68]
xor edx, edx
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x70]
movups xmmword [rsp + 0x70], xmm0
call fcn.14000fb70
xor edx, edx
lea rcx, [rbp + 0x210]
mov r8d, 0x3e8
call fcn.14000fb70
cmp dword [rbp + 0x620], ebx
je 0x1400032ae
mov rcx, qword [rbp + 0x618]
lea r9d, [rbx + 4]
lea r8, [rbp + 0x620]
lea edx, [rbx + 0xc]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x1400032ae
lea rcx, str...._non_zero_session_ID_specified_but_token_session_ID_modification_failed
call fcn.140002d38
xor eax, eax
jmp 0x140003425
mov edx, 0x104
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400033fd
mov rdx, qword [rbp + 0x618]
lea rcx, [rsp + 0x60]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1400033fd
lea rax, str.WinSta0Default
mov dword [rbp - 0x70], 0x68
lea r8, [0x140042880]
mov qword [rbp - 0x60], rax
mov edx, 0x1f4
lea rcx, [rbp + 0x210]
call fcn.14001479c
mov rcx, qword [rbp + 0x618]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea r8, [rbp + 0x210]
lea rax, [rbp - 0x70]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor edx, edx
lea rax, [rbp]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x400
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1400033a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140003391
lea rcx, str...._CreateProcessAsUser___failed_because_of_a_missing_privilege__retrying_with_CreateProcessWithTokenW__...
call fcn.140002d38
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
lea rcx, str...._CreateProcessWithTokenW___isnt_compatible_with_non_zero_session_ID
call fcn.140002d38
jmp 0x1400033f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str...._CreateProcessAsUser___failed._Error:__d
call fcn.140002d38
jmp 0x1400033f2
lea rdx, [0x140042880]
lea rcx, str...._CreateProcessAsUser___successfully_executed_command_line__ws
call fcn.140002d38
mov ebx, 1
mov ecx, ebx
call fcn.14001401c
mov rcx, rax
call fcn.140014734
mov rcx, qword [rsp + 0x70]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rbp + 0x618]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003423
lea rcx, str...._named_pipe_impersonation_failed
call fcn.140002d38
mov eax, ebx
mov rbx, qword [rsp + 0x710]
add rsp, 0x700
pop rbp
ret