Function at 0x140001900
Capabilities:
Enumerate threads
Suspend thread

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 - 0x37]
sub rsp, 0x90
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
movdqa xmm0, xmmword [0x14000b180]
movdqu xmmword [rbp - 0x19], xmm0
movsd xmm0, qword [str.vgc.exe]
movsd qword [rbp - 0x29], xmm0
mov eax, dword [0x14000a798]
mov dword [rbp - 0x21], eax
movzx eax, word [0x14000a79c]
mov word [rbp - 0x1d], ax
xor r14d, r14d
mov word [rbp - 0x1b], r14w
lea rcx, [rbp - 0x29]
call fcn.1400012e0
mov r12d, eax
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x1400019b7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008a6c
test r12d, r12d
je 0x140001ce0
mov r8d, r12d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp - 0x31], rax
test rax, rax
jne 0x140001a14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_open_process_with_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004a40
mov rcx, rax
mov edx, ebx
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, [0x140004c20]
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 0x140001d12
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140001cd0
mov dword [rbp - 0x29], 0x1c
lea rdx, [rbp - 0x29]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140001ca1
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
mov qword [rbp + 0xf], r14
movdqu xmmword [rbp + 0x17], xmm1
mov r15, r14
mov qword [rbp + 0x27], r14
mov rbx, qword [rbp + 7]
mov rsi, qword [rbp + 0x1f]
nop word [rax + rax]
cmp dword [rbp - 0x1d], r12d
jne 0x140001b69
mov r8d, dword [rbp - 0x21]
xor edx, edx
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
mov qword [rbp - 0x39], rax
test rax, rax
je 0x140001b46
mov qword [rbp - 9], 0x249f0
lea rdx, [rbp - 9]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
test eax, eax
je 0x140001b18
cmp qword [rbp - 9], 0xaae60
jbe 0x140001b3b
cmp rbx, r14
je 0x140001ad0
mov qword [rbx], rdi
add rbx, 8
mov qword [rbp + 7], rbx
jmp 0x140001ae8
lea r8, [rbp - 0x39]
mov rdx, rbx
lea rcx, [rbp - 1]
call fcn.140005320
mov r14, qword [rbp + 0xf]
mov rbx, qword [rbp + 7]
cmp rsi, r15
je 0x140001afe
mov rax, qword [rbp - 9]
mov qword [rsi], rax
add rsi, 8
mov qword [rbp + 0x1f], rsi
jmp 0x140001b69
lea r8, [rbp - 9]
mov rdx, rsi
lea rcx, [rbp + 0x17]
call fcn.140005320
mov r15, qword [rbp + 0x27]
mov rsi, qword [rbp + 0x1f]
jmp 0x140001b69
lea rdx, str.Failed_to_query_cycle_time_for_thread.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140004c60
mov rcx, rax
lea rdx, [0x140004e40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001b69
lea rdx, str.Failed_to_open_thread.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140004c60
mov rcx, rax
lea rdx, [0x140004e40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [rbp - 0x29]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140001a70
mov rsi, qword [rbp - 1]
sub rbx, rsi
sar rbx, 3
test rbx, rbx
je 0x140001c06
mov rdi, rsi
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x140001bd0
mov rdx, qword [0x14000e8a8]
cmp rdx, qword [0x14000e8b0]
je 0x140001bbf
mov rax, qword [rdi]
mov qword [rdx], rax
add qword [0x14000e8a8], 8
jmp 0x140001bfc
mov r8, rdi
lea rcx, [0x14000e8a0]
call fcn.140005320
jmp 0x140001bfc
lea rdx, str.Failed_to_suspend_thread.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140004c60
mov rcx, rax
lea rdx, [0x140004e40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 8
sub rbx, 1
jne 0x140001b91
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x140001c56
sub r15, rcx
sar r15, 3
lea rdx, [r15*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c50
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c50
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008a6c
nop
test rsi, rsi
je 0x140001cc4
sub r14, rsi
and r14, 0xfffffffffffffff8
mov rax, rsi
cmp r14, 0x1000
jb 0x140001c8a
add r14, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c8a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r14
mov rcx, rsi
call fcn.140008a6c
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001d12
lea rdx, str.Failed_to_create_thread_snapshot.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140004c60
mov rcx, rax
lea rdx, [0x140004e40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001d12
lea rdx, str.Failed_to_create_thread_snapshot.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
jmp 0x140001cfd
lea rdx, str.Could_not_find_process:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140004c60
mov rcx, rax
lea rdx, str.vgc.exe
call fcn.140004c60
lea rdx, [0x140004e40]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400087d0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret