Function at 0x100009e80
Capabilities:
Query service status
Start service
Stop service

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x250
xor edx, edx
xor ecx, ecx
xor sil, sil
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x100009ed5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x50]
mov edx, 0x100
mov r8d, eax
call qword [0x100019160]
lea rdx, [rsp + 0x50]
lea rcx, [0x100004c30]
call fcn.10000c150
jmp 0x10000a23f
lea rdx, [0x100004c18]
mov r8d, 0x34
mov rcx, rax
mov qword [rsp + 0x268], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x100009f31
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x50]
mov edx, 0x100
mov r8d, eax
call qword [0x100019160]
lea r8, [rsp + 0x50]
lea rdx, [0x100004c18]
lea rcx, [0x100004bd8]
call fcn.10000c150
jmp 0x10000a220
lea rdx, [0x100004ba8]
mov r8d, 0x34
mov rcx, rbp
mov qword [rsp + 0x260], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x100009f8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x50]
mov edx, 0x100
mov r8d, eax
call qword [0x100019160]
lea r8, [rsp + 0x50]
lea rdx, [0x100004ba8]
lea rcx, [0x100004bd8]
call fcn.10000c150
jmp 0x10000a20a
mov r8, qword [0x10002eea0]
mov rcx, qword [0x100019698]
lea r9, [0x100009570]
mov edx, 0x67
mov qword [rsp + 0x270], r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov r12, rax
test rax, rax
je 0x100009fe7
xor r9d, r9d
lea rax, [0x100004b30]
mov edx, 0x3f7
lea r8d, [r9 + 0xc]
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10000a041
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x10000a041
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x50]
mov edx, 0x100
mov r8d, eax
call qword [0x100019160]
lea r8, [rsp + 0x50]
lea rdx, [0x100004c18]
lea rcx, [0x100004ae8]
call fcn.10000c150
jmp 0x10000a1f0
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x10000a068
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10000a071
cmp dword [rsp + 0x34], 1
jne 0x10000a041
jmp 0x10000a0a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x50]
mov edx, 0x100
mov r8d, eax
call qword [0x100019160]
lea r8, [rsp + 0x50]
lea rdx, [0x100004c18]
lea rcx, [0x100004aa0]
call fcn.10000c150
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10000a100
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x10000a100
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x50]
mov edx, 0x100
mov r8d, eax
call qword [0x100019160]
lea r8, [rsp + 0x50]
lea rdx, [0x100004ba8]
lea rcx, [0x100004ae8]
call fcn.10000c150
jmp 0x10000a1aa
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x10000a127
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10000a130
cmp dword [rsp + 0x34], 1
jne 0x10000a100
jmp 0x10000a161
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x50]
mov edx, 0x100
mov r8d, eax
call qword [0x100019160]
lea r8, [rsp + 0x50]
lea rdx, [0x100004ba8]
lea rcx, [0x100004aa0]
call fcn.10000c150
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov sil, 1
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10000a1aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x50]
mov edx, 0x100
mov r8d, eax
call qword [0x100019160]
lea r8, [rsp + 0x50]
lea rdx, [0x100004ba8]
lea rcx, [0x100004a60]
call fcn.10000c150
xor sil, sil
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10000a1f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x50]
mov edx, 0x100
mov r8d, eax
call qword [0x100019160]
lea r8, [rsp + 0x50]
lea rdx, [0x100004c18]
lea rcx, [0x100004a60]
call fcn.10000c150
xor sil, sil
test r12, r12
je 0x10000a202
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.100009580
mov r12, qword [rsp + 0x270]
test rbx, rbx
je 0x10000a218
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x260]
test rdi, rdi
je 0x10000a22e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x268]
mov al, sil
mov rbp, qword [rsp + 0x278]
add rsp, 0x250
pop rsi
ret