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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x3d8
mov qword [rsp + 0x3c0], 0xfffffffffffffffe
mov rax, qword [0x1400430e0]
xor rax, rsp
mov qword [rsp + 0x3c8], rax
mov r8, qword [rsp + 0x3e8]
mov r8, qword [r8]
mov rdx, qword [rsp + 0x3e0]
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 0x1400288e7
mov dword [rsp + 0x3b4], 1
mov rcx, qword [rsp + 0x3e0]
call fcn.1400019b0
nop
mov rcx, qword [rsp + 0x3e8]
call fcn.1400019b0
mov eax, dword [rsp + 0x3b4]
jmp 0x140028df6
mov dword [rsp + 0xc0], 0x238
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x70]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140028956
cmp qword [rsp + 0x70], 0
je 0x140028924
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 + 0x3e0]
call fcn.1400019b0
nop
mov rcx, qword [rsp + 0x3e8]
call fcn.1400019b0
mov eax, dword [rsp + 0x3b8]
jmp 0x140028df6
lea rdx, str.winlogon.exe
lea rcx, [rsp + 0xec]
call fcn.1400073d8
test eax, eax
jne 0x1400289af
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 0x1400289af
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x3a8], eax
jne 0x1400289af
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x80], eax
jmp 0x1400289c5
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x70]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140028956
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.1400078e0
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.1400078e0
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 0x140028a79
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 0x140028aa8
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 0x140028b7f
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 0x140028b98
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 0x140028bd2
mov eax, dword [rsp + 0x60]
or eax, 0x400
mov dword [rsp + 0x60], eax
jmp 0x140028bde
mov qword [rsp + 0x308], 0
mov rdx, qword [rsp + 0x3e0]
lea rcx, [rsp + 0xb0]
call fcn.140001920
nop
lea rdx, [0x1400341c4]
lea rcx, [rsp + 0xb0]
call fcn.140001a30
mov rdx, qword [rsp + 0x3e8]
lea rcx, [rsp + 0xb0]
call fcn.140001a00
lea rcx, [rsp + 0xb0]
call fcn.140003c10
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 0x140028d04
cmp qword [rsp + 0x98], 0
je 0x140028cd4
cmp qword [rsp + 0x98], 0xffffffffffffffff
je 0x140028cd4
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x98], 0
cmp qword [rsp + 0xa0], 0
je 0x140028d04
cmp qword [rsp + 0xa0], 0xffffffffffffffff
je 0x140028d04
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 0x140028d30
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], 0
cmp qword [rsp + 0x88], 0
je 0x140028d55
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x88], 0
cmp qword [rsp + 0x3a0], 0
je 0x140028d7a
mov rcx, qword [rsp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x3a0], 0
cmp qword [rsp + 0x90], 0
je 0x140028d9f
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x90], 0
cmp qword [rsp + 0x70], 0
je 0x140028dbb
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x3bc], 0
lea rcx, [rsp + 0xb0]
call fcn.1400019b0
nop
mov rcx, qword [rsp + 0x3e0]
call fcn.1400019b0
nop
mov rcx, qword [rsp + 0x3e8]
call fcn.1400019b0
mov eax, dword [rsp + 0x3bc]
mov rcx, qword [rsp + 0x3c8]
xor rcx, rsp
call fcn.140006dd0
add rsp, 0x3d8
ret