Function at 0x1400ad3a0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rbp + 0x220], rax
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
lea r9, [rsp + 0x68]
xor eax, eax
mov dword [rsp + 0x64], ebx
mov qword [rbp - 0x70], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x64]
mov qword [rsp + 0x68], rbx
lea r8d, [rbx + 1]
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rsp + 0x60], ebx
xor ecx, ecx
movups xmmword [rbp - 0x80], xmm0
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x1400ad5b8
mov r9, qword [rsp + 0x68]
mov ecx, ebx
mov r8d, dword [rsp + 0x64]
mov rax, r9
test r8d, r8d
je 0x1400ad457
nop dword [rax]
mov edx, dword [rax + 0x10]
test edx, 0xfffffffa
jne 0x1400ad446
cmp edx, 5
je 0x1400ad446
mov edx, dword [rax]
test edx, edx
jne 0x1400ad453
inc ecx
add rax, 0x18
cmp ecx, r8d
jb 0x1400ad430
jmp 0x1400ad457
mov dword [rsp + 0x60], edx
test r9, r9
je 0x1400ad465
mov rcx, r9
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
cmp dword [rsp + 0x60], ebx
je 0x1400ad5c8
mov r8d, 0x104
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea rcx, [rbp + 0x10]
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
movups xmm0, xmmword [str.MonectServer.exe]
movups xmmword [rax + 2], xmm0
movups xmm1, xmmword [0x1402488a0]
movups xmmword [rax + 0x12], xmm1
movzx ecx, word [0x1402488b0]
mov word [rax + 0x22], cx
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.MonectServer.exe
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp], rax
lea rax, str.Winsta0Default
movups xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x60], 0x68
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x50], rax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call fcn.1400acc40
test eax, eax
jne 0x1400ad5a6
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x10]
lea rax, [rbp - 0x60]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1400ad5c8
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x80]
jmp 0x1400ad5cf
mov r8d, eax
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x1400ad5cf
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400ad5c8
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1401d0310
mov rbx, qword [rsp + 0x340]
add rsp, 0x330
pop rbp
ret