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

Disassembly:
test rdx, rdx
je 0x140092942
mov qword [rsp + 8], rcx
push rbp
push rbx
push r14
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
xor ebx, ebx
mov qword [rsp + 0x290], r13
mov r14, rdx
mov dword [rbp + 0x1d0], ebx
xor edx, edx
mov dword [rbp + 0x1d8], ebx
xor ecx, ecx
mov dword [rbp + 0x1e0], ebx
lea r8d, [rbx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp + 0x1e8], rax
mov r13, rax
test rax, rax
je 0x14009292f
lea rax, [rbp + 0x1e0]
xor r9d, r9d
mov qword [rsp + 0x38], rax
lea edx, [rbx + 0x30]
lea rax, [rbp + 0x1d8]
mov rcx, r13
mov qword [rsp + 0x30], rax
lea r8d, [rbx + 3]
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
jne 0x140092681
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140092926
mov ecx, dword [rbp + 0x1d0]
mov qword [rsp + 0x2a8], rsi
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x2a0], rdi
movabs rdi, 0xaaaaaaaaaaaaaaab
mov rax, rdi
mov qword [rsp + 0x298], r12
mul rcx
mov eax, 0x30
shr rdx, 5
inc rdx
mul rdx
lea rdx, [0x1401ae572]
cmovo rax, rsi
mov rcx, rax
call fcn.14002ec60
mov r12, rax
test rax, rax
je 0x14009290e
mov ecx, dword [rbp + 0x1d0]
lea r8d, [rsi + 4]
mov rax, rdi
mov r9, r12
mul rcx
xor eax, eax
mov rdi, r12
shr rdx, 5
inc rdx
lea rcx, [rdx + rdx*2]
shl rcx, 4
lea edx, [rsi + 0x31]
shr rcx, 2
rep stosd dword [rdi], eax
lea rax, [rbp + 0x1e0]
mov rcx, r13
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x1d8]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x1d0]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
je 0x140092906
mov qword [rsp + 0x288], r15
mov r15d, ebx
cmp dword [rbp + 0x1d8], ebx
jbe 0x1400928fe
lea r13, [0x1401b7690]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x68], rax
mov eax, r15d
mov dword [rsp + 0x74], 0x104
mov word [rsp + 0x78], bx
mov qword [rsp + 0x60], r13
lea rdi, [rax + rax*2]
add rdi, rdi
mov rdx, qword [r12 + rdi*8]
test rdx, rdx
je 0x1400928e7
lea r8, [rsp + 0x60]
call fcn.1400922b0
test al, al
je 0x1400928e7
mov rax, rsi
nop dword [rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x1400927c0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400927e2
mov r8d, eax
mov rdx, r14
call fcn.140040714
jmp 0x1400927ec
cmp dword [rsp + 0x70], 1
mov eax, ebx
setae al
test eax, eax
jne 0x1400928e7
cmp dword [r12 + rdi*8 + 0x14], 1
je 0x1400928e7
mov rdi, qword [r12 + rdi*8]
test rdi, rdi
je 0x1400928e7
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x1400928e0
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x1400928d5
xor edi, edi
nop dword [rax]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400928cc
mov eax, dword [rsp + 0x44]
cmp eax, 1
je 0x1400928cc
cmp eax, 4
je 0x140092889
cmp eax, 7
je 0x140092889
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3c
jb 0x140092850
jmp 0x1400928cc
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp edi, 0x3c
jae 0x1400928cc
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400928cc
cmp dword [rsp + 0x44], 1
je 0x1400928cc
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3c
jb 0x1400928a1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
mov rsi, 0xffffffffffffffff
inc r15d
cmp r15d, dword [rbp + 0x1d8]
jb 0x140092771
mov r13, qword [rbp + 0x1e8]
mov r15, qword [rsp + 0x288]
mov rcx, r12
call fcn.14002ec58
mov r12, qword [rsp + 0x298]
mov rdi, qword [rsp + 0x2a0]
mov rsi, qword [rsp + 0x2a8]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r13, qword [rsp + 0x290]
add rsp, 0x2b0
pop r14
pop rbx
pop rbp
ret