Function at 0x1400ee5f0
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 [0x14039bc30]
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 0x1400ee64f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x28], eax
lea rax, [0x14039fc90]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdi], xmm0
jmp 0x1400ee7cf
mov r9d, dword [rbp - 0x18]
xor r15d, r15d
mov r8, qword [rbp - 0x28]
mov edx, r15d
test r9d, r9d
je 0x1400ee68a
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 0x1400ee6dd
inc edx
cmp edx, r9d
jb 0x1400ee662
mov edx, dword [0x1403b1590]
lea rbx, vtable.._AVimpersonation_error_category__1__make_error_code__A0x9a1c86aa__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 [0x1403b0a1c], eax
jg 0x1400ee8e3
jmp 0x1400ee6be
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 0x1400ee7cf
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 0x1400ee730
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x28], eax
lea rax, [0x14039fc90]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rbp - 0x28]
jmp 0x1400ee7bc
mov r8d, dword [rbp - 0x18]
mov ebx, r15d
test r8d, r8d
je 0x1400ee779
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 0x1400ee772
mov rdx, qword [rax + rcx*8 + 8]
test rdx, rdx
je 0x1400ee772
lea rcx, str.explorer.exe
call fcn.14014a3cc
test eax, eax
je 0x1400ee7ef
mov r8d, dword [rbp - 0x18]
inc ebx
cmp ebx, r8d
jb 0x1400ee740
mov edx, dword [0x1403b1590]
lea rbx, vtable.._AVimpersonation_error_category__1__make_error_code__A0x9a1c86aa__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 [0x1403b0a1c], eax
jg 0x1400ee898
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.14013af80
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 0x1400ee82d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
lea rax, [0x14039fc90]
mov qword [rdi + 8], rax
jmp 0x1400ee7bf
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 0x1400ee851
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
jmp 0x1400ee86c
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1400ee869
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
jmp 0x1400ee86c
mov dword [rdi], r15d
mov rcx, qword [rbp - 0x10]
lea rax, [0x14039fc90]
mov qword [rdi + 8], rax
test rcx, rcx
je 0x1400ee88a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x10], r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400ee7bf
lea rcx, [0x1403b0a1c]
call fcn.14013b4c8
cmp dword [0x1403b0a1c], 0xffffffff
jne 0x1400ee7a7
lea rax, vtable.._AVimpersonation_error_category__1__make_error_code__A0x9a1c86aa__YA_AVerror_code_std__W4impersonation_error_2__Z_.0
mov qword [0x14039b7e8], rbx
lea rcx, [0x1402e5c20]
mov qword [vtable.._AVimpersonation_error_category__1__make_error_code__A0x9a1c86aa__YA_AVerror_code_std__W4impersonation_error_2__Z_.0], rax
call fcn.14013b254
lea rcx, [0x1403b0a1c]
call fcn.14013b468
jmp 0x1400ee7a7
lea rcx, [0x1403b0a1c]
call fcn.14013b4c8
cmp dword [0x1403b0a1c], 0xffffffff
jne 0x1400ee6ba
lea rax, vtable.._AVimpersonation_error_category__1__make_error_code__A0x9a1c86aa__YA_AVerror_code_std__W4impersonation_error_2__Z_.0
mov qword [0x14039b7e8], rbx
lea rcx, [0x1402e5c20]
mov qword [vtable.._AVimpersonation_error_category__1__make_error_code__A0x9a1c86aa__YA_AVerror_code_std__W4impersonation_error_2__Z_.0], rax
call fcn.14013b254
lea rcx, [0x1403b0a1c]
call fcn.14013b468
jmp 0x1400ee6ba