Function at 0x1400782b0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov r8, rcx
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.140139ff0
xor edi, edi
lea rax, [rsp + 0x60]
lea r9, [rbp - 0x78]
mov dword [rsp + 0x60], edi
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea r8d, [rdi + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsA]
test eax, eax
je 0x1400784bb
mov r9d, dword [rsp + 0x60]
mov ebx, edi
mov r8, qword [rbp - 0x78]
mov eax, edi
test r9d, r9d
je 0x14007835a
nop dword [rax + rax]
mov edx, eax
lea rcx, [rdx + rdx*2]
cmp dword [r8 + rcx*8 + 0x10], ebx
je 0x140078352
inc eax
cmp eax, r9d
jb 0x140078330
mov rcx, r8
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x1400784bb
lea rax, [rdx + rdx*2]
mov ebx, dword [r8 + rax*8]
mov rcx, r8
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test ebx, ebx
je 0x1400784bb
lea rdx, [rsp + 0x68]
mov ecx, ebx
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x1400784bb
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x78]
mov r8d, 1
mov qword [rsp + 0x78], rdi
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov rcx, qword [rsp + 0x68]
test eax, eax
je 0x1400784b5
lea rax, [rbp - 0x80]
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]
mov rcx, qword [rbp - 0x80]
lea r8, [rsp + 0x70]
mov r9d, 4
mov dword [rsp + 0x70], 1
lea edx, [r9 + 0x16]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov rcx, qword [rbp - 0x80]
lea r8, [rbp + 0x20]
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp + 0x10], rax
xor r9d, r9d
mov qword [rbp - 0x60], rax
xor edx, edx
lea rax, str.winsta0default
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x420
movups xmmword [rbp - 0x50], xmm0
mov dword [rsp + 0x28], edi
movups xmmword [rbp - 0x20], xmm0
mov qword [rsp + 0x20], rdi
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x50], 0x68
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x14], 1
movups xmmword [rbp], xmm0
mov word [rbp - 0x10], di
movups xmmword [rbp - 0x70], xmm0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x140078491
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400784bd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.1401312e0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret