Function at 0x140001fdf
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push rbp
push rbx
sub rsp, 0x128
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc0], rcx
mov rax, qword [rbp + 0xc0]
mov eax, dword [rax]
mov dword [rbp + 0x9c], eax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov dword [rbp + 0x98], eax
mov edx, 0
mov ecx, 4
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0xffffffffffffffff
jne 0x140002059
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_create_snapshot._Error:__lu_n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 1
jmp 0x1400024c2
mov dword [rbp - 0x10], 0x1c
lea rdx, [rbp - 0x10]
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym.Thread32First
test eax, eax
setne al
test al, al
je 0x14000225e
mov ebx, dword [rbp - 4]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
cmp ebx, eax
jne 0x1400020a2
mov eax, dword [rbp - 8]
cmp dword [rbp + 0x98], eax
je 0x1400020a2
mov eax, 1
jmp 0x1400020a7
mov eax, 0
test al, al
je 0x14000223c
mov eax, dword [rbp - 8]
mov r8d, eax
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenThread]
call rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
je 0x140002222
mov eax, dword [rbp - 8]
cmp dword [rbp + 0x9c], eax
jne 0x1400020fb
mov rax, qword [rbp + 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SuspendThread]
call rax
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x80]
lea rdx, str.NtQueryInformationThread
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x78], rax
mov r10, qword [rbp + 0x78]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x20], 0
mov r9d, 0x30
mov r8, rdx
mov edx, 0
mov rcx, rax
call r10
mov dword [rbp + 0x74], eax
cmp dword [rbp + 0x74], 0
jne 0x14000220c
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x68], rax
mov ecx, 0x38
call sym.malloc
mov qword [rbp + 0x60], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
mov r8, qword [rbp + 0x60]
mov rax, qword [rbp + 0x68]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0x38
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call rax
test eax, eax
setne al
test al, al
je 0x1400021e4
mov rax, qword [rbp + 0x60]
mov rax, qword [rax + 0x10]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x60]
mov rax, qword [rax + 8]
mov qword [rbp + 0x50], rax
mov rdx, qword [rbp + 0x50]
mov rax, qword [rbp + 0x58]
mov rcx, rax
call sym.xor_stack_void__void_
jmp 0x1400021fe
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.ReadProcessMemory__TEB__failed._Error:__lu_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x60]
mov rcx, rax
call sub.msvcrt.dll_free
jmp 0x14000223c
mov eax, dword [rbp + 0x74]
mov edx, eax
lea rax, str.NtQueryInformationThread_failed_with_status:_0x_X_n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x14000223c
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_open_thread._Error:__lu_n
mov rcx, rax
call sym.printf_char_const__::_
lea rdx, [rbp - 0x10]
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym.Thread32Next
test eax, eax
setne al
test al, al
jne 0x140002080
jmp 0x140002278
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Thread32First_failed._Error:_lu_n
mov rcx, rax
call sym.printf_char_const__::_
mov ecx, 0x2710
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rdx, [rbp - 0x10]
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym.Thread32First
test eax, eax
setne al
test al, al
je 0x140002490
mov ebx, dword [rbp - 4]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
cmp ebx, eax
jne 0x1400022c8
mov eax, dword [rbp - 8]
cmp dword [rbp + 0x98], eax
je 0x1400022c8
mov eax, 1
jmp 0x1400022cd
mov eax, 0
test al, al
je 0x14000246e
mov eax, dword [rbp - 8]
mov r8d, eax
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenThread]
call rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140002454
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
lea rdx, str.NtQueryInformationThread
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x38], rax
mov r10, qword [rbp + 0x38]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x20], 0
mov r9d, 0x30
mov r8, rdx
mov edx, 0
mov rcx, rax
call r10
mov dword [rbp + 0x34], eax
cmp dword [rbp + 0x34], 0
jne 0x140002405
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x28], rax
mov ecx, 0x38
call sym.malloc
mov qword [rbp + 0x20], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
mov r8, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x20], rdx
mov r9d, 0x38
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call rax
test eax, eax
setne al
test al, al
je 0x1400023dd
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 8]
mov qword [rbp + 0x10], rax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.xor_stack_void__void_
jmp 0x1400023f7
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.ReadProcessMemory__TEB__failed._Error:__lu_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_free
jmp 0x140002419
mov eax, dword [rbp + 0x34]
mov edx, eax
lea rax, str.NtQueryInformationThread_failed_with_status:_0x_X_n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, dword [rbp - 8]
cmp dword [rbp + 0x9c], eax
jne 0x140002442
mov rax, qword [rbp + 0x48]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x48]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x14000246e
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_open_thread._Error:__lu_n
mov rcx, rax
call sym.printf_char_const__::_
lea rdx, [rbp - 0x10]
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym.Thread32Next
test eax, eax
setne al
test al, al
jne 0x1400022a6
jmp 0x1400024aa
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Thread32First_failed._Error:_lu_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x128
pop rbx
pop rbp
ret