Function at 0x140001f60
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r12, r8
mov r15, rdx
mov r13, rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14000217b
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000217b
mov rsi, 0xffffffffffffffff
xor ebp, ebp
call fcn.1400014f0
test rax, rax
je 0x14000220e
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x7c]
cmp rax, 0x10000
jae 0x140002012
lea rax, [rsp + 0x7c]
movzx edx, ax
lea rcx, [rsp + 0x38]
call fcn.140004f70
jmp 0x14000203d
lea rcx, [rsp + 0x7c]
mov rax, rsi
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140002020
mov r8d, eax
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x38]
call fcn.140005260
nop
mov rbx, qword [rsp + 0x38]
movsxd rdi, dword [rbx - 0x10]
test edi, edi
js 0x140002203
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140002070
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.1400050f0
mov rbx, qword [rsp + 0x38]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
cmp edi, dword [rbx - 0xc]
jg 0x140002203
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], bp
mov rax, rsi
lea rdi, str.explorer.exe
nop dword [rax]
movzx ecx, word [rbx + rax*2 + 2]
cmp cx, word [rdi + rax*2 + 2]
jne 0x14000214c
add rax, 2
cmp rax, 0xd
je 0x1400020ca
movzx ecx, word [rbx + rax*2]
cmp cx, word [rdi + rax*2]
jne 0x14000214c
jmp 0x1400020a0
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400021e4
lea r8, [rsp + 0x30]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140002142
mov dword [rsp + 0x44], 0x104
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, r12
lea r8, [rsp + 0x44]
mov rdx, r15
mov rcx, qword [rsp + 0x30]
call fcn.140001e40
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x1400021a8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140002165
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001fd1
xor eax, eax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400098f0
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x28], r13
mov r14d, 1
mov dword [rsp + 0x20], r14d
mov r9d, r14d
xor r8d, r8d
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
cmovne ebp, r14d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x1400021fc
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, ebp
jmp 0x14000217d
mov ecx, 0x80070057
call fcn.140001330
nop
mov ecx, 0x80004005
call fcn.140001330
int3