Function at 0x14002c330
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 [0x14021b0e0]
xor rax, rsp
mov qword [rbp + 0x10], rax
cmp byte [0x14021f2af], 0
movzx r15d, r8b
movzx r14d, dl
mov esi, ecx
jne 0x14002c732
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp - 0x10], rax
xor ebx, ebx
mov qword [0x14021f520], 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 [0x14021f510], 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 0x14002c465
lea r8, [rsp + 0x78]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14002c45c
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 0x14002c456
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 0x14002c451
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.14002b870
mov edx, esi
lea rcx, [rsp + 0x70]
call fcn.14002cd20
test eax, eax
je 0x14002c72e
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 0x14002c5ea
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x14021f2af], bl
jne 0x14002c732
mov rcx, qword [rsp + 0x70]
lea rax, [0x14021f510]
mov qword [rsp + 0x50], rax
lea r8, [0x14021f530]
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 0x14002c519
mov dword [0x140285540], ebx
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14002c5c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
jne 0x14002c5c5
cmp dword [0x14021f2d8], 1
jne 0x14002c59d
mov eax, dword [0x140285540]
inc eax
mov dword [0x140285540], eax
cmp eax, 3
jle 0x14002c5c5
lea rcx, [0x1401f3c78]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14002c590
lea rdx, str.WinStationConnectW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14002c590
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea r9, [0x1401f19e8]
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 0x14002c5c5
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.14002c760
mov dword [0x140285540], ebx
mov ebx, 1
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14002c723
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x14002c734
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x14021f2af], bl
jne 0x14002c732
mov rcx, qword [rsp + 0x70]
lea rax, [0x14021f510]
mov qword [rsp + 0x50], rax
lea r8, [0x14021f530]
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 0x14002c66a
mov dword [0x140285540], 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 0x14002c734
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
jne 0x14002c723
cmp dword [0x14021f2d8], 1
jne 0x14002c6ff
mov eax, dword [0x140285540]
inc eax
mov dword [0x140285540], eax
cmp eax, 3
jle 0x14002c723
lea rcx, [0x1401f3c78]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14002c6e5
lea rdx, str.WinStationConnectW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14002c6e5
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea r9, [0x1401f19e8]
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 0x14002c734
mov r8, qword [rsp + 0x70]
mov ecx, esi
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 8
call fcn.14002c760
mov dword [0x140285540], ebx
mov ebx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x14002c734
xor eax, eax
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140147af0
mov rbx, qword [rsp + 0x158]
add rsp, 0x120
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret