Function at 0x1400014c0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4b0
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
movzx esi, byte [0x1400067a0]
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001524
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.CreateToolhelp32Snapshot__of_processes__failed.
call fcn.140001c10
mov rcx, rax
lea rdx, [0x140001df0]
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 0x14000175d
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140001566
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Process32First_failed.
call fcn.140001c10
mov rcx, rax
lea rdx, [0x140001df0]
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 0x140001754
mov qword [rsp + 0x4c0], rbx
mov qword [rsp + 0x4c8], rbp
lea rbp, str.ConsoleApplication1.exe
nop dword [rax]
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000172e
movups xmm0, xmmword [str._unknown_]
mov ecx, dword [0x140004488]
xor edx, edx
mov dword [rsp + 0x2a0], ecx
mov r8d, 0x1f4
lea rcx, [rsp + 0x2a4]
movaps xmmword [rsp + 0x290], xmm0
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x280]
mov r8d, 8
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x14000160b
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0x290]
mov r9d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x290]
xor eax, eax
nop
movzx ecx, word [rdx + rax*2]
cmp cx, word [rbp + rax*2]
jne 0x14000172e
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rbp + rax*2 + 2]
jne 0x14000172e
add rax, 2
cmp rax, 0x18
jne 0x140001620
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test sil, sil
je 0x1400016df
lea rdx, str.Pausing_process:
call fcn.140001c10
mov rcx, rax
lea rdx, [rsp + 0x6c]
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___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, str._with_PID:
call fcn.140001c10
mov edx, dword [rsp + 0x48]
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001df0]
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]
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x800
mov dword [rsp + 0x30], r8d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000172e
mov rcx, rax
call qword [0x140006750]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
call fcn.140001e30
mov rcx, qword [rax]
mov qword [rcx + 0x18], rbx
jmp 0x14000172e
lea rdx, str.Resuming_process:
call fcn.140001c10
mov rcx, rax
lea rdx, [rsp + 0x6c]
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___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, str._with_PID:
call fcn.140001c10
mov edx, dword [rsp + 0x48]
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001df0]
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]
mov ecx, dword [rsp + 0x48]
call fcn.1400012d0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001580
mov rbp, qword [rsp + 0x4c8]
mov rbx, qword [rsp + 0x4c0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1400022d0
mov rsi, qword [rsp + 0x4d0]
add rsp, 0x4b0
pop rdi
ret