Function at 0x14002b8b0
Capabilities:
Enumerate services
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140186768]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, rcx
lea rax, [rbp + 0x64]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp + 0x68]
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14002b9a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.14001a6d0
xor esi, esi
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], si
lea rdx, str.Cannot_query_service_state_0x
lea rcx, [rsp + 0x50]
call fcn.14001b1c0
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0x68]
and eax, 0xfffff9ff
bts eax, 0xb
mov dword [rsp + rcx + 0x68], eax
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14001e540
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0x68]
and eax, 0xfffff3ff
bts eax, 9
mov dword [rsp + rcx + 0x68], eax
lea rcx, [rsp + 0x50]
call fcn.14001a8c0
nop
lea rcx, [rsp + 0x40]
call fcn.1400193a0
mov eax, ebx
jmp 0x14002bdc9
mov eax, dword [rbp + 0x6c]
cmp eax, 1
jne 0x14002b9f9
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.14001a6d0
xor esi, esi
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], si
lea rdx, str.Service_is_already_stopped
lea rcx, [rsp + 0x50]
call fcn.14001b1c0
lea rcx, [rsp + 0x50]
call fcn.14001a8c0
nop
lea rcx, [rsp + 0x40]
call fcn.1400193a0
jmp 0x14002bdc7
cmp eax, 3
jne 0x14002ba0b
mov rcx, rdi
call fcn.14002c680
jmp 0x14002bdc9
mov rax, qword gs:[0x58]
mov r12, qword [rax]
mov ecx, 0x264
mov eax, dword [rcx + r12]
test al, 1
jne 0x14002ba3f
or eax, 1
mov dword [rcx + r12], eax
mov eax, 0x260
mov r13d, eax
lea rcx, [r12 + rax]
call fcn.14000fa60
nop
jmp 0x14002ba45
mov r13d, 0x260
lea r14, [r12 + r13]
lea rbx, [0x1401950c0]
cmp byte [r14 + 1], 0
je 0x14002ba8e
lea rdx, str.Stopping_dependent_services.
mov rcx, rbx
call fcn.1400104a0
mov rax, qword [0x1401950c0]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140010290
movzx edx, al
mov rcx, rbx
call fcn.140010130
mov rcx, rbx
call fcn.140010060
xor esi, esi
mov ebx, esi
mov qword [rsp + 0x30], rbx
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14002baa9
call fcn.1400e9cd4
mov qword [rdi + 0x10], rsi
lea r15, [rdi + 0x20]
mov qword [rsp + 0x28], r15
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14002bbc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0xea
je 0x14002bb3c
test eax, eax
je 0x14002bbba
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.14001a6d0
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], si
lea rdx, str.Cannot_stop_all_dependent_services
lea rcx, [rsp + 0x50]
call fcn.14001b1c0
lea rcx, [rsp + 0x50]
call fcn.14001a8c0
nop
lea rcx, [rsp + 0x40]
call fcn.1400193a0
mov eax, r14d
jmp 0x14002bdc9
mov ecx, dword [rbp + 0x60]
call fcn.1400ea320
mov qword [rdi + 0x10], rax
mov r8d, dword [rbp + 0x60]
xor edx, edx
mov rcx, rax
call fcn.1400ec650
mov r8, qword [rdi + 0x10]
mov qword [rdi + 0x18], r8
mov qword [rsp + 0x28], r15
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x60]
mov edx, 1
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14002bb99
mov rcx, qword [rdi + 0x10]
call fcn.1400e9cd4
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
mov dword [r15], esi
jmp 0x14002bbba
mov dword [rdi + 0x24], esi
cmp dword [r15], ebx
jbe 0x14002bbba
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.14002b640
inc dword [rdi + 0x24]
mov rbx, qword [rsp + 0x30]
lea r14, [r12 + r13]
nop
test rbx, rbx
je 0x14002bc2c
mov rcx, rbx
call fcn.14002b8b0
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002bbdb
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002bbea
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, 0x28
mov rcx, rbx
call fcn.1400e9cd4
mov eax, dword [rdi + 0x24]
cmp eax, dword [r15]
jb 0x14002bc09
mov rbx, rsi
mov qword [rsp + 0x30], rbx
jmp 0x14002bbc0
lea r8, [rax + rax*2]
add r8, r8
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x30]
mov rcx, qword [rcx + r8*8]
call fcn.14002b640
inc dword [rdi + 0x24]
mov rbx, qword [rsp + 0x30]
jmp 0x14002bbc0
lea r8, [rbp + 0x68]
mov edx, 1
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14002bd13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, [rbp + 0x64]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp + 0x68]
xor edx, edx
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14002bd13
mov ecx, dword [rbp + 0x6c]
dec ecx
test ecx, 0xfffffffd
je 0x14002bd13
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.14001a6d0
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], si
lea rdx, str.ControlService_failed:_0x
lea rcx, [rsp + 0x50]
call fcn.14001b1c0
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0x68]
and eax, 0xfffff9ff
bts eax, 0xb
mov dword [rsp + rcx + 0x68], eax
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14001e540
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0x68]
and eax, 0xfffff3ff
bts eax, 9
mov dword [rsp + rcx + 0x68], eax
lea rcx, [rsp + 0x50]
call fcn.14001a8c0
nop
lea rcx, [rsp + 0x40]
call fcn.1400193a0
mov eax, ebx
jmp 0x14002bdc9
mov rcx, rdi
call fcn.14002c680
test eax, eax
je 0x14002bd64
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.14001a6d0
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], si
lea rdx, str.Cannot_stop_service
lea rcx, [rsp + 0x50]
call fcn.14001b1c0
lea rcx, [rsp + 0x50]
call fcn.14001a8c0
nop
lea rcx, [rsp + 0x40]
call fcn.1400193a0
mov ecx, 0x264
mov eax, dword [rcx + r12]
test al, 1
jne 0x14002bd81
or eax, 1
mov dword [rcx + r12], eax
mov rcx, r14
call fcn.14000fa60
nop
cmp byte [r12 + r13 + 1], 0
je 0x14002bdc7
lea rdx, str.Service_stopped_successfully
lea rbx, [0x1401950c0]
mov rcx, rbx
call fcn.1400104a0
mov rax, qword [0x1401950c0]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140010290
movzx edx, al
mov rcx, rbx
call fcn.140010130
mov rcx, rbx
call fcn.140010060
xor eax, eax
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400e9cb0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret