Function at 0x140084020
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x140148020]
xor rax, rsp
mov qword [rbp + 0x260], rax
xor edx, edx
mov qword [rsp + 0x78], 0xffffffffffffffff
lea rax, [rbp + 0x20]
xor ecx, ecx
lea r9, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov ebx, 0xffffffff
lea r8d, [rdx + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
xor r14d, r14d
test eax, eax
je 0x1400840cd
mov r8d, dword [rbp + 0x20]
mov edx, r14d
mov rcx, qword [rbp - 0x70]
test r8, r8
je 0x1400840c2
mov rax, rcx
nop
movups xmm0, xmmword [rax]
movsd xmm1, qword [rax + 0x10]
movsd qword [rsp + 0x70], xmm1
movups xmmword [rsp + 0x60], xmm0
cmp dword [rsp + 0x70], r14d
je 0x1400840be
inc rdx
add rax, 0x18
cmp rdx, r8
jb 0x140084090
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x1400840cd
mov ebx, dword [rsp + 0x60]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
cmp ebx, 0xffffffff
jne 0x1400840d5
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebx, eax
lea rdx, [rbp - 0x78]
mov ecx, ebx
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x140084185
mov rcx, qword [rbp - 0x78]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 1
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rcx, qword [rbp - 0x78]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140084185
mov rcx, qword [rsp + 0x78]
lea rax, [rbp + 0x20]
xor r9d, r9d
mov dword [rbp + 0x20], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x13]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edx, dword [rbp + 0x20]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140084185
mov r9d, dword [rbp + 0x20]
lea rax, [rbp + 0x20]
mov rcx, qword [rsp + 0x78]
mov r8, rbx
mov edx, 0x13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, rbx
test eax, eax
jne 0x14008418c
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x1400842a4
mov rax, qword [rbx]
mov qword [rsp + 0x380], rsi
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x388], rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rbp + 0x24]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edx, edx
lea rcx, [rbp + 0x50]
mov r8d, 0x208
mov rsi, rax
call fcn.1400a5270
mov edi, r14d
cmp dword [rbp + 0x24], r14d
jle 0x140084216
mov rbx, r14
nop dword [rax]
test rbx, rbx
jle 0x1400841fa
lea r8, [0x140112cac]
mov edx, 0x104
lea rcx, [rbp + 0x50]
call fcn.1400a9718
mov r8, qword [rsi + rbx*8]
lea rcx, [rbp + 0x50]
mov edx, 0x104
call fcn.1400a9718
inc edi
inc rbx
cmp edi, dword [rbp + 0x24]
jl 0x1400841e0
movups xmm1, xmmword [0x140125d38]
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x80]
xorps xmm0, xmm0
mov qword [rbp - 0x80], r14
xor eax, eax
xor r8d, r8d
mov qword [rbp + 0x10], rax
mov qword [rbp - 0x58], rax
mov eax, 5
movups xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x50], 0x68
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x10], ax
lea rax, [rbp + 0x28]
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x40], rax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp - 0x68], xmm0
movups xmm0, xmmword [str.WinSta0Default]
movups xmmword [rbp + 0x38], xmm1
movups xmmword [rbp + 0x28], xmm0
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov rdi, qword [rsp + 0x388]
mov rcx, qword [rsp + 0x78]
test eax, eax
jne 0x1400842c8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rsi, qword [rsp + 0x380]
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400a24f0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov rdx, qword [rsi]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x50], rax
lea r8, [rbp + 0x50]
lea rax, [rbp - 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x410
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov rcx, qword [rsp + 0x78]
test eax, eax
jne 0x140084328
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x14008429a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14008429c