Function at 0x14015c7c0
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 0x14015c980
mov esi, dword [0x1402cddd8]
cmp esi, 3
jge 0x14015c8c5
nop dword [rax]
test r8, r8
je 0x14015c8bc
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 0x14015c8ab
cmp esi, 5
jne 0x14015c8ab
lea r8, [rbp - 0x78]
mov edx, 0x410
lea rcx, [rsp + 0x68]
call fcn.140177760
mov r15d, eax
test r15d, r15d
jns 0x14015c975
lfence
jmp 0x14015cf26
nop dword [rax]
cmp esi, 3
jl 0x14015c8ea
lea r8, [rsp + 0x68]
mov edx, 0x410
mov rcx, r12
call fcn.140177da0
mov r15d, eax
test eax, eax
jns 0x14015c975
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 0x14015c96d
mov rax, qword [rbp - 0x50]
lea rcx, [rsp + 0x68]
mov qword [rbp - 0x78], rax
mov edx, 0x410
xor eax, eax
cmp dword [0x1402cddd8], 3
mov qword [rbp - 0x70], rax
jl 0x14015c93a
lea r8, [rbp - 0x78]
call fcn.140177760
jmp 0x14015c966
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 0x14015c975
lfence
jmp 0x14015cf26
mov esi, dword [rsp + 0x70]
xor ecx, ecx
mov byte [rsp + 0x60], 1
mov edx, 1
test r14, r14
je 0x14015ca65
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 0x14015c9ec
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 0x14015c9ec
mov rax, qword [0x1402cab08]
cmp qword [rbp - 0x80], rax
movzx ebx, bl
cmova ebx, r14d
test dil, dil
jne 0x14015ca18
test bl, bl
jne 0x14015ca18
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 0x14015cc31
cmp dword [0x1402cddd8], 3
jl 0x14015cc31
xor eax, eax
lea rcx, [0x1402ce160]
mov dword [rbp - 0x80], eax
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rdi, rax
mov esi, 4
test rax, rax
je 0x14015cacf
lock dec dword [0x1402ce170]
nop dword [rax]
jmp 0x14015caec
cmp r12, 0xfffffffffffffffe
jne 0x14015ca73
movzx edi, dl
jmp 0x14015c9b4
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 0x14015c9b7
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 0x14015c9b7
movzx ebx, r14b
jmp 0x14015c9ec
mov r8, qword [0x1402ce178]
mov edx, esi
mov rcx, qword [0x1402caaf0]
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.14020ab40
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 0x14015cb20
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.140195d80
mov esi, eax
test eax, eax
js 0x14015cb82
mov esi, dword [rdi + 0x20]
mov eax, dword [0x1402ce174]
cmp dword [0x1402ce170], eax
jae 0x14015cbaf
mov rdx, rdi
lea rcx, [0x1402ce160]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x1402ce170]
jmp 0x14015cbc6
mov rcx, qword [0x1402caaf0]
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 0x14015cc38
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 0x14015cc38
nop
mov eax, ebx
mov dword [rbp - 0x18], 0x18664
mov rcx, qword [rbp + rax*8 + 0x170]
cmp rcx, qword [0x1402cab08]
mov qword [rbp - 0x60], rcx
jbe 0x14015cc38
mov rdx, rsi
lea rcx, [rbp - 0x60]
mov rax, r13
call qword [case.0x14013d84a.0]
nop
test al, al
je 0x14015ceff
inc ebx
cmp ebx, dword [rbp - 0x80]
jb 0x14015cbf0
jmp 0x14015cc38
mov rsi, qword [rsp + 0x78]
xor edi, edi
nop dword [rax + rax]
test r14b, 1
je 0x14015cf4c
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x4d0
call fcn.14020ab40
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 0x14015cf4c
lfence
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, pe_nt_image_headers64
call fcn.14020ab40
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], pe_nt_image_headers64
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.140159f00
lea rcx, [0x1402cdcc8]
call sym.SystemInformer.exe_PhfAcquireFastLockExclusive
mov rax, qword [0x1402caba0]
test rax, rax
je 0x14015cd71
cmp qword [0x1402cab78], 0
nop
je 0x14015cd71
xor ecx, ecx
lea rdx, [0x14015c420]
mov dword [rsp + 0x48], ecx
lea r9, [rbp + 0x60]
mov qword [rsp + 0x40], rcx
mov r8, r12
mov qword [rsp + 0x38], rdx
lea rdx, [0x14015c4a0]
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.0x14013d84a.0]
mov edi, eax
jmp 0x14015cdd0
mov rax, qword [0x1402cab98]
test rax, rax
je 0x14015cdca
xor ecx, ecx
lea rdx, [0x14015c420]
mov qword [rsp + 0x40], rcx
lea r9, [rbp + 0x60]
mov qword [rsp + 0x38], rdx
mov r8, r12
lea rdx, [0x14015c4a0]
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.0x14013d84a.0]
mov edi, eax
jmp 0x14015cdd0
mov ebx, 0x8664
nop
mov edx, dword [0x1402cdcc8]
mov eax, edx
cmp edx, 0x400000
jb 0x14015ce08
lea ecx, [rdx - 0x3fffff]
lock cmpxchg dword [0x1402cdcc8], ecx
cmp eax, edx
jne 0x14015ce2a
mov rcx, qword [0x1402cdcd0]
mov edx, 1
jmp 0x14015ce3d
mov r9d, edx
mov ecx, edx
shr r9d, 0xc
and r9d, 0x3ff
and ecx, 0xffc00ffe
lock cmpxchg dword [0x1402cdcc8], ecx
cmp eax, edx
je 0x14015ce2e
pause
jmp 0x14015cdd0
test r9d, r9d
je 0x14015ce46
mov rcx, qword [0x1402cdcd8]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test edi, edi
je 0x14015cf4c
mov rcx, qword ds:[rbp + 0x60]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14015cf4c
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 0x14015cede
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.0x14013d84a.0]
test al, al
jne 0x14015ccf0
cmp byte [rsp + 0x70], 0
je 0x14015cf11
xor edx, edx
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtResumeThread]
cmp byte [rsp + 0x60], 0
je 0x14015cf26
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.1401e4a20
add rsp, 0xa78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r14b, 2
je 0x14015ceff
xor edx, edx
lea rcx, [rbp + 0x174]
mov r8d, 0x2c8
call fcn.14020ab40
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 0x14015ceff
lfence
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, pe_nt_image_headers64
call fcn.14020ab40
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], pe_nt_image_headers64
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.140159f00
mov rdi, qword [0x1402cabb8]
lea rcx, [0x1402cdcc8]
mov rsi, qword [0x1402cab50]
call sym.SystemInformer.exe_PhfAcquireFastLockExclusive
mov rax, qword [0x1402caba0]
test rax, rax
je 0x14015d084
cmp qword [0x1402cab78], 0
nop
je 0x14015d084
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.0x14013d84a.0]
mov r14d, eax
jmp 0x14015d0d5
mov rax, qword [0x1402cab98]
test rax, rax
je 0x14015d0d0
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.0x14013d84a.0]
mov r14d, eax
jmp 0x14015d0e0
mov ebx, 0x14c
xor edi, edi
nop word [rax + rax]
mov ecx, dword [0x1402cdcc8]
mov eax, ecx
cmp ecx, 0x400000
jb 0x14015d112
lea edx, ds:[rcx - 0x3fffff]
lock cmpxchg dword [0x1402cdcc8], edx
cmp eax, ecx
jne 0x14015d134
mov rcx, qword [0x1402cdcd0]
mov edx, 1
jmp 0x14015d147
mov r9d, ecx
mov edx, ecx
shr r9d, 0xc
and r9d, 0x3ff
and edx, 0xffc00ffe
lock cmpxchg dword [0x1402cdcc8], edx
cmp eax, ecx
je 0x14015d138
pause
jmp 0x14015d0e0
test r9d, r9d
je 0x14015d150
mov rcx, qword [0x1402cdcd8]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test r14d, r14d
je 0x14015ceff
mov rcx, qword [rbp + 0x60]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14015ceff
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 0x14015d1de
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.0x14013d84a.0]
nop dword [rax]
test al, al
je 0x14015ceff
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 0x14015d000