Function at 0x140154c80
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.1402033c0
sub rsp, rax
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rbp + 0x1320], rax
mov rax, qword [rbp + 0x13b0]
xor r14b, r14b
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], r14d
mov rsi, r8
mov byte [rsp + 0x60], cl
mov r15d, ecx
test rdx, rdx
jne 0x140154e58
mov r14d, dword [0x1402c2f94]
nop dword [rax + rax]
cmp r14d, 3
jge 0x140154d8c
test r8, r8
je 0x140154d86
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 0x140154d75
cmp r14d, 5
jne 0x140154d75
lea r8, [rbp - 0x60]
mov edx, 0x410
lea rcx, [rsp + 0x68]
call fcn.14016dca0
mov r15d, eax
test r15d, r15d
jns 0x140154e4c
lfence
jmp 0x14015540d
cmp r14d, 3
jl 0x140154dab
lea r8, [rsp + 0x68]
mov edx, 0x410
mov rcx, r12
call fcn.14016e2e0
mov r15d, eax
test eax, eax
jns 0x140154e4c
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 0x140154e44
mov rax, qword [rbp + 0x150]
lea rcx, [rsp + 0x68]
mov qword [rbp - 0x50], rax
mov edx, 0x410
xor eax, eax
cmp dword [0x1402c2f94], 3
mov qword [rbp - 0x48], rax
jl 0x140154e02
lea r8, [rbp - 0x50]
call fcn.14016dca0
nop
jmp 0x140154e3c
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 0x140154e4c
lfence
jmp 0x14015540d
mov r14d, dword [rsp + 0x74]
xor ecx, ecx
mov byte [rsp + 0x60], 1
mov edx, 1
test rsi, rsi
je 0x140154ec6
mov rax, qword gs:[0x30]
movzx ebx, bl
mov rcx, qword [rax + 0x48]
cmp qword [rsi + 8], rcx
sete dil
test qword [rsi], 0xfffffffffffffffb
cmove ebx, edx
test bl, bl
jne 0x140154f29
xor esi, esi
lea r8, [rbp - 0x70]
mov rcx, r12
mov qword [rsp + 0x20], rsi
lea r9d, [rsi + 8]
lea edx, [rsi + 9]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x140154f2b
mov rax, qword [0x1402bfe68]
cmp qword [rbp - 0x70], rax
mov eax, 1
movzx ebx, bl
cmova ebx, eax
jmp 0x140154f2b
cmp r12, 0xfffffffffffffffe
jne 0x140154ed1
movzx edi, dl
jmp 0x140154e8f
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x110]
mov rcx, r12
mov r9d, 0x30
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x140154e8f
mov rax, qword gs:[0x30]
movzx edi, dil
mov rax, qword [rax + 0x48]
cmp qword [rbp + 0x128], rax
mov eax, 1
cmove edi, eax
test qword [rbp + 0x120], 0xfffffffffffffffb
jne 0x140154e8f
movzx ebx, al
xor esi, esi
test dil, dil
jne 0x140154f53
test bl, bl
jne 0x140154f53
xor edx, edx
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtSuspendThread]
test eax, eax
movzx r14d, r14b
mov eax, 1
cmovns r14d, eax
mov dword [rsp + 0x74], r14d
mov r14d, dword ds:[rbp + 0x13a0]
mov ebx, 3
test r14b, 0x10
je 0x140155254
cmp dword [0x1402c2f94], ebx
jl 0x140155254
lea rcx, [0x1402c3430]
mov dword [rsp + 0x70], esi
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x140154f98
lock dec dword [0x1402c3440]
jmp 0x140154fb8
mov r8, qword [0x1402c3448]
mov edx, 4
mov rcx, qword [0x1402bfe50]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
lea rcx, [rdi + 0x12]
xor edx, edx
mov r8d, 0x15a
call fcn.1401dff50
mov ecx, 0x7ffe0018
mov dword [rdi + 0x10], 0x15c0003
mov dword [rdi + 0x14], 0xa
mov edx, 0x7ffe0014
lea r8d, [rcx + 4]
nop word [rax + rax]
mov eax, dword ds:[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 0x140154ff0
lea rax, [rbp + 0xb30]
mov qword [rdi + 0x28], r12
mov qword [rdi + 0x38], rax
lea rcx, [rdi + 0x10]
lea rax, [rsp + 0x70]
mov dword [rdi + 0x30], esi
mov qword [rdi + 0x40], rax
lea rax, [rbp - 0x68]
mov dword [rdi + 0x34], 0xfe
mov qword [rdi + 0x48], rsi
mov qword [rbp - 0x68], 0xffffffffffd23940
mov qword [rdi + 0x58], rax
mov dword [rdi + 0x50], 2
call fcn.14018ea80
mov esi, eax
test eax, eax
js 0x140155054
mov esi, dword [rdi + 0x20]
mov eax, dword [0x1402c3444]
cmp dword [0x1402c3440], eax
jae 0x14015507b
mov rdx, rdi
lea rcx, [0x1402c3430]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x1402c3440]
jmp 0x14015508d
mov rcx, qword [0x1402bfe50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test esi, esi
mov rsi, qword [rsp + 0x78]
js 0x14015511b
xorps xmm0, xmm0
xor ebx, ebx
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], ebx
jbe 0x140155116
nop dword [rax + rax]
mov rcx, qword [rbp + rbx*8 + 0xb30]
cmp rcx, qword [0x1402bfe68]
mov qword [rbp + 0xc0], rcx
mov dword [rbp + 0x108], 6
jbe 0x140155116
mov rdx, rsi
lea rcx, [rbp + 0xc0]
mov rax, r13
call qword [str.PB__]
test al, al
je 0x1401553e8
inc ebx
cmp ebx, dword [rsp + 0x70]
jb 0x1401550d0
mov ebx, 3
nop dword [rax + rax]
test r14b, 1
je 0x140155433
xor edx, edx
lea rcx, [rbp + 0x660]
mov r8d, 0x4d0
call fcn.1401dff50
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 0x140155433
lfence
xor edx, edx
lea rcx, [rbp + 0x280]
mov r8d, 0x110
call fcn.1401dff50
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], ebx
mov dword [rbp + 0x2bc], ebx
mov dword [rbp + 0x2ac], ebx
nop word [rax + rax]
mov rcx, qword ds:[rbp - 0x80]
xor edi, edi
mov rbx, qword [rsp + 0x68]
call fcn.140152400
lea rcx, [0x1402c2f98]
call sym.SystemInformer.exe_PhfAcquireFastLockExclusive
mov rax, qword [0x1402bff00]
test rax, rax
je 0x14015525e
cmp qword [0x1402bfed8], rdi
je 0x14015525e
xor ecx, ecx
lea rdx, [0x140154900]
mov dword [rsp + 0x48], ecx
lea r9, [rbp + 0x280]
mov qword [rsp + 0x40], rcx
mov r8, r12
mov qword [rsp + 0x38], rdx
lea rdx, [0x140154980]
mov qword [rsp + 0x30], rdx
mov rdx, rbx
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x660]
mov qword [rsp + 0x20], rcx
mov ecx, 0x8664
call qword [str.PB__]
jmp 0x1401552b2
mov rsi, qword [rsp + 0x78]
jmp 0x14015511b
mov rax, qword [0x1402bfef0]
test rax, rax
je 0x1401552c0
xor ecx, ecx
lea rdx, [0x140154900]
mov qword [rsp + 0x40], rcx
lea r9, [rbp + 0x280]
mov qword [rsp + 0x38], rdx
mov r8, r12
lea rdx, [0x140154980]
mov qword [rsp + 0x30], rdx
mov rdx, rbx
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x660]
mov qword [rsp + 0x20], rcx
mov ecx, 0x8664
call qword [str.PB__]
mov edi, eax
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [0x1402c2f98]
mov eax, edx
cmp edx, 0x400000
jb 0x1401552f2
lea ecx, ds:[rdx - 0x3fffff]
lock cmpxchg dword [0x1402c2f98], ecx
cmp eax, edx
jne 0x140155314
mov rcx, qword [0x1402c2fa0]
mov edx, 1
jmp 0x140155327
mov r9d, edx
mov ecx, edx
shr r9d, 0xc
and r9d, 0x3ff
and ecx, 0xffc00ffe
lock cmpxchg dword [0x1402c2f98], ecx
cmp eax, edx
je 0x140155318
pause
jmp 0x1401552c0
test r9d, r9d
je 0x140155330
mov rcx, qword [0x1402c2fa8]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test edi, edi
je 0x140155433
mov rcx, qword [rbp + 0x280]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140155433
mov rax, qword [rbp + 0x290]
mov rdx, rsi
cmp qword [rbp + 0x2d0], 0
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 eax, 2
mov qword [rbp + 0x10], rcx
mov ecx, 0x102
cmovne eax, ecx
lea rcx, [rbp + 0x10]
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x38c]
mov dword [rbp + 0x5c], eax
mov rax, r13
call qword [str.PB__]
nop word [rax + rax]
test al, al
jne 0x1401551d0
cmp byte [rsp + 0x74], 0
je 0x1401553fa
xor edx, edx
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtResumeThread]
cmp byte ds:[rsp + 0x60], 0
je 0x14015540d
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.1401dd6a0
add rsp, 0x1438
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r14b, 2
je 0x1401553e8
xor edx, edx
lea rcx, [rbp + 0x394]
mov r8d, 0x2c8
call fcn.1401dff50
mov r9d, 0x2cc
mov dword [rbp + 0x390], 0x1003f
lea r8, [rbp + 0x390]
mov qword [rsp + 0x20], 0
mov edx, 0x1d
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov r15d, eax
test eax, eax
js 0x1401553e8
lfence
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x110
call fcn.1401dff50
mov eax, dword [rbp + 0x448]
mov ecx, 3
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], ecx
mov dword [rbp + 0x1ac], ecx
mov dword [rbp + 0x19c], ecx
nop word [rax + rax]
mov rcx, qword ds:[rbp - 0x80]
xor r14d, r14d
mov rbx, qword [rsp + 0x68]
call fcn.140152400
mov rdi, qword [0x1402bff18]
lea rcx, [0x1402c2f98]
mov rsi, qword [0x1402bfeb0]
call sym.SystemInformer.exe_PhfAcquireFastLockExclusive
mov rax, qword [0x1402bff00]
test rax, rax
je 0x140155574
cmp qword [0x1402bfed8], r14
je 0x140155574
xor ecx, ecx
lea r9, [rbp + 0x170]
mov dword [rsp + 0x48], ecx
mov r8, r12
mov qword [rsp + 0x40], rcx
mov rdx, rbx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x390]
mov qword [rsp + 0x20], rcx
mov ecx, 0x14c
call qword [str.PB__]
jmp 0x1401555bf
mov rax, qword [0x1402bfef0]
nop dword [rax + rax]
test rax, rax
je 0x1401555d0
xor ecx, ecx
lea r9, [rbp + 0x170]
mov qword [rsp + 0x40], rcx
mov r8, r12
mov qword [rsp + 0x38], rsi
mov rdx, rbx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x390]
mov qword [rsp + 0x20], rcx
mov ecx, 0x14c
call qword [str.PB__]
mov r14d, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [0x1402c2f98]
mov eax, ecx
cmp ecx, 0x400000
jb 0x140155613
lea edx, [rcx - 0x3fffff]
lock cmpxchg dword [0x1402c2f98], edx
cmp eax, ecx
jne 0x140155635
mov rcx, qword [0x1402c2fa0]
mov ebx, 1
mov edx, ebx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
jmp 0x140155656
mov r9d, ecx
mov edx, ecx
shr r9d, 0xc
and r9d, 0x3ff
and edx, 0xffc00ffe
lock cmpxchg dword [0x1402c2f98], edx
cmp eax, ecx
je 0x140155639
pause
jmp 0x1401555d0
test r9d, r9d
je 0x140155651
mov rcx, qword [0x1402c2fa8]
xor r8d, r8d
mov edx, r9d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
mov ebx, 1
test r14d, r14d
je 0x1401553e8
mov rcx, qword [rbp + 0x170]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401553e8
mov rax, qword ds:[rbp + 0x180]
cmp qword [rbp + 0x1c0], 0
mov rdx, qword [rsp + 0x78]
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 eax, ebx
mov qword [rbp - 0x40], rcx
mov ecx, 0x101
cmovne eax, ecx
lea rcx, [rbp - 0x40]
mov dword [rbp + 8], eax
mov eax, dword [rbp + 0x27c]
mov dword [rbp + 0xc], eax
mov rax, r13
call qword [str.PB__]
test al, al
je 0x1401553e8
mov eax, dword ds:[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 0x1401554f0