Function at 0x140005d98
Capabilities:
Delete service
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140031f88]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r13d, 1
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov ebx, r13d
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
je 0x140005fde
mov r8d, r13d
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]
xor edi, edi
test rax, rax
setne dil
test rax, rax
je 0x140005e24
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
test edi, edi
je 0x14000601c
xor r14d, r14d
mov edi, r13d
mov esi, 0x80070000
lea r12d, [r14 + 5]
mov eax, r12d
dec r12d
test eax, eax
je 0x140005f4a
mov r8d, 0x24
lea rdx, str.WmiApSrv
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
nop dword [rax + rax]
mov r15, rax
test rax, rax
je 0x140005ef3
lea rdx, [rsp + 0x20]
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 0x140005ed9
cmp dword [rsp + 0x24], r13d
je 0x140005ed4
lea r8, [rsp + 0x20]
mov edx, r13d
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 0x140005ec8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
sub ecx, 0x425
je 0x140005ecd
xor edi, edi
cmp ecx, r13d
jne 0x140005ee7
mov r14d, r13d
jmp 0x140005f2e
cmp dword [rsp + 0x24], r13d
jne 0x140005f2e
mov r14d, r13d
jmp 0x140005f2c
xor edi, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
jmp 0x140005f2e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, esi
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x140005f27
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
jmp 0x140005f2c
mov ebx, 0x80004005
xor edi, edi
test r15, r15
je 0x140005f42
mov rcx, r15
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
test edi, edi
jne 0x140005e3b
test r14d, r14d
je 0x14000601c
mov r8d, 0x10000
lea rdx, str.WmiApSrv
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140005f8f
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
sete bl
jmp 0x140005fc8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, esi
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x140005fc3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
jmp 0x14000601c
mov ebx, 0x80004005
test rdi, rdi
je 0x14000601c
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
jmp 0x14000601c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
mov esi, 0x80070000
movzx eax, ax
or eax, esi
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x140006017
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
jmp 0x140006030
mov ebx, 0x80004005
test rbp, rbp
je 0x140006030
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001af60
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret