Function at 0x140008670
Capabilities:
Check for outputdebugstring error
Enumerate processes
Print debug messages
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
lea rdx, str.perfmon.exe
lea rcx, [rsp + 0x30]
call fcn.14000d600
nop
lea rdi, [rsp + 0x30]
lea rbx, [rsp + 0x50]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
mov ecx, 0x20
call fcn.14000ffb0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea r8, [rax + 0x20]
mov qword [rsp + 0x60], r8
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], r8
lea r9, [rsp + 0x50]
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call fcn.14000f090
mov qword [rsp + 0x58], rax
lea r9, [0x14000d590]
mov edx, 0x20
mov r8d, 1
lea rcx, [rsp + 0x30]
call fcn.14000ffec
movabs r15, 0x7fffffffff67697f
mov r13d, 0xff
movabs r12, 0x7fffffffffffffff
nop word [rax + rax]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
cmp rdi, r14
je 0x14000882d
mov rsi, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140008780
mov rsi, qword [rdi]
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400087cf
lea rdx, str.Failed_to_create_process_snapshot._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000de50
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x14000e200]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140008820
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140008817
nop dword [rax]
mov rdx, rsi
lea rcx, [rbp - 0x64]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x1400088c7
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400087f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 0x20
cmp rdi, r14
jne 0x140008773
call fcn.140004da0
lea rdx, str.x64dbg__OllyDbg__IDA_Pro__x64dbg_unsigned__Visual_Studio_Debugger__LLDB_Debugger
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x1400088cd
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x1400088cd
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str.Hello__debugger
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400088cd
lea rcx, [rsp + 0x28]
call fcn.140002490
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
cmp rax, r15
je 0x1400088b3
mov ecx, 1
cmovl ecx, r13d
test cl, cl
jns 0x1400088b3
add rax, 0x989680
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
call fcn.14000ec10
jmp 0x140008760
mov qword [rsp + 0x20], r12
lea rcx, [rsp + 0x20]
call fcn.14000ec10
jmp 0x140008760
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3