Function at 0x140007988
Capabilities:
Delete service
Query service status

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
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14002bed8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15d, 1
lea rbx, vtable.__SmartServiceHANDLE.0
xor edx, edx
mov qword [rbp - 0x40], rbx
xor ecx, ecx
mov r8d, 0xf003f
mov edi, r15d
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov qword [rbp - 0x38], rax
mov r12, rax
test rax, rax
je 0x140007bf3
mov r8d, r15d
mov qword [rbp - 0x50], rbx
lea rdx, str.WmiApSrv
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
nop dword [rax + rax]
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x48], rax
mov rbx, rax
call fcn.1400059ac
test rbx, rbx
je 0x140007c2f
mov esi, r15d
lea r13d, [r15 + 4]
xor r14d, r14d
mov ebx, 0x80070000
mov eax, r13d
dec r13d
test eax, eax
je 0x140007b5f
lea rax, vtable.__SmartServiceHANDLE.0
mov r8d, 0x24
lea rdx, str.WmiApSrv
mov qword [rbp - 0x50], rax
mov rcx, r12
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
nop dword [rax + rax]
mov qword [rbp - 0x48], rax
mov r15, rax
test rax, rax
je 0x140007b15
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
je 0x140007afa
mov eax, 1
cmp dword [rbp - 0x2c], eax
je 0x140007af5
lea r8, [rbp - 0x30]
mov edx, eax
mov rcx, r15
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
test eax, eax
jne 0x140007aed
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
sub eax, 0x425
je 0x140007adc
xor esi, esi
cmp eax, 1
je 0x140007aed
test ecx, ecx
jg 0x140007ad7
mov edi, ecx
jmp 0x140007b4e
movzx edi, cx
jmp 0x140007b11
mov r15d, 1
cmp dword [rbp - 0x2c], r15d
jne 0x140007b4e
mov r14d, r15d
jmp 0x140007b4c
mov r14d, 1
jmp 0x140007b4e
mov r14d, eax
jmp 0x140007b4c
xor esi, esi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x140007b4e
movzx edi, ax
or edi, ebx
jmp 0x140007b4e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140007b2c
movzx eax, ax
or eax, ebx
test eax, eax
jns 0x140007b47
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x140007b4c
movzx edi, ax
or edi, ebx
jmp 0x140007b4c
mov edi, 0x80004005
xor esi, esi
lea rcx, [rbp - 0x50]
call fcn.1400059ac
test esi, esi
jne 0x140007a34
test r14d, r14d
je 0x140007c2f
lea rax, vtable.__SmartServiceHANDLE.0
mov r8d, 0x10000
lea rdx, str.WmiApSrv
mov qword [rbp - 0x50], rax
mov rcx, r12
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
nop dword [rax + rax]
mov qword [rbp - 0x48], rax
test rax, rax
je 0x140007bb1
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
nop dword [rax + rax]
xor edi, edi
test eax, eax
sete dil
jmp 0x140007be8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140007bc8
movzx eax, ax
or eax, ebx
test eax, eax
jns 0x140007be3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x140007be8
movzx edi, ax
or edi, ebx
jmp 0x140007be8
mov edi, 0x80004005
lea rcx, [rbp - 0x50]
call fcn.1400059ac
jmp 0x140007c2f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, 0x80070000
test eax, eax
jle 0x140007c0f
movzx eax, ax
or eax, ebx
test eax, eax
jns 0x140007c2a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x140007c2f
movzx edi, ax
or edi, ebx
jmp 0x140007c2f
mov edi, 0x80004005
lea rcx, [rbp - 0x40]
call fcn.1400059ac
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140002010
lea r11, [rsp + 0x70]
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