Function at 0x140001340
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r12, rdx
mov rdi, rcx
mov qword [rbp - 0x19], rcx
mov dword [rbp - 0x29], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor esi, esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov dword [rbp - 0x29], 1
xor edx, edx
xor ecx, ecx
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r13, rax
test rax, rax
jne 0x1400013dd
lea rdx, str.____Failed_to_open_service_manager
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001d10
lea rdx, [0x140001ef0]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140001545
mov dword [rbp - 0x11], esi
mov dword [rbp - 0xd], esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rbp - 0xd]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor edx, edx
mov r9d, 3
mov r8d, 0x30
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
xorps xmm0, xmm0
mov eax, dword [rbp - 0x11]
mov r14d, eax
movdqu xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rsi
test eax, eax
je 0x140001491
cmp rax, 0x1000
jb 0x140001469
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x1400016a3
call fcn.140002db0
mov rcx, rax
test rax, rax
je 0x14000169c
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140001471
mov rcx, r14
call fcn.140002db0
mov qword [rbp - 9], rax
lea rbx, [rax + r14]
mov qword [rbp + 7], rbx
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 1], rbx
mov eax, dword [rbp - 0x11]
mov rbx, qword [rbp - 9]
mov qword [rbp - 0x21], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
lea rcx, [rbp - 0xd]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor edx, edx
mov r9d, 3
mov r8d, 0x30
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
test eax, eax
jne 0x140001575
lea rdx, str.____Failed_to_enumerate_services
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001d10
lea rdx, [0x140001ef0]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x140001545
mov rdx, qword [rbp + 7]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000153f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000169c
call fcn.140002df4
nop
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140002d90
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
cmp dword [rbp - 0xd], 0
jbe 0x140001655
nop
mov eax, esi
imul r15, rax, 0x38
add r15, rbx
mov rdx, qword [r15]
lea rcx, [rbp + 0xf]
call fcn.1400011c0
nop
lea rax, [rbp + 0xf]
mov rbx, qword [rbp + 0xf]
mov r14, qword [rbp + 0x27]
cmp r14, 7
cmova rax, rbx
mov rdx, qword [r12 + 0x10]
mov r8, r12
cmp qword [r12 + 0x18], 7
jbe 0x1400015be
mov r8, qword [r12]
cmp rdx, qword [rbp + 0x1f]
jne 0x140001607
test rdx, rdx
je 0x1400015e4
sub r8, rax
nop dword [rax]
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x140001607
add rax, 2
sub rdx, 1
jne 0x1400015d0
lea r8, [r15 + 0x2c]
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x1400015fe
mov eax, dword [r8]
mov dword [rdx], eax
add qword [rdi + 8], 4
jmp 0x140001607
mov rcx, rdi
call fcn.140001f50
nop
cmp r14, 7
jbe 0x14000163e
lea rdx, [r14*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001636
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000164e
mov rcx, rbx
call fcn.140002df4
inc esi
cmp esi, dword [rbp - 0xd]
jae 0x140001655
mov rbx, qword [rbp - 0x21]
jmp 0x140001580
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x140001545
mov rdx, qword [rbp + 7]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000153f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000153f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001100
int3