Function at 0x14015d440
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x978]
sub rsp, 0xa78
mov rax, qword [0x1402c0040]
xor rax, rsp
mov qword [rbp + 0x960], rax
mov rax, qword [rbp + 0x9f0]
xor sil, sil
mov r13, qword [rbp + 0x9e8]
mov r12, rcx
xor ecx, ecx
mov qword [rbp - 0x10], r9
xor dil, dil
mov qword [rsp + 0x68], rdx
xor bl, bl
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x70], esi
mov r14, r8
mov byte [rsp + 0x60], cl
mov r15d, ecx
test rdx, rdx
jne 0x14015d600
mov esi, dword [0x1402ced08]
cmp esi, 3
jge 0x14015d545
nop dword [rax]
test r8, r8
je 0x14015d53c
mov rax, qword ds:[r8]
lea r9, [rbp - 0x78]
mov qword [rbp - 0x70], rcx
lea r8, [rbp - 8]
mov qword [rbp], rcx
xorps xmm0, xmm0
mov dword [rbp + 0x10], ecx
mov edx, 0x410
mov qword [rbp + 8], rcx
lea rcx, [rsp + 0x68]
mov qword [rbp - 0x78], rax
movdqu xmmword [rbp + 0x18], xmm0
mov dword [rbp - 8], 0x30
call qword [sym.imp.ntdll.dll_NtOpenProcess]
mov r15d, eax
cmp eax, 0xc0000022
jne 0x14015d52b
cmp esi, 5
jne 0x14015d52b
lea r8, [rbp - 0x78]
mov edx, 0x410
lea rcx, [rsp + 0x68]
call fcn.1401783e0
mov r15d, eax
test r15d, r15d
jns 0x14015d5f5
lfence
jmp 0x14015dba6
nop dword [rax]
cmp esi, 3
jl 0x14015d56a
lea r8, [rsp + 0x68]
mov edx, 0x410
mov rcx, r12
call fcn.140178a20
mov r15d, eax
test eax, eax
jns 0x14015d5f5
xor ecx, ecx
lfence
mov qword [rsp + 0x20], rcx
lea r8, [rbp - 0x60]
mov rcx, r12
mov r9d, 0x30
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov r15d, eax
test eax, eax
js 0x14015d5ed
mov rax, qword [rbp - 0x50]
lea rcx, [rsp + 0x68]
mov qword [rbp - 0x78], rax
mov edx, 0x410
xor eax, eax
cmp dword [0x1402ced08], 3
mov qword [rbp - 0x70], rax
jl 0x14015d5ba
lea r8, [rbp - 0x78]
call fcn.1401783e0
jmp 0x14015d5e6
xorps xmm0, xmm0
mov dword [rbp - 8], 0x30
lea r9, [rbp - 0x78]
mov qword [rbp], rax
lea r8, [rbp - 8]
mov dword [rbp + 0x10], eax
movdqu xmmword [rbp + 0x18], xmm0
mov qword [rbp + 8], rax
call qword [sym.imp.ntdll.dll_NtOpenProcess]
mov r15d, eax
test eax, eax
jns 0x14015d5f5
lfence
jmp 0x14015dba6
mov esi, dword [rsp + 0x70]
xor ecx, ecx
mov byte [rsp + 0x60], 1
mov edx, 1
test r14, r14
je 0x14015d6e5
mov rax, qword gs:[0x30]
movzx ebx, bl
mov rcx, qword [rax + 0x48]
cmp qword [r14 + 8], rcx
sete dil
test qword [r14], 0xfffffffffffffffb
cmove ebx, edx
test bl, bl
jne 0x14015d66c
mov r14d, edx
xor ecx, ecx
lea r8, [rbp - 0x80]
mov qword [rsp + 0x20], rcx
mov r9d, 8
mov rcx, r12
mov edx, 9
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x14015d66c
mov rax, qword [0x1402cba28]
cmp qword [rbp - 0x80], rax
movzx ebx, bl
cmova ebx, r14d
test dil, dil
jne 0x14015d698
test bl, bl
jne 0x14015d698
xor edx, edx
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtSuspendThread]
test eax, eax
movzx esi, sil
mov eax, 1
cmovns esi, eax
mov dword [rsp + 0x70], esi
mov r14d, dword ds:[rbp + 0x9e0]
test r14b, 0x10
je 0x14015d8b1
cmp dword [0x1402ced08], 3
jl 0x14015d8b1
xor eax, eax
lea rcx, [0x1402cf090]
mov dword [rbp - 0x80], eax
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rdi, rax
mov esi, 4
test rax, rax
je 0x14015d74f
lock dec dword [0x1402cf0a0]
nop dword [rax]
jmp 0x14015d76c
cmp r12, 0xfffffffffffffffe
jne 0x14015d6f3
movzx edi, dl
jmp 0x14015d634
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x28]
mov rcx, r12
mov r9d, 0x30
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov r14d, 1
test eax, eax
js 0x14015d637
mov rax, qword gs:[0x30]
movzx edi, dil
mov rax, qword [rax + 0x48]
cmp qword [rbp + 0x40], rax
cmove edi, r14d
test qword [rbp + 0x38], 0xfffffffffffffffb
jne 0x14015d637
movzx ebx, r14b
jmp 0x14015d66c
mov r8, qword [0x1402cf0a8]
mov edx, esi
mov rcx, qword [0x1402cba10]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
lea rcx, [rdi + 0x12]
xor edx, edx
mov r8d, 0x162
call fcn.14020ba80
mov ecx, 0x7ffe0018
mov dword [rdi + 0x10], 0x1640004
mov edx, 0x7ffe0014
mov dword [rdi + 0x14], 0xa
mov r8d, 0x7ffe001c
nop dword [rax + rax]
mov eax, dword [rcx]
mov dword [rdi + 0x1c], eax
mov eax, dword [rdx]
mov dword [rdi + 0x18], eax
mov eax, dword [r8]
cmp dword [rdi + 0x1c], eax
jne 0x14015d7a0
xor ecx, ecx
mov qword [rdi + 0x28], r12
mov dword [rdi + 0x30], ecx
lea rax, [rbp + 0x170]
mov qword [rdi + 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rdi + 0x40], rax
lea rax, [rbp - 0x78]
mov qword [rdi + 0x48], rcx
lea rcx, [rdi + 0x10]
mov dword [rdi + 0x34], 0xfe
mov qword [rbp - 0x78], 0xffffffffffd23940
mov qword [rdi + 0x58], rax
mov dword [rdi + 0x50], 2
call fcn.140196a60
mov esi, eax
test eax, eax
js 0x14015d802
mov esi, dword [rdi + 0x20]
mov eax, dword [0x1402cf0a4]
cmp dword [0x1402cf0a0], eax
jae 0x14015d82f
mov rdx, rdi
lea rcx, [0x1402cf090]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x1402cf0a0]
jmp 0x14015d846
mov rcx, qword [0x1402cba10]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor edi, edi
test esi, esi
mov rsi, qword [rsp + 0x78]
js 0x14015d8b8
xorps xmm0, xmm0
mov ebx, edi
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
cmp dword [rbp - 0x80], edi
jbe 0x14015d8b8
nop
mov eax, ebx
mov dword [rbp - 0x18], 0x18664
mov rcx, qword [rbp + rax*8 + 0x170]
cmp rcx, qword [0x1402cba28]
mov qword [rbp - 0x60], rcx
jbe 0x14015d8b8
mov rdx, rsi
lea rcx, [rbp - 0x60]
mov rax, r13
call qword [case.0x14013dbaa.0]
nop
test al, al
je 0x14015db7f
inc ebx
cmp ebx, dword [rbp - 0x80]
jb 0x14015d870
jmp 0x14015d8b8
mov rsi, qword [rsp + 0x78]
xor edi, edi
nop dword [rax + rax]
test r14b, 1
je 0x14015dbcc
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x4d0
call fcn.14020ba80
lea rdx, [rbp + 0x170]
mov dword [rbp + 0x1a0], 0x10000b
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtGetContextThread]
mov r15d, eax
test eax, eax
js 0x14015dbcc
lfence
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0x110
call fcn.14020ba80
mov rax, qword [rbp + 0x268]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x208]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x80], rax
mov dword [rbp + 0x168], 0x110
mov dword [rbp + 0x6c], 3
mov dword [rbp + 0x9c], 3
mov dword [rbp + 0x8c], 3
nop dword [rax + rax]
mov rcx, qword [rbp - 0x10]
mov rbx, qword [rsp + 0x68]
call fcn.14015ab80
lea rcx, [0x1402cebf8]
call sym.SystemInformer.exe_PhfAcquireFastLockExclusive
mov rax, qword [0x1402cbac0]
test rax, rax
je 0x14015d9f1
cmp qword [0x1402cbaa0], 0
nop
je 0x14015d9f1
xor ecx, ecx
lea rdx, [0x14015d0a0]
mov dword [rsp + 0x48], ecx
lea r9, [rbp + 0x60]
mov qword [rsp + 0x40], rcx
mov r8, r12
mov qword [rsp + 0x38], rdx
lea rdx, [0x14015d120]
mov qword [rsp + 0x30], rdx
mov rdx, rbx
mov qword [rsp + 0x28], rcx
mov ebx, 0x8664
lea rcx, [rbp + 0x170]
mov qword [rsp + 0x20], rcx
mov ecx, ebx
call qword [case.0x14013dbaa.0]
mov edi, eax
jmp 0x14015da50
mov rax, qword [0x1402cbaa8]
test rax, rax
je 0x14015da4a
xor ecx, ecx
lea rdx, [0x14015d0a0]
mov qword [rsp + 0x40], rcx
lea r9, [rbp + 0x60]
mov qword [rsp + 0x38], rdx
mov r8, r12
lea rdx, [0x14015d120]
mov qword [rsp + 0x30], rdx
mov rdx, rbx
mov qword [rsp + 0x28], rcx
mov ebx, 0x8664
lea rcx, [rbp + 0x170]
mov qword [rsp + 0x20], rcx
mov ecx, ebx
call qword [case.0x14013dbaa.0]
mov edi, eax
jmp 0x14015da50
mov ebx, 0x8664
nop
mov edx, dword [0x1402cebf8]
mov eax, edx
cmp edx, 0x400000
jb 0x14015da88
lea ecx, [rdx - 0x3fffff]
lock cmpxchg dword [0x1402cebf8], ecx
cmp eax, edx
jne 0x14015daaa
mov rcx, qword [0x1402cec00]
mov edx, 1
jmp 0x14015dabd
mov r9d, edx
mov ecx, edx
shr r9d, 0xc
and r9d, 0x3ff
and ecx, 0xffc00ffe
lock cmpxchg dword [0x1402cebf8], ecx
cmp eax, edx
je 0x14015daae
pause
jmp 0x14015da50
test r9d, r9d
je 0x14015dac6
mov rcx, qword [0x1402cec08]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test edi, edi
je 0x14015dbcc
mov rcx, qword ds:[rbp + 0x60]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14015dbcc
mov rax, qword [rbp + 0x70]
xor edi, edi
mov qword [rbp - 0x58], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp + 0x90]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0xa0]
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 rax, qword [rbp + 0xc8]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0xd0]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x60], rcx
mov dword [rbp - 0x18], 0x8664
cmp qword [rbp + 0xb0], rdi
je 0x14015db5e
mov eax, 2
mov word [rbp - 0x16], ax
mov eax, dword [rbp + 0x16c]
lea rcx, [rbp - 0x60]
mov dword [rbp - 0x14], eax
mov rdx, rsi
mov rax, r13
call qword [case.0x14013dbaa.0]
test al, al
jne 0x14015d970
cmp byte [rsp + 0x70], 0
je 0x14015db91
xor edx, edx
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtResumeThread]
cmp byte [rsp + 0x60], 0
je 0x14015dba6
mov rcx, qword ds:[rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, r15d
mov rcx, qword [rbp + 0x960]
xor rcx, rsp
call fcn.1401e5e20
add rsp, 0xa78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r14b, 2
je 0x14015db7f
xor edx, edx
lea rcx, [rbp + 0x174]
mov r8d, 0x2c8
call fcn.14020ba80
xor edi, edi
mov dword [rbp + 0x170], 0x1003f
mov r9d, 0x2cc
mov qword [rsp + 0x20], rdi
lea r8, [rbp + 0x170]
mov edx, 0x1d
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov r15d, eax
test eax, eax
js 0x14015db7f
lfence
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0x110
call fcn.14020ba80
mov eax, dword [rbp + 0x228]
mov qword [rbp + 0x60], rax
mov eax, dword [rbp + 0x234]
mov qword [rbp + 0x90], rax
mov eax, dword [rbp + 0x224]
mov qword [rbp + 0x80], rax
mov dword [rbp + 0x168], 0x110
mov dword [rbp + 0x6c], 3
mov dword [rbp + 0x9c], 3
mov dword [rbp + 0x8c], 3
nop word [rax + rax]
mov rcx, qword [rbp - 0x10]
mov r14d, edi
mov rbx, qword [rsp + 0x68]
call fcn.14015ab80
mov rdi, qword [0x1402cbad8]
lea rcx, [0x1402cebf8]
mov rsi, qword [0x1402cba70]
call sym.SystemInformer.exe_PhfAcquireFastLockExclusive
mov rax, qword [0x1402cbac0]
test rax, rax
je 0x14015dd04
cmp qword [0x1402cbaa0], 0
nop
je 0x14015dd04
xor ecx, ecx
lea r9, [rbp + 0x60]
mov dword [rsp + 0x48], ecx
mov rdx, rbx
mov qword [rsp + 0x40], rcx
mov ebx, 0x14c
mov qword [rsp + 0x38], rsi
mov r8, r12
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x170]
mov qword [rsp + 0x20], rcx
mov ecx, ebx
call qword [case.0x14013dbaa.0]
mov r14d, eax
jmp 0x14015dd55
mov rax, qword [0x1402cbaa8]
test rax, rax
je 0x14015dd50
xor ecx, ecx
lea r9, [rbp + 0x60]
mov qword [rsp + 0x40], rcx
mov rdx, rbx
mov qword [rsp + 0x38], rsi
lea rcx, [rbp + 0x170]
mov qword [rsp + 0x30], rdi
mov ebx, 0x14c
xor edi, edi
mov r8, r12
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rcx
mov ecx, ebx
call qword [case.0x14013dbaa.0]
mov r14d, eax
jmp 0x14015dd60
mov ebx, 0x14c
xor edi, edi
nop word [rax + rax]
mov ecx, dword [0x1402cebf8]
mov eax, ecx
cmp ecx, 0x400000
jb 0x14015dd92
lea edx, ds:[rcx - 0x3fffff]
lock cmpxchg dword [0x1402cebf8], edx
cmp eax, ecx
jne 0x14015ddb4
mov rcx, qword [0x1402cec00]
mov edx, 1
jmp 0x14015ddc7
mov r9d, ecx
mov edx, ecx
shr r9d, 0xc
and r9d, 0x3ff
and edx, 0xffc00ffe
lock cmpxchg dword [0x1402cebf8], edx
cmp eax, ecx
je 0x14015ddb8
pause
jmp 0x14015dd60
test r9d, r9d
je 0x14015ddd0
mov rcx, qword [0x1402cec08]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test r14d, r14d
je 0x14015db7f
mov rcx, qword [rbp + 0x60]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14015db7f
cmp qword [rbp + 0xb0], 0
mov rax, qword [rbp + 0x70]
mov qword [rbp - 0x58], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp + 0x90]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0xa0]
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 rax, qword [rbp + 0xc8]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0xd0]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x60], rcx
mov dword [rbp - 0x18], 0x14c
je 0x14015de5e
mov eax, 2
mov word [rbp - 0x16], ax
mov eax, dword [rbp + 0x16c]
lea rcx, [rbp - 0x60]
mov rdx, qword [rsp + 0x78]
mov dword [rbp - 0x14], eax
mov rax, r13
call qword [case.0x14013dbaa.0]
nop dword [rax]
test al, al
je 0x14015db7f
mov eax, dword [rbp - 0x60]
mov dword [rbp + 0x228], eax
mov qword [rbp + 0x60], rax
mov eax, dword [rbp - 0x50]
mov dword [rbp + 0x224], eax
mov qword [rbp + 0x80], rax
mov eax, dword [rbp - 0x48]
mov dword [rbp + 0x234], eax
mov qword [rbp + 0x90], rax
jmp 0x14015dc80