Function at 0x140086e60
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x14015a010]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rbx, rcx
mov r8d, 1
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov qword [rbp + 0xb0], rax
test rax, rax
je 0x14008707f
cmp qword [rbx + 0x18], 8
jb 0x140086ec3
mov rbx, qword [rbx]
mov r8d, 4
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rbp + 0xb8], rax
test rax, rax
je 0x1400870c4
mov dword [rbp + 0x90], 0
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140086f22
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140087109
xorps xmm0, xmm0
xor eax, eax
mov esi, dword [rbp + 0x90]
movdqu xmmword [rbp + 0x98], xmm0
mov qword [rbp + 0xa8], rax
test rsi, rsi
je 0x140086fba
cmp rsi, 0x1000
jb 0x140086f79
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x14008714e
lfence
call fcn.1400c5c48
mov rcx, rax
test rax, rax
je 0x140087079
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140086f84
lfence
mov rcx, rsi
call fcn.1400c5c48
mov qword [rbp + 0x98], rax
lea r14, [rax + rsi]
mov qword [rbp + 0xa8], r14
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.1400cb730
mov qword [rbp + 0xa0], r14
mov rdi, qword [rbp + 0xb0]
mov rbx, qword [rbp + 0xb8]
jmp 0x140086fc1
mov r14, qword [rbp + 0xa0]
mov r8, qword [rbp + 0x98]
sub r14, r8
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140087154
mov rcx, qword [rbp + 0x98]
mov esi, dword [rcx + 0x1c]
mov rdx, qword [rbp + 0xa8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140087022
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140087079
call fcn.1400c59a0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x98], xmm0
mov qword [rbp + 0xa8], 0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400c5980
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400da6f8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.140014f00
nop
mov r8, rax
lea rdx, str.OpenSCManagerW_failed_with_error:
lea rcx, [rbp - 0x50]
call fcn.14000d780
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400040f0
lea rdx, [0x140156678]
lea rcx, [rsp + 0x30]
call fcn.1400cb8d0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x30]
call fcn.140014f00
nop
mov r8, rax
lea rdx, str.OpenServiceW_failed_with_error:
lea rcx, [rbp - 0x10]
call fcn.14000d780
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400040f0
lea rdx, [0x140156678]
lea rcx, [rsp + 0x48]
call fcn.1400cb8d0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x10]
call fcn.140014f00
nop
mov r8, rax
lea rdx, str.QueryServiceStatusEx_failed_with_error:
lea rcx, [rbp + 0x30]
call fcn.14000d780
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400040f0
lea rdx, [0x140156678]
lea rcx, [rsp + 0x60]
call fcn.1400cb8d0
nop
call fcn.140003fc0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x50]
call fcn.140014f00
nop
mov r8, rax
lea rdx, str.QueryServiceStatusEx_failed_with_error:
lea rcx, [rbp + 0x70]
call fcn.14000d780
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400040f0
lea rdx, [0x140156678]
lea rcx, [rsp + 0x78]
call fcn.1400cb8d0
int3