Function at 0x18005ef20
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x180315040]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor edx, edx
mov r14, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x18005f210
mov qword [rsp + 0x2c0], rbx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x2c8], rsi
mov rcx, rax
mov qword [rsp + 0x2d0], rdi
mov qword [rsp + 0x298], r12
mov qword [rsp + 0x290], r13
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18005f1df
xor r12d, r12d
movabs r13, 0x7ffffffffffffffe
xorps xmm0, xmm0
lea rcx, [rsp + 0x4c]
movups xmmword [rbp + 0x160], xmm0
mov r8d, 0xa
movabs rdx, 0x7fffffffffffffff
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x18005efe0
lea rbx, [rsp + 0x4e]
lea rbx, [rbx + rax*2]
lea rax, [rsp + 0x4c]
cmp rax, rbx
jne 0x18005f026
mov esi, 7
mov word [rbp + 0x160], r12w
mov rdi, qword [rbp + 0x160]
mov qword [rbp + 0x178], rsi
mov qword [rbp + 0x170], r12
jmp 0x18005f126
lea rax, [rsp + 0x4c]
sub rbx, rax
sar rbx, 1
cmp rbx, r13
ja 0x18005f239
cmp rbx, 7
ja 0x18005f085
mov qword [rbp + 0x170], rbx
lea rdx, [rsp + 0x4c]
add rbx, rbx
mov qword [rbp + 0x178], 7
mov r8, rbx
lea rcx, [rbp + 0x160]
call sub.VCRUNTIME140.dll_memcpy
mov word [rbp + rbx + 0x160], r12w
mov rsi, qword [rbp + 0x178]
mov rdi, qword [rbp + 0x160]
jmp 0x18005f126
mov rsi, rbx
or rsi, 7
cmp rsi, r13
jbe 0x18005f09a
mov rsi, r13
lea rcx, [rdx + rdx]
jmp 0x18005f0bb
cmp rsi, 0xa
cmovb rsi, r8
lea rcx, [rsi + 1]
cmp rcx, rdx
ja 0x18005f233
add rcx, rcx
cmp rcx, 0x1000
jb 0x18005f0e7
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18005f233
mov rcx, rax
call fcn.18009e700
test rax, rax
je 0x18005f22c
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x18005f0f9
test rcx, rcx
je 0x18005f0f6
call fcn.18009e700
mov rdi, rax
jmp 0x18005f0f9
mov rdi, r12
mov qword [rbp + 0x170], rbx
lea rdx, [rsp + 0x4c]
add rbx, rbx
mov qword [rbp + 0x160], rdi
mov r8, rbx
mov qword [rbp + 0x178], rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rdi], r12w
cmp qword [r14 + 0x18], 7
mov r8, r14
jbe 0x18005f133
mov r8, qword [r14]
cmp rsi, 7
lea rax, [rbp + 0x160]
cmova rax, rdi
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x18005f164
add rax, 2
test ecx, ecx
jne 0x18005f150
test edx, edx
jne 0x18005f192
mov r8d, dword [rsp + 0x28]
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x18005f192
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rsi, 7
jbe 0x18005f1c9
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x18005f1c1
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005f22c
mov rcx, rdi
call fcn.18009eb84
lea rdx, [rsp + 0x20]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18005efb4
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x298]
mov rdi, qword [rsp + 0x2d0]
mov rsi, qword [rsp + 0x2c8]
mov rbx, qword [rsp + 0x2c0]
mov r13, qword [rsp + 0x290]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.18009e5c0
add rsp, 0x2a0
pop r15
pop r14
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800032b0
int3
call fcn.180003350
int3