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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rax, qword [0x14005a458]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x208
xor r14d, r14d
call fcn.140024430
mov r8, rbx
lea rcx, [rbp + 0x1a0]
mov edx, 0x104
mov r15d, r14d
call fcn.14002aee4
mov edx, 0x104
lea rcx, [rbp + 0x1a0]
call fcn.14002b3a4
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000e2cb
lea rdx, str.QueryFullProcessImageNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x14000e315
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000e2ee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000e4b4
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x238
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x14000e31c
test rdi, rdi
je 0x14000e315
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000e4b4
mov qword [rsp + 0x6f8], rsi
nop dword [rax]
nop dword [rax + rax]
xor edx, edx
lea rcx, [rbp + 0x3b0]
mov r8d, 0x208
call fcn.140024430
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x400
mov dword [rbp + 0x198], 0x104
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14000e384
mov rcx, rax
lea r9, [rbp + 0x198]
mov rax, r15
lea r8, [rbp + 0x3b0]
xor edx, edx
call qword [case.0x14002066a.0]
mov edx, 0x104
lea rcx, [rbp + 0x3b0]
call fcn.14002b3a4
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp + 0x3b0]
call fcn.14002b03c
test eax, eax
jne 0x14000e471
mov ecx, dword [rsp + 0x58]
lea rdx, [rbp + 0x190]
mov dword [rbp + 0x190], r14d
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ecx, dword [rbp + 0x190]
lea r9, [rsp + 0x48]
test eax, eax
mov qword [rsp + 0x48], r14
lea rax, [rbp + 0x194]
mov dword [rbp + 0x194], r14d
cmove ecx, r14d
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x190], ecx
mov ebx, 0xffffffff
xor ecx, ecx
xor edx, edx
lea r8d, [rbx + 2]
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x14000e414
mov ebx, 0xffffffff
jmp 0x14000e469
mov r8d, dword [rbp + 0x194]
mov eax, r14d
mov r9, qword [rsp + 0x48]
test r8d, r8d
je 0x14000e461
nop dword [rax + rax]
mov ecx, eax
lea rdx, [rcx + rcx*2]
movups xmm0, xmmword [r9 + rdx*8]
movsd xmm1, qword [r9 + rdx*8 + 0x10]
movsd qword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x30], xmm0
cmp dword [rsp + 0x40], r14d
je 0x14000e45d
inc eax
cmp eax, r8d
jb 0x14000e430
jmp 0x14000e461
mov ebx, dword [rsp + 0x30]
mov rcx, r9
call sub.WTSAPI32.dll_WTSFreeMemory
cmp ebx, dword [rbp + 0x190]
je 0x14000e488
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14000e330
jmp 0x14000e48d
mov r14d, dword [rsp + 0x58]
test rdi, rdi
je 0x14000e49b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x14000e4a9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x6f8]
mov eax, r14d
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.1400218f0
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret