Function at 0x140001fd0
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 [0x14003b008]
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 0x14000208b
mov rdx, qword [rsi]
or ebx, 0xffffffff
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140002067
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 0x140002081
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x1400023d9
mov dword [rbp + 0x60], 0x238
lea rdx, [rbp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1400020c0
test rdi, rdi
je 0x140002047
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002047
lea rdx, str.winlogon.exe
lea rcx, [rbp + 0x8c]
call fcn.140017db8
test eax, eax
jne 0x1400020f4
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 0x1400020f4
cmp dword [rsp + 0x60], ebx
je 0x140002107
lea rdx, [rbp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14000210d
jmp 0x1400020c0
mov r15d, dword [rbp + 0x68]
jmp 0x140002112
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.140013f80
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 0x140002187
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 0x1400021a4
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 0x140002233
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 0x140002260
mov r12d, 0x430
jmp 0x140002265
mov qword [rsp + 0x78], r13
lea rax, [rbp - 0x70]
mov qword [rbp - 0x28], rax
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140002e30
add rax, 0x18
mov qword [rbp - 0x70], rax
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.140002e30
add rax, 0x18
mov qword [rbp - 0x78], rax
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x68]
call fcn.140001e40
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 0x140002326
mov rcx, qword [rbp - 0x60]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000230e
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 0x140002326
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x58], r13
test r15, r15
je 0x140002334
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140002347
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x80], r13
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000235c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], r13
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140002371
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], r13
test rdi, rdi
je 0x14000237f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400023a0
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 0x1400023bd
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 0x1400023d7
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.140010d30
mov rbx, qword [rsp + 0x400]
add rsp, 0x3b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret