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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x418
mov qword [rsp + 0x3e8], 0xfffffffffffffffe
mov rax, qword [0x1400450e0]
xor rax, rsp
mov qword [rsp + 0x408], rax
mov r8, qword [rsp + 0x428]
mov r8, qword [r8]
mov rdx, qword [rsp + 0x420]
mov rdx, qword [rdx]
lea rcx, str.CCommon::LaunchAppIntoDifferentSession_sFile___s_sArgs___s_n
call fcn.140001000
mov dword [rsp + 0x300], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x3a0], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x70], 0
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rsp + 0x64], eax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x140029997
mov dword [rsp + 0x3b4], 1
mov rcx, qword [rsp + 0x420]
call fcn.140001980
nop
mov rcx, qword [rsp + 0x428]
call fcn.140001980
mov eax, dword [rsp + 0x3b4]
jmp 0x140029eee
mov dword [rsp + 0xc0], 0x238
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x70]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140029a06
cmp qword [rsp + 0x70], 0
je 0x1400299d4
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x3b8], 1
mov rcx, qword [rsp + 0x420]
call fcn.140001980
nop
mov rcx, qword [rsp + 0x428]
call fcn.140001980
mov eax, dword [rsp + 0x3b8]
jmp 0x140029eee
lea rdx, str.winlogon.exe
lea rcx, [rsp + 0xec]
call fcn.140007468
test eax, eax
jne 0x140029a5f
mov dword [rsp + 0x3a8], 0
lea rdx, [rsp + 0x3a8]
mov ecx, dword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x140029a5f
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x3a8], eax
jne 0x140029a5f
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x80], eax
jmp 0x140029a75
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x70]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140029a06
lea rdx, [rsp + 0x88]
mov ecx, dword [rsp + 0x64]
call sub.WTSAPI32.dll_WTSQueryUserToken
mov dword [rsp + 0x60], 0x30
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x310]
call fcn.140007970
mov dword [rsp + 0x310], 0x68
lea rax, str.winsta0default
mov qword [rsp + 0x320], rax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
xor edx, edx
lea rcx, [rsp + 0x98]
call fcn.140007970
mov r8d, dword [rsp + 0x80]
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x90]
mov edx, 0x201eb
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140029b29
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3ac], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Process_token_open_Error:__u_n
call fcn.140001000
lea r8, [rsp + 0x388]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140029b58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Lookup_Privilege_value_Error:__u_n
call fcn.140001000
mov dword [rsp + 0x390], 1
mov rax, qword [rsp + 0x388]
mov qword [rsp + 0x394], rax
mov dword [rsp + 0x39c], 2
lea rax, [rsp + 0x3a0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x380], eax
mov r8d, dword [rsp + 0x64]
mov r9d, 4
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, qword [rsp + 0x3a0]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0x390]
xor edx, edx
mov rcx, qword [rsp + 0x3a0]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140029c2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3b0], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Adjust_Privilege_value_Error:__u_n
call fcn.140001000
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x140029c48
lea rcx, str.CCommon::LaunchAppIntoDifferentSession_Token_does_not_have_the_provilege_n
call fcn.140001000
mov qword [rsp + 0x308], 0
mov r8d, 1
mov rdx, qword [rsp + 0x3a0]
lea rcx, [rsp + 0x308]
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x140029c82
mov eax, dword [rsp + 0x60]
or eax, 0x400
mov dword [rsp + 0x60], eax
jmp 0x140029c8e
mov qword [rsp + 0x308], 0
lea rax, [rsp + 0x3c0]
mov qword [rsp + 0x3c8], rax
lea rax, [rsp + 0x3d0]
mov qword [rsp + 0x3d8], rax
mov rdx, qword [rsp + 0x428]
mov rcx, qword [rsp + 0x3c8]
call fcn.1400018f0
mov qword [rsp + 0x3f0], rax
mov rax, qword [rsp + 0x3f0]
mov qword [rsp + 0x3f8], rax
mov rdx, qword [rsp + 0x420]
mov rcx, qword [rsp + 0x3d8]
call fcn.1400018f0
mov qword [rsp + 0x400], rax
mov r8, qword [rsp + 0x3f8]
mov rdx, qword [rsp + 0x400]
lea rcx, [rsp + 0xb0]
call fcn.140029420
lea rcx, [rsp + 0xb0]
call fcn.140001e60
mov r8, rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x310]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x308]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov rcx, qword [rsp + 0x3a0]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [rsp + 0x300], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x300], 0
je 0x140029dfc
cmp qword [rsp + 0x98], 0
je 0x140029dcc
cmp qword [rsp + 0x98], 0xffffffffffffffff
je 0x140029dcc
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x98], 0
cmp qword [rsp + 0xa0], 0
je 0x140029dfc
cmp qword [rsp + 0xa0], 0xffffffffffffffff
je 0x140029dfc
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xa0], 0
mov edx, dword [rsp + 0x68]
lea rcx, str.CCommon::LaunchAppIntoDifferentSession_iResultOfCreateProcessAsUser___d_n
call fcn.140001000
cmp qword [rsp + 0x78], 0
je 0x140029e28
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], 0
cmp qword [rsp + 0x88], 0
je 0x140029e4d
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x88], 0
cmp qword [rsp + 0x3a0], 0
je 0x140029e72
mov rcx, qword [rsp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x3a0], 0
cmp qword [rsp + 0x90], 0
je 0x140029e97
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x90], 0
cmp qword [rsp + 0x70], 0
je 0x140029eb3
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x3e0], 0
lea rcx, [rsp + 0xb0]
call fcn.140001980
nop
mov rcx, qword [rsp + 0x420]
call fcn.140001980
nop
mov rcx, qword [rsp + 0x428]
call fcn.140001980
mov eax, dword [rsp + 0x3e0]
mov rcx, qword [rsp + 0x408]
xor rcx, rsp
call fcn.140006e60
add rsp, 0x418
ret