Function at 0x14001be80
Capabilities:
Enumerate services

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov qword [rsp + 0x30], 0xfffffffffffffffe
call fcn.140069504
mov r15, qword [rax + 8]
xor edx, edx
xor ecx, ecx
mov r8d, 0x800f003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r13, rax
test rax, rax
je 0x14001c0fb
mov r8d, 0xf01ff
lea rdx, str.SPOOLER
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
test rax, rax
je 0x14001c0f2
mov dword [rsp + 0x98], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rsp + 0x90]
mov edx, r9d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14001bf48
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x14001bf48
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14001c0fb
mov edx, dword [rsp + 0x98]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
jne 0x14001bf79
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14001c0fb
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x98]
mov r8, r14
mov edx, 1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14001bfd0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14001c0fb
xor ebp, ebp
cmp dword [rsp + 0xa0], ebp
jbe 0x14001c0e0
mov rsi, r14
mov eax, dword [rsi + 0x14]
cmp eax, 4
je 0x14001bff8
cmp eax, 2
je 0x14001bff8
cmp eax, 5
jne 0x14001c0bf
mov rbx, qword [rsi]
call fcn.1400696cc
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x14001c0d5
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0xa8], rax
test rbx, rbx
je 0x14001c06c
test rbx, 0xffffffffffff0000
jne 0x14001c057
movzx edi, bx
mov ecx, edi
call fcn.1400696b8
test rax, rax
je 0x14001c082
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.140003a40
jmp 0x14001c082
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
jmp 0x14001c06e
xor ecx, ecx
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsp + 0xa8]
call fcn.140003c40
nop
lea rcx, [r15 + 0x678]
lea r8, [rsp + 0xa8]
mov rdx, qword [rcx + 0x10]
call fcn.140068200
nop
mov rdx, qword [rsp + 0xa8]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001c0bf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add ebp, 1
add rsi, 0x30
cmp ebp, dword [rsp + 0xa0]
jb 0x14001bfe2
jmp 0x14001c0e0
mov ecx, 0x80004005
call fcn.140001000
int3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret