Function at 0x140001d20
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14000b040]
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 0x140001dc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 9]
call fcn.1400043f0
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 0x140001dc6
mov rcx, qword [rbp - 9]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001dc1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001dc1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400051fc
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 0x140001e5e
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.1400043f0
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 0x140001e5e
mov rcx, qword [rbp - 9]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e59
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e59
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400051fc
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 0x140001f73
mov ecx, dword [rbp + 0x23]
cmp ecx, 1
jne 0x140001f1d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140001f1a
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.1400043f0
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 0x140001f1a
mov rcx, qword [rbp - 9]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f15
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001fe9
call fcn.1400051fc
mov ecx, dword [rbp + 0x23]
lea eax, [rcx - 2]
cmp eax, 1
jbe 0x140001f44
cmp ecx, 4
jne 0x140001f4d
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 0x140001ff5
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 0x140001e84
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.1400043f0
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 0x140001ff5
mov rcx, qword [rbp - 9]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ff0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ff0
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.1400051fc
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400051a0
mov rdi, qword [rsp + 0xa8]
add rsp, 0x90
pop rbp
ret