Function at 0x14004caf0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1400a4010]
xor rax, rsp
mov qword [rbp + 0x190], rax
lea rdi, [0x1400a4128]
mov rbx, qword [0x1400a4138]
cmp qword [0x1400a4140], 0x10
jb 0x14004cb3f
mov rdi, qword [0x1400a4128]
add rbx, rdi
xor esi, esi
mov qword [rsp + 0x28], rsi
mov ecx, esi
mov qword [rsp + 0x38], rcx
mov r8d, 7
mov qword [rsp + 0x40], r8
mov rdx, rbx
sub rdx, rdi
cmp rdx, r8
jbe 0x14004cb7c
lea rcx, [rsp + 0x28]
call fcn.140058e20
mov ecx, esi
mov qword [rsp + 0x38], rcx
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
cmp rdi, rbx
je 0x14004cbdb
nop dword [rax + rax]
movsx r9d, byte [rdi]
cmp rcx, r8
jae 0x14004cbbd
lea rax, [rcx + 1]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x28]
cmp r8, 8
cmovae rax, qword [rsp + 0x28]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], si
jmp 0x14004cbc7
lea rcx, [rsp + 0x28]
call fcn.140058f90
inc rdi
cmp rdi, rbx
je 0x14004cbdb
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
jmp 0x14004cb90
mov dword [rsp + 0x50], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004cd4a
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rcx, [rsp + 0x7c]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x14004cc15
lea r10, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae r10, qword [rsp + 0x28]
mov r11, qword [rsp + 0x38]
mov r9, r11
cmp rax, r11
cmovb r9, rax
lea rcx, [rsp + 0x7c]
test r9, r9
je 0x14004cd23
movzx edx, word [r10]
movzx r8d, word [rsp + 0x7c]
cmp dx, r8w
jb 0x14004cc8b
lea rdi, [rsp + 0x7c]
sub r10, rdi
cmp dx, r8w
ja 0x14004cc8b
cmp r9, 1
je 0x14004cd23
dec r9
add rcx, 2
movzx edx, word [rcx + r10]
movzx r8d, word [rcx]
cmp dx, r8w
jae 0x14004cc69
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14004cd41
lea rcx, [rsp + 0x7c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14004ccb0
lea r10, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae r10, qword [rsp + 0x28]
mov r11, qword [rsp + 0x38]
mov r9, r11
cmp rax, r11
cmovb r9, rax
lea rcx, [rsp + 0x7c]
test r9, r9
je 0x14004cd23
movzx edx, word [r10]
movzx r8d, word [rsp + 0x7c]
cmp dx, r8w
jb 0x14004cc8b
lea rdi, [rsp + 0x7c]
sub r10, rdi
cmp dx, r8w
ja 0x14004cc8b
cmp r9, 1
je 0x14004cd23
dec r9
add rcx, 2
movzx edx, word [rcx + r10]
movzx r8d, word [rcx]
cmp dx, r8w
jae 0x14004cd00
jmp 0x14004cc8b
cmp r11, rax
jb 0x14004cc8b
ja 0x14004cc8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [rsp + 0x58]
jmp 0x14004cd4a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14004cd8f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004cd8a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004cd8a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006d39c
mov rax, rsi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14006d200
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret