Function at 0x14015e5e0
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 [0x1402bb040]
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 0x14015e7a0
mov esi, dword [0x1402c8fac]
cmp esi, 3
jge 0x14015e6e5
nop dword [rax]
test r8, r8
je 0x14015e6dc
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 0x14015e6cb
cmp esi, 5
jne 0x14015e6cb
lea r8, [rbp - 0x78]
mov edx, 0x410
lea rcx, [rsp + 0x68]
call fcn.140178dc0
mov r15d, eax
test r15d, r15d
jns 0x14015e795
lfence
jmp 0x14015ed46
nop dword [rax]
cmp esi, 3
jl 0x14015e70a
lea r8, [rsp + 0x68]
mov edx, 0x410
mov rcx, r12
call fcn.140179400
mov r15d, eax
test eax, eax
jns 0x14015e795
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 0x14015e78d
mov rax, qword [rbp - 0x50]
lea rcx, [rsp + 0x68]
mov qword [rbp - 0x78], rax
mov edx, 0x410
xor eax, eax
cmp dword [0x1402c8fac], 3
mov qword [rbp - 0x70], rax
jl 0x14015e75a
lea r8, [rbp - 0x78]
call fcn.140178dc0
jmp 0x14015e786
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 0x14015e795
lfence
jmp 0x14015ed46
mov esi, dword [rsp + 0x70]
xor ecx, ecx
mov byte [rsp + 0x60], 1
mov edx, 1
test r14, r14
je 0x14015e885
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 0x14015e80c
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 0x14015e80c
mov rax, qword [0x1402c6158]
cmp qword [rbp - 0x80], rax
movzx ebx, bl
cmova ebx, r14d
test dil, dil
jne 0x14015e838
test bl, bl
jne 0x14015e838
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 0x14015ea51
cmp dword [0x1402c8fac], 3
jl 0x14015ea51
xor eax, eax
lea rcx, [0x1402c98d0]
mov dword [rbp - 0x80], eax
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rdi, rax
mov esi, 4
test rax, rax
je 0x14015e8ef
lock dec dword [0x1402c98e0]
nop dword [rax]
jmp 0x14015e90c
cmp r12, 0xfffffffffffffffe
jne 0x14015e893
movzx edi, dl
jmp 0x14015e7d4
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 0x14015e7d7
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 0x14015e7d7
movzx ebx, r14b
jmp 0x14015e80c
mov r8, qword [0x1402c98e8]
mov edx, esi
mov rcx, qword [0x1402c6140]
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.14020c410
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 0x14015e940
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.1401962e0
mov esi, eax
test eax, eax
js 0x14015e9a2
mov esi, dword [rdi + 0x20]
mov eax, dword [0x1402c98e4]
cmp dword [0x1402c98e0], eax
jae 0x14015e9cf
mov rdx, rdi
lea rcx, [0x1402c98d0]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x1402c98e0]
jmp 0x14015e9e6
mov rcx, qword [0x1402c6140]
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 0x14015ea58
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 0x14015ea58
nop
mov eax, ebx
mov dword [rbp - 0x18], 0x18664
mov rcx, qword [rbp + rax*8 + 0x170]
cmp rcx, qword [0x1402c6158]
mov qword [rbp - 0x60], rcx
jbe 0x14015ea58
mov rdx, rsi
lea rcx, [rbp - 0x60]
mov rax, r13
call qword [case.0x14013f76a.0]
nop
test al, al
je 0x14015ed1f
inc ebx
cmp ebx, dword [rbp - 0x80]
jb 0x14015ea10
jmp 0x14015ea58
mov rsi, qword [rsp + 0x78]
xor edi, edi
nop dword [rax + rax]
test r14b, 1
je 0x14015ed6c
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x4d0
call fcn.14020c410
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 0x14015ed6c
lfence
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0x110
call fcn.14020c410
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.14015bd60
lea rcx, [0x1402c9418]
call sym.SystemInformer.exe_Ordinal_1752
mov rax, qword [0x1402c61f0]
test rax, rax
je 0x14015eb91
cmp qword [0x1402c61c8], 0
nop
je 0x14015eb91
xor ecx, ecx
lea rdx, [0x14015e240]
mov dword [rsp + 0x48], ecx
lea r9, [rbp + 0x60]
mov qword [rsp + 0x40], rcx
mov r8, r12
mov qword [rsp + 0x38], rdx
lea rdx, [0x14015e2c0]
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.0x14013f76a.0]
mov edi, eax
jmp 0x14015ebf0
mov rax, qword [0x1402c61d8]
test rax, rax
je 0x14015ebea
xor ecx, ecx
lea rdx, [0x14015e240]
mov qword [rsp + 0x40], rcx
lea r9, [rbp + 0x60]
mov qword [rsp + 0x38], rdx
mov r8, r12
lea rdx, [0x14015e2c0]
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.0x14013f76a.0]
mov edi, eax
jmp 0x14015ebf0
mov ebx, 0x8664
nop
mov edx, dword [0x1402c9418]
mov eax, edx
cmp edx, 0x400000
jb 0x14015ec28
lea ecx, [rdx - 0x3fffff]
lock cmpxchg dword [0x1402c9418], ecx
cmp eax, edx
jne 0x14015ec4a
mov rcx, qword [0x1402c9420]
mov edx, 1
jmp 0x14015ec5d
mov r9d, edx
mov ecx, edx
shr r9d, 0xc
and r9d, 0x3ff
and ecx, 0xffc00ffe
lock cmpxchg dword [0x1402c9418], ecx
cmp eax, edx
je 0x14015ec4e
pause
jmp 0x14015ebf0
test r9d, r9d
je 0x14015ec66
mov rcx, qword [0x1402c9428]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test edi, edi
je 0x14015ed6c
mov rcx, qword ds:[rbp + 0x60]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14015ed6c
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 0x14015ecfe
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.0x14013f76a.0]
test al, al
jne 0x14015eb10
cmp byte [rsp + 0x70], 0
je 0x14015ed31
xor edx, edx
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtResumeThread]
cmp byte [rsp + 0x60], 0
je 0x14015ed46
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.1401e5e40
add rsp, 0xa78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r14b, 2
je 0x14015ed1f
xor edx, edx
lea rcx, [rbp + 0x174]
mov r8d, 0x2c8
call fcn.14020c410
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 0x14015ed1f
lfence
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0x110
call fcn.14020c410
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.14015bd60
mov rdi, qword [0x1402c6208]
lea rcx, [0x1402c9418]
mov rsi, qword [0x1402c61a8]
call sym.SystemInformer.exe_Ordinal_1752
mov rax, qword [0x1402c61f0]
test rax, rax
je 0x14015eea4
cmp qword [0x1402c61c8], 0
nop
je 0x14015eea4
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.0x14013f76a.0]
mov r14d, eax
jmp 0x14015eef5
mov rax, qword [0x1402c61d8]
test rax, rax
je 0x14015eef0
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.0x14013f76a.0]
mov r14d, eax
jmp 0x14015ef00
mov ebx, 0x14c
xor edi, edi
nop word [rax + rax]
mov ecx, dword [0x1402c9418]
mov eax, ecx
cmp ecx, 0x400000
jb 0x14015ef32
lea edx, ds:[rcx - 0x3fffff]
lock cmpxchg dword [0x1402c9418], edx
cmp eax, ecx
jne 0x14015ef54
mov rcx, qword [0x1402c9420]
mov edx, 1
jmp 0x14015ef67
mov r9d, ecx
mov edx, ecx
shr r9d, 0xc
and r9d, 0x3ff
and edx, 0xffc00ffe
lock cmpxchg dword [0x1402c9418], edx
cmp eax, ecx
je 0x14015ef58
pause
jmp 0x14015ef00
test r9d, r9d
je 0x14015ef70
mov rcx, qword [0x1402c9428]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test r14d, r14d
je 0x14015ed1f
mov rcx, qword [rbp + 0x60]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14015ed1f
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 0x14015effe
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.0x14013f76a.0]
nop dword [rax]
test al, al
je 0x14015ed1f
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 0x14015ee20