Function at 0x1000012d4
Capabilities:
Query service status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rsi, rcx
and qword [rsp + 0x20], 0
xor r12d, r12d
mov qword [rsp + 0x28], r12
and dword [rax - 0x68], r12d
xor edx, edx
lea r8d, [r12 + 0x48]
lea rcx, [rax - 0x60]
call sub.msvcrt.dll_memset
and dword [rsp + 0x38], r12d
xor edx, edx
lea r8d, [r12 + 0x18]
lea rcx, [rsp + 0x3c]
call sub.msvcrt.dll_memset
xor edi, edi
lea r14d, [r12 + 1]
lea r15, [0x10001d1e0]
mov r8d, r14d
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_OpenSCManagerW]
mov r13, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x100009ddc
mov r8d, 4
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_OpenServiceW]
mov r12, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x100009c02
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.API_MS_WIN_Service_winsvc_L1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x100009c4a
mov eax, dword [rsp + 0x3c]
and eax, 4
test al, al
jne 0x100001478
mov rcx, qword [0x10001d1e0]
cmp rcx, r15
je 0x1000013d9
test byte [rcx + 0x1c], r14b
je 0x1000013d9
cmp byte [rcx + 0x19], 4
jb 0x1000013d9
mov edx, 0x14
or r9d, 0xffffffff
lea r8, [0x100014810]
mov rcx, qword [rcx + 0x10]
call fcn.100001e70
mov dword [rsp + 0x60], 2
lea rax, [0x100001e10]
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x60]
mov edx, 8
mov rcx, r12
call qword [sym.imp.API_MS_WIN_Service_Management_L2_1_0.dll_NotifyServiceStatusChangeW]
mov ebx, eax
test eax, eax
jne 0x100009c92
mov rcx, qword [0x10001d1e0]
cmp rcx, r15
je 0x100001437
test byte [rcx + 0x1c], r14b
je 0x100001437
cmp byte [rcx + 0x19], 4
jb 0x100001437
mov edx, 0x16
lea r8, [0x100014810]
mov rcx, qword [rcx + 0x10]
call fcn.10000121c
mov edx, r14d
or edi, 0xffffffff
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SleepEx]
mov ebx, eax
test eax, eax
je 0x100009cd3
cmp eax, 0xc0
jne 0x100009d17
mov ebx, dword [rsp + 0x78]
test ebx, ebx
jne 0x100009d58
mov r9d, dword [rsp + 0x80]
cmp r9d, 4
jne 0x100009d99
mov rcx, qword [0x10001d1e0]
cmp rcx, r15
je 0x1000014a5
test byte [rcx + 0x1c], r14b
je 0x1000014a5
cmp byte [rcx + 0x19], 4
jb 0x1000014a5
mov edx, 0x1b
lea r8, [0x100014810]
mov rcx, qword [rcx + 0x10]
call fcn.10000121c
xor ebx, ebx
jmp 0x1000014a9
test r12, r12
je 0x1000014b7
mov rcx, r12
call qword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_CloseServiceHandle]
test r13, r13
je 0x1000014c5
mov rcx, r13
call qword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x1000014c9
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov rcx, qword [0x10001d1e0]
cmp rcx, r15
je 0x1000014a9
test byte [rcx + 0x1c], r14b
je 0x1000014a9
cmp byte [rcx + 0x19], 2
jb 0x1000014a9
lea edx, [r12 + 0x12]
mov r9d, eax
lea r8, [0x100014810]
mov rcx, qword [rcx + 0x10]
call fcn.100001e70
jmp 0x1000014a9
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov rcx, qword [0x10001d1e0]
cmp rcx, r15
je 0x1000014a9
test byte [rcx + 0x1c], r14b
je 0x1000014a9
cmp byte [rcx + 0x19], 2
jb 0x1000014a9
mov edx, 0x13
mov r9d, eax
lea r8, [0x100014810]
mov rcx, qword [rcx + 0x10]
call fcn.100001e70
jmp 0x1000014a9
mov rcx, qword [0x10001d1e0]
cmp rcx, r15
je 0x1000014a9
test byte [rcx + 0x1c], r14b
je 0x1000014a9
cmp byte [rcx + 0x19], 2
jb 0x1000014a9
mov edx, 0x15
mov r9d, eax
lea r8, [0x100014810]
mov rcx, qword [rcx + 0x10]
call fcn.100001e70
jmp 0x1000014a9
mov ebx, 0x5b4
mov rcx, qword [0x10001d1e0]
cmp rcx, r15
je 0x1000014a9
test byte [rcx + 0x1c], r14b
je 0x1000014a9
cmp byte [rcx + 0x19], 2
jb 0x1000014a9
lea edx, [rax + 0x17]
mov r9d, edi
lea r8, [0x100014810]
mov rcx, qword [rcx + 0x10]
call fcn.100001e70
jmp 0x1000014a9
mov rcx, qword [0x10001d1e0]
cmp rcx, r15
je 0x1000014a9
test byte [rcx + 0x1c], r14b
je 0x1000014a9
cmp byte [rcx + 0x19], 2
jb 0x1000014a9
mov edx, 0x18
mov r9d, eax
lea r8, [0x100014810]
mov rcx, qword [rcx + 0x10]
call fcn.100001e70
jmp 0x1000014a9
mov rcx, qword [0x10001d1e0]
cmp rcx, r15
je 0x1000014a9
test byte [rcx + 0x1c], r14b
je 0x1000014a9
cmp byte [rcx + 0x19], 2
jb 0x1000014a9
mov edx, 0x19
mov r9d, ebx
lea r8, [0x100014810]
mov rcx, qword [rcx + 0x10]
call fcn.100001e70
jmp 0x1000014a9
mov ebx, 0x5b4
mov rcx, qword [0x10001d1e0]
cmp rcx, r15
je 0x1000014a9
test byte [rcx + 0x1c], r14b
je 0x1000014a9
cmp byte [rcx + 0x19], 2
jb 0x1000014a9
mov edx, 0x1a
lea r8, [0x100014810]
mov rcx, qword [rcx + 0x10]
call fcn.100001e70
jmp 0x1000014a9
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov eax, 0x5b4
cmp ebx, eax
je 0x100009e2d
mov rcx, qword [0x10001d1e0]
cmp rcx, r15
je 0x1000014a9
test byte [rcx + 0x1c], r14b
je 0x1000014a9
cmp byte [rcx + 0x19], 2
jb 0x1000014a9
mov edx, 0x10
mov r9d, ebx
lea r8, [0x100014810]
mov rcx, qword [rcx + 0x10]
call fcn.100001e70
jmp 0x1000014a9
cmp edi, 0xffffffff
jbe 0x100009e39
mov ebx, eax
jmp 0x1000014a9
mov rcx, qword [0x10001d1e0]
cmp rcx, r15
je 0x100009e6a
test byte [rcx + 0x1c], r14b
je 0x100009e6a
cmp byte [rcx + 0x19], 4
jb 0x100009e6a
mov edx, 0x11
or r9d, 0xffffffff
lea r8, [0x100014810]
mov rcx, qword [rcx + 0x10]
call fcn.100001e70
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x64
mov dword [rsp + 0x30], edi
jmp 0x10000133d