Function at 0x1400aacf0
Capabilities:
Delete service
Enumerate services
Get common file path
Get startup folder
Stop service

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x300
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
cmp dword [0x14045ebc8], 0
jne 0x1400ab082
xor esi, esi
mov r14d, esi
lea rdi, [0x1403399f0]
lea r15, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorerRun
nop dword [rax]
mov ebx, esi
nop dword [rax]
nop word [rax + rax]
movsxd rax, ebx
imul rdx, rax, 0x208
add rdx, r15
mov rcx, qword [rdi]
call fcn.1400609a0
inc ebx
cmp ebx, 0x10
jb 0x1400aad60
inc r14d
add rdi, 8
cmp r14d, 2
jb 0x1400aad50
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x68], rsi
xor edx, edx
xor ecx, ecx
call fcn.1400568e0
mov qword [rbp - 0x58], rsi
xor edx, edx
xor ecx, ecx
call fcn.1400568e0
mov qword [rbp - 0x70], rsi
xor edx, edx
mov r8d, 0x104
lea rcx, str.X:UsersAdministratorAppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup
call fcn.14027b2c0
xor edx, edx
mov r8d, 0x104
lea rcx, str.X:ProgramDataMicrosoftWindowsStart_MenuProgramsStartUp
call fcn.14027b2c0
xor r9d, r9d
lea r8d, [r9 + 7]
lea rdx, str.X:UsersAdministratorAppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor r9d, r9d
lea r8d, [r9 + 0x18]
lea rdx, str.X:ProgramDataMicrosoftWindowsStart_MenuProgramsStartUp
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, [rbp - 0x60]
lea rcx, str.X:UsersAdministratorAppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup
call fcn.1400a95a0
lea rdx, [rbp - 0x78]
lea rcx, str.X:ProgramDataMicrosoftWindowsStart_MenuProgramsStartUp
call fcn.1400a95a0
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x50]
call fcn.140056540
mov rcx, rax
call fcn.1400aac60
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x50]
call fcn.140056540
mov rcx, rax
call fcn.1400aac60
mov dword [rsp + 0x70], esi
mov dword [rbp - 0x80], esi
mov dword [rbp - 0x7c], esi
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
test rax, rax
je 0x1400ab031
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.14027b2c0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 0x30]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1400ab027
mov ecx, dword [rsp + 0x70]
call fcn.14012a2dc
mov rdi, rax
mov r8d, dword [rsp + 0x70]
xor edx, edx
mov rcx, rax
call fcn.14027b2c0
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x70]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdi
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 0x30]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x1400ab027
mov eax, dword [rbp - 0x80]
test eax, eax
je 0x1400ab027
nop word [rax + rax]
mov r8d, 0x10025
mov rdx, qword [rdi]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x1400ab018
lea r9, [rsp + 0x78]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov ecx, dword [rsp + 0x78]
call fcn.14012a2dc
mov r14, rax
mov r8d, dword [rsp + 0x78]
xor edx, edx
mov rcx, rax
call fcn.14027b2c0
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x78]
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x1400ab00f
mov rcx, qword [r14 + 0x10]
call fcn.140054e40
mov r14, rax
xor r8d, r8d
lea rdx, [0x1403399c8]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
je 0x1400ab00f
mov rcx, r14
call fcn.140084e80
test eax, eax
jne 0x1400ab00f
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], eax
lea r8, [rbp - 0x48]
lea edx, [rax + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc esi
add rdi, 0x38
cmp esi, dword [rbp - 0x80]
jb 0x1400aaf50
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x1400ab05a
mov rdx, qword [rbp - 0x70]
mov rcx, rbx
call fcn.1400568e0
mov r8, qword [rbp - 0x68]
sub r8, rbx
sar r8, 5
mov rdx, rbx
call fcn.140056760
nop
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x1400ab082
mov rdx, qword [rbp - 0x58]
mov rcx, rbx
call fcn.1400568e0
mov r8, qword [rbp - 0x50]
sub r8, rbx
sar r8, 5
mov rdx, rbx
call fcn.140056760
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14012a2b0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret