Function at 0x14015c0c0
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 [0x1402bf040]
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 0x14015c280
mov esi, dword [0x1402cddb8]
cmp esi, 3
jge 0x14015c1c5
nop dword [rax]
test r8, r8
je 0x14015c1bc
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 0x14015c1ab
cmp esi, 5
jne 0x14015c1ab
lea r8, [rbp - 0x78]
mov edx, 0x410
lea rcx, [rsp + 0x68]
call fcn.140176ee0
mov r15d, eax
test r15d, r15d
jns 0x14015c275
lfence
jmp 0x14015c826
nop dword [rax]
cmp esi, 3
jl 0x14015c1ea
lea r8, [rsp + 0x68]
mov edx, 0x410
mov rcx, r12
call fcn.140177520
mov r15d, eax
test eax, eax
jns 0x14015c275
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 0x14015c26d
mov rax, qword [rbp - 0x50]
lea rcx, [rsp + 0x68]
mov qword [rbp - 0x78], rax
mov edx, 0x410
xor eax, eax
cmp dword [0x1402cddb8], 3
mov qword [rbp - 0x70], rax
jl 0x14015c23a
lea r8, [rbp - 0x78]
call fcn.140176ee0
jmp 0x14015c266
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 0x14015c275
lfence
jmp 0x14015c826
mov esi, dword [rsp + 0x70]
xor ecx, ecx
mov byte [rsp + 0x60], 1
mov edx, 1
test r14, r14
je 0x14015c365
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 0x14015c2ec
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 0x14015c2ec
mov rax, qword [0x1402caae8]
cmp qword [rbp - 0x80], rax
movzx ebx, bl
cmova ebx, r14d
test dil, dil
jne 0x14015c318
test bl, bl
jne 0x14015c318
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 0x14015c531
cmp dword [0x1402cddb8], 3
jl 0x14015c531
xor eax, eax
lea rcx, [0x1402ce140]
mov dword [rbp - 0x80], eax
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rdi, rax
mov esi, 4
test rax, rax
je 0x14015c3cf
lock dec dword [0x1402ce150]
nop dword [rax]
jmp 0x14015c3ec
cmp r12, 0xfffffffffffffffe
jne 0x14015c373
movzx edi, dl
jmp 0x14015c2b4
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 0x14015c2b7
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 0x14015c2b7
movzx ebx, r14b
jmp 0x14015c2ec
mov r8, qword [0x1402ce158]
mov edx, esi
mov rcx, qword [0x1402caad0]
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.14020a280
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 0x14015c420
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.1401954c0
mov esi, eax
test eax, eax
js 0x14015c482
mov esi, dword [rdi + 0x20]
mov eax, dword [0x1402ce154]
cmp dword [0x1402ce150], eax
jae 0x14015c4af
mov rdx, rdi
lea rcx, [0x1402ce140]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x1402ce150]
jmp 0x14015c4c6
mov rcx, qword [0x1402caad0]
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 0x14015c538
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 0x14015c538
nop
mov eax, ebx
mov dword [rbp - 0x18], 0x18664
mov rcx, qword [rbp + rax*8 + 0x170]
cmp rcx, qword [0x1402caae8]
mov qword [rbp - 0x60], rcx
jbe 0x14015c538
mov rdx, rsi
lea rcx, [rbp - 0x60]
mov rax, r13
call qword [case.0x14013d64a.0]
nop
test al, al
je 0x14015c7ff
inc ebx
cmp ebx, dword [rbp - 0x80]
jb 0x14015c4f0
jmp 0x14015c538
mov rsi, qword [rsp + 0x78]
xor edi, edi
nop dword [rax + rax]
test r14b, 1
je 0x14015c84c
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x4d0
call fcn.14020a280
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 0x14015c84c
lfence
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0x110
call fcn.14020a280
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.140159820
lea rcx, [0x1402cdca8]
call sym.SystemInformer.exe_PhfAcquireFastLockExclusive
mov rax, qword [0x1402cab80]
test rax, rax
je 0x14015c671
cmp qword [0x1402cab58], 0
nop
je 0x14015c671
xor ecx, ecx
lea rdx, [0x14015bd40]
mov dword [rsp + 0x48], ecx
lea r9, [rbp + 0x60]
mov qword [rsp + 0x40], rcx
mov r8, r12
mov qword [rsp + 0x38], rdx
lea rdx, [0x14015bdc0]
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.0x14013d64a.0]
mov edi, eax
jmp 0x14015c6d0
mov rax, qword [0x1402cab78]
test rax, rax
je 0x14015c6ca
xor ecx, ecx
lea rdx, [0x14015bd40]
mov qword [rsp + 0x40], rcx
lea r9, [rbp + 0x60]
mov qword [rsp + 0x38], rdx
mov r8, r12
lea rdx, [0x14015bdc0]
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.0x14013d64a.0]
mov edi, eax
jmp 0x14015c6d0
mov ebx, 0x8664
nop
mov edx, dword [0x1402cdca8]
mov eax, edx
cmp edx, 0x400000
jb 0x14015c708
lea ecx, [rdx - 0x3fffff]
lock cmpxchg dword [0x1402cdca8], ecx
cmp eax, edx
jne 0x14015c72a
mov rcx, qword [0x1402cdcb0]
mov edx, 1
jmp 0x14015c73d
mov r9d, edx
mov ecx, edx
shr r9d, 0xc
and r9d, 0x3ff
and ecx, 0xffc00ffe
lock cmpxchg dword [0x1402cdca8], ecx
cmp eax, edx
je 0x14015c72e
pause
jmp 0x14015c6d0
test r9d, r9d
je 0x14015c746
mov rcx, qword [0x1402cdcb8]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test edi, edi
je 0x14015c84c
mov rcx, qword ds:[rbp + 0x60]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14015c84c
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 0x14015c7de
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.0x14013d64a.0]
test al, al
jne 0x14015c5f0
cmp byte [rsp + 0x70], 0
je 0x14015c811
xor edx, edx
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtResumeThread]
cmp byte [rsp + 0x60], 0
je 0x14015c826
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.1401e4160
add rsp, 0xa78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r14b, 2
je 0x14015c7ff
xor edx, edx
lea rcx, [rbp + 0x174]
mov r8d, 0x2c8
call fcn.14020a280
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 0x14015c7ff
lfence
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0x110
call fcn.14020a280
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.140159820
mov rdi, qword [0x1402cab98]
lea rcx, [0x1402cdca8]
mov rsi, qword [0x1402cab30]
call sym.SystemInformer.exe_PhfAcquireFastLockExclusive
mov rax, qword [0x1402cab80]
test rax, rax
je 0x14015c984
cmp qword [0x1402cab58], 0
nop
je 0x14015c984
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.0x14013d64a.0]
mov r14d, eax
jmp 0x14015c9d5
mov rax, qword [0x1402cab78]
test rax, rax
je 0x14015c9d0
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.0x14013d64a.0]
mov r14d, eax
jmp 0x14015c9e0
mov ebx, 0x14c
xor edi, edi
nop word [rax + rax]
mov ecx, dword [0x1402cdca8]
mov eax, ecx
cmp ecx, 0x400000
jb 0x14015ca12
lea edx, ds:[rcx - 0x3fffff]
lock cmpxchg dword [0x1402cdca8], edx
cmp eax, ecx
jne 0x14015ca34
mov rcx, qword [0x1402cdcb0]
mov edx, 1
jmp 0x14015ca47
mov r9d, ecx
mov edx, ecx
shr r9d, 0xc
and r9d, 0x3ff
and edx, 0xffc00ffe
lock cmpxchg dword [0x1402cdca8], edx
cmp eax, ecx
je 0x14015ca38
pause
jmp 0x14015c9e0
test r9d, r9d
je 0x14015ca50
mov rcx, qword [0x1402cdcb8]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test r14d, r14d
je 0x14015c7ff
mov rcx, qword [rbp + 0x60]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14015c7ff
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 0x14015cade
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.0x14013d64a.0]
nop dword [rax]
test al, al
je 0x14015c7ff
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 0x14015c900