Function at 0x140003140
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x140015028]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdx, [rsp + 0x80]
mov r8d, 0x200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14000322f
xor ebx, ebx
mov qword [rsp + 0x70], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
mov r8d, eax
lea rax, [rsp + 0x70]
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 0x1400031fa
add eax, 0xe
cmp eax, 0x100
jg 0x1400031fa
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
mov rax, qword [rsp + 0x70]
mov byte [rcx + rax - 2], bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rsp + 0x70]
lea r8, str._s__0x_x_
lea rcx, [0x140017460]
mov edx, 0x100
mov dword [rsp + 0x20], eax
call fcn.1400046b0
jmp 0x140003200
mov byte [0x140017460], bl
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140003210
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r8, [0x140017460]
lea rdx, str.Andrea_RT_Filters_Service
lea rcx, str.Unable_to_install__s____s_n
call fcn.140004d10
jmp 0x1400033ea
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x2a0], rdi
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rdi, rax
je 0x140003338
xor ebx, ebx
lea rax, [0x140012982]
lea r8, str.Andrea_RT_Filters_Service
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
lea r9d, [rbx + 0x10]
lea rdx, str.AERTFilters
mov rcx, rdi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
mov rbx, rax
je 0x14000330a
lea rdx, str.Andrea_RT_Filters_Service
lea rcx, str._s_installed._n
call fcn.140004d10
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x1400032f3
lea rdx, str.Andrea_RT_Filters_Service
lea rcx, str._s_started._n
call fcn.140004d10
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400033e2
lea rcx, [0x140017460]
mov edx, 0x100
call fcn.140003730
lea rcx, str.CreateService_failed____s_n
mov rdx, rax
call fcn.140004d10
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400033e2
xor ebx, ebx
mov qword [rsp + 0x70], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
mov r8d, eax
lea rax, [rsp + 0x70]
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 0x1400033b9
add eax, 0xe
cmp eax, 0x100
jg 0x1400033b9
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
mov rax, qword [rsp + 0x70]
mov byte [rcx + rax - 2], bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rsp + 0x70]
lea r8, str._s__0x_x_
lea rcx, [0x140017460]
mov edx, 0x100
mov dword [rsp + 0x20], eax
call fcn.1400046b0
jmp 0x1400033bf
mov byte [0x140017460], bl
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400033cf
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [0x140017460]
lea rcx, str.OpenSCManager_failed____s_n
call fcn.140004d10
mov rdi, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400046f0
add rsp, 0x290
pop rbx
ret