Function at 0x14015b820
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 - 0x1338]
mov eax, 0x1438
call fcn.1402063e0
sub rsp, rax
mov rax, qword [0x1402ba040]
xor rax, rsp
mov qword [rbp + 0x1320], rax
mov rax, qword [rbp + 0x13b0]
xor sil, sil
mov r13, qword [rbp + 0x13a8]
mov r12, rcx
xor ecx, ecx
mov qword [rbp - 0x80], r9
xor dil, dil
mov qword [rsp + 0x68], rdx
xor bl, bl
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x74], esi
mov r14, r8
mov byte [rsp + 0x60], cl
mov r15d, ecx
test rdx, rdx
jne 0x14015b9f7
mov esi, dword [0x1402c825c]
nop dword [rax]
cmp esi, 3
jge 0x14015b92a
test r8, r8
je 0x14015b925
mov rax, qword [r8]
lea r9, [rbp - 0x60]
mov qword [rbp - 0x58], rcx
lea r8, [rbp + 0x60]
mov qword [rbp + 0x68], rcx
xorps xmm0, xmm0
mov dword [rbp + 0x78], ecx
mov edx, 0x410
mov qword [rbp + 0x70], rcx
lea rcx, [rsp + 0x68]
mov qword [rbp - 0x60], rax
movdqu xmmword [rbp + 0x80], xmm0
mov dword [rbp + 0x60], 0x30
call qword [sym.imp.ntdll.dll_NtOpenProcess]
mov r15d, eax
cmp eax, 0xc0000022
jne 0x14015b913
cmp esi, 5
jne 0x14015b913
lea r8, [rbp - 0x60]
mov edx, 0x410
lea rcx, [rsp + 0x68]
call fcn.140174cc0
mov r15d, eax
test r15d, r15d
jns 0x14015b9ec
lfence
jmp 0x14015bfcd
cmp esi, 3
jl 0x14015b94a
lea r8, [rsp + 0x68]
mov edx, 0x410
mov rcx, r12
call fcn.140175300
mov r15d, eax
test eax, eax
jns 0x14015b9ec
xor ecx, ecx
lfence
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x140]
mov rcx, r12
mov r9d, 0x30
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov r15d, eax
test eax, eax
js 0x14015b9e4
mov rax, qword [rbp + 0x150]
lea rcx, [rsp + 0x68]
mov qword [rbp - 0x50], rax
mov edx, 0x410
xor eax, eax
cmp dword [0x1402c825c], 3
mov qword [rbp - 0x48], rax
jl 0x14015b9a2
lea r8, [rbp - 0x50]
call fcn.140174cc0
nop
jmp 0x14015b9dc
xorps xmm0, xmm0
mov dword [rbp + 0x90], 0x30
lea r9, [rbp - 0x50]
mov qword [rbp + 0x98], rax
lea r8, [rbp + 0x90]
mov dword [rbp + 0xa8], eax
movdqu xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xa0], rax
call qword [sym.imp.ntdll.dll_NtOpenProcess]
mov r15d, eax
test eax, eax
jns 0x14015b9ec
lfence
jmp 0x14015bfcd
mov esi, dword [rsp + 0x74]
xor ecx, ecx
mov byte [rsp + 0x60], 1
mov edx, 1
test r14, r14
je 0x14015bad7
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 0x14015ba63
mov r14d, edx
xor ecx, ecx
lea r8, [rbp - 0x70]
mov qword [rsp + 0x20], rcx
lea r9d, [rcx + 8]
lea edx, [rcx + 9]
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x14015ba63
mov rax, qword [0x1402c5128]
cmp qword [rbp - 0x70], rax
movzx ebx, bl
cmova ebx, r14d
test dil, dil
jne 0x14015ba89
test bl, bl
jne 0x14015ba89
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 + 0x74], esi
mov r14d, dword [rbp + 0x13a0]
test r14b, 0x10
je 0x14015bcd9
cmp dword [0x1402c825c], 3
jl 0x14015bcd9
xor eax, eax
lea rcx, [0x1402c86f0]
mov dword [rsp + 0x70], eax
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rdi, rax
mov esi, 4
test rax, rax
je 0x14015bb4f
lock dec dword [0x1402c8700]
jmp 0x14015bb6c
cmp r12, 0xfffffffffffffffe
jne 0x14015bae5
movzx edi, dl
jmp 0x14015ba2f
mov qword ss:[rsp + 0x20], rcx
lea r8, [rbp + 0x110]
mov rcx, r12
mov r9d, 0x30
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov r14d, 1
test eax, eax
js 0x14015ba32
mov rax, qword gs:[0x30]
movzx edi, dil
mov rax, qword [rax + 0x48]
cmp qword [rbp + 0x128], rax
cmove edi, r14d
test qword [rbp + 0x120], 0xfffffffffffffffb
jne 0x14015ba32
movzx ebx, r14b
jmp 0x14015ba63
mov r8, qword [0x1402c8708]
mov edx, esi
mov rcx, qword [0x1402c5110]
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.140207110
mov ecx, 0x7ffe0018
mov dword [rdi + 0x10], 0x1640004
mov dword [rdi + 0x14], 0xa
mov edx, 0x7ffe0014
lea r8d, [rcx + 4]
nop dword [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 0x14015bba0
xor ecx, ecx
mov qword [rdi + 0x28], r12
mov dword [rdi + 0x30], ecx
lea rax, [rbp + 0xb30]
mov qword [rdi + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rdi + 0x40], rax
lea rax, [rbp - 0x68]
mov qword [rdi + 0x48], rcx
lea rcx, [rdi + 0x10]
mov dword [rdi + 0x34], 0xfe
mov qword [rbp - 0x68], 0xffffffffffd23940
mov qword [rdi + 0x58], rax
mov dword [rdi + 0x50], 2
call fcn.140191c00
mov esi, eax
test eax, eax
js 0x14015bc07
mov esi, dword [rdi + 0x20]
mov eax, dword [0x1402c8704]
cmp dword [0x1402c8700], eax
jae 0x14015bc2f
mov rdx, rdi
lea rcx, [0x1402c86f0]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x1402c8700]
jmp 0x14015bc46
mov rcx, qword [0x1402c5110]
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 0x14015bce0
xorps xmm0, xmm0
mov ebx, edi
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
cmp dword [rsp + 0x70], edi
jbe 0x14015bce0
nop word [rax + rax]
mov eax, ebx
mov dword [rbp + 0x108], 0x18664
mov rcx, qword [rbp + rax*8 + 0xb30]
cmp rcx, qword [0x1402c5128]
mov qword [rbp + 0xc0], rcx
jbe 0x14015bce0
mov rdx, rsi
lea rcx, [rbp + 0xc0]
mov rax, r13
call qword [case.0x14013b5a0.0]
test al, al
je 0x14015bfa8
inc ebx
cmp ebx, dword [rsp + 0x70]
jb 0x14015bc90
jmp 0x14015bce0
mov rsi, qword [rsp + 0x78]
xor edi, edi
test r14b, 1
je 0x14015bff3
xor edx, edx
lea rcx, [rbp + 0x660]
mov r8d, 0x4d0
call fcn.140207110
lea rdx, [rbp + 0x660]
mov dword [rbp + 0x690], 0x10000b
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtGetContextThread]
mov r15d, eax
test eax, eax
js 0x14015bff3
lfence
xor edx, edx
lea rcx, [rbp + 0x280]
mov r8d, 0x110
call fcn.140207110
mov rax, qword [rbp + 0x758]
mov qword [rbp + 0x280], rax
mov rax, qword [rbp + 0x6f8]
mov qword [rbp + 0x2b0], rax
mov rax, qword [rbp + 0x700]
mov qword [rbp + 0x2a0], rax
mov dword [rbp + 0x388], 0x110
mov dword [rbp + 0x28c], 3
mov dword [rbp + 0x2bc], 3
mov dword [rbp + 0x2ac], 3
mov rcx, qword [rbp - 0x80]
mov rbx, qword [rsp + 0x68]
call fcn.140158fa0
lea rcx, [0x1402c8260]
call sym.SystemInformer.exe_QifAcquireFastLockExclusive
mov rax, qword [0x1402c51c8]
test rax, rax
je 0x14015be14
cmp qword [0x1402c51a0], 0
nop
je 0x14015be14
xor ecx, ecx
lea rdx, [0x14015b4a0]
mov dword [rsp + 0x48], ecx
lea r9, [rbp + 0x280]
mov qword [rsp + 0x40], rcx
mov r8, r12
mov qword [rsp + 0x38], rdx
lea rdx, [0x14015b520]
mov qword [rsp + 0x30], rdx
mov rdx, rbx
mov qword [rsp + 0x28], rcx
mov ebx, 0x8664
lea rcx, [rbp + 0x660]
mov qword [rsp + 0x20], rcx
mov ecx, ebx
call qword [case.0x14013b5a0.0]
mov edi, eax
jmp 0x14015be80
mov rax, qword [0x1402c51c0]
nop dword [rax + rax]
test rax, rax
je 0x14015be73
xor ecx, ecx
lea rdx, [0x14015b4a0]
mov qword [rsp + 0x40], rcx
lea r9, [rbp + 0x280]
mov qword [rsp + 0x38], rdx
mov r8, r12
lea rdx, [0x14015b520]
mov qword [rsp + 0x30], rdx
mov rdx, rbx
mov qword [rsp + 0x28], rcx
mov ebx, 0x8664
lea rcx, [rbp + 0x660]
mov qword [rsp + 0x20], rcx
mov ecx, ebx
call qword [case.0x14013b5a0.0]
mov edi, eax
jmp 0x14015be80
mov ebx, 0x8664
nop dword [rax + rax]
mov edx, dword [0x1402c8260]
mov eax, edx
cmp edx, 0x400000
jb 0x14015beb2
lea ecx, ds:[rdx - 0x3fffff]
lock cmpxchg dword [0x1402c8260], ecx
cmp eax, edx
jne 0x14015bed4
mov rcx, qword [0x1402c8268]
mov edx, 1
jmp 0x14015bee7
mov r9d, edx
mov ecx, edx
shr r9d, 0xc
and r9d, 0x3ff
and ecx, 0xffc00ffe
lock cmpxchg dword [0x1402c8260], ecx
cmp eax, edx
je 0x14015bed8
pause
jmp 0x14015be80
test r9d, r9d
je 0x14015bef0
mov rcx, qword [0x1402c8270]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test edi, edi
je 0x14015bff3
mov rcx, qword [rbp + 0x280]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14015bff3
mov rax, qword [rbp + 0x290]
xor edi, edi
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x2a0]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x2b0]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x2c0]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x2d8]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x2e0]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x2e8]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x2f0]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x58], 0x8664
cmp qword [rbp + 0x2d0], rdi
je 0x14015bf84
mov eax, 2
mov word [rbp + 0x5a], ax
mov eax, dword [rbp + 0x38c]
lea rcx, [rbp + 0x10]
mov dword [rbp + 0x5c], eax
mov rdx, rsi
mov rax, r13
call qword [case.0x14013b5a0.0]
nop dword [rax]
test al, al
jne 0x14015bd91
cmp byte [rsp + 0x74], 0
je 0x14015bfba
xor edx, edx
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtResumeThread]
cmp byte ds:[rsp + 0x60], 0
je 0x14015bfcd
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, r15d
mov rcx, qword [rbp + 0x1320]
xor rcx, rsp
call fcn.1401e0100
add rsp, 0x1438
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r14b, 2
je 0x14015bfa8
xor edx, edx
lea rcx, [rbp + 0x394]
mov r8d, 0x2c8
call fcn.140207110
xor edi, edi
mov dword [rbp + 0x390], 0x1003f
mov r9d, 0x2cc
mov qword [rsp + 0x20], rdi
lea r8, [rbp + 0x390]
mov rcx, r12
lea edx, [rdi + 0x1d]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov r15d, eax
test eax, eax
js 0x14015bfa8
lfence
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x110
call fcn.140207110
mov eax, dword [rbp + 0x448]
mov qword [rbp + 0x170], rax
mov eax, dword [rbp + 0x454]
mov qword [rbp + 0x1a0], rax
mov eax, dword [rbp + 0x444]
mov qword [rbp + 0x190], rax
mov dword [rbp + 0x278], 0x110
mov dword [rbp + 0x17c], 3
mov dword [rbp + 0x1ac], 3
mov dword [rbp + 0x19c], 3
nop
mov rcx, qword ds:[rbp - 0x80]
mov r14d, edi
mov rbx, qword [rsp + 0x68]
call fcn.140158fa0
mov rdi, qword [0x1402c51e0]
lea rcx, [0x1402c8260]
mov rsi, qword [0x1402c5178]
call sym.SystemInformer.exe_QifAcquireFastLockExclusive
mov rax, qword [0x1402c51c8]
test rax, rax
je 0x14015c13a
cmp qword [0x1402c51a0], 0
je 0x14015c13a
xor ecx, ecx
lea r9, [rbp + 0x170]
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 + 0x390]
mov qword [rsp + 0x20], rcx
mov ecx, ebx
call qword [case.0x14013b5a0.0]
mov r14d, eax
jmp 0x14015c190
mov rax, qword [0x1402c51c0]
test rax, rax
je 0x14015c18b
xor ecx, ecx
lea r9, [rbp + 0x170]
mov qword [rsp + 0x40], rcx
mov rdx, rbx
mov qword [rsp + 0x38], rsi
lea rcx, [rbp + 0x390]
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.0x14013b5a0.0]
mov r14d, eax
jmp 0x14015c1a0
mov ebx, 0x14c
xor edi, edi
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [0x1402c8260]
mov eax, ecx
cmp ecx, 0x400000
jb 0x14015c1d2
lea edx, ds:[rcx - 0x3fffff]
lock cmpxchg dword [0x1402c8260], edx
cmp eax, ecx
jne 0x14015c1f4
mov rcx, qword [0x1402c8268]
mov edx, 1
jmp 0x14015c207
mov r9d, ecx
mov edx, ecx
shr r9d, 0xc
and r9d, 0x3ff
and edx, 0xffc00ffe
lock cmpxchg dword [0x1402c8260], edx
cmp eax, ecx
je 0x14015c1f8
pause
jmp 0x14015c1a0
test r9d, r9d
je 0x14015c210
mov rcx, qword [0x1402c8270]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test r14d, r14d
je 0x14015bfa8
mov rcx, qword [rbp + 0x170]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14015bfa8
cmp qword [rbp + 0x1c0], 0
mov rax, qword [rbp + 0x180]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp + 0x190]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0x1a0]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0x1b0]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0x1c8]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x1d0]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x1d8]
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x1e0]
mov qword [rbp], rax
mov qword [rbp - 0x40], rcx
mov dword [rbp + 8], 0x14c
je 0x14015c2a4
mov eax, 2
mov word [rbp + 0xa], ax
mov eax, dword [rbp + 0x27c]
lea rcx, [rbp - 0x40]
mov rdx, qword [rsp + 0x78]
mov dword [rbp + 0xc], eax
mov rax, r13
call qword [case.0x14013b5a0.0]
nop
test al, al
je 0x14015bfa8
mov eax, dword [rbp - 0x40]
mov dword [rbp + 0x448], eax
mov qword [rbp + 0x170], rax
mov eax, dword [rbp - 0x30]
mov dword [rbp + 0x444], eax
mov qword [rbp + 0x190], rax
mov eax, dword [rbp - 0x28]
mov dword [rbp + 0x454], eax
mov qword [rbp + 0x1a0], rax
jmp 0x14015c0b0