Function at 0x18000c6d0
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x3b90]
mov eax, 0x3c90
call fcn.18003a910
sub rsp, rax
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rbp + 0x3b80], rax
mov r12, qword [rcx + 8]
mov rsi, qword [rcx]
mov rbx, rcx
cmp rsi, r12
je 0x18000c748
mov rdi, r12
cmp r12, r12
je 0x18000c744
nop dword [rax]
mov r8d, 0x3c1c
mov rdx, rdi
mov rcx, rsi
call fcn.18002fb80
add rdi, 0x3c1c
add rsi, 0x3c1c
cmp rdi, r12
jne 0x18000c720
mov qword [rbx + 8], rsi
xor esi, esi
lea rcx, [rbp + 0x968]
xor edx, edx
mov r8d, 0x504
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x50], esi
mov dword [rbp + 0x3b78], esi
mov qword [rbp + 0xe6c], rsi
call fcn.1800334b0
lea rcx, [rbp + 0x464]
xor edx, edx
mov r8d, 0x504
call fcn.1800334b0
lea rcx, [rbp + 0x968]
xor edx, edx
mov r8d, 0x504
call fcn.1800334b0
lea rcx, [rbp + 0xe74]
xor edx, edx
mov r8d, 0x504
call fcn.1800334b0
lea rcx, [rbp + 0x1378]
xor edx, edx
mov r8d, 0x2800
call fcn.1800334b0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r13, rax
test rax, rax
jne 0x18000c7f5
lea r8d, [rsi + 5]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r13, rax
test rax, rax
je 0x18000ca06
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
xor edx, edx
lea rax, [rsp + 0x50]
lea r9d, [rdx + 3]
lea r8d, [rdx + 0x30]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x54]
mov rcx, r13
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x3cc8], r14
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
mov edi, dword [rsp + 0x54]
add edi, 0x38
mov ecx, edi
mov r12d, edi
call fcn.18002f604
mov r14, rax
test rax, rax
jne 0x18000c860
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x18000c9fe
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.1800334b0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
xor edx, edx
lea rax, [rsp + 0x50]
mov rcx, r13
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x54]
lea r9d, [rdx + 3]
mov qword [rsp + 0x30], rax
lea r8d, [rdx + 0x30]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
test eax, eax
jne 0x18000c8c3
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call fcn.18002f934
xor eax, eax
jmp 0x18000c9fe
cmp dword [rsp + 0x50], esi
jbe 0x18000c9e8
mov qword [rsp + 0x3cd0], r15
lea r12, [r14 + 8]
movabs r15, 0x44247783f59e71cb
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x3c1c
call fcn.1800334b0
mov r11d, dword [r12 + 0x24]
lea rcx, [rsp + 0x60]
mov dword [rbp + 0x3b78], r11d
mov r8, qword [r12]
mov edx, 0x103
call fcn.18003146c
mov r8, qword [r12 - 8]
lea rcx, [rbp + 0x464]
mov edx, 0x103
call fcn.18003146c
mov r11d, dword [r12 + 0xc]
mov r8, qword [rbx + 8]
mov dword [rbp + 0xe6c], r11d
mov eax, dword [r12 + 8]
mov dword [rbp + 0xe70], eax
lea rax, [rsp + 0x60]
cmp rax, r8
jae 0x18000c9a1
mov rax, qword [rbx]
lea rcx, [rsp + 0x60]
cmp rax, rcx
ja 0x18000c9a1
lea rcx, [rsp + 0x60]
sub rcx, rax
mov rax, r15
imul rcx
mov rdi, rdx
sar rdi, 0xc
mov rax, rdi
shr rax, 0x3f
add rdi, rax
cmp r8, qword [rbx + 0x10]
jne 0x18000c989
mov rcx, rbx
call fcn.18000d3f0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18000c9c8
imul rdi, rdi, 0x3c1c
add rdi, qword [rbx]
mov rdx, rdi
jmp 0x18000c9bd
cmp r8, qword [rbx + 0x10]
jne 0x18000c9af
mov rcx, rbx
call fcn.18000d3f0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18000c9c8
lea rdx, [rsp + 0x60]
mov r8d, 0x3c1c
call fcn.18002fb80
add qword [rbx + 8], 0x3c1c
inc esi
add r12, 0x38
cmp esi, dword [rsp + 0x50]
jb 0x18000c8e3
mov r15, qword [rsp + 0x3cd0]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call fcn.18002f934
mov eax, 1
mov r14, qword [rsp + 0x3cc8]
mov rcx, qword [rbp + 0x3b80]
xor rcx, rsp
call fcn.18002f950
mov rbx, qword [rsp + 0x3cd8]
add rsp, 0x3c90
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret