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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rsi
push rbp
lea rbp, [r11 - 0x18]
sub rsp, 0x110
mov rax, qword [0x14000d008]
xor rax, rsp
mov qword [rbp], rax
xorps xmm1, xmm1
mov qword [r11 + 0x10], rbx
xor eax, eax
mov qword [r11 + 0x18], rdi
xor esi, esi
mov qword [rbp - 0x78], rax
xorps xmm0, xmm0
mov qword [rsp + 0x68], rsi
mov edi, esi
mov qword [rbp - 0x10], rax
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x70], 0xffffffffffffffff
movups xmmword [rbp - 0x70], xmm1
mov qword [rsp + 0x60], 0xffffffffffffffff
movups xmmword [rbp - 0x60], xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
call qword [sym.imp.ADVAPI32.dll_ImpersonateNamedPipeClient]
test eax, eax
jne 0x1400041ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.___imper_named_pipe_cli_failed:
jmp 0x14000443e
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rcx, rax
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x14000421f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.___open_thre_tok_failed:
jmp 0x14000443e
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x140004260
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.___duplic_tok_ex_failed:
jmp 0x14000443e
cmp dword [0x14000de3c], esi
mov eax, 0x400
mov ebx, 0x410
mov ecx, 0x208
cmovne ebx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400044dc
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400042ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.___get_sys_dir_failed:
jmp 0x14000443e
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x1400042d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.___cre_envir_blk_failed:
jmp 0x14000443e
mov r8, qword [0x1400184b0]
lea rax, str.WinSta0Default
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
mov qword [rbp - 0x60], rax
xor edx, edx
lea rax, [rsp + 0x78]
mov dword [rbp - 0x70], 0x68
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov eax, dword [0x14000de3c]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140004469
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140004431
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.__cre_proc_as_usr_failed._missing_priv__retrying_cre_proc_with_tok
call fcn.140004ae0
mov rcx, rax
lea rdx, [0x140004cb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp dword [0x14000de3c], esi
jne 0x14000441c
mov r9, qword [0x1400184b0]
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rdi
lea edx, [r8 + 1]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
jne 0x1400043d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.___cre_proc_with_tok_failed:
jmp 0x14000443e
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.__expl._completed
call fcn.140004ae0
mov rcx, rax
lea rdx, [0x140004cb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
lea rdx, str.
call fcn.140004ae0
mov rcx, rax
lea rdx, [0x140004cb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x1400044d7
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.__cre_proc_with_tok_isnt_compatible_with_option__i
call fcn.140004ae0
jmp 0x140004457
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.___cre_proc_as_usr_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov ebx, eax
call fcn.140004ae0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140004cb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x1400044dc
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.__expl._completed
call fcn.140004ae0
mov rcx, rax
lea rdx, [0x140004cb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
lea rdx, str.
call fcn.140004ae0
mov rcx, rax
lea rdx, [0x140004cb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp dword [0x14000de3c], esi
je 0x1400044d7
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [rsp + 0x78]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, 1
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x128]
test rcx, rcx
je 0x1400044f4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140004504
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140004512
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x130]
test rcx, rcx
je 0x14000452a
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000453a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140004549
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400060f0
mov rsi, qword [rsp + 0x138]
add rsp, 0x110
pop rbp
ret