Function at 0x18000b830
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.180014030
sub rsp, rax
mov rax, qword [0x1800490a8]
xor rax, rsp
mov qword [rbp + 0x2010], rax
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test r8b, r8b
je 0x18000ba5a
xor edx, edx
mov qword [rsp + 0x78], rbx
mov r8d, 0x2000
mov qword [rsp + 0x60], rbx
lea rcx, [rbp + 0x10]
call fcn.180015fb0
mov r9, rsi
lea rdx, str.__s___s
mov r8, rdi
lea rcx, [rbp + 0x10]
call fcn.180002c70
lea rcx, str.EXPLORER.EXE
call fcn.18000bcd0
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x18000ba1f
lea r8, [rsp + 0x78]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18000ba1f
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 0x18000ba1f
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x18000b96c
lea rdx, str.WTSGetActiveConsoleSessionId
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000b963
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 0x18000ba1f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rdx + 0x68]
call fcn.180015fb0
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 0x18000ba1f
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 0x18000ba1f
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x18000ba1f
call sub.USERENV.dll_DestroyEnvironmentBlock
mov rcx, qword [rsp + 0x60]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000ba34
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000ba49
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
jne 0x18000ba56
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x18000ba6f
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call fcn.18000b5a0
test eax, eax
setne al
mov rcx, qword [rbp + 0x2010]
xor rcx, rsp
call fcn.180013fc0
mov rbx, qword [rsp + 0x2150]
add rsp, 0x2120
pop rdi
pop rsi
pop rbp
ret