Function at 0x1400017f0
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, 0xc0
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x27], rax
movdqa xmm0, xmmword [0x140005aa0]
movdqu xmmword [rbp - 0x39], xmm0
movsd xmm0, qword [str.vgc.exe]
movsd qword [rbp - 0x49], xmm0
mov eax, dword [0x1400057c8]
mov dword [rbp - 0x41], eax
movzx eax, word [0x1400057cc]
mov word [rbp - 0x3d], ax
xor edi, edi
mov word [rbp - 0x3b], di
lea rcx, [rbp - 0x49]
call fcn.1400011d0
mov r12d, eax
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x1400018a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400018a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003f1c
test r12d, r12d
je 0x140001cb3
mov r8d, r12d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov qword [rbp - 0x59], rax
test rax, rax
jne 0x140001905
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.140002690
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, [0x140002870]
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 0x140001cd6
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rbp - 0x51], rax
cmp rax, 0xffffffffffffffff
je 0x140001c85
mov dword [rbp - 0x49], 0x1c
lea rdx, [rbp - 0x49]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140001c60
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
mov r15, rdi
mov qword [rbp + 7], rdi
movdqu xmmword [rbp - 0x21], xmm1
mov r13, rdi
mov qword [rbp - 0x11], rdi
movdqu xmmword [rbp + 0xf], xmm1
mov qword [rbp - 0x61], rdi
mov qword [rbp + 0x1f], rdi
mov rdi, qword [rbp - 1]
mov rbx, qword [rbp - 0x19]
mov rsi, qword [rbp + 0x17]
cmp dword [rbp - 0x3d], r12d
jne 0x140001a6f
mov r8d, dword [rbp - 0x41]
xor edx, edx
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov r14, rax
mov qword [rbp - 0x69], rax
test rax, rax
je 0x140001a4c
mov qword [rbp - 0x29], 0
lea rdx, [rbp - 0x29]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
test eax, eax
je 0x140001a43
cmp rdi, r15
je 0x1400019ca
mov qword [rdi], r14
add rdi, 8
mov qword [rbp - 1], rdi
jmp 0x1400019e2
lea r8, [rbp - 0x69]
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.140002f70
mov r15, qword [rbp + 7]
mov rdi, qword [rbp - 1]
cmp rbx, r13
je 0x1400019f8
mov rax, qword [rbp - 0x29]
mov qword [rbx], rax
add rbx, 8
mov qword [rbp - 0x19], rbx
jmp 0x140001a10
lea r8, [rbp - 0x29]
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.140002f70
mov r13, qword [rbp - 0x11]
mov rbx, qword [rbp - 0x19]
cmp rsi, qword [rbp - 0x61]
je 0x140001a25
mov eax, dword [rbp - 0x41]
mov dword [rsi], eax
add rsi, 4
mov qword [rbp + 0x17], rsi
jmp 0x140001a6f
lea r8, [rbp - 0x41]
mov rdx, rsi
lea rcx, [rbp + 0xf]
call fcn.1400032a0
mov rax, qword [rbp + 0x1f]
mov qword [rbp - 0x61], rax
mov rsi, qword [rbp + 0x17]
jmp 0x140001a6f
lea rdx, str.Failed_to_query_cycle_time_for_thread.
jmp 0x140001a53
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.1400028b0
lea rdx, [0x140002a90]
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]
lea rdx, [rbp - 0x49]
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140001970
mov qword [rbp - 0x69], r13
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r13b, r13b
mov rsi, rdi
mov r14, qword [rbp - 9]
sub rsi, r14
sar rsi, 3
mov r12, qword [rbp - 0x21]
test rsi, rsi
je 0x140001b5a
mov rbx, r14
mov rax, r12
sub rax, r14
mov r12, rax
nop
mov qword [rbp - 0x29], 0
lea rdx, [rbp - 0x29]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
test eax, eax
je 0x140001b25
mov rax, qword [r12 + rbx]
cmp qword [rbp - 0x29], rax
jne 0x140001b48
test r13b, r13b
jne 0x140001b0e
lea rdx, str.Emulating_Vanguard...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400028b0
mov rcx, rax
lea rdx, [0x140002a90]
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 r13b, 1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x140001b48
lea rdx, str.Failed_to_suspend_thread.
jmp 0x140001b2c
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.1400028b0
lea rdx, [0x140002a90]
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]
add rbx, 8
sub rsi, 1
jne 0x140001ac0
mov r12, qword [rbp - 0x21]
mov rbx, r14
cmp r14, rdi
je 0x140001b74
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 8
cmp rbx, rdi
jne 0x140001b62
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140001bbe
mov rax, qword [rbp - 0x61]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bb8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003f1c
nop
test r12, r12
je 0x140001c08
mov rdx, qword [rbp - 0x69]
sub rdx, r12
sar rdx, 3
lea rdx, [rdx*8]
mov rax, r12
cmp rdx, 0x1000
jb 0x140001bff
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.140003f1c
nop
test r14, r14
je 0x140001c47
sub r15, r14
and r15, 0xfffffffffffffff8
mov rax, r14
cmp r15, 0x1000
jb 0x140001c3c
add r15, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c3c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r15
mov rcx, r14
call fcn.140003f1c
mov rbx, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001cd6
lea rdx, str.Failed_to_enumerate_threads.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.1400028b0
mov rcx, rax
lea rdx, [0x140002a90]
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]
jmp 0x140001c4b
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.1400028b0
mov rcx, rax
lea rdx, [0x140002a90]
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, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001cd6
lea rdx, str.Could_not_find_process:_vgc.exe
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.1400028b0
mov rcx, rax
lea rdx, [0x140002a90]
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 + 0x27]
xor rcx, rsp
call fcn.140003c80
lea r11, [rsp + 0xc0]
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