Function at 0x1400012e0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x71], r8
mov r14, rcx
mov qword [rbp - 0x39], rcx
mov dword [rbp - 0x75], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor edi, edi
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
mov dword [rbp - 0x75], 1
mov rax, qword [0x140008730]
cmp rax, qword [0x140008738]
je 0x14000134d
mov qword [0x140008738], rax
mov rax, qword [0x140008760]
cmp rax, qword [0x140008768]
je 0x140001364
mov qword [0x140008768], rax
mov rcx, rdx
call fcn.1400011d0
mov r15d, eax
test eax, eax
je 0x14000175a
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp - 0x61], rax
test rax, rax
jne 0x1400013cb
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 0x14000175a
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r13, rax
mov qword [rbp - 0x69], rax
cmp rax, 0xffffffffffffffff
je 0x14000174f
mov dword [rbp - 0x31], 0x1c
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
mov r12, rdi
mov qword [rbp + 7], rdi
lea rdx, [rbp - 0x31]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
mov rsi, qword [rbp - 1]
test eax, eax
je 0x140001559
nop dword [rax + rax]
cmp dword [rbp - 0x25], r15d
jne 0x140001544
mov r8d, dword [rbp - 0x29]
xor edx, edx
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x140001521
mov qword [rbp + 0xf], rdi
lea rdx, [rbp + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
test eax, eax
je 0x1400014f3
lea rdx, [rbp - 0x11]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadIdealProcessorEx]
test eax, eax
je 0x1400014f3
mov qword [rbp - 0x59], rbx
mov rax, qword [rbp + 0xf]
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rdi
movzx eax, byte [rbp - 0xf]
mov dword [rbp - 0x41], eax
cmp rsi, r12
je 0x1400014aa
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x49]
movups xmmword [rsi + 0x10], xmm1
add rsi, 0x20
mov qword [rbp - 1], rsi
jmp 0x1400014c2
lea r8, [rbp - 0x59]
mov rdx, rsi
lea rcx, [rbp - 9]
call fcn.140003000
mov r12, qword [rbp + 7]
mov rsi, qword [rbp - 1]
mov rdx, qword [0x140008768]
cmp rdx, qword [0x140008770]
je 0x1400014e1
mov eax, dword [rbp - 0x29]
mov dword [rdx], eax
add qword [0x140008768], 4
jmp 0x140001544
lea r8, [rbp - 0x29]
lea rcx, [0x140008760]
call fcn.1400031a0
jmp 0x140001544
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, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001544
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]
lea rdx, [rbp - 0x31]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140001420
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r15, qword [rbp - 9]
mov rbx, r15
cmp r15, rsi
je 0x1400015b9
lea rdx, [rbx + 0x10]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
test eax, eax
jne 0x1400015b0
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 [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
add rbx, 0x20
cmp rbx, rsi
jne 0x140001570
mov r8, rsi
sub r8, r15
sar r8, 5
movzx r9d, byte [rbp - 0x79]
mov rdx, rsi
mov rcx, r15
call fcn.140002c00
mov r13, rdi
mov rbx, r15
cmp r15, rsi
je 0x1400016cf
mov r15, qword [rbp - 0x71]
nop word [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400016be
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x14000168d
mov rdx, qword [r14 + 8]
cmp rdx, qword [r14 + 0x10]
je 0x140001622
mov rax, qword [rbx]
mov qword [rdx], rax
add qword [r14 + 8], 8
jmp 0x14000162d
mov r8, rbx
mov rcx, r14
call fcn.140002e70
mov rdx, qword [0x140008738]
cmp rdx, qword [0x140008740]
je 0x14000164d
mov rax, qword [rbx]
mov qword [rdx], rax
add qword [0x140008738], 8
jmp 0x14000165c
mov r8, rbx
lea rcx, [0x140008730]
call fcn.140002e70
inc rdi
cmp r13, 1
jae 0x1400016b9
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]
inc r13
jmp 0x1400016b9
lea rdx, [0x1400055cc]
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 [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, r15
jae 0x1400016cb
add rbx, 0x20
cmp rbx, rsi
jne 0x1400015f0
mov r15, qword [rbp - 9]
mov rdi, r15
cmp r15, rsi
je 0x140001705
mov r8, qword [rdi]
test r8, r8
je 0x1400016fc
mov rbx, qword [r14 + 8]
mov rdx, rbx
mov rcx, qword [r14]
call fcn.140003b60
cmp rax, rbx
jne 0x1400016fc
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 0x20
cmp rdi, rsi
jne 0x1400016d7
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r15, r15
je 0x14000174f
sub r12, r15
and r12, 0xffffffffffffffe0
mov rax, r15
cmp r12, 0x1000
jb 0x140001744
add r12, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001744
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r12
mov rcx, r15
call fcn.140003e1c
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, r14
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140003b80
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret