Function at 0x140069100
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push rbx
push rdi
push r13
sub rsp, 0xb0
mov rax, qword [rdx + 0x58]
xor r13d, r13d
mov r8, rdx
mov qword [rcx + 0x18], rax
mov eax, dword [rdx + 0x64]
mov rdi, rcx
mov dword [rcx + 0x28], eax
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0xe0], r13
mov qword [rcx + 0x30], rax
cmp qword [rcx + 0x10], r13
je 0x14006914f
movzx edx, word [rdx + 0x38]
mov rcx, qword [r8 + 0x40]
call sym.ProcessHacker.exe_PhCreateStringEx
mov qword [rdi + 0x20], rax
jmp 0x1400691dc
mov rbx, qword [0x1400d91a8]
xor r8d, r8d
lea edx, [r8 + 0x38]
mov rcx, rbx
call fcn.14001fbe0
lock add dword [rbx + 0x18], 1
mov dword [rax], 1
mov qword [rax + 8], 0x38
mov qword [rax + 0x10], rbx
lea rdx, [rax + 0x20]
mov eax, 0x26
mov word [rdx], ax
mov word [rdx + 2], ax
lea rcx, [rdx + 0x10]
mov qword [rdx + 8], rcx
mov word [rdx + 0x36], r13w
mov rax, qword [str.System_Idle_Process]
mov qword [rcx], rax
mov rax, qword [0x1400b8060]
mov qword [rcx + 8], rax
mov rax, qword [0x1400b8068]
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400b8070]
mov qword [rcx + 0x18], rax
mov eax, dword [0x1400b8078]
mov dword [rcx + 0x20], eax
movzx eax, word [0x1400b807c]
mov word [rcx + 0x24], ax
mov qword [rdi + 0x20], rdx
mov r9d, dword [rdi + 0x18]
lea rcx, [rdi + 0xfa]
lea r8, [0x1400b2340]
mov edx, 0xc
call fcn.140094c64
mov r9d, dword [rdi + 0x28]
lea rcx, [rdi + 0x114]
lea r8, [0x1400b2340]
mov edx, 0xc
call fcn.140094c64
mov r8, qword [rdi + 0x10]
mov edx, dword [0x1400d8fbc]
lea rcx, [rsp + 0xe0]
call sym.ProcessHacker.exe_PhOpenProcess
mov rcx, qword [rdi + 0x10]
cmp rcx, 4
je 0x140069288
cmp dword [0x1400d8fc0], 0x3c
jb 0x14006924a
lea rdx, [rsp + 0x58]
call sym.ProcessHacker.exe_PhGetProcessImageFileNameByProcessId
jmp 0x14006925c
mov rcx, qword [rsp + 0xe0]
lea rdx, [rsp + 0x58]
call sym.ProcessHacker.exe_PhGetProcessImageFileName
test eax, eax
js 0x1400692b6
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call sym.ProcessHacker.exe_PhGetFileName
lea rcx, [rbx - 0x20]
mov qword [rdi + 0x40], rax
or eax, 0xffffffff
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x1400692b6
call fcn.14001fcd0
jmp 0x1400692b6
call sym.ProcessHacker.exe_PhGetKernelFileName
mov rbx, rax
test rax, rax
je 0x1400692b6
mov rcx, rax
call sym.ProcessHacker.exe_PhGetFileName
lea rcx, [rbx - 0x20]
mov qword [rdi + 0x40], rax
or eax, 0xffffffff
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x1400692b6
call fcn.14001fcd0
mov qword [rsp + 0xa0], rsi
cmp qword [rsp + 0xe0], r13
je 0x140069460
cmp dword [0x1400d8fc0], 0x33
ja 0x1400692e0
cmp qword [rdi + 0x10], 4
je 0x140069460
mov rcx, qword [0x1400d62b8]
test rcx, rcx
je 0x140069362
mov rax, qword [rsp + 0xe0]
mov dword [rsp + 0x48], 8
xor r9d, r9d
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x10
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
xor edx, edx
mov dword [rsp + 0x28], 0x999920cc
mov dword [rsp + 0x78], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov rsi, qword [rsp + 0xe8]
test eax, eax
cmovns rsi, qword [rsp + 0x68]
mov qword [rsp + 0xe8], rsi
jmp 0x140069385
mov rcx, qword [rsp + 0xe0]
lea r8, [rsp + 0xe8]
mov edx, 8
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
mov rsi, qword [rsp + 0xe8]
test eax, eax
js 0x1400694a7
xor r9d, r9d
lea rax, [rsp + 0xd0]
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, rsi
mov dword [rsp + 0xd0], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
mov r8d, dword [rsp + 0xd0]
mov rcx, qword [0x1400d8fb0]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
jne 0x1400693e0
mov ecx, 0xc000009a
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov r9d, dword [rsp + 0xd0]
lea rax, [rsp + 0xd0]
mov r8, rbx
mov edx, 1
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
mov esi, eax
test eax, eax
jns 0x140069426
mov rcx, qword [0x1400d8fb0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0xd0]
test esi, esi
js 0x140069450
mov rcx, qword [rbx]
xor r8d, r8d
mov dl, 1
call sym.ProcessHacker.exe_PhGetSidFullName
mov rcx, qword [0x1400d8fb0]
mov r8, rbx
xor edx, edx
mov qword [rdi + 0x80], rax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x1400694a7
mov rax, qword [rdi + 0x10]
test rax, rax
jne 0x140069486
mov rcx, qword [0x1400d6478]
add rcx, 0x10
movzx edx, word [rcx - 0x10]
call sym.ProcessHacker.exe_PhCreateStringEx
mov qword [rdi + 0x80], rax
jmp 0x1400694a7
cmp rax, 4
jne 0x1400694a7
mov rcx, qword [0x1400d6478]
add rcx, 0x10
movzx edx, word [rcx - 0x10]
call sym.ProcessHacker.exe_PhCreateStringEx
mov qword [rdi + 0x80], rax
cmp qword [rdi + 0x80], r13
jne 0x1400695ed
cmp dword [0x1400d8fc0], 0x33
ja 0x1400695ed
mov rcx, qword [0x1400d64f0]
test rcx, rcx
jne 0x1400694fb
lea rax, [0x1400d60b8]
lea r9, [0x1400d64f0]
lea r8d, [rcx + 1]
xor edx, edx
mov qword [rsp + 0x20], rax
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
mov rcx, qword [0x1400d64f0]
test rcx, rcx
je 0x1400695ed
mov edx, dword [0x1400d60b8]
mov qword [rsp + 0x98], r12
mov r12d, r13d
test edx, edx
je 0x1400695e5
mov qword [rsp + 0xa8], rbp
mov rbp, r13
nop
mov eax, dword [rdi + 0x10]
cmp dword [rcx + rbp + 4], eax
jne 0x1400695cd
mov rcx, qword [rcx + rbp + 0x10]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
xor r9d, r9d
call sym.ProcessHacker.exe_PhLookupSid
test eax, eax
jns 0x14006954d
mov rbx, r13
jmp 0x1400695b9
mov rdx, qword [rsp + 0x60]
cmp word [rdx], r13w
je 0x14006957b
mov rsi, qword [rsp + 0x50]
lea r8, [0x1400ab4b8]
add rdx, 0x10
lea r9, [rsi + 0x10]
mov ecx, 3
call sym.ProcessHacker.exe_PhConcatStrings
mov rbx, rax
jmp 0x14006958a
mov rbx, qword [rsp + 0x50]
lock add dword [rbx - 0x20], 1
mov rsi, qword [rsp + 0x50]
lea rcx, [rsi - 0x20]
or eax, 0xffffffff
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x14006959f
call fcn.14001fcd0
mov rcx, qword [rsp + 0x60]
add rcx, 0xffffffffffffffe0
or eax, 0xffffffff
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x1400695b9
call fcn.14001fcd0
mov qword [rdi + 0x80], rbx
mov rcx, qword [0x1400d64f0]
mov edx, dword [0x1400d60b8]
inc r12d
add rbp, 0x18
cmp r12d, edx
jb 0x140069520
mov rbp, qword [rsp + 0xa8]
mov r12, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ntdll.dll_NtClose]
mov rsi, qword [rsp + 0xa0]
add rsp, 0xb0
pop r13
pop rdi
pop rbx
ret