Function at 0x180008cb0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x2020]
mov eax, 0x2120
call fcn.18000db20
sub rsp, rax
mov rax, qword [0x18003b080]
xor rax, rsp
mov qword [rbp + 0x2010], rax
mov rdi, rdx
mov rbx, rcx
test r8b, r8b
je 0x180008ee6
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.18000f7e0
mov r9, rdi
lea rdx, str.__s___s
mov r8, rbx
lea rcx, [rbp + 0x10]
call fcn.180001a70
lea rcx, str.EXPLORER.EXE
call fcn.180009140
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x180008ea3
lea r8, [rsp + 0x78]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180008ea3
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 0x180008ea3
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x180008df0
lea rdx, str.WTSGetActiveConsoleSessionId
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180008de7
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 0x180008ea3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rdx + 0x68]
call fcn.18000f7e0
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 0x180008ea3
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 0x180008ea3
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180008ea3
call sub.USERENV.dll_DestroyEnvironmentBlock
mov rcx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x2150]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180008ec0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180008ed5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
jne 0x180008ee2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x180008ef6
xor r9d, r9d
xor r8d, r8d
call fcn.180008a50
test eax, eax
setne al
mov rcx, qword [rbp + 0x2010]
xor rcx, rsp
call fcn.18000dae0
add rsp, 0x2120
pop rdi
pop rbx
pop rbp
ret