Function at 0x180037050
Capabilities:
Query service status
Start service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x1800af040]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rax
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x49], xmm1
mov r8d, 5
lea rdx, str.csrss
lea rcx, [rbp - 0x59]
call fcn.1800381a0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x29], xmm1
mov r8d, 8
lea rdx, str.explorer
lea rcx, [rbp - 0x39]
call fcn.1800381a0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 9], xmm1
mov r8d, 0xc
lea rdx, str.explorer.exe
lea rcx, [rbp - 0x19]
call fcn.1800381a0
nop
lea rax, [rbp - 0x59]
mov qword [rbp - 0x69], rax
lea rax, [rbp + 7]
mov qword [rbp - 0x61], rax
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm0
lea rdx, [rbp - 0x69]
lea rcx, [rbp + 0xf]
call fcn.18003a420
nop
lea r9, [fcn.18003ac60]
mov edx, 0x20
mov r8d, 3
lea rcx, [rbp - 0x59]
call fcn.18003d630
mov r14, qword [rbp + 0x17]
mov rbx, qword [rbp + 0xf]
cmp rbx, r14
je 0x180037273
nop
xor edx, edx
xor ecx, ecx
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
jne 0x1800371a4
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.18003b5b0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
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]
lea rdx, [0x18003b790]
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 0x180037266
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1800371b1
mov rdx, qword [rbx]
mov r8d, 0x34
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x180037226
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp + 0x27]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x18003721b
cmp dword [rbp + 0x2b], 4
jne 0x18003720d
lea r8, [rbp + 0x27]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x18003725d
lea rdx, str.Failed_to_open_service:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.18003b5b0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
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]
lea rdx, [0x18003b790]
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, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add rbx, 0x20
cmp rbx, r14
jne 0x180037150
lea rcx, [rbp + 0xf]
call fcn.18003b240
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.18003d610
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret