Function at 0x1400021b0
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate processes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x400], rbx
mov rax, qword [0x14003b010]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov r14, rdx
mov rsi, rcx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rdx
xor r13d, r13d
mov qword [rbp - 0x80], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebx, eax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000226d
mov rdx, qword [rsi]
mov ebx, 0xffffffff
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140002249
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140002263
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x1400025c0
mov dword [rbp + 0x60], 0x238
lea rdx, [rbp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1400022a0
test rdi, rdi
je 0x140002227
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002227
lea rdx, str.winlogon.exe
lea rcx, [rbp + 0x8c]
call fcn.1400180b8
test eax, eax
jne 0x1400022d8
mov dword [rsp + 0x60], r13d
lea rdx, [rsp + 0x60]
mov ecx, dword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x1400022d8
cmp dword [rsp + 0x60], ebx
je 0x14000243c
lea rdx, [rbp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400022a0
mov r15d, dword [rsp + 0x60]
lea rdx, [rbp - 0x80]
mov ecx, ebx
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
xor edx, edx
lea r12d, [rdx + 0x30]
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x20]
call fcn.1400134f0
mov dword [rbp - 0x20], 0x68
lea rax, str.winsta0default
mov qword [rbp - 0x10], rax
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov r8d, r15d
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
lea r8, [rsp + 0x70]
mov edx, 0x201eb
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140002363
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rbp - 0x48]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140002380
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x50], 1
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x54], rax
mov dword [rbp + 0x5c], 2
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r9d, [rdx - 8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov r9d, 0x10
lea r8, [rbp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14000240f
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x78], r13
mov r8d, 1
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x78]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x140002445
mov r12d, 0x430
jmp 0x14000244a
mov r15d, dword [rbp + 0x68]
jmp 0x1400022ee
mov qword [rsp + 0x78], r13
lea rax, [rbp - 0x70]
mov qword [rbp - 0x28], rax
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140002fc0
add rax, 0x18
mov qword [rbp - 0x70], rax
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.140002fc0
add rax, 0x18
mov qword [rbp - 0x78], rax
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x68]
call fcn.140001d60
lea rax, [rbp - 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r13
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, qword [rbp - 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x14000250b
mov rcx, qword [rbp - 0x60]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400024f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x60], r13
mov rcx, qword [rbp - 0x58]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000250b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x58], r13
test r15, r15
je 0x140002519
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14000252c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x80], r13
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002541
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], r13
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140002556
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], r13
test rdi, rdi
je 0x140002564
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140002587
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400025a4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400025be
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.140011000
mov rbx, qword [rsp + 0x400]
add rsp, 0x3b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret