Function at 0x1400218c0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
jmp 0x140033d30
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x828
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x172
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x848]
mov rax, qword [0x140073040]
xor rax, rbp
mov qword [rbp + 0x7f0], rax
mov dword [rbp + 0x7a4], 1
lea rcx, [0x14007c0fb]
call fcn.140021ba9
nop
mov edx, 0x20
mov rcx, qword [rbp + 0x820]
call fcn.1400211ef
mov rcx, qword [rbp + 0x820]
call fcn.140021c4e
nop
mov eax, dword [rbp + 0x7a4]
or eax, 1
mov dword [rbp + 0x7a4], eax
lea rcx, [0x1400734d0]
call fcn.140021802
nop
lea rcx, [0x140073510]
call fcn.140021429
nop
mov rcx, qword [rbp + 0x828]
call fcn.140021596
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x14003456b
mov r8d, dword [rbp + 0x44]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140033e82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x7b4], eax
lea rdx, str.Failed_to_open_process_with_error:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14002116d
mov ecx, dword [rbp + 0x7b4]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
lea rdx, [0x140021087]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
mov dword [rbp + 0x7a4], 0
mov eax, dword [rbp + 0x7a4]
and eax, 1
test eax, eax
je 0x140033e76
and dword [rbp + 0x7a4], 0xfffffffe
mov rcx, qword [rbp + 0x820]
call fcn.140021393
nop
mov rax, qword [rbp + 0x820]
jmp 0x1400345d0
xor edx, edx
mov ecx, 4
call fcn.140021582
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0xffffffffffffffff
je 0x14003453a
mov dword [rbp + 0xa8], 0x1c
mov edx, 0x20
lea rcx, [rbp + 0xe8]
call fcn.1400321e0
lea rcx, [rbp + 0xe8]
call fcn.14002c570
nop
lea rdx, [rbp + 0xa8]
mov rcx, qword [rbp + 0x88]
call fcn.14002177b
test eax, eax
je 0x140034062
mov eax, dword [rbp + 0x44]
cmp dword [rbp + 0xb4], eax
jne 0x140034047
mov r8d, dword [rbp + 0xb0]
xor edx, edx
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rbp + 0x128], rax
cmp qword [rbp + 0x128], 0
je 0x140034023
mov qword [rbp + 0x148], 0
lea rdx, [rbp + 0x148]
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
test eax, eax
je 0x140033fef
lea rdx, [rbp + 0x164]
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.KERNEL32.dll_GetThreadIdealProcessorEx]
test eax, eax
je 0x140033fbb
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0x588], rax
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x590], rax
mov qword [rbp + 0x598], 0
movzx eax, byte [rbp + 0x166]
mov dword [rbp + 0x5a0], eax
lea rdx, [rbp + 0x588]
lea rcx, [rbp + 0xe8]
call fcn.1400339b0
nop
lea rdx, [rbp + 0xb0]
lea rcx, [0x140073510]
call fcn.14002155f
nop
jmp 0x140033fed
lea rdx, str.Failed_to_get_ideal_processor.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140021613
lea rdx, [0x1400215c3]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140034021
lea rdx, str.Failed_to_query_cycle_time.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140021613
lea rdx, [0x1400215c3]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140034047
lea rdx, str.Failed_to_open_thread.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140021613
lea rdx, [0x1400215c3]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
lea rdx, [rbp + 0xa8]
mov rcx, qword [rbp + 0x88]
call fcn.140021181
test eax, eax
jne 0x140033ee6
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rax, [rbp + 0xe8]
mov qword [rbp + 0x188], rax
mov rcx, qword [rbp + 0x188]
call fcn.140031a10
mov qword [rbp + 0x1a8], rax
mov rcx, qword [rbp + 0x188]
call fcn.140031ab0
mov qword [rbp + 0x1c8], rax
jmp 0x1400340b6
mov rax, qword [rbp + 0x1a8]
add rax, 0x20
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x1c8]
cmp qword [rbp + 0x1a8], rax
je 0x14003413e
mov rax, qword [rbp + 0x1a8]
mov qword [rbp + 0x1e8], rax
mov rax, qword [rbp + 0x1e8]
add rax, 0x10
mov rdx, rax
mov rax, qword [rbp + 0x1e8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
test eax, eax
jne 0x140034139
lea rdx, str._n_Failed_to_query_cycle_time_for_thread._n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140021613
lea rdx, [0x1400215c3]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
mov rax, qword [rbp + 0x1e8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0x1e8]
mov qword [rax], 0
jmp 0x1400340a4
lea rax, [rbp + 0x5c4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x5e8]
mov qword [rbp + 0x618], rax
lea rax, [rbp + 0x638]
mov qword [rbp + 0x668], rax
mov rdx, qword [rbp + 0x618]
lea rcx, [rbp + 0xe8]
call fcn.1400331b0
mov qword [rbp + 0x7b8], rax
mov rdx, qword [rbp + 0x668]
lea rcx, [rbp + 0xe8]
call fcn.140032600
mov qword [rbp + 0x7c0], rax
movzx r8d, byte [rbp + 0x5c4]
mov rdx, qword [rbp + 0x7b8]
mov rcx, qword [rbp + 0x7c0]
call fcn.14002b820
nop
mov qword [rbp + 0x208], 0
mov qword [rbp + 0x228], 0
lea rax, [rbp + 0xe8]
mov qword [rbp + 0x248], rax
mov rcx, qword [rbp + 0x248]
call fcn.140031a10
mov qword [rbp + 0x268], rax
mov rcx, qword [rbp + 0x248]
call fcn.140031ab0
mov qword [rbp + 0x288], rax
jmp 0x14003421b
mov rax, qword [rbp + 0x268]
add rax, 0x20
mov qword [rbp + 0x268], rax
mov rax, qword [rbp + 0x288]
cmp qword [rbp + 0x268], rax
je 0x140034333
mov rax, qword [rbp + 0x268]
mov qword [rbp + 0x2a8], rax
mov rax, qword [rbp + 0x2a8]
cmp qword [rax], 0
je 0x14003432e
mov rax, qword [rbp + 0x2a8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1400342e7
mov rax, qword [rbp + 0x2a8]
mov rdx, rax
mov rcx, qword [rbp + 0x820]
call fcn.140021c6c
nop
mov rax, qword [rbp + 0x2a8]
mov rdx, rax
lea rcx, [0x1400734d0]
call fcn.140021c6c
nop
mov rax, qword [rbp + 0x208]
inc rax
mov qword [rbp + 0x208], rax
cmp qword [rbp + 0x228], 1
jae 0x1400342e5
lea rdx, str.Emulating....
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140021613
lea rdx, [0x1400215c3]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
mov rax, qword [rbp + 0x228]
inc rax
mov qword [rbp + 0x228], rax
jmp 0x14003431c
lea rdx, str._n_Failed_to_suspend_thread._n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140021613
lea rdx, [0x1400215c3]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
mov rax, qword [rbp + 0x2a8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0x830]
cmp qword [rbp + 0x208], rax
jb 0x14003432e
jmp 0x140034333
jmp 0x140034209
lea rax, [rbp + 0xe8]
mov qword [rbp + 0x2c8], rax
mov rcx, qword [rbp + 0x2c8]
call fcn.140031a10
mov qword [rbp + 0x2e8], rax
mov rcx, qword [rbp + 0x2c8]
call fcn.140031ab0
mov qword [rbp + 0x308], rax
jmp 0x14003437b
mov rax, qword [rbp + 0x2e8]
add rax, 0x20
mov qword [rbp + 0x2e8], rax
mov rax, qword [rbp + 0x308]
cmp qword [rbp + 0x2e8], rax
je 0x14003451d
mov rax, qword [rbp + 0x2e8]
mov qword [rbp + 0x328], rax
mov rax, qword [rbp + 0x328]
cmp qword [rax], 0
je 0x1400344a3
lea rax, [rbp + 0x6a8]
mov qword [rbp + 0x6d8], rax
lea rax, [rbp + 0x6f8]
mov qword [rbp + 0x728], rax
lea rdx, [rbp + 0x778]
mov rcx, qword [rbp + 0x820]
call fcn.1400218fc
mov qword [rbp + 0x7b8], rax
mov rax, qword [rbp + 0x7b8]
mov qword [rbp + 0x7c0], rax
mov eax, dword [rbp + 0x7a4]
or eax, 2
mov dword [rbp + 0x7a4], eax
mov rax, qword [rbp + 0x328]
mov qword [rbp + 0x7c8], rax
mov rdx, qword [rbp + 0x6d8]
mov rcx, qword [rbp + 0x820]
call fcn.1400218fc
mov qword [rbp + 0x7d0], rax
mov rdx, qword [rbp + 0x728]
mov rcx, qword [rbp + 0x820]
call fcn.140021672
mov qword [rbp + 0x7d8], rax
mov rax, qword [rbp + 0x7c8]
mov r9, rax
mov r8, qword [rbp + 0x7d0]
mov rdx, qword [rbp + 0x7d8]
lea rcx, [rbp + 0x748]
call fcn.140021bea
mov qword [rbp + 0x7e0], rax
mov eax, dword [rbp + 0x7a4]
or eax, 4
mov dword [rbp + 0x7a4], eax
mov rdx, qword [rbp + 0x7c0]
mov rcx, qword [rbp + 0x7e0]
call fcn.140021af0
movzx eax, al
test eax, eax
je 0x1400344a3
mov dword [rbp + 0x7e8], 1
jmp 0x1400344ad
mov dword [rbp + 0x7e8], 0
movzx eax, byte [rbp + 0x7e8]
mov byte [rbp + 0x684], al
mov eax, dword [rbp + 0x7a4]
and eax, 4
test eax, eax
je 0x1400344db
and dword [rbp + 0x7a4], 0xfffffffb
lea rcx, [rbp + 0x748]
call fcn.1400219dd
nop
mov eax, dword [rbp + 0x7a4]
and eax, 2
test eax, eax
je 0x1400344fc
and dword [rbp + 0x7a4], 0xfffffffd
lea rcx, [rbp + 0x778]
call fcn.1400219dd
nop
movzx eax, byte [rbp + 0x684]
test eax, eax
je 0x140034518
mov rax, qword [rbp + 0x328]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140034369
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0xe8]
call fcn.14002d700
nop
jmp 0x14003455e
lea rdx, str._n_Failed_to_create_thread_snapshot._n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140021613
lea rdx, [0x1400215c3]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14003459e
lea rdx, str._n_Could_not_find_process:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140021613
mov rdx, qword [rbp + 0x828]
mov rcx, rax
call fcn.1400216c2
lea rdx, [0x1400215c3]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
mov dword [rbp + 0x7a4], 0
mov eax, dword [rbp + 0x7a4]
and eax, 1
test eax, eax
je 0x1400345c9
and dword [rbp + 0x7a4], 0xfffffffe
mov rcx, qword [rbp + 0x820]
call fcn.140021393
nop
mov rax, qword [rbp + 0x820]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14006a6b0]
call fcn.140021a1e
mov rax, rdi
mov rcx, qword [rbp + 0x7f0]
xor rcx, rbp
call fcn.1400215af
lea rsp, [rbp + 0x808]
pop rdi
pop rbp
ret