Function at 0x180009530
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2020]
mov eax, 0x2120
call fcn.1800112f0
sub rsp, rax
mov rax, qword [0x1800444d0]
xor rax, rsp
mov qword [rbp + 0x2010], rax
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test r8b, r8b
je 0x18000975a
xor edx, edx
mov qword [rsp + 0x78], rbx
mov r8d, 0x2000
mov qword [rsp + 0x60], rbx
lea rcx, [rbp + 0x10]
call fcn.180013050
mov r9, rsi
lea rdx, str.__s___s
mov r8, rdi
lea rcx, [rbp + 0x10]
call fcn.180001e50
lea rcx, str.EXPLORER.EXE
call fcn.1800099b0
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x18000971f
lea r8, [rsp + 0x78]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18000971f
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9d, [rbx + 1]
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x18000971f
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x18000966c
lea rdx, str.WTSGetActiveConsoleSessionId
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180009663
call rax
mov rcx, qword [rsp + 0x60]
lea r9d, [rbx + 4]
lea r8, [rsp + 0x68]
mov dword [rsp + 0x68], eax
lea edx, [rbx + 0xc]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x18000971f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rdx + 0x68]
call fcn.180013050
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], rbx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x18000971f
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], rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x430
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x18000971f
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x18000971f
call sub.USERENV.dll_DestroyEnvironmentBlock
mov rcx, qword [rsp + 0x60]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180009734
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180009749
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
jne 0x180009756
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x18000976f
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call fcn.180009270
test eax, eax
setne al
mov rcx, qword [rbp + 0x2010]
xor rcx, rsp
call fcn.1800112b0
mov rbx, qword [rsp + 0x2150]
add rsp, 0x2120
pop rdi
pop rsi
pop rbp
ret