Function at 0x140031fb0
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 - 0xce0]
sub rsp, 0xde0
xor r12b, r12b
mov rdi, r8
xor r8d, r8d
mov dword [rsp + 0x58], r12d
xor r13b, r13b
mov byte [rsp + 0x50], r8b
xor bl, bl
mov rsi, r9
mov r15, rcx
mov r14d, r8d
test rdx, rdx
jne 0x1400320da
mov rcx, qword [0x14015a2a8]
test rcx, rcx
jne 0x140032076
test rdi, rdi
je 0x140032038
mov r8, qword [rdi]
lea rcx, [rbp + 0xd28]
mov edx, 0x410
call sym.ProcessHacker.exe_PhOpenProcess
mov r14d, eax
test eax, eax
jns 0x1400320d2
jmp 0x140032519
mov qword [rsp + 0x20], r8
mov r9d, 0x30
lea r8, [rbp + 0x320]
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov r14d, eax
test eax, eax
js 0x1400320c9
mov r8, qword [rbp + 0x330]
lea rcx, [rbp + 0xd28]
mov edx, 0x410
call sym.ProcessHacker.exe_PhOpenProcess
jmp 0x1400320c6
mov dword [rsp + 0x48], r8d
lea rax, [rbp + 0xd28]
mov qword [rsp + 0x40], r8
xor r9d, r9d
mov qword [rbp - 0x58], rax
xor edx, edx
mov dword [rsp + 0x38], 0x18
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x160]
mov dword [rsp + 0x28], 0x99992197
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x68], r15
mov dword [rbp - 0x60], 0x410
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov r14d, eax
test r14d, r14d
js 0x140032516
mov byte [rsp + 0x50], 1
xor r8d, r8d
mov edx, 1
test rdi, rdi
je 0x140032107
mov rax, qword gs:[0x30]
movzx ecx, r13b
mov rax, qword [rax + 0x48]
cmp qword [rdi + 8], rax
cmove ecx, edx
cmp qword [rdi], 4
jne 0x14003215c
movzx ebx, dl
jmp 0x14003215c
cmp r15, 0xfffffffffffffffe
je 0x140032183
mov qword [rsp + 0x20], r8
mov r9d, 0x30
lea r8, [rbp + 0x190]
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x140032164
mov rax, qword gs:[0x30]
mov edx, 1
movzx ecx, r13b
movzx ebx, bl
mov rax, qword [rax + 0x48]
cmp qword [rbp + 0x1a8], rax
cmove ecx, edx
cmp qword [rbp + 0x1a0], 4
cmove ebx, edx
test cl, cl
jne 0x140032183
test bl, bl
jne 0x140032183
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtSuspendThread]
movzx r12d, r12b
mov edx, 1
test eax, eax
cmovns r12d, edx
mov dword [rsp + 0x58], r12d
mov edi, dword [rbp + 0xd40]
mov r12, qword [rbp + 0xd50]
mov r13, qword [rbp + 0xd48]
mov rcx, qword [0x14015a2a8]
test dil, 0x10
je 0x14003227f
test rcx, rcx
je 0x14003227f
xor ebx, ebx
mov dword [rsp + 0x78], edx
mov dword [rsp + 0x48], ebx
lea rax, [rbp + 0xaf0]
mov qword [rbp - 0x80], rax
xor r9d, r9d
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x54]
mov qword [rbp - 0x78], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0x28
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rbp + 0x170]
mov dword [rsp + 0x28], 0x999921ab
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x7c], 0x3d
mov qword [rbp - 0x70], rbx
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
js 0x140032278
xor edx, edx
lea r8d, [rbx + 0x50]
lea rcx, [rbp + 0x2d0]
call fcn.1400e2690
cmp dword [rsp + 0x54], ebx
jbe 0x140032278
nop word [rax + rax]
mov eax, ebx
mov rdx, r12
mov dword [rbp + 0x318], 4
mov rcx, qword [rbp + rax*8 + 0xaf0]
mov qword [rbp + 0x2d0], rcx
lea rcx, [rbp + 0x2d0]
call r13
test al, al
je 0x1400324f0
inc ebx
cmp ebx, dword [rsp + 0x54]
jb 0x140032240
mov rcx, qword [0x14015a2a8]
test dil, 2
je 0x140032534
mov dword [rbp + 0x650], 0x10001f
test rcx, rcx
je 0x1400322f0
mov dword [rsp + 0x48], 0
lea rax, [rbp + 0x620]
mov qword [rsp + 0x40], 0
xor r9d, r9d
mov qword [rsp + 0x68], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0x10
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rbp + 0x180]
mov dword [rsp + 0x28], 0x999921a3
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], r15
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
jmp 0x140032300
lea rdx, [rbp + 0x620]
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtGetContextThread]
mov r14d, eax
test eax, eax
js 0x140032534
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x108
call fcn.1400e2690
mov rax, qword [rbp + 0x718]
mov qword [rbp + 0x1c0], rax
mov rax, qword [rbp + 0x6b8]
mov qword [rbp + 0x1f0], rax
mov rax, qword [rbp + 0x6c0]
mov qword [rbp + 0x1e0], rax
mov dword [rbp + 0x1cc], 3
mov dword [rbp + 0x1fc], 3
mov dword [rbp + 0x1ec], 3
nop word [rax + rax]
mov rbx, qword [rbp + 0xd28]
mov rcx, rsi
call fcn.140030280
cmp qword [0x14015e930], 0
je 0x140032534
lea rcx, [0x14015a3f0]
call sym.ProcessHacker.exe_PhfAcquireFastLockExclusive
xor eax, eax
lea rcx, [0x140031cc0]
mov qword [rsp + 0x40], rax
lea r9, [rbp + 0x1c0]
mov qword [rsp + 0x38], rcx
mov r8, r15
lea rcx, [0x140031d40]
mov rdx, rbx
mov qword [rsp + 0x30], rcx
mov ecx, 0x8664
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x620]
mov qword [rsp + 0x20], rax
call qword [0x14015e930]
mov ebx, eax
nop dword [rax]
nop word [rax + rax]
mov edx, dword [0x14015a3f0]
mov eax, edx
test edx, 0xffc00000
je 0x140032420
lea ecx, [rdx - 0x3fffff]
lock cmpxchg dword [0x14015a3f0], ecx
cmp eax, edx
jne 0x140032442
mov rcx, qword [0x14015a3f8]
mov edx, 1
jmp 0x140032455
mov r9d, edx
mov ecx, edx
shr r9d, 0xc
and r9d, 0x3ff
and ecx, 0xffc00ffe
lock cmpxchg dword [0x14015a3f0], ecx
cmp eax, edx
je 0x140032446
pause
jmp 0x1400323f0
test r9d, r9d
je 0x14003245e
mov rcx, qword [0x14015a400]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test bl, bl
je 0x140032534
mov rax, qword [rbp + 0x1c0]
test rax, rax
je 0x140032534
cmp rax, 0xffffffffffffffff
je 0x140032534
cmp qword [rbp + 0x210], 0
mov ecx, 0x102
movups xmm0, xmmword [rbp + 0x218]
mov qword [rbp], rax
mov rdx, r12
mov rax, qword [rbp + 0x1d0]
movups xmm1, xmmword [rbp + 0x228]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x1e0]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x1f0]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x200]
mov qword [rbp + 0x20], rax
mov eax, 2
cmovne eax, ecx
lea rcx, [rbp]
mov dword [rbp + 0x48], eax
movups xmmword [rbp + 0x28], xmm0
movups xmmword [rbp + 0x38], xmm1
call r13
test al, al
jne 0x140032370
cmp byte [rsp + 0x58], 0
je 0x140032502
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtResumeThread]
cmp byte [rsp + 0x50], 0
je 0x140032516
mov rcx, qword [rbp + 0xd28]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, r14d
mov rbx, qword [rsp + 0xe20]
add rsp, 0xde0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test dil, 1
je 0x1400324f0
mov r9d, 0x2cc
mov dword [rbp + 0x350], 0x1003f
lea r8, [rbp + 0x350]
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 0x1400324f0
xor edx, edx
lea rcx, [rbp + 0x50]
mov r8d, 0x108
call fcn.1400e2690
mov eax, dword [rbp + 0x408]
mov qword [rbp + 0x50], rax
mov eax, dword [rbp + 0x414]
mov qword [rbp + 0x80], rax
mov eax, dword [rbp + 0x404]
mov qword [rbp + 0x70], rax
mov dword [rbp + 0x5c], 3
mov dword [rbp + 0x8c], 3
mov dword [rbp + 0x7c], 3
nop dword [rax]
mov rcx, qword [rbp + 0xd38]
mov rsi, qword [rbp + 0xd28]
call fcn.140030280
cmp qword [0x14015e930], 0
je 0x1400324f0
mov rdi, qword [0x14015e908]
lea rcx, [0x14015a3f0]
mov rbx, qword [0x14015e970]
call sym.ProcessHacker.exe_PhfAcquireFastLockExclusive
xor eax, eax
lea r9, [rbp + 0x50]
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 + 0x350]
mov qword [rsp + 0x20], rax
call qword [0x14015e930]
mov ebx, eax
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [0x14015a3f0]
mov eax, ecx
test ecx, 0xffc00000
je 0x140032670
lea edx, [rcx - 0x3fffff]
lock cmpxchg dword [0x14015a3f0], edx
cmp eax, ecx
jne 0x140032692
mov rcx, qword [0x14015a3f8]
mov edx, 1
jmp 0x1400326a5
mov r9d, ecx
mov edx, ecx
shr r9d, 0xc
and r9d, 0x3ff
and edx, 0xffc00ffe
lock cmpxchg dword [0x14015a3f0], edx
cmp eax, ecx
je 0x140032696
pause
jmp 0x140032640
test r9d, r9d
je 0x1400326ae
mov rcx, qword [0x14015a400]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test bl, bl
je 0x1400324f0
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x1400324f0
cmp rax, 0xffffffffffffffff
je 0x1400324f0
cmp qword [rbp + 0xa0], 0
mov ecx, 0x101
movups xmm0, xmmword [rbp + 0xa8]
mov qword [rbp - 0x50], rax
mov rdx, r12
mov rax, qword [rbp + 0x60]
movups xmm1, xmmword [rbp + 0xb8]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0x70]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp + 0x90]
mov qword [rbp - 0x30], rax
mov eax, 1
cmovne eax, ecx
lea rcx, [rbp - 0x50]
mov dword [rbp - 8], eax
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm1
call r13
test al, al
je 0x1400324f0
mov eax, dword [rbp - 0x50]
mov dword [rbp + 0x408], eax
mov qword [rbp + 0x50], rax
mov eax, dword [rbp - 0x40]
mov dword [rbp + 0x404], eax
mov qword [rbp + 0x70], rax
mov eax, dword [rbp - 0x38]
mov dword [rbp + 0x414], eax
mov qword [rbp + 0x80], rax
jmp 0x1400325c0