Function at 0x140001790
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 [0x1400059b0]
movdqu xmmword [rbp - 0x39], xmm0
movsd xmm0, qword [str.vgc.exe]
movsd qword [rbp - 0x49], xmm0
mov eax, dword [0x1400056b0]
mov dword [rbp - 0x41], eax
movzx eax, word [0x1400056b4]
mov word [rbp - 0x3d], ax
xor ebx, ebx
mov word [rbp - 0x3b], bx
lea rcx, [rbp - 0x49]
call fcn.1400011d0
mov r12d, eax
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x140001845
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001840
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001840
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003e1c
test r12d, r12d
je 0x140001c6f
mov r8d, r12d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp - 0x51], rax
test rax, rax
jne 0x1400018a2
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.140002760
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, [0x140002940]
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 0x140001c6f
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rbp - 0x59], rax
cmp rax, 0xffffffffffffffff
je 0x140001c4c
mov dword [rbp - 0x49], 0x1c
lea rdx, [rbp - 0x49]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140001c1d
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
mov r15, rbx
mov qword [rbp - 0x11], rbx
movdqu xmmword [rbp - 9], xmm1
mov r13, rbx
mov qword [rbp + 7], rbx
movdqu xmmword [rbp + 0xf], xmm1
mov qword [rbp - 0x69], rbx
mov qword [rbp + 0x1f], rbx
mov rbx, qword [rbp - 0x19]
mov rdi, qword [rbp - 1]
mov rsi, qword [rbp + 0x17]
nop dword [rax]
cmp dword [rbp - 0x3d], r12d
jne 0x140001a06
mov r8d, dword [rbp - 0x41]
xor edx, edx
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov r14, rax
mov qword [rbp - 0x61], rax
test rax, rax
je 0x1400019e3
mov qword [rbp - 0x29], 0
lea rdx, [rbp - 0x29]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
test eax, eax
je 0x1400019e3
cmp rbx, r15
je 0x14000196a
mov qword [rbx], r14
add rbx, 8
mov qword [rbp - 0x19], rbx
jmp 0x140001982
lea r8, [rbp - 0x61]
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.140002e70
mov r15, qword [rbp - 0x11]
mov rbx, qword [rbp - 0x19]
cmp rdi, r13
je 0x140001998
mov rax, qword [rbp - 0x29]
mov qword [rdi], rax
add rdi, 8
mov qword [rbp - 1], rdi
jmp 0x1400019b0
lea r8, [rbp - 0x29]
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.140002e70
mov r13, qword [rbp + 7]
mov rdi, qword [rbp - 1]
cmp rsi, qword [rbp - 0x69]
je 0x1400019c5
mov eax, dword [rbp - 0x41]
mov dword [rsi], eax
add rsi, 4
mov qword [rbp + 0x17], rsi
jmp 0x140001a06
lea r8, [rbp - 0x41]
mov rdx, rsi
lea rcx, [rbp + 0xf]
call fcn.1400031a0
mov rax, qword [rbp + 0x1f]
mov qword [rbp - 0x69], rax
mov rsi, qword [rbp + 0x17]
jmp 0x140001a06
lea rdx, [0x1400055f8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140002980
lea rdx, [0x140002b60]
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 - 0x59]
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140001910
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r12b, r12b
mov rsi, qword [rbp - 0x21]
sub rbx, rsi
sar rbx, 3
mov r14, qword [rbp - 9]
test rbx, rbx
je 0x140001b38
mov rdi, rsi
mov rax, r14
sub rax, rsi
mov rsi, rax
nop
mov qword [rbp - 0x29], 0
lea rdx, [rbp - 0x29]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
test eax, eax
je 0x140001afa
mov rcx, qword [rdi + rsi]
mov rax, qword [rbp - 0x29]
cmp rax, rcx
je 0x140001a87
sub rax, rcx
cmp rax, 0xa
jae 0x140001b1d
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x140001af1
test r12b, r12b
jne 0x140001ac0
lea rdx, str.Patching...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140002980
mov rcx, rax
lea rdx, [0x140002b60]
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 r12b, 1
mov rdx, qword [0x140008738]
cmp rdx, qword [0x140008740]
je 0x140001ae0
mov rax, qword [rdi]
mov qword [rdx], rax
add qword [0x140008738], 8
jmp 0x140001b26
mov r8, rdi
lea rcx, [0x140008730]
call fcn.140002e70
jmp 0x140001b26
lea rdx, str.Failed
jmp 0x140001b01
lea rdx, [0x1400055f8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140002980
lea rdx, [0x140002b60]
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 [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 8
sub rbx, 1
jne 0x140001a50
mov rsi, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140001b8d
mov rax, qword [rbp - 0x69]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b87
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003e1c
nop
test r14, r14
je 0x140001bd2
sub r13, r14
sar r13, 3
lea rdx, [r13*8]
mov rax, r14
cmp rdx, 0x1000
jb 0x140001bc9
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bc9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140003e1c
nop
test rsi, rsi
je 0x140001c40
sub r15, rsi
and r15, 0xfffffffffffffff8
mov rax, rsi
cmp r15, 0x1000
jb 0x140001c06
add r15, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c06
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r15
mov rcx, rsi
call fcn.140003e1c
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001c6f
lea rdx, [0x1400055f8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140002980
mov rcx, rax
lea rdx, [0x140002b60]
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 - 0x51]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001c6f
lea rdx, str.Failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140002980
mov rcx, rax
lea rdx, [0x140002b60]
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.140003b80
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