Function at 0x140117730
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.140182db0
sub rsp, rax
mov rax, qword [0x14020a008]
xor rax, rsp
mov qword [rbp + 0x1320], rax
mov rax, qword [rbp + 0x13b0]
mov rsi, r8
mov r13, qword [rbp + 0x13a8]
xor r8d, r8d
xor dil, dil
mov qword [rsp + 0x58], rdx
xor bl, bl
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x64], r8b
mov r12, r9
mov byte [rsp + 0x50], r8b
mov r15, rcx
mov r14d, r8d
test rdx, rdx
jne 0x1401178f3
mov rcx, qword [0x140213db0]
nop dword [rax]
test rcx, rcx
jne 0x140117892
test rsi, rsi
je 0x14011784d
cmp byte [0x1402130ef], bl
lea rcx, [rsp + 0x58]
mov rax, qword [rsi]
mov edx, 0x410
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r8
jne 0x140117832
mov qword ds:[rbp + 0x78], r8
lea r9, [rsp + 0x70]
mov dword [rbp + 0x88], r8d
xorps xmm0, xmm0
mov qword [rbp + 0x80], r8
lea r8, [rbp + 0x70]
movdqu xmmword [rbp + 0x90], xmm0
mov dword [rbp + 0x70], 0x30
call qword [sym.imp.ntdll.dll_NtOpenProcess]
mov r14d, eax
cmp eax, 0xc0000022
jne 0x14011783f
cmp byte [0x1402130ef], bl
je 0x14011783f
mov edx, 0x410
lea rcx, [rsp + 0x58]
lea r8, [rsp + 0x70]
call fcn.140123530
mov r14d, eax
test r14d, r14d
jns 0x1401178eb
jmp 0x140117d6a
mov qword [rsp + 0x20], r8
mov r9d, 0x30
lea r8, [rbp + 0x140]
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov r14d, eax
test eax, eax
js 0x140117d6a
mov r8, qword [rbp + 0x150]
lea rcx, [rsp + 0x58]
mov edx, 0x410
call fcn.140118270
nop
jmp 0x1401178e0
mov dword [rsp + 0x48], r8d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r8
xor r9d, r9d
mov qword [rbp + 0x10], rax
xor edx, edx
mov dword [rsp + 0x38], 0x18
lea rax, [rbp]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf0]
mov dword [rsp + 0x28], 0x99992197
mov qword [rsp + 0x20], rax
mov qword [rbp], r15
mov dword [rbp + 8], 0x410
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov r14d, eax
test eax, eax
js 0x140117d6a
mov byte [rsp + 0x50], 1
xor r8d, r8d
mov r9d, 1
test rsi, rsi
je 0x14011795a
mov rax, qword gs:[0x30]
mov rdx, qword [rsi]
mov rcx, qword [rax + 0x48]
cmp qword [rsi + 8], rcx
sete dil
cmp rdx, 4
sete bl
je 0x1401179bb
xor esi, esi
lea r8, [rbp - 0x80]
mov rcx, r15
mov qword [rsp + 0x20], rsi
lea r9d, [rsi + 8]
lea edx, [rsi + 9]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
lea r9d, [rsi + 1]
test eax, eax
js 0x1401179bd
mov rax, qword [0x140213b98]
cmp qword [rbp - 0x80], rax
movzx ebx, bl
cmova ebx, r9d
jmp 0x1401179bd
cmp r15, 0xfffffffffffffffe
jne 0x140117966
movzx edi, r9b
jmp 0x140117923
mov qword [rsp + 0x20], r8
mov r9d, 0x30
lea r8, [rbp + 0x110]
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x140117923
mov rax, qword gs:[0x30]
mov r9d, 1
movzx edi, dil
mov rax, qword [rax + 0x48]
cmp qword [rbp + 0x128], rax
cmove edi, r9d
cmp qword [rbp + 0x120], 4
jne 0x140117923
movzx ebx, r9b
xor esi, esi
test dil, dil
jne 0x1401179ed
test bl, bl
jne 0x1401179ed
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtSuspendThread]
mov ecx, dword [rsp + 0x64]
mov r9d, 1
test eax, eax
movzx ecx, cl
cmovns ecx, r9d
mov dword [rsp + 0x64], ecx
mov edi, dword [rbp + 0x13a0]
test dil, 0x10
je 0x140117b02
mov rcx, qword [0x140213db0]
test rcx, rcx
je 0x140117b02
mov dword ss:[rsp + 0x48], esi
lea rax, [rbp + 0xb30]
mov qword [rbp - 0x68], rax
xor r8d, r8d
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x60]
mov qword [rbp - 0x60], rax
xor edx, edx
mov dword [rsp + 0x38], 0x28
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x100]
mov dword [rbp - 0x70], r9d
xor r9d, r9d
mov dword [rsp + 0x28], 0x999921ab
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], esi
mov qword [rbp - 0x78], r15
mov dword [rbp - 0x6c], 0xfe
mov qword [rbp - 0x58], rsi
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
js 0x140117b02
cmp dword [rsp + 0x60], 0
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rbp + 0xa8], rsi
mov qword [rbp + 0xe0], rsi
mov ebx, esi
mov dword [rbp + 0xec], esi
mov rsi, qword [rsp + 0x68]
movdqa xmmword [rbp + 0xb0], xmm0
movdqa xmmword [rbp + 0xc0], xmm1
movdqa xmmword [rbp + 0xd0], xmm0
jbe 0x140117b07
nop
mov eax, ebx
mov rdx, rsi
mov dword [rbp + 0xe8], 4
mov rcx, qword [rbp + rax*8 + 0xb30]
mov rax, r13
mov qword [rbp + 0xa0], rcx
lea rcx, [rbp + 0xa0]
call qword [case.0x140101f48.0]
nop
test al, al
je 0x140117d46
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140117ac0
jmp 0x140117b07
mov rsi, qword [rsp + 0x68]
nop word [rax + rax]
test dil, 2
je 0x140117d91
lea rdx, ds:[rbp + 0x660]
mov dword [rbp + 0x690], 0x10001f
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtGetContextThread]
mov r14d, eax
test eax, eax
js 0x140117d91
xor edx, edx
lea rcx, [rbp + 0x280]
mov r8d, 0x108
call fcn.140163170
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 + 0x28c], 3
mov dword [rbp + 0x2bc], 3
mov dword [rbp + 0x2ac], 3
nop dword [rax]
mov rbx, qword [rsp + 0x58]
mov rcx, r12
call fcn.140115bb0
cmp qword [0x140213d88], 0
je 0x140117d91
lea rcx, [0x140216a90]
call sym.ProcessHacker.exe_PhfAcquireFastLockExclusive
xor eax, eax
lea rcx, [0x140117380]
mov qword [rsp + 0x40], rax
lea r9, [rbp + 0x280]
mov qword [rsp + 0x38], rcx
mov r8, r15
lea rcx, [0x1401174a0]
mov rdx, rbx
mov qword [rsp + 0x30], rcx
mov ecx, 0x8664
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x660]
mov qword [rsp + 0x20], rax
mov rax, qword [0x140213d88]
call qword [case.0x140101f48.0]
mov ebx, eax
nop dword [rax + rax]
mov edx, dword [0x140216a90]
mov eax, edx
cmp edx, 0x400000
jb 0x140117c58
lea ecx, [rdx - 0x3fffff]
lock cmpxchg dword [0x140216a90], ecx
cmp eax, edx
jne 0x140117c7a
mov rcx, qword [0x140216a98]
mov edx, 1
jmp 0x140117c8d
mov r9d, edx
mov ecx, edx
shr r9d, 0xc
and r9d, 0x3ff
and ecx, 0xffc00ffe
lock cmpxchg dword [0x140216a90], ecx
cmp eax, edx
je 0x140117c7e
pause
jmp 0x140117c20
test r9d, r9d
je 0x140117c96
mov rcx, qword [0x140216aa0]
mov edx, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
test ebx, ebx
je 0x140117d91
mov rcx, qword ds:[rbp + 0x280]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140117d91
mov rax, qword [rbp + 0x290]
mov rdx, rsi
cmp qword [rbp + 0x2d0], 0
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x2a0]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x2b0]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x2c0]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x2d8]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x2e0]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x2e8]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x2f0]
mov qword [rbp + 0x60], rax
mov eax, 2
mov qword [rbp + 0x20], rcx
mov ecx, 0x102
cmovne eax, ecx
lea rcx, [rbp + 0x20]
mov dword [rbp + 0x68], eax
mov rax, r13
call qword [case.0x140101f48.0]
test al, al
jne 0x140117ba0
cmp byte [rsp + 0x64], 0
je 0x140117d58
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtResumeThread]
cmp byte [rsp + 0x50], 0
je 0x140117d6a
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, r14d
mov rcx, qword [rbp + 0x1320]
xor rcx, rsp
call fcn.140161390
add rsp, 0x1438
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
nop
ret
test dil, 1
je 0x140117d46
mov r9d, 0x2cc
mov dword [rbp + 0x390], 0x1003f
lea r8, [rbp + 0x390]
mov qword [rsp + 0x20], 0
mov edx, 0x1d
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov r14d, eax
test eax, eax
js 0x140117d46
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x108
call fcn.140163170
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 + 0x17c], 3
mov dword [rbp + 0x1ac], 3
mov dword [rbp + 0x19c], 3
mov rsi, qword [rsp + 0x58]
mov rcx, r12
call fcn.140115bb0
cmp qword [0x140213d88], 0
je 0x140117d46
mov rdi, qword [0x140213d98]
lea rcx, [0x140216a90]
mov rbx, qword [0x140213d50]
call sym.ProcessHacker.exe_PhfAcquireFastLockExclusive
xor eax, eax
lea r9, [rbp + 0x170]
mov qword [rsp + 0x40], rax
mov r8, r15
mov qword [rsp + 0x38], rbx
mov rdx, rsi
mov qword [rsp + 0x30], rdi
mov ecx, 0x14c
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x390]
mov qword [rsp + 0x20], rax
mov rax, qword [0x140213d88]
call qword [case.0x140101f48.0]
mov ebx, eax
nop dword [rax]
mov ecx, dword [0x140216a90]
mov eax, ecx
cmp ecx, 0x400000
jb 0x140117eed
lea edx, ds:[rcx - 0x3fffff]
lock cmpxchg dword [0x140216a90], edx
cmp eax, ecx
jne 0x140117f0f
mov rcx, qword [0x140216a98]
mov edi, 1
mov edx, edi
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
jmp 0x140117f30
mov r9d, ecx
mov edx, ecx
shr r9d, 0xc
and r9d, 0x3ff
and edx, 0xffc00ffe
lock cmpxchg dword [0x140216a90], edx
cmp eax, ecx
je 0x140117f13
pause
jmp 0x140117eb0
test r9d, r9d
je 0x140117f2b
mov rcx, qword [0x140216aa0]
xor r8d, r8d
mov edx, r9d
call qword [sym.imp.ntdll.dll_NtReleaseSemaphore]
mov edi, 1
test ebx, ebx
je 0x140117d46
mov rcx, qword [rbp + 0x170]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140117d46
mov rax, qword ds:[rbp + 0x180]
cmp qword [rbp + 0x1c0], 0
mov rdx, qword [rsp + 0x68]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0x190]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x1a0]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp + 0x1b0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0x1c8]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0x1d0]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0x1d8]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x1e0]
mov qword [rbp - 0x10], rax
mov eax, edi
mov qword [rbp - 0x50], rcx
mov ecx, 0x101
cmovne eax, ecx
lea rcx, [rbp - 0x50]
mov dword [rbp - 8], eax
mov rax, r13
call qword [case.0x140101f48.0]
test al, al
je 0x140117d46
mov eax, dword ds:[rbp - 0x50]
mov dword [rbp + 0x448], eax
mov qword [rbp + 0x170], rax
mov eax, dword [rbp - 0x40]
mov dword [rbp + 0x444], eax
mov qword [rbp + 0x190], rax
mov eax, dword [rbp - 0x38]
mov dword [rbp + 0x454], eax
mov qword [rbp + 0x1a0], rax
jmp 0x140117e31