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

Disassembly:
push rbx
mov eax, 0x1320
call fcn.140037820
sub rsp, rax
mov rax, qword [0x14004e300]
xor rax, rsp
mov qword [rsp + 0x1310], rax
call fcn.140008888
test al, al
jne 0x140008171
xor al, al
jmp 0x1400083b1
call fcn.140007d44
mov rbx, rax
test rax, rax
je 0x14000816a
and qword [rsp + 0x68], 0
lea r8, [rsp + 0x68]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400081a6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000816a
mov rcx, qword [rsp + 0x68]
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov r9d, 1
xor r8d, r8d
mov edx, 0x2000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x1400081eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
jmp 0x14000819e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x140008215
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
jmp 0x14000819e
xor edx, edx
lea rcx, [rsp + 0x90]
lea r8d, [rdx + 0x68]
call fcn.140024b80
mov rdx, qword [rsp + 0x60]
xor r11d, r11d
and qword [rsp + 0x70], r11
lea rax, str.WinSta0Default
lea rcx, [rsp + 0x70]
mov qword [rsp + 0xa0], rax
lea eax, [r11 + 5]
xor r8d, r8d
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x80], r11
mov qword [rsp + 0x88], r11
mov word [rsp + 0xd0], ax
mov dword [rsp + 0x90], 0x68
mov dword [rsp + 0xcc], 1
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea rcx, [rsp + 0x100]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.appwiz.cpl
lea rcx, [rsp + 0x310]
xor r8d, r8d
call fcn.14000895c
mov rcx, qword [rsp + 0x60]
lea r11, [rsp + 0x78]
mov qword [rsp + 0x50], r11
lea rax, [rsp + 0x90]
lea r8, [rsp + 0x310]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x100]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x4000410
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140008361
lea rax, [rsp + 0x78]
lea rdx, [rsp + 0x310]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x100]
xor ecx, ecx
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000410
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000837a
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140008390
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x1310]
xor rcx, rsp
call fcn.140021c70
add rsp, 0x1320
pop rbx
ret