Function at 0x14000b550
Capabilities:
Enumerate processes on remote desktop session host
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xde8]
sub rsp, 0xec0
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 + 0xdb8], rax
mov r13, rcx
xor esi, esi
mov r14d, esi
mov dword [rsp + 0x60], esi
cmp byte [rcx + 0x80], sil
jne 0x14000bcbd
mov r15d, esi
lea rbx, [rcx + 0x48]
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 r14d, 1
mov dword [rsp + 0x60], r14d
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 0x14000b615
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, [0x1400f1760]
lea rcx, [rsp + 0x70]
call fcn.1400081f0
mov rcx, rax
mov edx, dword [r13 + 0x40]
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 0x14000b6c2
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 0x14000b6ee
mov rcx, qword [rbp + 0x68]
call fcn.140095520
test edi, edi
je 0x14000bbac
cmp r15d, 5
jg 0x14000bb5a
mov r8d, 0x104
lea rdx, [rbp + 0x9a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x40], 0x100
lea rax, [rbp + 0x390]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x100
lea rax, [rbp + 0xbb0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x100
lea r9, [rbp + 0x590]
mov r8d, 3
lea rdx, [rbp + 0x380]
lea rcx, [rbp + 0x9a0]
call fcn.1400966c4
mov qword [rbp + 0xa8], 7
mov qword [rbp + 0xa0], rsi
mov word [rbp + 0x90], si
mov r8d, 9
lea rdx, str.wauditush
lea rcx, [rbp + 0x90]
call fcn.140002510
nop
lea r8, [rbp + 0x390]
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0xb8]
call fcn.14000a3c0
nop
cmp qword [rbp + 0xa8], 8
jb 0x14000b7cc
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 [r13 + 0x40]
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 0x14000b814
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000b882
xor ebx, ebx
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
test edx, edx
je 0x14000b874
xor edi, edi
cmp esi, 0xffffffff
je 0x14000b82f
cmp esi, dword [rdi + rcx]
jne 0x14000b865
mov rax, qword [rdi + rcx + 8]
test rax, rax
je 0x14000b865
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 0x14000b871
mov edx, dword [rsp + 0x58]
inc ebx
add rdi, 0x18
cmp ebx, edx
jae 0x14000b874
jmp 0x14000b825
mov r12b, 1
call sub.WTSAPI32.dll_WTSFreeMemory
test r12b, r12b
jne 0x14000ba20
lea rdx, [rbp + 0x790]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
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 + 0x380]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x380]
lea rcx, [rbp + 0x68]
call fcn.140002510
nop
lea r8, [rbp + 0x590]
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x130]
call fcn.14000a3c0
nop
lea r8, [rbp + 0xb8]
mov rdx, rax
lea rcx, [rbp + 0x158]
call fcn.14000a360
nop
lea r8d, [rsi + 0x20]
mov rdx, rax
lea rcx, [rbp + 0x108]
call fcn.14000a540
nop
lea r8, [rbp + 0x790]
mov rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.14000a3c0
nop
cmp qword [rbp + 0x120], 8
jb 0x14000b941
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 + 0x170], 8
jb 0x14000b970
mov rcx, qword [rbp + 0x158]
call fcn.140095520
mov qword [rbp + 0x170], 7
mov qword [rbp + 0x168], rsi
mov word [rbp + 0x158], si
cmp qword [rbp + 0x148], 8
jb 0x14000b99f
mov rcx, qword [rbp + 0x130]
call fcn.140095520
mov qword [rbp + 0x148], 7
mov qword [rbp + 0x140], rsi
mov word [rbp + 0x130], si
cmp qword [rbp + 0x80], 8
jb 0x14000b9cb
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 [r13 + 0x40]
call fcn.140004880
mov edi, eax
test eax, eax
jne 0x14000baa3
cmp qword [rbp + 0xf8], 8
jb 0x14000ba22
mov rcx, qword [rbp + 0xe0]
call fcn.140095520
jmp 0x14000ba22
xor esi, esi
mov ecx, 0x258
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
cmp qword [rbp + 0xd0], 8
jb 0x14000ba45
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, [r13 + 0x48]
jmp 0x14000b5bd
cmp qword [rbp + 0xf8], 8
jb 0x14000bab9
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 0x14000bae8
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 0x14000bcbf
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 0x14000bcbf
mov byte [r13 + 0x80], 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 rdx, dword [rax + 4]
mov qword [rsp + rdx + 0x70], r12
lea rax, vtable.std::ios_base.0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14007610c
lea rcx, [rbp + 0x180]
call fcn.1400044f0
nop
mov rcx, qword [r13 + 0x88]
mov rax, qword [rcx]
lea rdx, [rbp + 0x180]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rbp + 0x180]
mov rcx, r13
call fcn.14000af90
nop
cmp qword [rbp + 0x368], 8
jb 0x14000bc46
mov rcx, qword [rbp + 0x350]
call fcn.140095520
mov qword [rbp + 0x368], 7
mov qword [rbp + 0x360], rsi
mov word [rbp + 0x350], si
lea rcx, [rbp + 0x330]
call fcn.1400039e0
lea rcx, [rbp + 0x258]
call fcn.140003b00
lea rcx, [rbp + 0x238]
call fcn.1400039e0
lea rcx, [rbp + 0x200]
call fcn.1400039e0
lea rcx, [rbp + 0x1e0]
call fcn.1400039e0
lea rcx, [rbp + 0x1b0]
call fcn.140003a60
cmp qword [rbp + 0x198], 8
jb 0x14000bcbd
mov rcx, qword [rbp + 0x180]
call fcn.140095520
xor eax, eax
mov rcx, qword [rbp + 0xdb8]
xor rcx, rsp
call fcn.1400959a0
lea r11, [rsp + 0xec0]
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