Function at 0x14006e1bc
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x18], rax
mov r15d, r9d
mov dword [rbp - 0x10], eax
mov edi, r8d
mov rsi, rdx
mov qword [rbp - 0x38], rbx
movups xmmword [rbp - 0x28], xmm0
mov r14d, ebx
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x14006e23e
test byte [rcx + 0x1c], 2
je 0x14006e23e
cmp byte [rcx + 0x19], 5
jb 0x14006e23e
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x20]
lea r8, [0x14008b5b0]
call fcn.140001024
lea rax, [rbp - 0x24]
mov rdx, rsi
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x30]
mov dword [rsp + 0x28], 0x2c
call fcn.14006d87c
mov rsi, qword [rbp - 0x38]
test eax, eax
jne 0x14006e4ed
lea r12d, [rax + 1]
cmp dword [rbp - 0x24], r12d
jne 0x14006e2af
mov rcx, qword [0x14009b028]
lea rdx, [0x14009b028]
cmp rcx, rdx
je 0x14006e2a7
test byte [rcx + 0x1c], 2
je 0x14006e2a7
cmp byte [rcx + 0x19], 5
jb 0x14006e2a7
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x21]
lea r8, [0x14008b5b0]
call fcn.140001024
mov ebx, r12d
jmp 0x14006e4fb
test edi, edi
je 0x14006e46b
lea rax, [rbp - 0x38]
mov dword [rbp - 0x38], ebx
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp - 0x40]
mov dword [rbp - 0x40], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
nop dword [rax + rax]
test eax, eax
jne 0x14006e3c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
je 0x14006e34a
mov rcx, qword [0x14009b028]
lea rdx, [0x14009b028]
cmp rcx, rdx
je 0x14006e4fb
test byte [rcx + 0x1c], 2
je 0x14006e4fb
cmp byte [rcx + 0x19], 5
jb 0x14006e4fb
mov edx, 0x22
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008b5b0]
mov r9d, eax
call fcn.140001050
jmp 0x14006e4fb
cmp dword [rbp - 0x40], ebx
je 0x14006e46b
mov ecx, dword [rbp - 0x40]
call fcn.140066e68
mov r14, rax
test rax, rax
jne 0x14006e3c2
mov rax, qword [0x14009b028]
lea rdx, [0x14009b028]
cmp rax, rdx
je 0x14006e4fb
test byte [rax + 0x1c], 2
je 0x14006e4fb
cmp byte [rax + 0x19], 5
jb 0x14006e4fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea edx, [r14 + 0x23]
mov r9d, dword [rbp - 0x40]
lea r8, [0x14008b5b0]
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.1400013ac
jmp 0x14006e4fb
mov r9d, dword [rbp - 0x40]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
mov r8, r14
lea rax, [rbp - 0x40]
mov edx, r12d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
nop dword [rax + rax]
test eax, eax
jne 0x14006e439
mov rax, qword [0x14009b028]
lea rdx, [0x14009b028]
cmp rax, rdx
je 0x14006e4fb
test byte [rax + 0x1c], 2
je 0x14006e4fb
cmp byte [rax + 0x19], 5
jb 0x14006e4fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
mov edx, 0x24
jmp 0x14006e332
mov edi, ebx
cmp dword [rbp - 0x38], ebx
jbe 0x14006e46b
mov eax, edi
or r9d, 0xffffffff
xor r8d, r8d
xor ecx, ecx
lea rdx, [rax + rax*2]
add rdx, rdx
mov rdx, qword [r14 + rdx*8]
call fcn.14006e1bc
test eax, eax
je 0x14006e4fb
add edi, r12d
cmp edi, dword [rbp - 0x38]
jb 0x14006e440
lea r8, [rbp - 0x28]
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
nop dword [rax + rax]
test eax, eax
jne 0x14006e4d1
mov rax, qword [0x14009b028]
lea rdx, [0x14009b028]
cmp rax, rdx
je 0x14006e4fb
test byte [rax + 0x1c], 2
je 0x14006e4fb
cmp byte [rax + 0x19], 2
jb 0x14006e4fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x14008b5b0]
mov r9d, eax
mov edx, 0x25
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x14006e4fb
test r15d, r15d
je 0x14006e2a7
mov r8d, r15d
mov rcx, rsi
call fcn.14006f14c
test eax, eax
je 0x14006e2a7
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rcx, r14
call fcn.140066f24
mov rcx, qword [rbp - 0x30]
mov rdx, rsi
call fcn.14006da4c
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14007e3c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret