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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rbp - 8], rax
xor edx, edx
lea rax, [rbp - 0x18]
mov rdi, rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x28]
xor ecx, ecx
lea r8d, [rdx + 1]
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x1400d330f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x28], eax
lea rax, [0x14035e9f0]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdi], xmm0
jmp 0x1400d348f
mov r9d, dword [rbp - 0x18]
xor r15d, r15d
mov r8, qword [rbp - 0x28]
mov edx, r15d
test r9d, r9d
je 0x1400d334a
mov eax, edx
lea rcx, [rax + rax*2]
movups xmm0, xmmword [r8 + rcx*8]
movsd xmm1, qword [r8 + rcx*8 + 0x10]
movsd qword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x40], xmm0
cmp dword [rbp - 0x30], r15d
je 0x1400d339d
inc edx
cmp edx, r9d
jb 0x1400d3322
mov edx, dword [0x14036e7c0]
lea rbx, vtable.._AVimpersonation_error_category__1__make_error_code__A0xcc25d930__YA_AVerror_code_std__W4impersonation_error_2__Z_.0
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov eax, dword [rcx + rax]
cmp dword [0x14036c38c], eax
jg 0x1400d35a3
jmp 0x1400d337e
mov r8, qword [rbp - 0x28]
mov rcx, r8
mov dword [rbp - 0x40], 1
mov qword [rbp - 0x38], rbx
call sub.WTSAPI32.dll_WTSFreeMemory
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rdi], xmm0
jmp 0x1400d348f
mov qword [rsp + 0x98], rsi
mov rcx, r8
mov qword [rsp + 0xa0], r14
call sub.WTSAPI32.dll_WTSFreeMemory
xor edx, edx
lea rax, [rbp - 0x18]
lea r9, [rbp - 0x28]
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea r8d, [rdx + 1]
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
jne 0x1400d33f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x28], eax
lea rax, [0x14035e9f0]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rbp - 0x28]
jmp 0x1400d347c
mov r8d, dword [rbp - 0x18]
mov ebx, r15d
test r8d, r8d
je 0x1400d3439
mov r14d, dword [rbp - 0x40]
mov rax, qword [rbp - 0x28]
mov esi, ebx
lea rcx, [rsi + rsi*2]
cmp r14d, dword [rax + rcx*8]
jne 0x1400d3432
mov rdx, qword [rax + rcx*8 + 8]
test rdx, rdx
je 0x1400d3432
lea rcx, str.explorer.exe
call fcn.1402786cc
test eax, eax
je 0x1400d34af
mov r8d, dword [rbp - 0x18]
inc ebx
cmp ebx, r8d
jb 0x1400d3400
mov edx, dword [0x14036e7c0]
lea rbx, vtable.._AVimpersonation_error_category__1__make_error_code__A0xcc25d930__YA_AVerror_code_std__W4impersonation_error_2__Z_.0
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov eax, dword [rcx + rax]
cmp dword [0x14036c38c], eax
jg 0x1400d3558
mov rcx, qword [rbp - 0x28]
mov dword [rbp - 0x40], r15d
mov qword [rbp - 0x38], rbx
call sub.WTSAPI32.dll_WTSFreeMemory
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rdi], xmm0
mov rsi, qword [rsp + 0x98]
mov r14, qword [rsp + 0xa0]
mov rax, rdi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140269300
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop r15
pop rdi
pop rbp
ret
mov rcx, qword [rbp - 0x28]
lea rax, [rsi + rsi*2]
mov ebx, dword [rcx + rax*8 + 4]
call sub.WTSAPI32.dll_WTSFreeMemory
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x1400d34ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
lea rax, [0x14035e9f0]
mov qword [rdi + 8], rax
jmp 0x1400d347f
lea r8, [rbp - 0x10]
mov qword [rbp - 0x10], r15
mov edx, 0xf01ff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400d3511
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
jmp 0x1400d352c
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1400d3529
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
jmp 0x1400d352c
mov dword [rdi], r15d
mov rcx, qword [rbp - 0x10]
lea rax, [0x14035e9f0]
mov qword [rdi + 8], rax
test rcx, rcx
je 0x1400d354a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x10], r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400d347f
lea rcx, [0x14036c38c]
call fcn.1402694a8
cmp dword [0x14036c38c], 0xffffffff
jne 0x1400d3467
lea rax, vtable.._AVimpersonation_error_category__1__make_error_code__A0xcc25d930__YA_AVerror_code_std__W4impersonation_error_2__Z_.0
mov qword [0x14035a768], rbx
lea rcx, [0x1402b7900]
mov qword [vtable.._AVimpersonation_error_category__1__make_error_code__A0xcc25d930__YA_AVerror_code_std__W4impersonation_error_2__Z_.0], rax
call fcn.14026982c
lea rcx, [0x14036c38c]
call fcn.140269448
jmp 0x1400d3467
lea rcx, [0x14036c38c]
call fcn.1402694a8
cmp dword [0x14036c38c], 0xffffffff
jne 0x1400d337a
lea rax, vtable.._AVimpersonation_error_category__1__make_error_code__A0xcc25d930__YA_AVerror_code_std__W4impersonation_error_2__Z_.0
mov qword [0x14035a768], rbx
lea rcx, [0x1402b7900]
mov qword [vtable.._AVimpersonation_error_category__1__make_error_code__A0xcc25d930__YA_AVerror_code_std__W4impersonation_error_2__Z_.0], rax
call fcn.14026982c
lea rcx, [0x14036c38c]
call fcn.140269448
jmp 0x1400d337a