Function at 0xbef021a0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
xor bl, bl
lea rdi, [0xbeef5240]
xor r12d, r12d
lea r15, [0xbeef5338]
movzx r14d, cl
nop word [rax + rax]
mov rcx, qword [rdi]
inc bl
mov qword [rbp - 0x51], rcx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xorps xmm0, xmm0
mov dword [rbp - 0x49], 0x30
add ax, ax
mov qword [rbp - 0x41], r12
mov word [rbp - 0x57], ax
lea r8, [rbp - 0x49]
mov word [rbp - 0x59], ax
lea rcx, [rbp + 0x6f]
lea rax, [rbp - 0x59]
mov dword [rbp - 0x31], 0xc0
mov qword [rbp - 0x39], rax
xor r9d, r9d
mov rax, qword [0xbef0e4f0]
mov edx, 0x100000
movups xmmword [rbp - 0x29], xmm0
mov byte [rsp + 0x20], r12b
call rax
mov esi, eax
test eax, eax
js 0xbef02262
test r14b, r14b
je 0xbef0224e
mov rcx, qword [rbp + 0x6f]
call qword [0xbef0df80]
cmp esi, 0x40000000
jne 0xbef02262
mov rcx, qword [rbp + 0x6f]
call qword [0xbef0e4f8]
jmp 0xbef0226e
cmp esi, 0xc0000024
je 0xbef025e0
add rdi, 8
cmp rdi, r15
jne 0xbef021e0
xor edx, edx
lea rcx, [0xbeef42c8]
inc bl
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0xbef025e0
xor edx, edx
lea rcx, [0xbeef42e8]
inc bl
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0xbef025e0
xor edx, edx
lea rcx, [0xbeef4300]
inc bl
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0xbef025e0
xor edx, edx
lea rcx, [0xbeef4318]
inc bl
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0xbef025e0
xor edx, edx
lea rcx, [0xbeef4338]
inc bl
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0xbef025e0
xor edx, edx
lea rcx, [0xbeef4350]
inc bl
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0xbef025e0
xor edx, edx
lea rcx, [0xbeef4380]
inc bl
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0xbef025e0
lea rdx, [0xbeef43a0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0xbef025e0
xor edx, edx
lea rcx, [0xbeef43b8]
inc bl
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0xbef025e0
lea rdx, [0xbeef43d8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0xbef025e0
lea rdx, [0xbeef43f0]
xor ecx, ecx
inc bl
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0xbef025e0
lea rdx, [0xbeef4450]
xor ecx, ecx
inc bl
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0xbef025e0
lea rdx, [0xbeef4468]
lea rcx, [0xbeef4480]
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0xbef023cf
mov al, 1
jmp 0xbef025e3
lea rdx, [0xbeef4490]
xor ecx, ecx
add bl, 2
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0xbef025e0
lea rdx, [0xbeef44a8]
mov ecx, 0x8002
inc bl
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0xbef025e0
lea rdx, [0xbeef4148]
inc bl
lea rcx, [0xbeef44c0]
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0xbef025e0
lea rdx, [0xbeef44e8]
lea rcx, [0xbeef4500]
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0xbef02447
lea eax, [rbx + 1]
jmp 0xbef025e3
mov r15d, 1
lea rdx, [0xbeef4520]
mov r8d, r15d
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
je 0xbef025dc
lea rsi, [0xbeef5050]
lea r12, [0xbeef50e0]
nop dword [rax]
mov rdi, qword [rsi]
mov r8d, 0x24
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0xbef024ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0xbef024c2
mov r8d, 0x20
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0xbef024ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0xbef025c6
mov r8d, 4
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0xbef025c6
lea r8, [rbp + 0x17]
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0xbef025bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0xbef025bd
lea rax, [rbp + 0x6f]
mov dword [rbp - 0x45], 4
mov r9d, 0x24
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x49]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0xbef025bd
mov eax, dword [rbp - 0x49]
add eax, 0xfffffff0
test eax, 0xfffffeff
jne 0xbef025bd
cmp dword [rbp - 0x45], r15d
je 0xbef025bd
mov eax, dword [rbp - 0x2d]
cmp eax, 4
jbe 0xbef025bd
mov qword [rbp - 0x59], rax
lea r9, [rbp - 0x59]
xor eax, eax
mov dword [rbp - 0x19], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x51], rax
mov qword [rbp + 0xf], rax
lea r8, [rbp - 0x19]
mov rax, qword [0xbef0de98]
lea rcx, [rbp + 0x77]
mov edx, r15d
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
call rax
test eax, eax
jne 0xbef025bd
mov rax, qword [0xbef0e4a8]
xor edx, edx
mov rcx, qword [rbp + 0x77]
call rax
mov ecx, dword [rbp - 0x45]
test eax, eax
cmove ecx, r15d
mov dword [rbp - 0x45], ecx
mov rcx, qword [rbp + 0x77]
call qword [0xbef0e4f8]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add rsi, 8
cmp rsi, r12
jne 0xbef02480
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0xbef025e3
movzx eax, bl
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret