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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5e8]
sub rsp, 0x6d0
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x208
xor r15d, r15d
call sub.VCRUNTIME140.dll_memset
mov esi, 0x104
lea rcx, [rbp + 0x1a0]
mov edx, esi
mov r8, rbx
xor r14d, r14d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, esi
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001918
lea rdx, str.QueryFullProcessImageNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x140001935
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000193c
or rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140001ac2
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140001960
test rbx, rbx
je 0x140001935
mov rcx, rbx
jmp 0x14000192f
xor edx, edx
lea rcx, [rbp + 0x3b0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x400
mov dword [rbp + 0x198], esi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400019aa
lea r9, [rbp + 0x198]
xor edx, edx
lea r8, [rbp + 0x3b0]
mov rcx, rax
call r14
mov rdx, rsi
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140001a87
mov ecx, dword [rsp + 0x58]
lea rdx, [rbp + 0x190]
and dword [rbp + 0x190], r15d
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
neg eax
lea r9, [rsp + 0x48]
lea rax, [rbp + 0x194]
sbb ecx, ecx
mov qword [rsp + 0x20], rax
and dword [rbp + 0x190], ecx
or esi, 0xffffffff
and qword [rsp + 0x48], r15
xor edx, edx
and dword [rbp + 0x194], r15d
xor ecx, ecx
lea r8d, [rsi + 2]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x140001a2f
or esi, 0xffffffff
jmp 0x140001a7a
mov r8d, dword [rbp + 0x194]
xor edx, edx
mov r9, qword [rsp + 0x48]
test r8d, r8d
je 0x140001a71
lea rcx, [rdx + rdx*2]
movups xmm0, xmmword [r9 + rcx*8]
movsd xmm1, qword [r9 + rcx*8 + 0x10]
movsd qword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x30], xmm0
cmp dword [rsp + 0x40], r15d
je 0x140001a6d
inc edx
cmp edx, r8d
jb 0x140001a42
jmp 0x140001a71
mov esi, dword [rsp + 0x30]
mov rcx, r9
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
cmp esi, dword [rbp + 0x190]
je 0x140001a9e
mov esi, 0x104
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140001aa3
jmp 0x140001960
mov r15d, dword [rsp + 0x58]
test rbx, rbx
je 0x140001ab1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140001abf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r15d
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.140008c70
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret