Function at 0x1400ad5f0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rbx, qword [rbp + 0x240]
lea rcx, [rbp - 0x10]
mov rdi, r8
xor edx, edx
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor esi, esi
lea r9, [rsp + 0x68]
xor eax, eax
mov dword [rsp + 0x64], esi
xorps xmm0, xmm0
mov qword [rsp + 0x68], rsi
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
lea r8d, [rsi + 1]
lea rax, [rsp + 0x64]
mov dword [rsp + 0x60], esi
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x1400ad813
mov r9, qword [rsp + 0x68]
mov ecx, esi
mov r8d, dword [rsp + 0x64]
mov rax, r9
test r8d, r8d
je 0x1400ad6ad
nop
cmp dword [rax + 0x10], 1
ja 0x1400ad69c
mov edx, dword [rax]
test edx, edx
jne 0x1400ad6a9
inc ecx
add rax, 0x18
cmp ecx, r8d
jb 0x1400ad690
jmp 0x1400ad6ad
mov dword [rsp + 0x60], edx
test r9, r9
je 0x1400ad6bb
mov rcx, r9
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
cmp dword [rsp + 0x60], esi
je 0x1400ad823
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400ad72d
xor edx, edx
lea rcx, [rbp - 0x10]
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
lea rcx, [rax + 2]
lea rax, [rbp + 0x1f8]
sub rax, rcx
sar rax, 1
cmp rax, 0x16
jb 0x1400ad72d
movups xmm0, xmmword [str.MonectMediaCenter.exe]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [0x140247f18]
movups xmmword [rcx + 0x10], xmm1
movsd xmm0, qword [0x140247f28]
movsd qword [rcx + 0x20], xmm0
mov eax, dword [0x140247f30]
mov dword [rcx + 0x28], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x78]
mov edx, 2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rcx, qword [rsp + 0x70]
lea r8, [rsp + 0x60]
mov r9d, 4
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov ecx, dword [rsp + 0x60]
lea rdx, str.MonectMediaCenter.exe
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp - 0x20], rax
lea rax, str.Winsta0Default
movups xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x80], 0x68
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x70], rax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
call fcn.1400acc40
cmp eax, 1
jae 0x1400ad80c
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rbx
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov qword [rsp + 0x40], rsi
mov r8, rdi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x1400ad825
mov eax, 1
jmp 0x1400ad825
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400ad823
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1401d0310
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret