Function at 0x14006905c
Capabilities:
Enumerate services
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140096940]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor ebx, ebx
mov qword [rbp + 7], rcx
mov rax, rcx
mov dword [rbp - 9], r9d
xor ecx, ecx
mov dword [rbp - 0x19], r8d
mov qword [rbp + 0x17], rcx
mov rsi, rdx
mov qword [rbp + 0x1f], rcx
mov edi, ebx
mov qword [rbp + 0x27], rcx
mov dword [rbp + 0x2f], ecx
mov qword [rbp + 0xf], rbx
mov qword [rbp - 0x11], rbx
mov qword [rbp - 1], rbx
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x1400690e7
test byte [rcx + 0x1c], 2
je 0x1400690e7
cmp byte [rcx + 0x19], 5
jb 0x1400690e7
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x20]
lea r8, [0x140085590]
call fcn.140001010
mov rax, qword [rbp + 7]
lea rcx, [rbp + 0x1b]
mov rdx, rsi
mov qword [rsp + 0x30], rcx
lea r9, [rbp - 0x11]
mov rcx, rax
mov dword [rsp + 0x28], 0x2c
lea r8, [rbp + 0xf]
call fcn.1400687f0
mov rsi, qword [rbp - 0x11]
test eax, eax
jne 0x140069379
cmp dword [rbp + 0x1b], 1
jne 0x140069159
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x14006914f
test byte [rcx + 0x1c], 2
je 0x14006914f
cmp byte [rcx + 0x19], 5
jb 0x14006914f
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x21]
lea r8, [0x140085590]
call fcn.140001010
mov ebx, 1
jmp 0x140069381
cmp dword [rbp - 0x19], ebx
je 0x140069303
xor r9d, r9d
mov dword [rbp - 0x19], ebx
lea rax, [rbp - 0x19]
mov dword [rbp - 0x11], ebx
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp - 0x11]
mov rcx, rsi
lea edx, [r9 + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14006925f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x1400691ea
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x140069381
test byte [rcx + 0x1c], 2
je 0x140069381
cmp byte [rcx + 0x19], 5
jb 0x140069381
mov edx, 0x22
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085590]
mov r9d, eax
call fcn.140001030
jmp 0x140069381
cmp dword [rbp - 0x11], ebx
je 0x140069303
mov ecx, dword [rbp - 0x11]
call fcn.1400625b0
mov qword [rbp - 1], rax
mov rdi, rax
test rax, rax
jne 0x14006925f
mov rax, qword [str.___t_]
lea rdx, str.___t_
cmp rax, rdx
je 0x140069381
test byte [rax + 0x1c], 2
je 0x140069381
cmp byte [rax + 0x19], 5
jb 0x140069381
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea edx, [rdi + 0x23]
mov r9d, dword [rbp - 0x11]
lea r8, [0x140085590]
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.1400011ac
jmp 0x140069381
mov r9d, dword [rbp - 0x11]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov r8, rdi
lea rax, [rbp - 0x11]
mov edx, 1
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x1400692cc
mov rax, qword [str.___t_]
lea rdx, str.___t_
cmp rax, rdx
je 0x140069381
test byte [rax + 0x1c], 2
je 0x140069381
cmp byte [rax + 0x19], 5
jb 0x140069381
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x24
jmp 0x1400691d2
mov edi, ebx
cmp dword [rbp - 0x19], ebx
jbe 0x140069303
mov rcx, qword [rbp + 7]
or r9d, 0xffffffff
mov eax, edi
xor r8d, r8d
lea rdx, [rax + rax*2]
mov rax, qword [rbp - 1]
add rdx, rdx
mov rdx, qword [rax + rdx*8]
call fcn.14006905c
test eax, eax
je 0x140069381
inc edi
cmp edi, dword [rbp - 0x19]
jb 0x1400692d3
mov edi, 1
lea r8, [rbp + 0x17]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14006935f
mov rax, qword [str.___t_]
lea rdx, str.___t_
cmp rax, rdx
je 0x140069381
test byte [rax + 0x1c], 2
je 0x140069381
cmp byte [rax + 0x19], 2
jb 0x140069381
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea edx, [rdi + 0x24]
mov r9d, eax
lea r8, [0x140085590]
mov rcx, qword [rcx + 0x10]
call fcn.140001030
jmp 0x140069381
mov eax, dword [rbp - 9]
test eax, eax
jne 0x14006936a
mov ebx, edi
jmp 0x140069381
mov r8d, eax
mov rcx, rsi
call fcn.140069e88
test eax, eax
je 0x140069366
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp - 1]
call fcn.14006264c
mov rcx, qword [rbp + 0xf]
mov rdx, rsi
call fcn.140068990
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400786e0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret