Function at 0x140006e90
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14004a028]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14d, r8d
mov r13, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor r12b, r12b
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.14000aa70
mov rdi, rax
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140006efa
mov rdx, qword [rdi]
mov r8d, 0x10020
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x140006fc5
cmp r14d, 1
jge 0x140006f2f
lea rdx, str._x__Cannot_open_service._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000cf70
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140006f6e
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140006f69
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007048
mov rcx, r8
call fcn.140021ae8
xor esi, esi
mov word [rdi], si
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140006fbe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140006fb9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007108
mov rcx, r8
call fcn.140021ae8
xor al, al
jmp 0x1400070d1
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140007000
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140006ffb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007048
mov rcx, r8
call fcn.140021ae8
xor esi, esi
mov word [rdi], si
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
lea r8, [rsp + 0x50]
lea edx, [rsi + 1]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000704f
cmp dword [rsp + 0x54], 1
je 0x14000704f
cmp r14d, 2
jge 0x14000707a
lea rdx, str._x__Service_cannot_be_stopped__Probably_the_driver_unload_method_is_not_defined_._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000cf70
jmp 0x14000707a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140007077
cmp r14d, 3
jge 0x140007077
lea rdx, str._x__Cannot_delete_service._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000cf70
jmp 0x14000707a
mov r12b, 1
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r13, r13
jne 0x140007092
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400070cd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400070c8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007108
mov rcx, r8
call fcn.140021ae8
movzx eax, r12b
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140021690
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3