Function at 0x14002cd20
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 [0x14021b0e0]
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 0x14002cdb8
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 0x14002cdf2
lea rdx, [0x1401f3cf8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
mov qword [rsp + 0x68], rax
test rdi, rdi
je 0x14002ce7a
test r12, r12
je 0x14002ce7a
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 0x14002ce7a
xor edi, edi
mov rcx, qword [rsp + 0x38]
cmp dword [rsp + 0x30], edi
jbe 0x14002ce76
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.14015acf8
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x14002ce5f
mov eax, dword [rsp + 0x40]
cmp eax, dword [rsi + rcx]
je 0x14002ce69
inc edi
cmp edi, dword [rsp + 0x30]
jae 0x14002ce71
jmp 0x14002ce30
lea rax, [rdi + rdi*2]
mov ebx, dword [rcx + rax*8 + 4]
mov rsi, qword [rsp + 0x50]
call r12
nop
test r15, r15
je 0x14002ce89
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
test r13, r13
je 0x14002ce98
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
cmp ebx, 0xffffffff
jne 0x14002cf09
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14002cf09
mov dword [rbp - 0x80], 0x130
lea rdx, [rbp - 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x14002cefc
lea rdx, str.winlogon.exe
lea rcx, [rbp - 0x54]
call fcn.14015acf8
test eax, eax
cmove ebx, dword [rbp - 0x78]
cmp byte [0x14021f2af], 0
jne 0x14002cf00
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14002ced0
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 0x14002cf8a
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.140147af0
mov rbx, qword [rsp + 0x210]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret