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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x988]
sub rsp, 0xa60
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400f4d50]
xor rax, rsp
mov qword [rbp + 0x958], rax
mov r14, rcx
xor esi, esi
mov r13d, esi
mov dword [rsp + 0x60], esi
cmp byte [rcx + 0x78], sil
jne 0x14000af2b
mov r15d, esi
lea rbx, [rcx + 0x40]
lea r12, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
lea rdi, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
lea rcx, [0x1400c09a8]
mov qword [rsp + 0x70], rcx
or r13d, 1
mov dword [rsp + 0x60], r13d
mov qword [rbp - 8], r12
lea rcx, [rbp - 8]
call fcn.1400053d0
lea rdx, [rsp + 0x78]
mov qword [rbp + 0x40], rdx
mov qword [rbp + 0x48], rsi
mov dl, 0x20
lea rcx, [rbp - 8]
call fcn.140007710
mov word [rbp + 0x50], ax
cmp qword [rbp + 0x40], 0
jne 0x14000a9e2
mov edx, dword [rbp + 8]
or edx, 4
xor r8d, r8d
lea rcx, [rbp - 8]
call fcn.140005240
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rdi
lea rcx, [rsp + 0x78]
call fcn.140005d90
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x18], rsi
mov dword [rbp - 0x10], 4
lea rdx, [0x1400f1738]
lea rcx, [rsp + 0x70]
call fcn.1400081f0
mov rcx, rax
mov edx, dword [r14 + 0x38]
call fcn.140008010
mov qword [rbp + 0x80], 7
mov qword [rbp + 0x78], rsi
mov word [rbp + 0x68], si
xor r8d, r8d
lea rdx, [0x1400bdbf0]
lea rcx, [rbp + 0x68]
call fcn.140002510
nop
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x70]
call fcn.14000a430
nop
mov rdi, qword [rbx]
mov r8, rax
lea rdx, [rbp + 0x68]
mov rcx, rbx
call qword [rdi]
mov edi, eax
cmp qword [rbp + 0xa8], 8
jb 0x14000aa8f
mov rcx, qword [rbp + 0x90]
call fcn.140095520
mov qword [rbp + 0xa8], 7
mov qword [rbp + 0xa0], rsi
mov word [rbp + 0x90], si
cmp qword [rbp + 0x80], 8
jb 0x14000aabb
mov rcx, qword [rbp + 0x68]
call fcn.140095520
test edi, edi
je 0x14000aedb
cmp r15d, 5
jg 0x14000ae8c
mov r8d, 0x104
lea rdx, [rbp + 0x340]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x40], 0x100
lea rax, [rbp + 0x140]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x100
lea rax, [rbp + 0x750]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x100
lea r9, [rbp + 0x550]
mov r8d, 3
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0x340]
call fcn.1400966c4
mov qword [rbp + 0xa8], 7
mov qword [rbp + 0xa0], rsi
mov word [rbp + 0x90], si
mov r8d, 7
lea rdx, str.wauditu
lea rcx, [rbp + 0x90]
call fcn.140002510
nop
lea r8, [rbp + 0x140]
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0xb8]
call fcn.14000a3c0
nop
cmp qword [rbp + 0xa8], 8
jb 0x14000ab99
mov rcx, qword [rbp + 0x90]
call fcn.140095520
mov qword [rbp + 0xa8], 7
mov qword [rbp + 0xa0], rsi
mov word [rbp + 0x90], si
mov esi, dword [r14 + 0x38]
xor r12b, r12b
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
jne 0x14000abe1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000ac4f
xor ebx, ebx
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
test edx, edx
je 0x14000ac41
xor edi, edi
cmp esi, 0xffffffff
je 0x14000abfc
cmp esi, dword [rcx + rdi]
jne 0x14000ac32
mov rax, qword [rcx + rdi + 8]
test rax, rax
je 0x14000ac32
lea rdx, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 8
cmovae rdx, qword [rbp + 0xb8]
mov rcx, rax
call fcn.140096b58
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x14000ac3e
mov edx, dword [rsp + 0x58]
inc ebx
add rdi, 0x18
cmp ebx, edx
jae 0x14000ac41
jmp 0x14000abf2
mov r12b, 1
call sub.WTSAPI32.dll_WTSFreeMemory
test r12b, r12b
jne 0x14000ad52
mov qword [rbp + 0x80], 7
xor esi, esi
mov qword [rbp + 0x78], rsi
mov word [rbp + 0x68], si
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x130]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0x68]
call fcn.140002510
nop
lea r8, [rbp + 0x550]
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x108]
call fcn.14000a3c0
nop
lea r8, [rbp + 0xb8]
mov rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.14000a360
nop
cmp qword [rbp + 0x120], 8
jb 0x14000acd1
mov rcx, qword [rbp + 0x108]
call fcn.140095520
mov qword [rbp + 0x120], 7
mov qword [rbp + 0x118], rsi
mov word [rbp + 0x108], si
cmp qword [rbp + 0x80], 8
jb 0x14000acfd
mov rcx, qword [rbp + 0x68]
call fcn.140095520
mov qword [rbp + 0x80], 7
mov qword [rbp + 0x78], rsi
mov word [rbp + 0x68], si
lea rdx, [rbp + 0xe0]
cmp qword [rbp + 0xf8], 8
cmovae rdx, qword [rbp + 0xe0]
mov ecx, dword [r14 + 0x38]
call fcn.140004880
mov edi, eax
test eax, eax
jne 0x14000add5
cmp qword [rbp + 0xf8], 8
jb 0x14000ad54
mov rcx, qword [rbp + 0xe0]
call fcn.140095520
jmp 0x14000ad54
xor esi, esi
mov ecx, 0x258
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
cmp qword [rbp + 0xd0], 8
jb 0x14000ad77
mov rcx, qword [rbp + 0xb8]
call fcn.140095520
nop
lea rax, [rbp - 8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x70], rdi
lea rcx, [rsp + 0x78]
call fcn.1400057c0
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x70], r12
lea rax, vtable.std::ios_base.0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14007610c
inc r15d
lea rbx, [r14 + 0x40]
jmp 0x14000a98a
cmp qword [rbp + 0xf8], 8
jb 0x14000adeb
mov rcx, qword [rbp + 0xe0]
call fcn.140095520
mov qword [rbp + 0xf8], 7
mov qword [rbp + 0xf0], rsi
mov word [rbp + 0xe0], si
cmp qword [rbp + 0xd0], 8
jb 0x14000ae1a
mov rcx, qword [rbp + 0xb8]
call fcn.140095520
mov qword [rbp + 0xd0], 7
mov qword [rbp + 0xc8], rsi
mov word [rbp + 0xb8], si
lea rax, [rbp - 8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
lea rcx, [rsp + 0x78]
call fcn.1400057c0
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14007610c
mov eax, edi
jmp 0x14000af2d
lea rax, [rbp - 8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
lea rcx, [rsp + 0x78]
call fcn.1400057c0
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r12
lea rax, vtable.std::ios_base.0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14007610c
mov eax, edi
jmp 0x14000af2d
mov byte [r14 + 0x78], 1
lea rax, [rbp - 8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
lea rcx, [rsp + 0x78]
call fcn.1400057c0
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r12
lea rax, vtable.std::ios_base.0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14007610c
xor eax, eax
mov rcx, qword [rbp + 0x958]
xor rcx, rsp
call fcn.1400959a0
lea r11, [rsp + 0xa60]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret