Function at 0x14008b5dc
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov dword [rbp - 0x3d], r9d
mov rdi, rcx
mov dword [rbp - 0x41], edx
mov qword [rbp - 0x31], rcx
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14008b647
test byte [rcx + 0x1c], 1
je 0x14008b647
cmp byte [rcx + 0x19], 4
jb 0x14008b647
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x65
call fcn.1400049d8
mov rcx, qword [0x14016f048]
xor eax, eax
mov qword [rbp - 0x19], rax
mov ebx, eax
mov qword [rbp - 0x21], rax
mov esi, eax
mov dword [rbp - 0x49], eax
mov dword [rbp - 0x45], eax
test rdi, rdi
jne 0x14008b67f
lea r8, str.wszServiceName
mov edx, 0x80f
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140082070
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14008b6bd
test byte [rcx + 0x1c], 1
je 0x14008b6bd
cmp byte [rcx + 0x19], 4
jb 0x14008b6bd
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x66
mov r9, rdi
call fcn.1400058d8
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp dword [rbp - 0x3d], 0xa
jb 0x14008b6fd
cmp rcx, rax
je 0x14008b6f3
test byte [rcx + 0x1c], 1
je 0x14008b6f3
cmp byte [rcx + 0x19], 2
jb 0x14008b6f3
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x67
mov r9, rdi
call fcn.1400058d8
mov rcx, qword [0x14016f048]
mov ebx, 0x8000ffff
jmp 0x14008bca8
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp - 0x19], rax
test rax, rax
jne 0x14008b777
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
lea rdi, [0x14016f048]
cmp rcx, rdi
je 0x14008bcdd
test byte [rcx + 0x1c], 1
je 0x14008bcaf
cmp byte [rcx + 0x19], 2
jb 0x14008bcaf
mov edx, 0x68
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov r9d, ebx
call fcn.1400049f8
mov rcx, qword [0x14016f048]
jmp 0x14008bcaf
mov r8d, 0x2c
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp - 0x39], rax
mov rsi, rax
test rax, rax
jne 0x14008b7f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14008bcdd
test byte [rcx + 0x1c], 1
je 0x14008bca8
cmp byte [rcx + 0x19], 2
jb 0x14008bca8
lea edx, [rsi + 0x69]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov r9, rdi
mov dword [rsp + 0x20], ebx
call fcn.140005938
jmp 0x14008bca1
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14008b81d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008bca1
cmp dword [rbp + 0x23], 1
jne 0x14008b868
mov rcx, qword [0x14016f048]
lea rbx, [0x14016f048]
cmp rcx, rbx
je 0x14008b861
test byte [rcx + 0x1c], 1
je 0x14008b861
cmp byte [rcx + 0x19], 4
jb 0x14008b861
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x6a
mov r9, rdi
call fcn.1400058d8
mov rcx, qword [0x14016f048]
xor ebx, ebx
jmp 0x14008bca8
cmp dword [rbp + 0x23], 3
jne 0x14008b920
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14008b8b0
test byte [rcx + 0x1c], 1
je 0x14008b8b0
cmp byte [rcx + 0x19], 4
jb 0x14008b8b0
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x6b
mov r9, rdi
call fcn.1400058d8
mov rcx, qword [0x14016f048]
cmp dword [rbp - 0x41], ebx
je 0x14008bca8
mov r8d, 0xea60
lea rcx, [rbp - 0x39]
call fcn.14008b384
mov ebx, eax
test eax, eax
jns 0x14008bc9d
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
cmp rcx, rsi
je 0x14008b917
test byte [rcx + 0x1c], 1
je 0x14008b90e
cmp byte [rcx + 0x19], 2
jb 0x14008b90e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x6c
mov r9d, eax
call fcn.1400049f8
jmp 0x14008bc9d
mov rsi, qword [rbp - 0x39]
jmp 0x14008bca8
mov rsi, qword [rbp - 0x39]
jmp 0x14008bcdd
lea r8, [rbp + 0x1f]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14008bc7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41b
jne 0x14008bd67
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14008b982
test byte [rcx + 0x1c], 1
je 0x14008b982
cmp byte [rcx + 0x19], 4
jb 0x14008b982
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x6d
mov r9, rdi
call fcn.1400058d8
xor r9d, r9d
lea rax, [rbp - 0x45]
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp - 0x49]
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x14008b9b5
mov ebx, 0x8000ffff
jmp 0x14008bca1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x14008ba05
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
lea rdi, [0x14016f048]
cmp rcx, rdi
je 0x14008bcdd
test byte [rcx + 0x1c], 1
je 0x14008bcaf
cmp byte [rcx + 0x19], 2
jb 0x14008bcaf
mov edx, 0x6e
jmp 0x14008b758
mov ebx, dword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp - 0x21], rax
test rax, rax
jne 0x14008ba32
mov ebx, 0x8007000e
jmp 0x14008bca1
mov r9d, dword [rbp - 0x49]
lea rcx, [rbp - 0x45]
mov qword [rsp + 0x28], rcx
mov r8, rax
lea rcx, [rbp - 0x49]
mov edx, 1
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14008baa6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14008bcdd
test byte [rcx + 0x1c], 1
je 0x14008bca8
cmp byte [rcx + 0x19], 2
jb 0x14008bca8
mov edx, 0x6f
jmp 0x14008b7d7
mov r10, qword [0x14016f048]
xor edi, edi
cmp dword [rbp - 0x45], edi
jbe 0x14008bb74
mov ebx, dword [rbp - 0x3d]
inc ebx
mov dword [rbp - 0x29], ebx
mov rax, qword [rbp - 0x21]
lea rcx, [rdi + rdi*2]
add rcx, rcx
movups xmm0, xmmword [rax + rcx*8]
movups xmmword [rbp - 0x11], xmm0
lea rax, [0x14016f048]
cmp r10, rax
je 0x14008bb06
test byte [r10 + 0x1c], 1
je 0x14008bb06
cmp byte [r10 + 0x19], 4
jb 0x14008bb06
mov r9, qword [rbp - 0x11]
lea r8, [0x14014c448]
mov rcx, qword [r10 + 0x10]
mov edx, 0x70
call fcn.1400058d8
mov edx, dword [rbp - 0x41]
mov r9d, ebx
mov rcx, qword [rbp - 0x11]
mov r8d, 0xea60
call fcn.14008b5dc
mov ebx, eax
test eax, eax
js 0x14008bbac
mov r10, qword [0x14016f048]
lea rax, [0x14016f048]
cmp r10, rax
je 0x14008bb66
test byte [r10 + 0x1c], 1
je 0x14008bb66
cmp byte [r10 + 0x19], 4
jb 0x14008bb66
mov r9, qword [rbp - 0x11]
lea r8, [0x14014c448]
mov rcx, qword [r10 + 0x10]
mov edx, 0x72
call fcn.1400058d8
mov r10, qword [0x14016f048]
mov ebx, dword [rbp - 0x29]
inc edi
cmp edi, dword [rbp - 0x45]
jb 0x14008bac0
lea rax, [0x14016f048]
cmp r10, rax
je 0x14008bbf9
test byte [r10 + 0x1c], 1
je 0x14008bbf9
cmp byte [r10 + 0x19], 4
mov rdi, qword [rbp - 0x31]
jb 0x14008bbfd
mov rcx, qword [r10 + 0x10]
lea r8, [0x14014c448]
mov edx, 0x73
mov r9, rdi
call fcn.1400058d8
jmp 0x14008bbfd
mov rcx, qword [0x14016f048]
lea rdi, [0x14016f048]
cmp rcx, rdi
je 0x14008bcdd
test byte [rcx + 0x1c], 1
je 0x14008bcaf
cmp byte [rcx + 0x19], 2
jb 0x14008bcaf
mov r9, qword [rbp - 0x11]
lea r8, [0x14014c448]
mov rcx, qword [rcx + 0x10]
mov edx, 0x71
mov dword [rsp + 0x20], eax
call fcn.140005938
jmp 0x14008b76b
mov rdi, qword [rbp - 0x31]
mov r9d, dword [rbp - 0x3d]
mov r8d, 0xea60
mov edx, dword [rbp - 0x41]
inc r9d
mov rcx, rdi
call fcn.14008b5dc
mov ebx, eax
test eax, eax
jns 0x14008bc48
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14008bcdd
test byte [rcx + 0x1c], 1
je 0x14008bca8
cmp byte [rcx + 0x19], 2
jb 0x14008bca8
mov edx, 0x74
jmp 0x14008b7d7
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14008bc86
test byte [rcx + 0x1c], 1
je 0x14008bc86
cmp byte [rcx + 0x19], 4
jb 0x14008bc86
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x75
mov r9, rdi
call fcn.1400058d8
mov rcx, qword [0x14016f048]
cmp dword [rbp - 0x41], 0
je 0x14008bca8
mov r8d, 0xea60
lea rcx, [rbp - 0x39]
call fcn.14008b384
mov ebx, eax
mov rsi, qword [rbp - 0x39]
mov rcx, qword [0x14016f048]
lea rdi, [0x14016f048]
cmp rcx, rdi
je 0x14008bcdd
test byte [rcx + 0x1c], 1
je 0x14008bcdd
cmp byte [rcx + 0x19], 4
jb 0x14008bcdd
mov r9, qword [rbp - 0x31]
lea r8, [0x14014c448]
mov rcx, qword [rcx + 0x10]
mov edx, 0x77
mov dword [rsp + 0x20], ebx
call fcn.140005938
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp - 0x21]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
je 0x14008bd00
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rax, qword [rbp - 0x19]
test rax, rax
je 0x14008bd12
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14008bd46
test byte [rcx + 0x1c], 1
je 0x14008bd46
cmp byte [rcx + 0x19], 4
jb 0x14008bd46
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x78
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14013e290
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14008bcdd
test byte [rcx + 0x1c], 1
je 0x14008bca8
cmp byte [rcx + 0x19], 2
jb 0x14008bca8
mov edx, 0x76
jmp 0x14008b7d7