Function at 0x14008d8b0
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 [0x140172608]
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 [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008d91b
test byte [rcx + 0x1c], 1
je 0x14008d91b
cmp byte [rcx + 0x19], 4
jb 0x14008d91b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x65
call fcn.140004b74
mov rcx, qword [0x1401720a0]
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 0x14008d953
lea r8, str.wszServiceName
mov edx, 0x80f
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008410c
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008d991
test byte [rcx + 0x1c], 1
je 0x14008d991
cmp byte [rcx + 0x19], 4
jb 0x14008d991
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x66
mov r9, rdi
call fcn.140005afc
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp dword [rbp - 0x3d], 0xa
jb 0x14008d9d1
cmp rcx, rax
je 0x14008d9c7
test byte [rcx + 0x1c], 1
je 0x14008d9c7
cmp byte [rcx + 0x19], 2
jb 0x14008d9c7
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x67
mov r9, rdi
call fcn.140005afc
mov rcx, qword [0x1401720a0]
mov ebx, 0x8000ffff
jmp 0x14008df7c
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 0x14008da4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401720a0]
lea rdi, [0x1401720a0]
cmp rcx, rdi
je 0x14008dfb1
test byte [rcx + 0x1c], 1
je 0x14008df83
cmp byte [rcx + 0x19], 2
jb 0x14008df83
mov edx, 0x68
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov r9d, ebx
call fcn.140004b98
mov rcx, qword [0x1401720a0]
jmp 0x14008df83
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 0x14008dac7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008dfb1
test byte [rcx + 0x1c], 1
je 0x14008df7c
cmp byte [rcx + 0x19], 2
jb 0x14008df7c
lea edx, [rsi + 0x69]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov r9, rdi
mov dword [rsp + 0x20], ebx
call fcn.140005b60
jmp 0x14008df75
lea rdx, [rbp + 0x1f]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14008daf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008df75
cmp dword [rbp + 0x23], 1
jne 0x14008db3c
mov rcx, qword [0x1401720a0]
lea rbx, [0x1401720a0]
cmp rcx, rbx
je 0x14008db35
test byte [rcx + 0x1c], 1
je 0x14008db35
cmp byte [rcx + 0x19], 4
jb 0x14008db35
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x6a
mov r9, rdi
call fcn.140005afc
mov rcx, qword [0x1401720a0]
xor ebx, ebx
jmp 0x14008df7c
cmp dword [rbp + 0x23], 3
jne 0x14008dbf4
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008db84
test byte [rcx + 0x1c], 1
je 0x14008db84
cmp byte [rcx + 0x19], 4
jb 0x14008db84
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x6b
mov r9, rdi
call fcn.140005afc
mov rcx, qword [0x1401720a0]
cmp dword [rbp - 0x41], ebx
je 0x14008df7c
mov r8d, 0xea60
lea rcx, [rbp - 0x39]
call fcn.14008d650
mov ebx, eax
test eax, eax
jns 0x14008df71
mov rcx, qword [0x1401720a0]
lea rsi, [0x1401720a0]
cmp rcx, rsi
je 0x14008dbeb
test byte [rcx + 0x1c], 1
je 0x14008dbe2
cmp byte [rcx + 0x19], 2
jb 0x14008dbe2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x6c
mov r9d, eax
call fcn.140004b98
jmp 0x14008df71
mov rsi, qword [rbp - 0x39]
jmp 0x14008df7c
mov rsi, qword [rbp - 0x39]
jmp 0x14008dfb1
lea r8, [rbp + 0x1f]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14008df53
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41b
jne 0x14008e03b
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008dc56
test byte [rcx + 0x1c], 1
je 0x14008dc56
cmp byte [rcx + 0x19], 4
jb 0x14008dc56
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x6d
mov r9, rdi
call fcn.140005afc
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 0x14008dc89
mov ebx, 0x8000ffff
jmp 0x14008df75
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x14008dcd9
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401720a0]
lea rdi, [0x1401720a0]
cmp rcx, rdi
je 0x14008dfb1
test byte [rcx + 0x1c], 1
je 0x14008df83
cmp byte [rcx + 0x19], 2
jb 0x14008df83
mov edx, 0x6e
jmp 0x14008da2c
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 0x14008dd06
mov ebx, 0x8007000e
jmp 0x14008df75
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 0x14008dd7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008dfb1
test byte [rcx + 0x1c], 1
je 0x14008df7c
cmp byte [rcx + 0x19], 2
jb 0x14008df7c
mov edx, 0x6f
jmp 0x14008daab
mov r10, qword [0x1401720a0]
xor edi, edi
cmp dword [rbp - 0x45], edi
jbe 0x14008de48
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, [0x1401720a0]
cmp r10, rax
je 0x14008ddda
test byte [r10 + 0x1c], 1
je 0x14008ddda
cmp byte [r10 + 0x19], 4
jb 0x14008ddda
mov r9, qword [rbp - 0x11]
lea r8, [0x140150128]
mov rcx, qword [r10 + 0x10]
mov edx, 0x70
call fcn.140005afc
mov edx, dword [rbp - 0x41]
mov r9d, ebx
mov rcx, qword [rbp - 0x11]
mov r8d, 0xea60
call fcn.14008d8b0
mov ebx, eax
test eax, eax
js 0x14008de80
mov r10, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp r10, rax
je 0x14008de3a
test byte [r10 + 0x1c], 1
je 0x14008de3a
cmp byte [r10 + 0x19], 4
jb 0x14008de3a
mov r9, qword [rbp - 0x11]
lea r8, [0x140150128]
mov rcx, qword [r10 + 0x10]
mov edx, 0x72
call fcn.140005afc
mov r10, qword [0x1401720a0]
mov ebx, dword [rbp - 0x29]
inc edi
cmp edi, dword [rbp - 0x45]
jb 0x14008dd94
lea rax, [0x1401720a0]
cmp r10, rax
je 0x14008decd
test byte [r10 + 0x1c], 1
je 0x14008decd
cmp byte [r10 + 0x19], 4
mov rdi, qword [rbp - 0x31]
jb 0x14008ded1
mov rcx, qword [r10 + 0x10]
lea r8, [0x140150128]
mov edx, 0x73
mov r9, rdi
call fcn.140005afc
jmp 0x14008ded1
mov rcx, qword [0x1401720a0]
lea rdi, [0x1401720a0]
cmp rcx, rdi
je 0x14008dfb1
test byte [rcx + 0x1c], 1
je 0x14008df83
cmp byte [rcx + 0x19], 2
jb 0x14008df83
mov r9, qword [rbp - 0x11]
lea r8, [0x140150128]
mov rcx, qword [rcx + 0x10]
mov edx, 0x71
mov dword [rsp + 0x20], eax
call fcn.140005b60
jmp 0x14008da3f
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.14008d8b0
mov ebx, eax
test eax, eax
jns 0x14008df1c
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008dfb1
test byte [rcx + 0x1c], 1
je 0x14008df7c
cmp byte [rcx + 0x19], 2
jb 0x14008df7c
mov edx, 0x74
jmp 0x14008daab
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008df5a
test byte [rcx + 0x1c], 1
je 0x14008df5a
cmp byte [rcx + 0x19], 4
jb 0x14008df5a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x75
mov r9, rdi
call fcn.140005afc
mov rcx, qword [0x1401720a0]
cmp dword [rbp - 0x41], 0
je 0x14008df7c
mov r8d, 0xea60
lea rcx, [rbp - 0x39]
call fcn.14008d650
mov ebx, eax
mov rsi, qword [rbp - 0x39]
mov rcx, qword [0x1401720a0]
lea rdi, [0x1401720a0]
cmp rcx, rdi
je 0x14008dfb1
test byte [rcx + 0x1c], 1
je 0x14008dfb1
cmp byte [rcx + 0x19], 4
jb 0x14008dfb1
mov r9, qword [rbp - 0x31]
lea r8, [0x140150128]
mov rcx, qword [rcx + 0x10]
mov edx, 0x77
mov dword [rsp + 0x20], ebx
call fcn.140005b60
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 0x14008dfd4
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rax, qword [rbp - 0x19]
test rax, rax
je 0x14008dfe6
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008e01a
test byte [rcx + 0x1c], 1
je 0x14008e01a
cmp byte [rcx + 0x19], 4
jb 0x14008e01a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x78
call fcn.140004b74
mov eax, ebx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140141cf0
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 [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008dfb1
test byte [rcx + 0x1c], 1
je 0x14008df7c
cmp byte [rcx + 0x19], 2
jb 0x14008df7c
mov edx, 0x76
jmp 0x14008daab