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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov r14, rdx
xor esi, esi
mov dword [rbp + 0x40], esi
mov qword [rbp + 0x48], rsi
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x48]
xor edx, edx
xor ecx, ecx
lea r8d, [rsi + 1]
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
je 0x180006997
mov ebx, esi
cmp dword [rbp + 0x40], ebx
jbe 0x180006997
lea r15, str.system
nop word [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
lea rdi, [rcx*8]
or r8d, 0xffffffff
mov rdx, qword [rbp + 0x48]
mov rdx, qword [rdi + rdx + 8]
lea rcx, [rbp - 0x48]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_]
nop
xor r8d, r8d
mov rdx, r14
lea rcx, [rbp - 0x48]
call qword [sym.imp.Qt5Core.dll_public:_int___cdecl_QString::compare_class_QString_const____ptr64__enum_Qt::CaseSensitivity_const___ptr64]
test eax, eax
jne 0x18000695e
mov rdx, qword [rbp + 0x48]
mov rdx, qword [rdi + rdx + 0x10]
lea rcx, [rbp - 0x50]
call fcn.180006e20
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMessageLogger::constructor_char_const____ptr64__int__char_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [rbp - 0x40]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug___cdecl_QMessageLogger::debug_void____ptr64]
nop
lea rdx, str.pid
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
mov rcx, rax
mov rax, qword [rbp + 0x48]
mov edx, dword [rdi + rax + 4]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, str._user
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [rbp - 0x50]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___class_QString_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
mov dword [rbp - 0x30], 6
mov qword [rbp - 0x28], r15
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
xor r8d, r8d
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x50]
call qword [sym.imp.Qt5Core.dll_public:_int___cdecl_QString::compare_class_QLatin1String__enum_Qt::CaseSensitivity_const___ptr64]
test eax, eax
jne 0x180006974
lea rcx, [rbp - 0x50]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
inc ebx
cmp ebx, dword [rbp + 0x40]
jae 0x180006997
jmp 0x180006870
mov eax, ebx
lea rcx, [rax + rax*2]
mov rax, qword [rbp + 0x48]
mov esi, dword [rax + rcx*8 + 4]
lea rcx, [rbp - 0x50]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rcx, qword [rbp + 0x48]
call sub.WTSAPI32.dll_WTSFreeMemory
nop
mov rcx, r14
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov eax, esi
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret