Function at 0x1400e3a10
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x930]
sub rsp, 0xa30
xor r13d, r13d
xor r12b, r12b
xor dil, dil
mov dword [rsp + 0x58], r12d
xor bl, bl
mov byte [rsp + 0x50], r13b
mov rsi, r8
mov r15, rcx
mov r14d, r13d
test rdx, rdx
jne 0x1400e3b18
cmp qword [0x14018d910], r13
jne 0x1400e3af7
test r8, r8
je 0x1400e3af7
cmp byte [0x1401910b4], bl
lea rcx, [rbp + 0x978]
mov rax, qword [r8]
mov edx, 0x410
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], r13
jne 0x1400e3ae1
xorps xmm0, xmm0
mov dword [rsp + 0x60], 0x30
lea r9, [rbp - 0x50]
mov qword [rsp + 0x68], r13
lea r8, [rsp + 0x60]
mov dword [rsp + 0x78], r13d
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x70], r13
call qword [sym.imp.ntdll.dll_NtOpenProcess]
mov r14d, eax
cmp eax, 0xc0000022
jne 0x1400e3aed
cmp byte [0x1401910b4], bl
je 0x1400e3aed
mov edx, 0x410
lea rcx, [rbp + 0x978]
lea r8, [rbp - 0x50]
call fcn.1400ecc50
mov r14d, eax
test r14d, r14d
jns 0x1400e3b13
jmp 0x1400e3f29
lea r8, [rbp + 0x978]
mov edx, 0x410
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhOpenThreadProcess
mov r14d, eax
test eax, eax
js 0x1400e3f2c
mov byte [rsp + 0x50], 1
mov r8d, 1
test rsi, rsi
je 0x1400e3dcb
mov rax, qword gs:[0x30]
mov rdx, qword [rsi]
mov rcx, qword [rax + 0x48]
cmp qword [rsi + 8], rcx
sete dil
cmp rdx, 4
sete bl
je 0x1400e3b81
mov r9d, 8
mov qword [rsp + 0x20], r13
lea r8, [rbp - 0x40]
mov edx, 9
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov r8d, 1
test eax, eax
js 0x1400e3b81
mov rax, qword [0x140190f48]
cmp qword [rbp - 0x40], rax
movzx ebx, bl
cmova ebx, r8d
test dil, dil
jne 0x1400e3baa
test bl, bl
jne 0x1400e3baa
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtSuspendThread]
movzx r12d, r12b
mov r8d, 1
test eax, eax
cmovns r12d, r8d
mov dword [rsp + 0x58], r12d
mov edi, dword [rbp + 0x990]
mov r12, qword [rbp + 0x9a0]
mov r13, qword [rbp + 0x998]
test dil, 0x10
je 0x1400e3ca1
mov rcx, qword [0x14018d910]
test rcx, rcx
je 0x1400e3ca1
xor ebx, ebx
mov dword [rbp - 0x30], r8d
mov dword [rsp + 0x48], ebx
lea rax, [rbp + 0x140]
mov qword [rbp - 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x54]
mov qword [rbp - 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0x28
lea rax, [rbp - 0x38]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rbp + 0x100]
mov dword [rsp + 0x28], 0x999921ab
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x38], r15
mov dword [rbp - 0x2c], 0xfe
mov qword [rbp - 0x18], rbx
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
js 0x1400e3ca1
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rbp - 0x80], xmm1
movdqa xmmword [rbp - 0x70], xmm0
mov qword [rsp + 0x68], rbx
mov qword [rbp - 0x60], rbx
mov dword [rbp - 0x54], ebx
cmp dword [rsp + 0x54], ebx
jbe 0x1400e3ca1
nop dword [rax]
mov eax, ebx
mov rdx, r12
mov dword [rbp - 0x58], 4
mov rcx, qword [rbp + rax*8 + 0x140]
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x60]
call r13
test al, al
je 0x1400e3f03
inc ebx
cmp ebx, dword [rsp + 0x54]
jb 0x1400e3c70
test dil, 2
je 0x1400e3f47
lea rdx, [rbp + 0x140]
mov dword [rbp + 0x170], 0x10001f
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtGetContextThread]
mov r14d, eax
test eax, eax
js 0x1400e3f47
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, pe_nt_image_headers64
call fcn.140131400
mov rax, qword [rbp + 0x238]
mov rsi, qword [rbp + 0x988]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x1d8]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x1e0]
mov qword [rbp + 0x10], rax
mov dword [rbp - 4], 3
mov dword [rbp + 0x2c], 3
mov dword [rbp + 0x1c], 3
nop
mov rbx, qword [rbp + 0x978]
mov rcx, rsi
call fcn.1400e1c70
cmp qword [0x140191108], 0
je 0x1400e3f47
lea rcx, [0x140190250]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhfAcquireFastLockExclusive
xor eax, eax
lea rcx, [0x1400e3640]
mov qword [rsp + 0x40], rax
lea r9, [rbp - 0x10]
mov qword [rsp + 0x38], rcx
mov r8, r15
lea rcx, [0x1400e3750]
mov rdx, rbx
mov qword [rsp + 0x30], rcx
mov ecx, 0x8664
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x140]
mov qword [rsp + 0x20], rax
call qword [0x140191108]
mov ebx, eax
mov edx, dword [0x140190250]
mov eax, edx
cmp edx, 0x400000
jb 0x1400e3e38
lea ecx, [rdx - 0x3fffff]
lock cmpxchg dword [0x140190250], ecx
cmp eax, edx
jne 0x1400e3e5a
mov rcx, qword [0x140190258]
mov edx, 1
jmp 0x1400e3e70
cmp r15, 0xfffffffffffffffe
jne 0x1400e3dda
movzx edi, r8b
jmp 0x1400e3b48
mov r9d, 0x30
mov qword [rsp + 0x20], r13
lea r8, [rbp + 0x110]
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x1400e3b48
mov rax, qword gs:[0x30]
mov r8d, 1
movzx edi, dil
mov rax, qword [rax + 0x48]
cmp qword [rbp + 0x128], rax
cmove edi, r8d
cmp qword [rbp + 0x120], 4
jne 0x1400e3b48
movzx ebx, r8b
jmp 0x1400e3b81
mov r9d, edx
mov ecx, edx
shr r9d, 0xc
and r9d, 0x3ff
and ecx, 0xffc00ffe
lock cmpxchg dword [0x140190250], ecx
cmp eax, edx
je 0x1400e3e61
pause
jmp 0x1400e3d90
test r9d, r9d
je 0x1400e3e79
mov rcx, qword [0x140190260]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test bl, bl
je 0x1400e3f47
mov rcx, qword [rbp - 0x10]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400e3f47
mov rax, qword [rbp]
mov rdx, r12
cmp qword [rbp + 0x40], 0
mov qword [rsp + 0x68], rax
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x78], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp - 0x68], rax
mov rax, qword [rbp + 0x60]
mov qword [rbp - 0x60], rax
mov eax, 2
mov qword [rsp + 0x60], rcx
mov ecx, 0x102
cmovne eax, ecx
lea rcx, [rsp + 0x60]
mov dword [rbp - 0x58], eax
call r13
test al, al
jne 0x1400e3d20
cmp byte [rsp + 0x58], 0
je 0x1400e3f15
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtResumeThread]
cmp byte [rsp + 0x50], 0
je 0x1400e3f29
mov rcx, qword [rbp + 0x978]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, r14d
mov rbx, qword [rsp + 0xa70]
add rsp, 0xa30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test dil, 1
je 0x1400e3f03
mov r9d, 0x2cc
mov dword [rbp + 0x140], 0x1003f
lea r8, [rbp + 0x140]
mov qword [rsp + 0x20], 0
mov edx, 0x1d
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov r14d, eax
test eax, eax
js 0x1400e3f03
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, pe_nt_image_headers64
call fcn.140131400
mov eax, dword [rbp + 0x1f8]
mov qword [rbp - 0x10], rax
mov eax, dword [rbp + 0x204]
mov qword [rbp + 0x20], rax
mov eax, dword [rbp + 0x1f4]
mov qword [rbp + 0x10], rax
mov dword [rbp - 4], 3
mov dword [rbp + 0x2c], 3
mov dword [rbp + 0x1c], 3
nop word [rax + rax]
mov rcx, qword [rbp + 0x988]
mov rsi, qword [rbp + 0x978]
call fcn.1400e1c70
cmp qword [0x140191108], 0
je 0x1400e3f03
mov rdi, qword [0x1401910d8]
lea rcx, [0x140190250]
mov rbx, qword [0x140191140]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhfAcquireFastLockExclusive
xor eax, eax
lea r9, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov r8, r15
mov qword [rsp + 0x38], rbx
mov rdx, rsi
mov qword [rsp + 0x30], rdi
mov ecx, 0x14c
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x140]
mov qword [rsp + 0x20], rax
call qword [0x140191108]
mov ebx, eax
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [0x140190250]
mov eax, ecx
cmp ecx, 0x400000
jb 0x1400e408b
lea edx, [rcx - 0x3fffff]
lock cmpxchg dword [0x140190250], edx
cmp eax, ecx
jne 0x1400e40ad
mov rcx, qword [0x140190258]
mov edi, 1
mov edx, edi
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
jmp 0x1400e40ce
mov r9d, ecx
mov edx, ecx
shr r9d, 0xc
and r9d, 0x3ff
and edx, 0xffc00ffe
lock cmpxchg dword [0x140190250], edx
cmp eax, ecx
je 0x1400e40b1
pause
jmp 0x1400e4050
test r9d, r9d
je 0x1400e40c9
mov rcx, qword [0x140190260]
xor r8d, r8d
mov edx, r9d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
mov edi, 1
test bl, bl
je 0x1400e3f03
mov rcx, qword [rbp - 0x10]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400e3f03
mov rax, qword [rbp]
mov rdx, r12
cmp qword [rbp + 0x40], 0
mov qword [rsp + 0x68], rax
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x78], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp - 0x68], rax
mov rax, qword [rbp + 0x60]
mov qword [rbp - 0x60], rax
mov eax, edi
mov qword [rsp + 0x60], rcx
mov ecx, 0x101
cmovne eax, ecx
lea rcx, [rsp + 0x60]
mov dword [rbp - 0x58], eax
call r13
test al, al
je 0x1400e3f03
mov eax, dword [rsp + 0x60]
mov dword [rbp + 0x1f8], eax
mov qword [rbp - 0x10], rax
mov eax, dword [rsp + 0x70]
mov dword [rbp + 0x1f4], eax
mov qword [rbp + 0x10], rax
mov eax, dword [rsp + 0x78]
mov dword [rbp + 0x204], eax
mov qword [rbp + 0x20], rax
jmp 0x1400e3fd0