Function at 0x180019420
Capabilities:
Enumerate services

Disassembly:
push r15
sub rsp, 0xb0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
test rax, rax
jne 0x18001944b
add rsp, 0xb0
pop r15
ret
mov edx, 0x10000
mov ecx, 0x40
mov qword [rsp + 0x80], r13
mov dword [rsp + 0xd0], 0
mov dword [rsp + 0xc0], 0
mov dword [rsp + 0xc8], 0
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, 0x30
mov rcx, r15
mov r13, rax
lea rax, [rsp + 0xc8]
lea r8d, [rdx - 0x2d]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xc0]
mov r9, r13
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
jne 0x1800194ec
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r13, qword [rsp + 0x80]
xor eax, eax
add rsp, 0xb0
pop r15
ret
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0x98], rsi
mov ecx, 8
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x78], r14
call sub.MSVCR120.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r14, rax
test rax, rax
je 0x180019527
mov rax, qword [sym.imp.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null]
mov qword [r14], rax
jmp 0x18001952a
xor r14d, r14d
mov edx, 0x2000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, 0x2000
mov rbp, rax
call qword [sym.imp.MSVCR120.dll_malloc]
xor esi, esi
mov r12, rax
cmp dword [rsp + 0xc0], esi
jbe 0x18001973f
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0x90], rdi
nop word [rax + rax]
mov ecx, 0x30
call sub.MSVCR120.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
test rax, rax
je 0x1800195b5
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
lea rcx, [rbx + 8]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
lea rcx, [rbx + 0x10]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
lea rcx, [rbx + 0x18]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
lea rcx, [rbx + 0x28]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
jmp 0x1800195b7
xor ebx, ebx
lea rdx, [rsp + 0x40]
mov rcx, r14
mov qword [rsp + 0x40], rbx
call fcn.180017db0
lea rdi, [rsi + rsi*2]
lea rcx, [rsp + 0x48]
shl rdi, 4
or r8d, 0xffffffff
add rdi, r13
mov rdx, qword [rdi]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x50]
or r8d, 0xffffffff
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_]
lea rcx, [rbx + 8]
mov rdx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
cmp dword [rdi + 0x14], 4
jne 0x18001965c
lea rdx, [0x1800aaae8]
lea rcx, [rsp + 0x58]
or r8d, 0xffffffff
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_]
lea rcx, [rbx + 0x18]
mov rdx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x58]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rdx, qword [rdi]
mov r8d, 0x80000000
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
lea r9, [rsp + 0xc8]
mov r8d, 0x2000
mov rcx, rax
mov rdx, rbp
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x180019717
mov eax, dword [rbp + 4]
lea rcx, [rsp + 0x60]
or r8d, 0xffffffff
mov dword [rbx + 0x20], eax
mov rdx, qword [rbp + 0x10]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_]
lea rcx, [rbx + 0x28]
mov rdx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rax, [rsp + 0xd8]
mov r9d, 0x2000
mov r8, r12
mov edx, 1
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
test eax, eax
je 0x180019717
mov rdx, qword [r12]
lea rcx, [rsp + 0x68]
or r8d, 0xffffffff
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_]
lea rcx, [rbx + 0x10]
mov rdx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc esi
cmp esi, dword [rsp + 0xc0]
jb 0x180019570
mov rdi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xa8]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r12
call qword [sym.imp.MSVCR120.dll_free]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r12, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x80]
mov rax, r14
mov r14, qword [rsp + 0x78]
add rsp, 0xb0
pop r15
ret