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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x1220]
mov eax, 0x1320
call fcn.14001a5e0
sub rsp, rax
mov rax, qword [0x14002b460]
xor rax, rsp
mov qword [rbp + 0x1210], rax
call fcn.140007a90
test al, al
je 0x1400073e0
call fcn.140006ef0
mov rbx, rax
test rax, rax
je 0x1400073e0
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 0x140007402
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0x1210]
xor rcx, rsp
call fcn.14001a4a0
mov rbx, qword [rsp + 0x1330]
add rsp, 0x1320
pop rbp
ret
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
and qword [rsp + 0x60], 0
mov r9d, 1
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, 0x2000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x140007447
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
jmp 0x1400073da
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x140007474
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 0x1400073da
xor edx, edx
lea rcx, [rbp - 0x70]
lea r8d, [rdx + 0x68]
call sub.msvcrt.dll_memset
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
and qword [rsp + 0x70], 0
xor eax, eax
mov qword [rsp + 0x78], rax
xor r8d, r8d
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
lea rax, str.WinSta0Default
mov qword [rbp - 0x60], rax
mov eax, 5
mov word [rbp - 0x30], ax
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov edx, 0x104
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor r8d, r8d
lea rdx, str.appwiz.cpl
lea rcx, [rbp + 0x210]
call fcn.140007b50
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x78]
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 + 0x70]
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 0x14000758e
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x210]
lea rax, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [rbp]
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 0x1400075a3
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400075b9
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
jmp 0x1400073e2