Function at 0x180008780
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x2020]
mov eax, 0x2120
call fcn.1800108c0
sub rsp, rax
mov rax, qword [0x1800400b0]
xor rax, rsp
mov qword [rbp + 0x2010], rax
mov rdi, rdx
mov rbx, rcx
test r8b, r8b
je 0x1800089b6
mov qword [rsp + 0x2150], rsi
lea rcx, [rbp + 0x10]
xor esi, esi
xor edx, edx
mov r8d, 0x2000
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x60], rsi
call fcn.180012620
mov r9, rdi
lea rdx, str.__s___s
mov r8, rbx
lea rcx, [rbp + 0x10]
call fcn.180001bb0
lea rcx, str.EXPLORER.EXE
call fcn.180008bf0
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x180008973
lea r8, [rsp + 0x78]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180008973
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9d, [rsi + 1]
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x180008973
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1800088c0
lea rdx, str.WTSGetActiveConsoleSessionId
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800088b7
call rax
mov rcx, qword [rsp + 0x60]
lea r9d, [rsi + 4]
lea r8, [rsp + 0x68]
mov dword [rsp + 0x68], eax
lea edx, [rsi + 0xc]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x180008973
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rdx + 0x68]
call fcn.180012620
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
xor eax, eax
mov dword [rbp - 0x60], 0x68
mov qword [rbp - 0x80], rax
xor r8d, r8d
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea rax, str.WinSta0Default
mov qword [rbp - 0x50], rax
mov eax, 5
mov word [rbp - 0x20], ax
mov dword [rbp - 0x24], 1
mov qword [rsp + 0x70], rsi
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x180008973
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea r8, [rbp + 0x10]
lea rax, [rbp - 0x60]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor edx, edx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x430
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x180008973
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180008973
call sub.USERENV.dll_DestroyEnvironmentBlock
mov rcx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x2150]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180008990
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1800089a5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
jne 0x1800089b2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1800089c6
xor r9d, r9d
xor r8d, r8d
call fcn.180008520
test eax, eax
setne al
mov rcx, qword [rbp + 0x2010]
xor rcx, rsp
call fcn.180010880
add rsp, 0x2120
pop rdi
pop rbx
pop rbp
ret