Function at 0x14002b540
Capabilities:
Create process on windows
Lock the desktop

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rbp + 0x10], rax
cmp byte [0x1401f3b0f], 0
movzx r15d, r8b
movzx r14d, dl
mov esi, ecx
jne 0x14002b942
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp - 0x10], rax
xor ebx, ebx
mov qword [0x1401f3d80], rax
mov eax, 5
movups xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x30], ax
lea rax, str.Winsta0Default
movups xmmword [rbp - 0x70], xmm0
mov qword [rsp + 0x70], rbx
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x80], rbx
movups xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x70], 0x68
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [0x1401f3d70], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14002b675
lea r8, [rsp + 0x78]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14002b66c
lea r8, [rbp - 0x78]
xor ecx, ecx
lea rdx, str.SeTcbPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x78]
test eax, eax
je 0x14002b666
mov rax, qword [rbp - 0x78]
lea r9d, [rbx + 0x10]
mov qword [rsp + 0x28], rbx
lea r8, [rbp]
xor edx, edx
mov qword [rbp + 4], rax
mov dword [rbp], 1
mov dword [rbp + 0xc], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x14002b661
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, r15b
movzx ecx, r14b
call fcn.14002aa80
mov edx, esi
lea rcx, [rsp + 0x70]
call fcn.14002bf30
test eax, eax
je 0x14002b93e
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x80]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
xor ecx, ecx
test eax, eax
je 0x14002b7fa
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x1401f3b0f], bl
jne 0x14002b942
mov rcx, qword [rsp + 0x70]
lea rax, [0x1401f3d70]
mov qword [rsp + 0x50], rax
lea r8, [0x1401f3d90]
lea rax, [rbp - 0x70]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor edx, edx
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x408
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x14002b729
mov dword [0x140259da8], ebx
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14002b7d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
jne 0x14002b7d5
cmp dword [0x1401f3b38], 1
jne 0x14002b7ad
mov eax, dword [0x140259da8]
inc eax
mov dword [0x140259da8], eax
cmp eax, 3
jle 0x14002b7d5
lea rcx, [0x1401c8078]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14002b7a0
lea rdx, str.WinStationConnectW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14002b7a0
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea r9, [0x1401c5de8]
mov dword [rsp + 0x20], ebx
mov r8d, eax
xor edx, edx
xor ecx, ecx
call rdi
call qword [sym.imp.USER32.dll_LockWorkStation]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002b7d5
mov rax, qword [rbp - 0x80]
mov ecx, esi
mov r8, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0x408
call fcn.14002b970
mov dword [0x140259da8], ebx
mov ebx, 1
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14002b933
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x14002b944
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x1401f3b0f], bl
jne 0x14002b942
mov rcx, qword [rsp + 0x70]
lea rax, [0x1401f3d70]
mov qword [rsp + 0x50], rax
lea r8, [0x1401f3d90]
lea rax, [rbp - 0x70]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x14002b87a
mov dword [0x140259da8], ebx
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x14002b944
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
jne 0x14002b933
cmp dword [0x1401f3b38], 1
jne 0x14002b90f
mov eax, dword [0x140259da8]
inc eax
mov dword [0x140259da8], eax
cmp eax, 3
jle 0x14002b933
lea rcx, [0x1401c8078]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14002b8f5
lea rdx, str.WinStationConnectW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14002b8f5
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea r9, [0x1401c5de8]
mov dword [rsp + 0x20], ebx
mov r8d, eax
xor edx, edx
xor ecx, ecx
call rdi
call qword [sym.imp.USER32.dll_LockWorkStation]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x14002b944
mov r8, qword [rsp + 0x70]
mov ecx, esi
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 8
call fcn.14002b970
mov dword [0x140259da8], ebx
mov ebx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x14002b944
xor eax, eax
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140131ef0
mov rbx, qword [rsp + 0x158]
add rsp, 0x120
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret