Function at 0x14004fef0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x2a0
mov rax, qword [0x140064008]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x14004ff8d
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14004ff86
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14004ff81
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140050185
mov rcx, r8
call fcn.140051358
xor esi, esi
jmp 0x14005014c
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
xor esi, esi
test eax, eax
je 0x140050111
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 7
lea rax, [rsp + 0x7c]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x14004ffc4
lea rcx, [rsp + 0x20]
cmp rdx, 7
ja 0x14004fff6
mov qword [rsp + 0x30], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rsp + 0x7c]
call sub.VCRUNTIME140.dll_memmove
mov word [rsp + rbx + 0x20], si
jmp 0x140050000
lea r9, [rsp + 0x7c]
call fcn.14004f660
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x14005000d
mov rax, qword [rdi]
lea r9, [rsp + 0x20]
mov r11, qword [rsp + 0x38]
cmp r11, 8
setae bpl
mov r10, qword [rsp + 0x20]
cmovae r9, r10
mov rcx, qword [rsp + 0x30]
cmp rcx, qword [rdi + 0x10]
jne 0x14005006f
test rcx, rcx
je 0x1400500be
movzx edx, word [r9]
movzx r8d, word [rax]
cmp dx, r8w
jb 0x14005006f
sub r9, rax
cmp dx, r8w
ja 0x14005006f
cmp rcx, 1
je 0x1400500be
dec rcx
add rax, 2
movzx edx, word [rax + r9]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x140050051
xor bl, bl
test bpl, bpl
je 0x1400500a7
lea rdx, [r11*2 + 2]
mov rax, r10
cmp rdx, 0x1000
jb 0x14005009f
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400500c2
mov rcx, r10
call fcn.140051358
test bl, bl
jne 0x1400500c9
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x14004ff9d
mov bl, 1
jmp 0x140050071
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ebx, dword [rsp + 0x58]
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14005010c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140050107
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140050185
mov rcx, r8
call fcn.140051358
mov rax, rbx
jmp 0x14005014e
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14005014c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140050147
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140050185
mov rcx, r8
call fcn.140051358
xor eax, eax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400510e0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3