Function at 0x140002e00
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rdi, rax
je 0x140003028
lea rdx, str.AESTFilters
mov r8d, 0x10024
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rbx, rax
je 0x140002f6a
lea r8, [0x140017568]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140002ef0
lea rdx, str.Andrea_ST_Filters_Service
lea rcx, str.Stopping__s.
call fcn.140004530
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x140017568]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140002ecb
mov eax, dword [0x14001756c]
cmp eax, 3
jne 0x140002ed1
lea rcx, [0x140012768]
call fcn.140004530
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x140017568]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140002e95
mov eax, dword [0x14001756c]
cmp eax, 1
lea rdx, str.Andrea_ST_Filters_Service
lea rcx, str._n_s_stopped._n
je 0x140002eeb
lea rcx, str._n_s_failed_to_stop._n
call fcn.140004530
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140002f2d
lea rdx, str.Andrea_ST_Filters_Service
lea rcx, str._s_removed._n
call fcn.140004530
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, [0x140017460]
mov edx, 0x100
call fcn.140003120
lea rcx, str.DeleteService_failed____s_n
mov rdx, rax
call fcn.140004530
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
mov r8d, eax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor edx, edx
mov ecx, 0x3100
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x140002feb
add eax, 0xe
cmp eax, 0x100
jg 0x140002feb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
mov rax, qword [rsp + 0x50]
mov byte [rcx + rax - 2], bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rsp + 0x50]
lea r8, str._s__0x_x_
lea rcx, [0x140017460]
mov edx, 0x100
mov dword [rsp + 0x20], eax
call fcn.140003ed0
jmp 0x140002ff1
mov byte [0x140017460], bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140003001
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [0x140017460]
lea rcx, str.OpenService_failed____s_n
call fcn.140004530
mov rcx, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
mov r8d, eax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor edx, edx
mov ecx, 0x3100
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x1400030a9
add eax, 0xe
cmp eax, 0x100
jg 0x1400030a9
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
mov rax, qword [rsp + 0x50]
mov byte [rcx + rax - 2], bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rsp + 0x50]
lea r8, str._s__0x_x_
lea rcx, [0x140017460]
mov edx, 0x100
mov dword [rsp + 0x20], eax
call fcn.140003ed0
jmp 0x1400030af
mov byte [0x140017460], bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400030bf
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [0x140017460]
lea rcx, str.OpenSCManager_failed____s_n
call fcn.140004530
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret