Function at 0x140002830
Capabilities:
Enumerate threads
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x740
mov rax, qword [0x140010040]
xor rax, rsp
mov qword [rsp + 0x738], rax
mov r13, rdx
mov ebx, ecx
mov dword [rsp + 0x34], ecx
xor edi, edi
mov esi, edi
mov dword [rsp + 0x38], edi
xor edx, edx
lea ecx, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r12, rax
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
jne 0x14000294b
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], 0xf
lea ecx, [rdi + 0x30]
call fcn.140008bbc
mov rdx, rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], 0x25
mov qword [rsp + 0x80], 0x2f
movups xmm0, xmmword [str.Failed_to_create_snapshot_of_threads.]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14000bb00]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x14000bb10]
mov dword [rax + 0x20], ecx
movzx eax, byte [0x14000bb14]
mov byte [rdx + 0x24], al
mov byte [rdx + 0x25], sil
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140001100
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0xf
jbe 0x140002944
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000293f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000293f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
xor al, al
jmp 0x140003da5
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140002a36
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], 0xf
lea ecx, [rax + 0x30]
call fcn.140008bbc
mov rdx, rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x98], 0x23
mov qword [rsp + 0xa0], 0x2f
movups xmm0, xmmword [str.Failed_to_get_handle_for_ntdll.dll.]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14000bb28]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x14000bb38]
mov word [rax + 0x20], cx
movzx eax, byte [0x14000bb3a]
mov byte [rdx + 0x22], al
mov byte [rdx + 0x23], sil
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.140001100
nop
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0xf
jbe 0x140002b13
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b0e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, str.NtQueueApcThreadEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400109e0], rax
xorps xmm0, xmm0
test rax, rax
jne 0x140002b23
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], 0xf
lea ecx, [rax + 0x40]
call fcn.140008bbc
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], 0x32
mov qword [rsp + 0x80], 0x3f
movups xmm0, xmmword [str.NtQueueApcThreadEx_not_implemented_on_this_system.]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14000bb68]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14000bb78]
movups xmmword [rax + 0x20], xmm0
movzx ecx, word [0x14000bb88]
mov word [rax + 0x30], cx
mov byte [rax + 0x32], sil
mov edx, 0xe
lea rcx, [rsp + 0x68]
call fcn.140001100
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0xf
jbe 0x140002b13
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b0e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140003da5
mov dword [rsp + 0x48], 0x1c
xor eax, eax
movups xmmword [rsp + 0x4c], xmm0
mov qword [rsp + 0x5c], rax
xor r15b, r15b
mov byte [rsp + 0x30], r15b
lea rdx, [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140003cd9
cmp dword [rsp + 0x54], ebx
jne 0x140003cba
mov r8d, dword [rsp + 0x50]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov r14, rax
test rax, rax
jne 0x140002db2
lea r9, [rsp + 0x735]
mov r8d, dword [rsp + 0x50]
nop dword [rax + rax]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x140002b90
lea r8, [rsp + 0x735]
mov rdx, r9
lea rcx, [rsp + 0x190]
call fcn.140008560
or esi, 3
mov r8, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x1a8]
mov rax, rcx
sub rax, r8
cmp rax, 0x1a
jb 0x140002c86
lea rax, [r8 + 0x1a]
mov qword [rsp + 0x1a0], rax
lea rbx, [rsp + 0x190]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0x190]
lea rax, [0x14000bbaa]
lea r14, str.Failed_to_open_thread_ID:
cmp rax, rbx
jbe 0x140002c3f
lea rax, [rbx + r8]
cmp r14, rax
ja 0x140002c3f
cmp rbx, r14
jbe 0x140002c44
mov rdi, rbx
sub rdi, r14
jmp 0x140002c44
mov edi, 0x1a
inc r8
lea rcx, [rbx + 0x1a]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0x1a
sub r8, rdi
lea rdx, [r14 + 0x1a]
add rdx, rdi
lea rcx, [rbx + rdi]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x190]
xor edi, edi
jmp 0x140002cad
mov qword [rsp + 0x28], 0x1a
lea rax, str.Failed_to_open_thread_ID:
mov qword [rsp + 0x20], rax
mov edx, 0x1a
lea rcx, [rsp + 0x190]
call fcn.140007da0
xorps xmm0, xmm0
movups xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], rdi
mov qword [rsp + 0xe8], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xd0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xe0], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or esi, 4
xor edx, edx
lea rcx, [rsp + 0xd0]
call fcn.140001100
nop
mov rdx, qword [rsp + 0xe8]
cmp rdx, 0xf
jbe 0x140002d47
inc rdx
mov rcx, qword [rsp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d42
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002d42
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
mov qword [rsp + 0xe0], rdi
mov qword [rsp + 0xe8], 0xf
mov byte [rsp + 0xd0], 0
mov rdx, qword [rsp + 0x1a8]
cmp rdx, 0xf
jbe 0x140003cba
inc rdx
mov rcx, qword [rsp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002da8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002da8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
jmp 0x140003cba
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rsp + 0x250]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x280], 0x10000b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x140003840
lea rdx, [rsp + 0x250]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140003603
mov qword [rsp + 0x348], r13
lea rdx, [rsp + 0x250]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1400033c1
lea r9, [rsp + 0x735]
mov r8, r13
nop dword [rax]
dec r9
movabs rax, 0xcccccccccccccccd
mul r8
shr rdx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8, rdx
test rdx, rdx
jne 0x140002e30
lea r8, [rsp + 0x735]
mov rdx, r9
lea rcx, [rsp + 0xf0]
call fcn.140008560
or esi, 0x6000
mov r8, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x108]
mov rax, rcx
sub rax, r8
cmp rax, 0x18
jb 0x140002f3b
lea rax, [r8 + 0x18]
mov qword [rsp + 0x100], rax
lea rbx, [rsp + 0xf0]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0xf0]
lea rax, [0x14000bbc8]
cmp rax, rbx
jbe 0x140002ee9
lea rax, [rbx + r8]
lea rcx, str.Thread_hijacked_at_RIP:
cmp rcx, rax
ja 0x140002ee9
cmp rbx, rcx
jbe 0x140002eee
mov rdi, rbx
sub rdi, rcx
jmp 0x140002eee
mov edi, 0x18
inc r8
lea rcx, [rbx + 0x18]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
lea rdx, str.Thread_hijacked_at_RIP:
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0x18
sub r8, rdi
lea rdx, str.Thread_hijacked_at_RIP:
add rdx, 0x18
add rdx, rdi
lea rcx, [rbx + rdi]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0xf0]
xor edi, edi
jmp 0x140002f62
mov qword [rsp + 0x28], 0x18
lea rax, str.Thread_hijacked_at_RIP:
mov qword [rsp + 0x20], rax
mov edx, 0x18
lea rcx, [rsp + 0xf0]
call fcn.140007da0
xorps xmm0, xmm0
movups xmmword [rsp + 0x130], xmm0
mov qword [rsp + 0x140], rdi
mov qword [rsp + 0x148], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x130], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x140], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
bts esi, 0xf
xor edx, edx
lea rcx, [rsp + 0x130]
call fcn.140001100
nop
mov rdx, qword [rsp + 0x148]
cmp rdx, 0xf
jbe 0x140002ffd
inc rdx
mov rcx, qword [rsp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ff8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002ff8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
mov qword [rsp + 0x140], rdi
mov qword [rsp + 0x148], 0xf
mov byte [rsp + 0x130], 0
mov rdx, qword [rsp + 0x108]
cmp rdx, 0xf
jbe 0x14000305f
inc rdx
mov rcx, qword [rsp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000305a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000305a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
mov qword [rsp + 0x100], rdi
mov qword [rsp + 0x108], 0xf
mov byte [rsp + 0xf0], 0
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, r13
xor edx, edx
mov rcx, r14
call qword [0x1400109e0]
mov r8d, eax
test eax, eax
js 0x14000317d
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], 0xf
mov ecx, 0x30
call fcn.140008bbc
mov rcx, rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], 0x2b
mov qword [rsp + 0x80], 0x2f
movups xmm0, xmmword [str.APC_successfully_queued_in_hijacked_thread.]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14000bbe0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14000bbf0]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x14000bbf8]
mov word [rcx + 0x28], ax
movzx eax, byte [0x14000bbfa]
mov byte [rcx + 0x2a], al
mov byte [rcx + 0x2b], 0
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140001100
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0xf
jbe 0x140003167
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003162
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003162
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
mov r15b, 1
mov byte [rsp + 0x30], r15b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x140003ca8
lea r9, [rsp + 0x735]
neg r8d
nop dword [rax + rax]
lea r9, [r9 - 1]
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x140003190
lea rdx, [r9 - 1]
mov byte [rdx], 0x2d
lea r8, [rsp + 0x735]
lea rcx, [rsp + 0x1b0]
call fcn.140008560
nop
mov r8, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x1c8]
mov rax, rcx
sub rax, r8
cmp rax, 0x27
jb 0x140003294
lea rax, [r8 + 0x27]
mov qword [rsp + 0x1c0], rax
lea rbx, [rsp + 0x1b0]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0x1b0]
lea rax, [0x14000bc27]
cmp rax, rbx
jbe 0x140003242
lea rax, [rbx + r8]
lea rcx, str.Failed_to_queue_APC_in_thread._Status:
cmp rcx, rax
ja 0x140003242
cmp rbx, rcx
jbe 0x140003247
mov rdi, rbx
sub rdi, rcx
jmp 0x140003247
mov edi, 0x27
inc r8
lea rcx, [rbx + 0x27]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
lea rdx, str.Failed_to_queue_APC_in_thread._Status:
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0x27
sub r8, rdi
lea rdx, str.Failed_to_queue_APC_in_thread._Status:
add rdx, 0x27
add rdx, rdi
lea rcx, [rbx + rdi]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x1b0]
xor edi, edi
jmp 0x1400032bb
mov qword [rsp + 0x28], 0x27
lea rax, str.Failed_to_queue_APC_in_thread._Status:
mov qword [rsp + 0x20], rax
mov edx, 0x27
lea rcx, [rsp + 0x1b0]
call fcn.140007da0
xorps xmm0, xmm0
movups xmmword [rsp + 0x150], xmm0
mov qword [rsp + 0x160], rdi
mov qword [rsp + 0x168], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x150], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x160], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or esi, 0x380000
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.140001100
nop
mov rdx, qword [rsp + 0x168]
cmp rdx, 0xf
jbe 0x140003358
inc rdx
mov rcx, qword [rsp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003353
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003353
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
mov qword [rsp + 0x160], rdi
mov qword [rsp + 0x168], 0xf
mov byte [rsp + 0x150], 0
mov rdx, qword [rsp + 0x1c8]
cmp rdx, 0xf
jbe 0x140003832
inc rdx
mov rcx, qword [rsp + 0x1b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000382d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000382d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rsp + 0x735]
dec r10
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea r8d, [rcx + rdx]
add r8b, r8b
sub r9b, r8b
add r9b, 0x30
mov byte [r10], r9b
mov r9d, edx
test edx, edx
jne 0x1400033d2
lea r8, [rsp + 0x735]
mov rdx, r10
lea rcx, [rsp + 0x1d0]
call fcn.140008560
or esi, 0x60000
mov r8, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x1e8]
mov rax, rcx
sub rax, r8
cmp rax, 0x38
jb 0x1400034d8
lea rax, [r8 + 0x38]
mov qword [rsp + 0x1e0], rax
lea rbx, [rsp + 0x1d0]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0x1d0]
lea rax, [0x14000bc60]
cmp rax, rbx
jbe 0x140003486
lea rax, [rbx + r8]
lea rcx, str.Failed_to_set_thread_context_for_hijacking._Error_Code:
cmp rcx, rax
ja 0x140003486
cmp rbx, rcx
jbe 0x14000348b
mov rdi, rbx
sub rdi, rcx
jmp 0x14000348b
mov edi, 0x38
inc r8
lea rcx, [rbx + 0x38]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
lea rdx, str.Failed_to_set_thread_context_for_hijacking._Error_Code:
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0x38
sub r8, rdi
lea rdx, str.Failed_to_set_thread_context_for_hijacking._Error_Code:
add rdx, 0x38
add rdx, rdi
lea rcx, [rbx + rdi]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x1d0]
xor edi, edi
jmp 0x1400034ff
mov qword [rsp + 0x28], 0x38
lea rax, str.Failed_to_set_thread_context_for_hijacking._Error_Code:
mov qword [rsp + 0x20], rax
mov edx, 0x38
lea rcx, [rsp + 0x1d0]
call fcn.140007da0
xorps xmm0, xmm0
movups xmmword [rsp + 0x170], xmm0
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x188], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x170], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x180], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
bts esi, 0x10
xor edx, edx
lea rcx, [rsp + 0x170]
call fcn.140001100
nop
mov rdx, qword [rsp + 0x188]
cmp rdx, 0xf
jbe 0x14000359a
inc rdx
mov rcx, qword [rsp + 0x170]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003595
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003595
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x188], 0xf
mov byte [rsp + 0x170], 0
mov rdx, qword [rsp + 0x1e8]
cmp rdx, 0xf
jbe 0x140003832
inc rdx
mov rcx, qword [rsp + 0x1d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000382d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000382d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rsp + 0x735]
nop dword [rax]
nop dword [rax + rax]
dec r10
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea r8d, [rcx + rdx]
add r8b, r8b
sub r9b, r8b
add r9b, 0x30
mov byte [r10], r9b
mov r9d, edx
test edx, edx
jne 0x140003620
lea r8, [rsp + 0x735]
mov rdx, r10
lea rcx, [rsp + 0x1f0]
call fcn.140008560
or esi, 0xc00
mov r8, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x208]
mov rax, rcx
sub rax, r8
cmp rax, 0x2a
jb 0x140003726
lea rax, [r8 + 0x2a]
mov qword [rsp + 0x200], rax
lea rbx, [rsp + 0x1f0]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0x1f0]
lea rax, [0x14000bc92]
cmp rax, rbx
jbe 0x1400036d4
lea rax, [rbx + r8]
lea rcx, str.Failed_to_get_thread_context._Error_Code:
cmp rcx, rax
ja 0x1400036d4
cmp rbx, rcx
jbe 0x1400036d9
mov rdi, rbx
sub rdi, rcx
jmp 0x1400036d9
mov edi, 0x2a
inc r8
lea rcx, [rbx + 0x2a]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
lea rdx, str.Failed_to_get_thread_context._Error_Code:
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0x2a
sub r8, rdi
lea rdx, str.Failed_to_get_thread_context._Error_Code:
add rdx, 0x2a
add rdx, rdi
lea rcx, [rbx + rdi]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x1f0]
xor edi, edi
jmp 0x14000374d
mov qword [rsp + 0x28], 0x2a
lea rax, str.Failed_to_get_thread_context._Error_Code:
mov qword [rsp + 0x20], rax
mov edx, 0x2a
lea rcx, [rsp + 0x1f0]
call fcn.140007da0
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
bts esi, 0xc
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140001100
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0xf
jbe 0x1400037d6
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400037d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400037d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], 0xf
mov byte [rsp + 0x68], 0
mov rdx, qword [rsp + 0x208]
cmp rdx, 0xf
jbe 0x140003832
inc rdx
mov rcx, qword [rsp + 0x1f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000382d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000382d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x140003ca8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rsp + 0x735]
dec r10
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea r8d, [rcx + rdx]
add r8b, r8b
sub r9b, r8b
add r9b, 0x30
mov byte [r10], r9b
mov r9d, edx
test edx, edx
jne 0x140003851
lea r8, [rsp + 0x735]
mov rdx, r10
lea rcx, [rsp + 0x88]
call fcn.140008560
or esi, 0x18
lea r9, [rsp + 0xe5]
mov r8d, dword [rsp + 0x50]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x1400038b0
lea r8, [rsp + 0xe5]
mov rdx, r9
lea rcx, [rsp + 0x110]
call fcn.140008560
nop
mov r8, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x128]
mov rax, rcx
sub rax, r8
cmp rax, 0x1d
jb 0x1400039af
lea rax, [r8 + 0x1d]
mov qword [rsp + 0x120], rax
lea rbx, [rsp + 0x110]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0x110]
lea rax, [0x14000bcc5]
cmp rax, rbx
jbe 0x14000395d
lea rax, [rbx + r8]
lea rcx, str.Failed_to_suspend_thread_ID:
cmp rcx, rax
ja 0x14000395d
cmp rbx, rcx
jbe 0x140003962
mov rdi, rbx
sub rdi, rcx
jmp 0x140003962
mov edi, 0x1d
inc r8
lea rcx, [rbx + 0x1d]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
lea rdx, str.Failed_to_suspend_thread_ID:
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0x1d
sub r8, rdi
lea rdx, str.Failed_to_suspend_thread_ID:
add rdx, 0x1d
add rdx, rdi
lea rcx, [rbx + rdi]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x110]
xor edi, edi
jmp 0x1400039d6
mov qword [rsp + 0x28], 0x1d
lea rax, str.Failed_to_suspend_thread_ID:
mov qword [rsp + 0x20], rax
mov edx, 0x1d
lea rcx, [rsp + 0x110]
call fcn.140007da0
xorps xmm0, xmm0
movups xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0xc0], rdi
mov qword [rsp + 0xc8], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xb0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xc0], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rcx, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xc8]
mov rax, rdx
sub rax, rcx
cmp rax, 0xe
jb 0x140003a7a
lea rax, [rcx + 0xe]
mov qword [rsp + 0xc0], rax
lea rbx, [rsp + 0xb0]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0xb0]
add rbx, rcx
mov r8d, 0xe
lea rdx, str.._Error_Code:
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xe], 0
lea rax, [rsp + 0xb0]
jmp 0x140003a9c
mov qword [rsp + 0x20], 0xe
lea r9, str.._Error_Code:
mov edx, 0xe
lea rcx, [rsp + 0xb0]
call fcn.1400086c0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x230], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x240], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x230]
lea rcx, [rsp + 0x210]
call fcn.140008360
or esi, 0x3e0
xor edx, edx
lea rcx, [rsp + 0x210]
call fcn.140001100
nop
mov rdx, qword [rsp + 0x228]
cmp rdx, 0xf
jbe 0x140003b3b
inc rdx
mov rcx, qword [rsp + 0x210]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003b36
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
mov qword [rsp + 0x220], rdi
mov qword [rsp + 0x228], 0xf
mov byte [rsp + 0x210], 0
mov rdx, qword [rsp + 0x248]
cmp rdx, 0xf
jbe 0x140003b9e
inc rdx
mov rcx, qword [rsp + 0x230]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b98
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003b98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
nop
mov rdx, qword [rsp + 0xc8]
cmp rdx, 0xf
jbe 0x140003be4
inc rdx
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003bdf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003bdf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
mov qword [rsp + 0xc0], rdi
mov qword [rsp + 0xc8], 0xf
mov byte [rsp + 0xb0], 0
mov rdx, qword [rsp + 0x128]
cmp rdx, 0xf
jbe 0x140003c46
inc rdx
mov rcx, qword [rsp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c41
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003c41
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
mov qword [rsp + 0x120], rdi
mov qword [rsp + 0x128], 0xf
mov byte [rsp + 0x110], 0
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0xf
jbe 0x140003ca8
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ca3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ca3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15b, r15b
jne 0x140003d8b
lea rdx, [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
mov ebx, dword [rsp + 0x34]
jne 0x140002b55
jmp 0x140003d8b
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], 0xf
mov ecx, 0x20
call fcn.140008bbc
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], 0x1c
mov qword [rsp + 0x80], 0x1f
movups xmm0, xmmword [str.Failed_to_enumerate_threads.]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14000bcd8]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x14000bce0]
mov dword [rax + 0x18], ecx
mov byte [rax + 0x1c], 0
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140001100
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0xf
jbe 0x140003d8b
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003d85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008bac
nop
jmp 0x140003d98
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, r15b
mov rcx, qword [rsp + 0x738]
xor rcx, rsp
call fcn.140008b60
lea r11, [rsp + 0x740]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret