Function at 0x140001cf0
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov r8d, 0x20000000
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140001d96
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 9]
call fcn.140003970
cmp qword [rbp + 0xf], 0xf
lea rdx, [rbp - 9]
lea rcx, str._Vixen__Error:_OpenSCManager_failed:__s_n
cmova rdx, qword [rbp - 9]
call fcn.140001020
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x140001d96
mov rcx, qword [rbp - 9]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d91
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d91
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000447c
mov r8d, 0xa0000000
mov qword [rsp + 0xa0], rbx
lea rdx, str.TrustedInstaller
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140001e2e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 9]
call fcn.140003970
cmp qword [rbp + 0xf], 0xf
lea rdx, [rbp - 9]
lea rcx, str._Vixen__Error:_OpenService_failed:__s_r_n
cmova rdx, qword [rbp - 9]
call fcn.140001020
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x140001e2e
mov rcx, qword [rbp - 9]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e29
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e29
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000447c
lea rax, [rbp + 0x17]
mov r9d, 0x24
lea r8, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140001f43
mov ecx, dword [rbp + 0x23]
cmp ecx, 1
jne 0x140001eed
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140001eea
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 9]
call fcn.140003970
cmp qword [rbp + 0xf], 0xf
lea rdx, [rbp - 9]
lea rcx, str._Vixen__Error:_StartService_failed:__s_n
cmova rdx, qword [rbp - 9]
call fcn.140001020
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x140001eea
mov rcx, qword [rbp - 9]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ee5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001fb9
call fcn.14000447c
mov ecx, dword [rbp + 0x23]
lea eax, [rcx - 2]
cmp eax, 1
jbe 0x140001f14
cmp ecx, 4
jne 0x140001f1d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rbp + 0x3b]
jmp 0x140001fc5
mov ecx, dword [rbp + 0x37]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp + 0x17]
mov r9d, 0x24
lea r8, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140001e54
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 9]
call fcn.140003970
cmp qword [rbp + 0xf], 0xf
lea rdx, [rbp - 9]
lea rcx, str._Vixen__Error:_QueryServiceStatusEx_failed:__s_r_n
cmova rdx, qword [rbp - 9]
call fcn.140001020
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x140001fc5
mov rcx, qword [rbp - 9]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001fc0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001fc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000447c
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140004420
mov rdi, qword [rsp + 0xa8]
add rsp, 0x90
pop rbp
ret