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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov r15, r8
mov rdi, rdx
mov r13, rcx
xor r12b, r12b
xor ebx, ebx
mov dword [rbp + 0x7f], ebx
mov qword [rbp - 0x39], rbx
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x39]
xor edx, edx
xor ecx, ecx
lea r8d, [rbx + 1]
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
je 0x1800066b3
cmp dword [rbp + 0x7f], ebx
jbe 0x1800066b3
lea r14, str.system
nop dword [rax]
nop word [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
lea rsi, [rcx*8]
or r8d, 0xffffffff
mov rdx, qword [rbp - 0x39]
mov rdx, qword [rsi + rdx + 8]
lea rcx, [rbp - 0x31]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_]
nop
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x31]
call qword [sym.imp.Qt5Core.dll_public:_int___cdecl_QString::compare_class_QString_const____ptr64__enum_Qt::CaseSensitivity_const___ptr64]
test eax, eax
jne 0x18000655a
cmp byte [r15], al
jne 0x1800064c2
mov rdx, qword [rbp - 0x39]
mov rdx, qword [rsi + rdx + 0x10]
lea rcx, [rbp - 0x49]
call fcn.180006e20
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x19]
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 - 0x29]
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 - 0x39]
mov edx, dword [rsi + 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 - 0x49]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___class_QString_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x29]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
mov dword [rbp + 7], 6
mov qword [rbp + 0xf], r14
movaps xmm0, xmmword [rbp + 7]
movdqa xmmword [rbp - 0x19], xmm0
xor r8d, r8d
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x49]
call qword [sym.imp.Qt5Core.dll_public:_int___cdecl_QString::compare_class_QLatin1String__enum_Qt::CaseSensitivity_const___ptr64]
nop
lea rcx, [rbp - 0x49]
test eax, eax
jne 0x1800064bc
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
jmp 0x18000655a
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, qword [rbp - 0x39]
mov r14d, dword [rsi + rax + 4]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x19]
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 - 0x41]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug___cdecl_QMessageLogger::debug_void____ptr64]
nop
lea rdx, str.existProcess_in
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___class_QString_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x1800a8400]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [rbp - 0x31]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___class_QString_const____ptr64____ptr64]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___unsigned_long_int____ptr64]
nop
lea rcx, [rbp - 0x41]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
mov r8d, r14d
xor edx, edx
mov ecx, 0x100400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x180006574
lea r14, str.system
lea rcx, [rbp - 0x31]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
inc ebx
cmp ebx, dword [rbp + 0x7f]
jae 0x1800066b3
jmp 0x1800063c0
mov dword [rbp - 0x49], 0xffffffff
lea rcx, [rbp - 0x49]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QTime::start_void____ptr64]
mov edx, 0x2710
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180006656
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x19]
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 - 0x41]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug___cdecl_QMessageLogger::debug_void____ptr64]
nop
lea rdx, str.process_islive2
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x41]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
lea rcx, [rbp - 0x49]
call qword [sym.imp.Qt5Core.dll_public:_int___cdecl_QTime::elapsed_void_const___ptr64]
cmp eax, 0x1388
jge 0x1800065f5
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x19]
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 - 0x41]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug___cdecl_QMessageLogger::debug_void____ptr64]
nop
lea rdx, str.openProcess_sucess
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___class_QString_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x41]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
mov rdx, rdi
mov rcx, r13
call fcn.1800069d0
test al, al
jne 0x180006656
mov edx, r14d
mov rcx, r13
call fcn.180007250
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x19]
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 - 0x41]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug___cdecl_QMessageLogger::debug_void____ptr64]
nop
lea rdx, str.leave_waitfor
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___class_QString_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x41]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12b, 1
lea rcx, [rbp - 0x31]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rcx, qword [rbp - 0x39]
call sub.WTSAPI32.dll_WTSFreeMemory
nop
mov rcx, rdi
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
movzx eax, r12b
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret