Function at 0x1400092a0
Capabilities:
Create process on windows
Resume thread

Disassembly:
push rbx
push rdi
sub rsp, 0x398
mov rbx, rcx
call fcn.140002fd0
test eax, eax
je 0x1400094fc
mov qword [rsp + 0x388], 0
mov qword [rsp + 0x380], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 2
lea r8, [rsp + 0x388]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140009529
lea rax, [rsp + 0x380]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov rcx, qword [rsp + 0x388]
mov edx, 0x2000000
xor r8, r8
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14000951b
mov rcx, qword [rsp + 0x388]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x394], 0
mov rcx, rbx
lea rdx, str.Create_process_in_the_Terminal_Session_
lea r8, str.Question
mov r9d, 0x24
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x140009376
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rsp + 0x394], eax
mov rcx, qword [rsp + 0x380]
mov edx, 0xc
lea r8, [rsp + 0x394]
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x1400094ec
lea rdi, [rsp + 0x2f8]
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x2f8], 0x68
lea rax, str.WinSta0Default
mov qword [rsp + 0x308], rax
lea rdi, [rsp + 0x58]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rdi, [rsp + 0x260]
xor eax, eax
mov ecx, 0x98
rep stosb byte [rdi], al
mov dword [rsp + 0x260], 0x98
lea rax, str.Executable_Files__.exe_
mov qword [rsp + 0x278], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x290], rax
mov dword [rsp + 0x298], 0xffff
mov dword [rsp + 0x2c0], 0x10080008
mov qword [rsp + 0x378], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x360], xmm0
mov qword [rsp + 0x370], 0
lea rcx, [rsp + 0x378]
mov rdx, qword [rsp + 0x380]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea rcx, [rsp + 0x260]
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x14000952d
lea rax, [rsp + 0x360]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x2f8]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x378]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x404
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x380]
lea rdx, [rsp + 0x58]
xor r8, r8
xor r9, r9
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x14000952d
mov rcx, qword [rsp + 0x378]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x380]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140009529
mov rcx, rbx
lea rdx, [0x140019dd6]
lea r8, str.Error
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140009529
mov rcx, qword [rsp + 0x388]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140009578
mov rcx, qword [rsp + 0x378]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x380]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x368]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x368]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x360]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x398
pop rdi
pop rbx
ret