Function at 0x140001280
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x468]
sub rsp, 0x568
mov rax, qword [0x14006e028]
xor rax, rsp
mov qword [rbp + 0x450], rax
mov r13, rdx
mov qword [rsp + 0x38], r9
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x50], 0x10000b
mov rsi, r8
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ecx, dword [rsi + 0x10]
sub ecx, 1
je 0x1400012ee
sub ecx, 1
je 0x1400012e8
cmp ecx, 1
jne 0x14000177d
lea r8, [rbp + 0x30]
jmp 0x1400012f2
lea r8, [rbp + 0x28]
jmp 0x1400012f2
lea r8, [rbp + 0x10]
mov ecx, dword [rsi + 0x14]
mov qword [rsp + 0x28], r8
sub ecx, 1
je 0x140001319
sub ecx, 1
je 0x140001313
cmp ecx, 1
jne 0x14000177d
lea rdx, [rbp + 0x30]
jmp 0x14000131d
lea rdx, [rbp + 0x28]
jmp 0x14000131d
lea rdx, [rbp + 0x10]
mov r14, qword [rbp + 0x18]
mov rax, qword [rsi + 0x28]
mov rcx, qword [rsi + 0x20]
sub r14, rax
sub rax, qword [rsi + 0x18]
mov rdi, qword [rsi]
shl rcx, 3
sub r14, rcx
mov qword [rsp + 0x20], rdx
add rax, rcx
sub r14, 0x240
and r14, 0xfffffffffffffff0
mov rcx, rbx
mov qword [rbp + 0x18], r14
add rax, r14
mov qword [rdx], rdi
lea rdx, [rbp - 0x80]
mov qword [r8], rax
mov rax, qword [rsi + 8]
mov qword [rbp + 0x78], rax
mov qword [rsp + 0x30], r14
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageA]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageA]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x14000177d
cmp qword [rbp + 0x78], rdi
jne 0x1400013b0
mov rax, qword [rsi + 0x28]
lea r12, [rsp + 0x40]
mov rcx, qword [rsi + 0x20]
mov qword [rsp + 0x40], 0xffffffffffffffff
mov qword [rsp + 0x58], 0x40
mov qword [rsp + 0x70], 0x238
lea rcx, [rax + rcx*8]
lea rax, [rcx + 0x30]
add rax, r14
mov qword [rsp + 0x48], rax
lea rax, [rcx + 0x38]
add rax, r14
mov qword [rsp + 0x50], rax
lea rax, [rcx + 0x40]
add rax, r14
mov qword [rsp + 0x60], rax
lea rax, [rcx + 8]
add rax, r14
xor r15d, r15d
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], r15
mov r14d, r15d
mov rax, 0xffffffffffffffff
nop word [rax + rax]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x20]
mov rdi, qword [rsi]
mov qword [rbp + 0x18], rcx
mov qword [rdx], rax
lea rdx, [rbp - 0x80]
movsxd rax, r14d
add rax, qword [rsi + 0x20]
lea rax, [rax*8 + 8]
sub rax, qword [rsi + 0x18]
add rax, rcx
mov rcx, qword [rsp + 0x28]
add rax, qword [rsi + 0x28]
mov qword [rcx], rax
mov rcx, rbx
mov rax, qword [rsi + 8]
mov qword [rbp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageA]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageA]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x14000177d
cmp qword [rbp + 0x78], rdi
jne 0x1400014e7
inc r14d
add r12, 8
cmp r14d, 8
jae 0x140001535
mov rax, qword [r12]
jmp 0x140001460
mov rcx, qword [rsi + 0x20]
mov rax, qword [rsi + 0x28]
mov rdx, qword [rsp + 0x48]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsi]
lea rax, [rax + rcx*8]
mov qword [rbp + 8], rdx
mov rdx, qword [rsp + 0x50]
add rax, r12
mov qword [rbp + 0x18], rax
mov rcx, rbx
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x38], rdx
lea rdx, [rbp - 0x80]
mov qword [rbp + 0x78], rax
mov qword [rbp], 0xffffffffffffffff
mov qword [rbp + 0x40], 0x40
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageA]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageA]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x14000177d
cmp qword [rbp + 0x78], rdi
jne 0x1400015c4
lea r14, [0x14006ea10]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r14]
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x20]
mov rdi, qword [rsi]
mov qword [rbp + 0x18], r12
mov qword [rcx], rax
mov rcx, qword [rsp + 0x28]
movsxd rax, r15d
add rax, qword [rsi + 0x20]
lea rax, [rax*8 + 8]
sub rax, qword [rsi + 0x18]
add rax, r12
add rax, qword [rsi + 0x28]
mov qword [rcx], rax
mov rcx, rbx
mov rax, qword [rsi + 8]
mov qword [rbp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageA]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageA]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x14000177d
cmp qword [rbp + 0x78], rdi
jne 0x140001695
inc r15d
add r14, 8
cmp r15d, 0x47
jb 0x140001610
mov rax, qword [rsi + 0x20]
mov rcx, rbx
mov rdi, qword [rsi]
lea rdx, [r12 + rax*8]
add rdx, qword [rsi + 0x28]
mov qword [rbp + 0x18], rdx
lea rax, [rdx + 8]
lea rdx, [rbp - 0x80]
mov qword [rbp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageA]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageA]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, r13
call qword [sym.imp.USER32.dll_PostMessageA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x14000177d
cmp qword [rbp + 0x78], rdi
jne 0x140001742
mov eax, 1
jmp 0x14000177f
xor eax, eax
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.140005cf0
add rsp, 0x568
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret