Function at 0x1400b2554
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 [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov dword [rbp - 0x3d], r9d
mov dword [rbp - 0x49], edx
mov rsi, rcx
mov qword [rbp - 0x31], rcx
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400b25bf
test byte [rcx + 0x1c], 1
je 0x1400b25bf
cmp byte [rcx + 0x19], 4
jb 0x1400b25bf
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a328]
mov edx, 0x65
call fcn.14001dd24
mov rcx, qword [0x14017d3a8]
xor eax, eax
mov ebx, eax
mov qword [rbp - 0x29], rax
mov edi, eax
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x45], eax
mov dword [rbp - 0x41], eax
test rsi, rsi
jne 0x1400b25f7
lea r8, [0x14000a2a0]
lea rcx, [0x140009f80]
mov edx, 0x80f
call fcn.1400a8be8
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400b2635
test byte [rcx + 0x1c], 1
je 0x1400b2635
cmp byte [rcx + 0x19], 4
jb 0x1400b2635
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a328]
mov edx, DeleteCriticalSection
mov r9, rsi
call fcn.14001ec40
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp dword [rbp - 0x3d], 0xa
jb 0x1400b2675
cmp rcx, rax
je 0x1400b266b
test byte [rcx + 0x1c], 1
je 0x1400b266b
cmp byte [rcx + 0x19], 2
jb 0x1400b266b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a328]
mov edx, DeleteCriticalSection
mov r9, rsi
call fcn.14001ec40
mov rcx, qword [0x14017d3a8]
mov ebx, 0x8000ffff
jmp 0x1400b2c2b
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp - 0x29], rax
test rax, rax
jne 0x1400b26d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rsi, [0x14017d3a8]
cmp rcx, rsi
je 0x1400b2c60
test byte [rcx + 0x1c], 1
je 0x1400b2c32
cmp byte [rcx + 0x19], 2
jb 0x1400b2c32
mov edx, DeleteCriticalSection
jmp 0x1400b295d
mov r8d, 0x2c
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov qword [rbp - 0x39], rax
test rax, rax
jne 0x1400b2751
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400b2c60
test byte [rcx + 0x1c], 1
je 0x1400b2c2b
cmp byte [rcx + 0x19], 2
jb 0x1400b2c2b
lea edx, [rdi + 0x69]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a328]
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
jmp 0x1400b2c24
lea rdx, [rbp + 0x1f]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1400b277b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400b2c24
cmp dword [rbp + 0x23], 1
jne 0x1400b27c6
mov rcx, qword [0x14017d3a8]
lea rbx, [0x14017d3a8]
cmp rcx, rbx
je 0x1400b27bf
test byte [rcx + 0x1c], 1
je 0x1400b27bf
cmp byte [rcx + 0x19], 4
jb 0x1400b27bf
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a328]
mov edx, reloc.KERNEL32.dll_DeleteCriticalSection
mov r9, rsi
call fcn.14001ec40
mov rcx, qword [0x14017d3a8]
xor ebx, ebx
jmp 0x1400b2c2b
cmp dword [rbp + 0x23], 3
jne 0x1400b287d
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400b280e
test byte [rcx + 0x1c], 1
je 0x1400b280e
cmp byte [rcx + 0x19], 4
jb 0x1400b280e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a328]
mov edx, 0x6b
mov r9, rsi
call fcn.14001ec40
mov rcx, qword [0x14017d3a8]
cmp dword [rbp - 0x49], ebx
je 0x1400b2c2b
lea rcx, [rbp - 0x39]
mov edx, 0xea60
call fcn.1400b22ec
mov ebx, eax
test eax, eax
jns 0x1400b2c20
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
cmp rcx, rdi
je 0x1400b2874
test byte [rcx + 0x1c], 1
je 0x1400b286b
cmp byte [rcx + 0x19], 2
jb 0x1400b286b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a328]
mov edx, EnterCriticalSection
mov r9d, eax
call fcn.14001de24
jmp 0x1400b2c20
mov rdi, qword [rbp - 0x39]
jmp 0x1400b2c2b
mov rdi, qword [rbp - 0x39]
jmp 0x1400b2c60
lea r8, [rbp + 0x1f]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400b2c03
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41b
jne 0x1400b2cea
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400b28df
test byte [rcx + 0x1c], 1
je 0x1400b28df
cmp byte [rcx + 0x19], 4
jb 0x1400b28df
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a328]
mov edx, EnterCriticalSection
mov r9, rsi
call fcn.14001ec40
lea rax, [rbp - 0x41]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x45]
lea edx, [r9 + 1]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x1400b2912
mov ebx, 0x8000ffff
jmp 0x1400b2c24
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x1400b2975
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rsi, [0x14017d3a8]
cmp rcx, rsi
je 0x1400b2c60
test byte [rcx + 0x1c], 1
je 0x1400b2c32
cmp byte [rcx + 0x19], 2
jb 0x1400b2c32
mov edx, EnterCriticalSection
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a328]
mov r9d, ebx
call fcn.14001de24
jmp 0x1400b2b34
mov ebx, dword [rbp - 0x45]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
mov qword [rbp - 0x19], rax
test rax, rax
jne 0x1400b29a5
mov ebx, 0x8007000e
jmp 0x1400b2c24
mov r9d, dword [rbp - 0x45]
lea rax, [rbp - 0x41]
mov r8, rbx
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x45]
mov edx, 1
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x1400b2a19
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400b2c60
test byte [rcx + 0x1c], 1
je 0x1400b2c2b
cmp byte [rcx + 0x19], 2
jb 0x1400b2c2b
mov edx, EnterCriticalSection
jmp 0x1400b2735
xor esi, esi
cmp dword [rbp - 0x41], esi
jbe 0x1400b2b40
mov rax, rbx
mov qword [rbp - 0x21], rbx
mov rbx, qword [0x14017d3a8]
lea rcx, [rbp - 0x11]
mov rdx, rax
mov r8d, 0x30
call sub.msvcrt.dll_memcpy
lea rax, [0x14017d3a8]
cmp rbx, rax
je 0x1400b2a75
test byte [rbx + 0x1c], 1
je 0x1400b2a75
cmp byte [rbx + 0x19], 4
jb 0x1400b2a75
mov r9, qword [rbp - 0x11]
mov rcx, qword [rbx + 0x10]
lea r8, [0x14000a328]
mov edx, reloc.KERNEL32.dll_EnterCriticalSection
call fcn.14001ec40
mov r9d, dword [rbp - 0x3d]
mov edx, dword [rbp - 0x49]
mov rcx, qword [rbp - 0x11]
inc r9d
mov r8d, 0xea60
call fcn.1400b2554
mov ebx, eax
test eax, eax
js 0x1400b2aec
mov rbx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rbx, rax
je 0x1400b2ad3
test byte [rbx + 0x1c], 1
je 0x1400b2ad3
cmp byte [rbx + 0x19], 4
jb 0x1400b2ad3
mov r9, qword [rbp - 0x11]
mov rcx, qword [rbx + 0x10]
lea r8, [0x14000a328]
mov edx, reloc.KERNEL32.dll_LeaveCriticalSection
call fcn.14001ec40
mov rbx, qword [0x14017d3a8]
mov rax, qword [rbp - 0x21]
inc esi
add rax, 0x30
mov qword [rbp - 0x21], rax
cmp esi, dword [rbp - 0x41]
jb 0x1400b2a32
jmp 0x1400b2b47
mov rcx, qword [0x14017d3a8]
lea rsi, [0x14017d3a8]
cmp rcx, rsi
je 0x1400b2c60
test byte [rcx + 0x1c], 1
je 0x1400b2c32
cmp byte [rcx + 0x19], 2
jb 0x1400b2c32
mov r9, qword [rbp - 0x11]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a328]
mov edx, LeaveCriticalSection
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
jmp 0x1400b2c32
mov rbx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rbx, rax
je 0x1400b2b7d
test byte [rbx + 0x1c], 1
je 0x1400b2b7d
cmp byte [rbx + 0x19], 4
mov rsi, qword [rbp - 0x31]
jb 0x1400b2b81
mov rcx, qword [rbx + 0x10]
lea r8, [0x14000a328]
mov edx, 0x73
mov r9, rsi
call fcn.14001ec40
jmp 0x1400b2b81
mov rsi, qword [rbp - 0x31]
mov r9d, dword [rbp - 0x3d]
mov edx, dword [rbp - 0x49]
mov r8d, 0xea60
inc r9d
mov rcx, rsi
call fcn.1400b2554
mov ebx, eax
test eax, eax
jns 0x1400b2bcc
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400b2c60
test byte [rcx + 0x1c], 1
je 0x1400b2c2b
cmp byte [rcx + 0x19], 2
jb 0x1400b2c2b
mov edx, 0x74
jmp 0x1400b2735
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400b2c0a
test byte [rcx + 0x1c], 1
je 0x1400b2c0a
cmp byte [rcx + 0x19], 4
jb 0x1400b2c0a
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a328]
mov edx, 0x75
mov r9, rsi
call fcn.14001ec40
mov rcx, qword [0x14017d3a8]
cmp dword [rbp - 0x49], 0
je 0x1400b2c2b
lea rcx, [rbp - 0x39]
mov edx, 0xea60
call fcn.1400b22ec
mov ebx, eax
mov rdi, qword [rbp - 0x39]
mov rcx, qword [0x14017d3a8]
lea rsi, [0x14017d3a8]
cmp rcx, rsi
je 0x1400b2c60
test byte [rcx + 0x1c], 1
je 0x1400b2c60
cmp byte [rcx + 0x19], 4
jb 0x1400b2c60
mov r9, qword [rbp - 0x31]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a328]
mov edx, InitializeCriticalSection
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp - 0x19]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x1400b2c83
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rax, qword [rbp - 0x29]
test rax, rax
je 0x1400b2c95
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400b2cc9
test byte [rcx + 0x1c], 1
je 0x1400b2cc9
cmp byte [rcx + 0x19], 4
jb 0x1400b2cc9
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a328]
mov edx, InitializeCriticalSection
call fcn.14001dd24
mov eax, ebx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140168920
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 [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400b2c60
test byte [rcx + 0x1c], 1
je 0x1400b2c2b
cmp byte [rcx + 0x19], 2
jb 0x1400b2c2b
mov edx, InitializeCriticalSection
jmp 0x1400b2735