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

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rbp], rax
xorps xmm1, xmm1
mov qword [rsp + 0x128], rbx
xor eax, eax
mov qword [rsp + 0x70], 0xffffffffffffffff
xor edi, edi
mov qword [rbp - 0x78], rax
xorps xmm0, xmm0
mov qword [rsp + 0x68], rdi
mov ebx, edi
mov qword [rbp - 0x10], rax
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x60], 0xffffffffffffffff
movups xmmword [rbp - 0x70], xmm1
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 0x140001bc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Im_pers_onat_eNamed_PipeCli_ent__._Error:__d_n
call fcn.140001010
jmp 0x140001e6e
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 0x140001bfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Open_Threa_dTok_en__._Error:__d_n
call fcn.140001010
jmp 0x140001e6e
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 0x140001c44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Dup_lica_teToke_nE_x___failed._Error:__d_n
call fcn.140001010
jmp 0x140001e6e
cmp dword [0x14000762c], ebx
je 0x140001c85
mov rcx, qword [rsp + 0x60]
lea r8, [0x14000762c]
mov r9d, 4
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x140001c85
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Set_Toke_nInform_ation___failed._Error:__d_n
call fcn.140001010
jmp 0x140001e6e
cmp dword [0x140007628], ebx
mov eax, 0x400
mov qword [rsp + 0x130], rsi
mov ecx, 0x208
mov esi, 0x410
cmovne esi, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140001e66
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140001ce2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetS_ys_temDir_ect_ory___failed._Error:__d_n
call fcn.140001010
jmp 0x140001e66
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x140001d12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cr_eate_Enviro_nment_Block___failed._Error:__d_n
call fcn.140001010
jmp 0x140001e66
mov r8, qword [0x140007630]
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], rbx
mov qword [rsp + 0x38], rax
mov eax, dword [0x140007628]
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140001e29
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140001e13
lea rcx, str.____Crea_teP_ocess_AsUser___failed_because_of_a_missing_privilege__retrying_with_CreateProcessWithTokenW__._n
call fcn.140001010
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp dword [0x140007628], edi
jne 0x140001e05
mov r9, qword [0x140007630]
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], rbx
lea edx, [r8 + 1]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
jne 0x140001dfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cre_ateP_roces_sWithTo_kenW___failed._Error:__d_n
call fcn.140001010
jmp 0x140001e66
lea rcx, str.___Cr_eatePro_cessWi_thTokenW___OK_n
jmp 0x140001e30
lea rcx, str.____Crea_teProces_sWithT_okenW___isnt_compatible_with_option__i_n
call fcn.140001010
jmp 0x140001e66
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Crea_tePro_cessAsU_ser___failed._Error:__d_n
call fcn.140001010
jmp 0x140001e66
lea rcx, str.___Cre_ateProces_sAsU_ser___OK_n
call fcn.140001010
cmp dword [0x140007628], edi
je 0x140001e61
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 edi, 1
mov rsi, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140001e7e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140001e8e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140001e9c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x128]
test rcx, rcx
je 0x140001eb4
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140001ec4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140001ed3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140002010
mov rdi, qword [rsp + 0x138]
add rsp, 0x110
pop rbp
ret