Function at 0x1400b67b0
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x140138010]
xor rax, rsp
mov qword [rbp + 0x138], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x1400b68b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
lea r12, str.D:_a_pia_desktop_pia_desktop_daemon_src_win_win_dnscachecontrol.cpp
mov qword [rsp + 0x58], r12
lea rax, [0x1400ffeb3]
mov qword [rsp + 0x60], rax
mov r8d, 0x1c6
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x30], xmm1
xor r9d, r9d
lea r8d, [rbx + 2]
lea rdx, [rbp - 0x40]
lea rcx, [rbp]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
mov rdi, rax
cmp byte [rax + 0x128], bl
je 0x1400b68a7
mov rcx, rax
call qword [sym.imp.kapps_core.dll_private:_void___cdecl_kapps::core::LogWriter::prepareForInsert_void____ptr64]
lea rcx, [rdi + 0x40]
lea rdx, str.Unable_to_open_SCM_to_find_NetworkService_svchost__
call fcn.140008d80
cmp byte [rdi + 0x128], bl
je 0x1400b68a7
mov rcx, rdi
call qword [sym.imp.kapps_core.dll_private:_void___cdecl_kapps::core::LogWriter::prepareForInsert_void____ptr64]
lea rcx, [rdi + 0x40]
lea rdx, [rsp + 0x54]
call qword [sym.imp.kapps_core.dll_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_kapps::core::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64__class_kapps::core::WinErrTracer_const____ptr64_]
nop
lea rcx, [rbp]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
xor dil, dil
jmp 0x1400b6c1f
xor edi, edi
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], rdi
mov edx, 0x40000
lea rcx, [rbp - 0x60]
call fcn.1400b7710
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rdi
mov edx, 0x2000
lea rcx, [rbp - 0x40]
call fcn.1400b7710
mov dword [rsp + 0x6c], edi
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x68], edi
mov r13, qword [rbp - 0x58]
mov rsi, qword [rbp - 0x60]
sub r13, rsi
lea r12, str.D:_a_pia_desktop_pia_desktop_daemon_src_win_win_dnscachecontrol.cpp
lea r14, [0x1400ffeb3]
nop dword [rax]
nop dword [rax + rax]
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rsi
xor edx, edx
lea r9d, [rdx + 1]
lea r8d, [rdx + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
test edi, edi
je 0x1400b6975
xor r15b, r15b
jmp 0x1400b6983
cmp eax, 0xea
jne 0x1400b6b06
mov r15b, 1
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r14
mov r8d, 0x1ea
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x20]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x70], xmm1
xor r9d, r9d
lea r8d, [r9 + 3]
lea rdx, [rbp - 0x80]
lea rcx, [rbp]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
mov rdi, rax
cmp byte [rax + 0x128], 0
je 0x1400b6a34
mov rcx, rax
call qword [sym.imp.kapps_core.dll_private:_void___cdecl_kapps::core::LogWriter::prepareForInsert_void____ptr64]
lea rcx, [rdi + 0x40]
lea rdx, str.Found
call fcn.140008d80
cmp byte [rdi + 0x128], 0
je 0x1400b6a34
mov rcx, rdi
call qword [sym.imp.kapps_core.dll_private:_void___cdecl_kapps::core::LogWriter::prepareForInsert_void____ptr64]
mov edx, dword [rsp + 0x50]
lea rcx, [rdi + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
cmp byte [rdi + 0x128], 0
je 0x1400b6a2d
mov rcx, rdi
call qword [sym.imp.kapps_core.dll_private:_void___cdecl_kapps::core::LogWriter::prepareForInsert_void____ptr64]
lea rdx, str.active_services
lea rcx, [rdi + 0x40]
call fcn.140008d80
lea r14, [0x1400ffeb3]
lea rcx, [rbp]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
xor edi, edi
cmp dword [rsp + 0x50], edi
jbe 0x1400b6a78
nop word [rax + rax]
mov eax, edi
imul r9, rax, 0x38
add r9, rsi
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x70]
call fcn.1400b6030
test al, al
jne 0x1400b6a84
inc edi
cmp edi, dword [rsp + 0x50]
jb 0x1400b6a50
mov rbx, qword [rsp + 0x70]
test r15b, r15b
je 0x1400b6a91
xor edi, edi
jmp 0x1400b6920
mov dil, 1
mov rbx, qword [rsp + 0x70]
jmp 0x1400b6ba4
mov qword [rsp + 0x58], r12
lea rax, [0x1400ffeb3]
mov qword [rsp + 0x60], rax
mov r8d, 0x1f5
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x20]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x70], xmm1
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rbp - 0x80]
lea rcx, [rbp]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
mov rdi, rax
cmp byte [rax + 0x128], 0
je 0x1400b6b01
mov rcx, rax
call qword [sym.imp.kapps_core.dll_private:_void___cdecl_kapps::core::LogWriter::prepareForInsert_void____ptr64]
lea rcx, [rdi + 0x40]
lea rdx, str.Did_not_find_any_running_NetworkService_to_kill
call fcn.140008d80
nop
jmp 0x1400b6b97
mov qword [rsp + 0x58], r12
lea rax, [0x1400ffeb3]
mov qword [rsp + 0x60], rax
mov r8d, 0x1e6
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x20]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::SourceLocation::constructor_class_kapps::core::BasicStringSlice_char__struct_std::char_traits_char___const____ptr64__int____ptr64]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x70], xmm1
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rbp - 0x80]
lea rcx, [rbp]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::constructor_class_kapps::core::SourceLocation__enum_kapps::core::LogMessage::Level__class_kapps::core::LogCategory_const____ptr64____ptr64]
mov rdi, rax
cmp byte [rax + 0x128], 0
je 0x1400b6b97
mov rcx, rax
call qword [sym.imp.kapps_core.dll_private:_void___cdecl_kapps::core::LogWriter::prepareForInsert_void____ptr64]
lea rcx, [rdi + 0x40]
lea rdx, str.Unable_enumerate_services__
call fcn.140008d80
cmp byte [rdi + 0x128], 0
je 0x1400b6b97
mov rcx, rdi
call qword [sym.imp.kapps_core.dll_private:_void___cdecl_kapps::core::LogWriter::prepareForInsert_void____ptr64]
lea rcx, [rdi + 0x40]
lea rdx, [rsp + 0x54]
call qword [sym.imp.kapps_core.dll_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_kapps::core::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64__class_kapps::core::WinErrTracer_const____ptr64_]
nop
lea rcx, [rbp]
call qword [sym.imp.kapps_core.dll_public:_void___cdecl_kapps::core::LogWriter::destructor_void____ptr64]
xor dil, dil
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400b6be2
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b6bdc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b6bdc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cdbac
nop
test rsi, rsi
je 0x1400b6c1f
mov rdx, qword [rbp - 0x50]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400b6c16
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b6c16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400cdbac
nop
test rbx, rbx
je 0x1400b6c2d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, dil
mov rcx, qword [rbp + 0x138]
xor rcx, rsp
call fcn.1400cdb50
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret