Function at 0x18005ebf0
Capabilities:
Enumerate processes

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 dword [rsp + 0x40], 0x238
mov r14, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x18005ec3c
xor al, al
jmp 0x18005eea0
mov qword [rsp + 0x2c0], rbx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x2c8], rsi
mov rcx, r15
mov qword [rsp + 0x2d0], rdi
mov qword [rsp + 0x298], r12
mov qword [rsp + 0x290], r13
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18005ee6d
xor r12d, r12d
movabs r13, 0x7ffffffffffffffe
xorps xmm0, xmm0
lea rcx, [rsp + 0x6c]
movups xmmword [rsp + 0x20], xmm0
mov r8d, 0xa
movabs rdx, 0x7fffffffffffffff
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x18005ecb0
lea rbx, [rsp + 0x6e]
lea rbx, [rbx + rax*2]
lea rax, [rsp + 0x6c]
cmp rax, rbx
jne 0x18005ecee
mov esi, 7
mov word [rsp + 0x20], r12w
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r12
jmp 0x18005eddb
lea rax, [rsp + 0x6c]
sub rbx, rax
sar rbx, 1
cmp rbx, r13
ja 0x18005ef10
cmp rbx, 7
ja 0x18005ed40
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x6c]
add rbx, rbx
mov qword [rsp + 0x38], 7
mov r8, rbx
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x20], r12w
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x20]
jmp 0x18005eddb
mov rsi, rbx
or rsi, 7
cmp rsi, r13
jbe 0x18005ed55
mov rsi, r13
lea rcx, [rdx + rdx]
jmp 0x18005ed76
cmp rsi, 0xa
cmovb rsi, r8
lea rcx, [rsi + 1]
cmp rcx, rdx
ja 0x18005ef0a
add rcx, rcx
cmp rcx, 0x1000
jb 0x18005eda2
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18005ef0a
mov rcx, rax
call fcn.18009e700
test rax, rax
je 0x18005eef4
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x18005edb4
test rcx, rcx
je 0x18005edb1
call fcn.18009e700
mov rdi, rax
jmp 0x18005edb4
mov rdi, r12
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x6c]
add rbx, rbx
mov qword [rsp + 0x20], rdi
mov r8, rbx
mov qword [rsp + 0x38], rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rdi], r12w
cmp qword [r14 + 0x18], 7
mov r8, r14
jbe 0x18005ede8
mov r8, qword [r14]
cmp rsi, 7
lea rax, [rsp + 0x20]
cmova rax, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x18005ee14
add rax, 2
test ecx, ecx
jne 0x18005ee00
test edx, edx
je 0x18005eebc
cmp rsi, 7
jbe 0x18005ee57
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x18005ee4f
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005eef4
mov rcx, rdi
call fcn.18009eb84
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18005ec87
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
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
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rsi, 7
jbe 0x18005ef03
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x18005eefb
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005eefb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.18009eb84
mov al, 1
jmp 0x18005ee78
call fcn.1800032b0
int3
call fcn.180003350
int3