Function at 0x18001db40
Capabilities:
Enumerate services

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
xor r12d, r12d
mov dword [rbp - 0x80], r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov r15d, r12d
mov qword [rbp - 0x68], r12
xor edx, edx
xor ecx, ecx
lea r8d, [r12 + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
jne 0x18001dba7
mov qword [rsi], r12
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], r12
jmp 0x18001dfb7
mov dword [rbp + 0x78], r12d
mov dword [rbp + 0x80], r12d
mov dword [rbp + 0x88], r12d
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x58], rdx
mov rcx, r12
mov qword [rsp + 0x50], rcx
mov byte [rsp + 0x40], cl
nop
mov ebx, dword [rbp + 0x78]
cmp rbx, rcx
ja 0x18001dbf5
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x40]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x40]
mov byte [rax + rbx], 0
jmp 0x18001dcac
sub rbx, rcx
mov rax, rcx
not rax
cmp rax, rbx
jbe 0x18001dfaa
lea rdi, [rcx + rbx]
test rbx, rbx
je 0x18001dcb1
cmp rdi, 0xfffffffffffffffe
ja 0x18001dd35
cmp rdx, rdi
jae 0x18001dc35
mov r8, rcx
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.180003610
jmp 0x18001dc51
test rdi, rdi
jne 0x18001dc60
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x40]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x40]
mov byte [rax], dil
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
test rdi, rdi
je 0x18001dcb1
lea rax, [rsp + 0x40]
cmp rbx, 1
jne 0x18001dc7b
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x40]
mov byte [rcx + rax], 0
jmp 0x18001dc92
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x40]
add rcx, rax
mov r8, rbx
xor edx, edx
call fcn.180061460
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rax, qword [rsp + 0x40]
mov byte [rdi + rax], 0
mov rdx, qword [rsp + 0x58]
lea r9, [rsp + 0x40]
cmp rdx, 0x10
cmovae r9, qword [rsp + 0x40]
lea rax, [rbp + 0x88]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x78]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
mov edx, 0x3b
lea r8d, [rdx - 0x3a]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x18001ddae
cmp eax, 0xea
jne 0x18001dd21
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
jmp 0x18001dbd0
cmp eax, 0x7a
jne 0x18001dd42
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
jmp 0x18001dbd0
lea rcx, [0x1800a65e0]
call fcn.180024e5c
int3
mov qword [rsi], r12
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], r12
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x18001dfb7
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x18001dda4
test cl, 0x1f
je 0x18001dd77
call fcn.180063584
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18001dd86
call fcn.180063584
int3
sub rcx, rax
cmp rcx, 8
jae 0x18001dd95
call fcn.180063584
int3
cmp rcx, 0x27
jbe 0x18001dda1
call fcn.180063584
int3
mov rcx, rax
call fcn.18005c288
jmp 0x18001dfb7
lea rbx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rbx, qword [rsp + 0x40]
mov r14d, r12d
cmp dword [rbp + 0x80], r12d
jle 0x18001df8b
add rbx, 0x10
nop dword [rax]
nop word [rax + rax]
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x50], r12
mov byte [rbp - 0x60], 0
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x30], r12
mov byte [rbp - 0x40], 0
mov rdx, qword [rbx - 0x10]
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
cmp word [rdx], 0
jne 0x18001de23
mov r8, r12
jmp 0x18001de3b
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x18001de30
lea rcx, [rsp + 0x60]
call fcn.180002680
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 8]
call fcn.18001bd30
mov rdi, rax
lea rax, [rbp - 0x60]
cmp rax, rdi
je 0x18001de97
mov r8, qword [rbp - 0x48]
cmp r8, 0x10
jb 0x18001de7a
inc r8
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.180003810
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x50], r12
mov byte [rbp - 0x60], 0
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.180003010
nop
lea rcx, [rbp + 8]
call fcn.180003310
nop
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x18001debe
inc r8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.180002ed0
mov rdx, qword [rbx - 8]
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
cmp word [rdx], 0
jne 0x18001dee1
mov r8, r12
jmp 0x18001def0
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x18001dee5
lea rcx, [rsp + 0x60]
call fcn.180002680
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 8]
call fcn.18001bd30
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.180002050
lea rcx, [rbp + 8]
call fcn.180003310
nop
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x18001df3c
inc r8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.180002ed0
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x20], xmm0
movsd xmm1, qword [rbx + 0x10]
movsd qword [rbp - 0x10], xmm1
mov eax, dword [rbx + 0x18]
mov dword [rbp - 8], eax
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x78]
call fcn.18001dfd0
nop
lea rcx, [rbp - 0x40]
call fcn.180003310
lea rcx, [rbp - 0x60]
call fcn.180003310
inc r14d
add rbx, 0x30
cmp r14d, dword [rbp + 0x80]
jl 0x18001dde0
mov r15, qword [rbp - 0x68]
mov rax, qword [rbp - 0x78]
mov qword [rsi], rax
mov rax, qword [rbp - 0x70]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], r15
lea rcx, [rsp + 0x40]
call fcn.180003310
jmp 0x18001dfb7
lea rcx, [0x1800a65e0]
call fcn.180024e5c
nop
mov rax, rsi
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret