Function at 0x1400d3230
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 - 0x12d0]
mov eax, 0x13d0
call fcn.14012b380
sub rsp, rax
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 0x1400d335d
mov rcx, qword [0x140193948]
test rcx, rcx
jne 0x1400d32f9
test r8, r8
je 0x1400d32bb
mov r8, qword [r8]
lea rcx, [rbp + 0x1318]
mov edx, 0x410
call fcn.1400d3b50
mov r14d, eax
test eax, eax
jns 0x1400d3358
jmp 0x1400d37b5
mov r9d, 0x30
mov qword [rsp + 0x20], r13
lea r8, [rbp + 0x310]
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov r14d, eax
test eax, eax
js 0x1400d334f
mov r8, qword [rbp + 0x320]
lea rcx, [rbp + 0x1318]
mov edx, 0x410
call fcn.1400d3b50
jmp 0x1400d334c
mov dword [rsp + 0x48], r13d
lea rax, [rbp + 0x1318]
mov qword [rsp + 0x40], r13
xor r9d, r9d
mov qword [rbp - 0x10], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0x18
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rbp + 0x270]
mov dword [rsp + 0x28], 0x99992197
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x20], r15
mov dword [rbp - 0x18], 0x410
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov r14d, eax
test r14d, r14d
js 0x1400d37b2
mov byte [rsp + 0x50], 1
mov r8d, 1
test rsi, rsi
je 0x1400d363b
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 0x1400d33c7
mov r9d, 8
mov qword [rsp + 0x20], r13
lea r8, [rsp + 0x60]
mov rcx, r15
lea edx, [r9 + 1]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov r8d, 1
test eax, eax
js 0x1400d33c7
mov rax, qword [0x1401967c8]
cmp qword [rsp + 0x60], rax
movzx ebx, bl
cmova ebx, r8d
test dil, dil
jne 0x1400d33f0
test bl, bl
jne 0x1400d33f0
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 + 0x1330]
mov r12, qword [rbp + 0x1340]
mov r13, qword [rbp + 0x1338]
test dil, 0x10
je 0x1400d34e6
mov rcx, qword [0x140193948]
test rcx, rcx
je 0x1400d34e6
mov dword [rsp + 0x48], 0
lea rax, [rbp + 0xae0]
mov qword [rsp + 0x78], rax
xor r9d, r9d
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x54]
mov qword [rbp - 0x80], rax
xor edx, edx
mov dword [rsp + 0x38], 0x28
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x280]
mov dword [rsp + 0x70], r8d
xor r8d, r8d
mov dword [rsp + 0x28], 0x999921ab
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x74], 0xfe
mov qword [rbp - 0x78], 0
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
js 0x1400d34e6
xor edx, edx
lea rcx, [rbp + 0x2c0]
lea r8d, [rdx + 0x50]
call fcn.14010ed90
xor ebx, ebx
cmp dword [rsp + 0x54], ebx
jbe 0x1400d34e6
mov rcx, qword [rbp + rbx*8 + 0xae0]
mov rdx, r12
mov qword [rbp + 0x2c0], rcx
lea rcx, [rbp + 0x2c0]
mov dword [rbp + 0x308], 4
call r13
test al, al
je 0x1400d378c
inc ebx
cmp ebx, dword [rsp + 0x54]
jb 0x1400d34b0
test dil, 2
je 0x1400d37d0
lea rdx, [rbp + 0x610]
mov dword [rbp + 0x640], 0x10001f
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtGetContextThread]
mov r14d, eax
test eax, eax
js 0x1400d37d0
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x108
call fcn.14010ed90
mov rax, qword [rbp + 0x708]
mov rsi, qword [rbp + 0x1328]
mov qword [rbp + 0x160], rax
mov rax, qword [rbp + 0x6a8]
mov qword [rbp + 0x190], rax
mov rax, qword [rbp + 0x6b0]
mov qword [rbp + 0x180], rax
mov dword [rbp + 0x16c], 3
mov dword [rbp + 0x19c], 3
mov dword [rbp + 0x18c], 3
nop dword [rax + rax]
mov rbx, qword [rbp + 0x1318]
mov rcx, rsi
call fcn.1400d11c0
cmp qword [0x1401965e8], 0
je 0x1400d37d0
lea rcx, [0x140193868]
call sym.ProcessHacker.exe_PhfAcquireFastLockExclusive
xor eax, eax
lea rcx, [0x1400d2f00]
mov qword [rsp + 0x40], rax
lea r9, [rbp + 0x160]
mov qword [rsp + 0x38], rcx
mov r8, r15
lea rcx, [0x1400d2f80]
mov rdx, rbx
mov qword [rsp + 0x30], rcx
mov ecx, 0x8664
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x610]
mov qword [rsp + 0x20], rax
call qword [0x1401965e8]
mov ebx, eax
nop dword [rax]
nop word [rax + rax]
mov edx, dword [0x140193868]
mov eax, edx
cmp edx, 0x400000
jb 0x1400d36a8
lea ecx, [rdx - 0x3fffff]
lock cmpxchg dword [0x140193868], ecx
cmp eax, edx
jne 0x1400d36ca
mov rcx, qword [0x140193870]
mov edx, 1
jmp 0x1400d36e0
cmp r15, 0xfffffffffffffffe
jne 0x1400d364a
movzx edi, r8b
jmp 0x1400d338d
mov r9d, 0x30
mov qword [rsp + 0x20], r13
lea r8, [rbp + 0x290]
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x1400d338d
mov rax, qword gs:[0x30]
mov r8d, 1
movzx edi, dil
mov rax, qword [rax + 0x48]
cmp qword [rbp + 0x2a8], rax
cmove edi, r8d
cmp qword [rbp + 0x2a0], 4
jne 0x1400d338d
movzx ebx, r8b
jmp 0x1400d33c7
mov r9d, edx
mov ecx, edx
shr r9d, 0xc
and r9d, 0x3ff
and ecx, 0xffc00ffe
lock cmpxchg dword [0x140193868], ecx
cmp eax, edx
je 0x1400d36d1
pause
jmp 0x1400d3600
test r9d, r9d
je 0x1400d36e9
mov rcx, qword [0x140193878]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test bl, bl
je 0x1400d37d0
mov rcx, qword [rbp + 0x160]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400d37d0
mov rax, qword [rbp + 0x170]
mov rdx, r12
cmp qword [rbp + 0x1b0], 0
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x1a0]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x1b8]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x1c0]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x1c8]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x1d0]
mov qword [rbp + 0x40], rax
mov eax, 2
mov qword [rbp], rcx
mov ecx, 0x102
cmovne eax, ecx
lea rcx, [rbp]
mov dword [rbp + 0x48], eax
call r13
test al, al
jne 0x1400d3580
cmp byte [rsp + 0x58], 0
je 0x1400d379e
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtResumeThread]
cmp byte [rsp + 0x50], 0
je 0x1400d37b2
mov rcx, qword [rbp + 0x1318]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, r14d
mov rbx, qword [rsp + 0x1410]
add rsp, 0x13d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test dil, 1
je 0x1400d378c
mov r9d, 0x2cc
mov dword [rbp + 0x340], 0x1003f
lea r8, [rbp + 0x340]
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 0x1400d378c
xor edx, edx
lea rcx, [rbp + 0x50]
mov r8d, 0x108
call fcn.14010ed90
mov eax, dword [rbp + 0x3f8]
mov qword [rbp + 0x50], rax
mov eax, dword [rbp + 0x404]
mov qword [rbp + 0x80], rax
mov eax, dword [rbp + 0x3f4]
mov qword [rbp + 0x70], rax
mov dword [rbp + 0x5c], 3
mov dword [rbp + 0x8c], 3
mov dword [rbp + 0x7c], 3
nop word [rax + rax]
mov rcx, qword [rbp + 0x1328]
mov rsi, qword [rbp + 0x1318]
call fcn.1400d11c0
cmp qword [0x1401965e8], 0
je 0x1400d378c
mov rdi, qword [0x1401965c0]
lea rcx, [0x140193868]
mov rbx, qword [0x140196628]
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 + 0x340]
mov qword [rsp + 0x20], rax
call qword [0x1401965e8]
mov ebx, eax
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [0x140193868]
mov eax, ecx
cmp ecx, 0x400000
jb 0x1400d391b
lea edx, [rcx - 0x3fffff]
lock cmpxchg dword [0x140193868], edx
cmp eax, ecx
jne 0x1400d393d
mov rcx, qword [0x140193870]
mov edi, 1
mov edx, edi
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
jmp 0x1400d395e
mov r9d, ecx
mov edx, ecx
shr r9d, 0xc
and r9d, 0x3ff
and edx, 0xffc00ffe
lock cmpxchg dword [0x140193868], edx
cmp eax, ecx
je 0x1400d3941
pause
jmp 0x1400d38e0
test r9d, r9d
je 0x1400d3959
mov rcx, qword [0x140193878]
xor r8d, r8d
mov edx, r9d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
mov edi, 1
test bl, bl
je 0x1400d378c
mov rcx, qword [rbp + 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400d378c
mov rax, qword [rbp + 0x60]
mov rdx, r12
cmp qword [rbp + 0xa0], 0
mov qword [rbp - 0x68], rax
mov rax, qword [rbp + 0x70]
mov qword [rbp - 0x60], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp - 0x58], rax
mov rax, qword [rbp + 0x90]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0xb0]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0xb8]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp + 0xc0]
mov qword [rbp - 0x30], rax
mov eax, edi
mov qword [rbp - 0x70], rcx
mov ecx, 0x101
cmovne eax, ecx
lea rcx, [rbp - 0x70]
mov dword [rbp - 0x28], eax
call r13
test al, al
je 0x1400d378c
mov eax, dword [rbp - 0x70]
mov dword [rbp + 0x3f8], eax
mov qword [rbp + 0x50], rax
mov eax, dword [rbp - 0x60]
mov dword [rbp + 0x3f4], eax
mov qword [rbp + 0x70], rax
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0x404], eax
mov qword [rbp + 0x80], rax
jmp 0x1400d3860