Function at 0x140016670
Capabilities:
Delete service
Query service status
Start service
Stop service

Disassembly:
push rbp
lea rbp, [rsp - 0x1020]
mov eax, 0x1120
call fcn.1400208c0
sub rsp, rax
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x1130], rbx
mov qword [rsp + 0x1140], rsi
mov qword [rsp + 0x1148], rdi
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rbp + 0x1010], rax
mov rdi, rdx
mov ebx, ecx
mov dl, 1
lea rcx, str.ALLACLoader
call fcn.140003ed0
cmp ebx, 1
jle 0x140016dfa
mov rdx, qword [rdi + 8]
movzx eax, word [rdx]
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x140016dfa
add rdx, 2
lea rcx, str.install
call fcn.14002bbb8
test eax, eax
je 0x140016ac5
mov rdx, qword [rdi + 8]
add rdx, 2
lea rcx, str.driverinstall
call fcn.14002bbb8
test eax, eax
je 0x140016ac5
mov rdx, qword [rdi + 8]
add rdx, 2
lea rcx, str.silent
call fcn.14002bbb8
test eax, eax
je 0x140016ac5
mov rdx, qword [rdi + 8]
add rdx, 2
lea rcx, str.remove
call fcn.14002bbb8
test eax, eax
jne 0x140016925
xor eax, eax
mov qword [rbp + 0xde0], rax
mov qword [rbp + 0xde8], rax
mov qword [rbp + 0xdf0], rax
mov dword [rbp + 0xdf8], eax
xor edx, edx
xor ecx, ecx
lea r8d, [rax + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x1400167a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.140013f50
jmp 0x140016e1e
mov r8d, 0x10024
lea rdx, str.AsusROGLSLService
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140016825
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor edx, edx
xor ecx, ecx
cmp eax, 0x424
jne 0x1400167fe
call fcn.140003ed0
mov rcx, rax
lea rdx, str.no_server
call fcn.140005b00
mov edx, edi
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.140013f50
jmp 0x140016905
call fcn.140003ed0
mov rcx, rax
lea rdx, str.OpenService_fail
call fcn.1400068e0
mov edx, edi
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.140013f50
jmp 0x140016905
lea r8, [rbp + 0xde0]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400168cf
lea rdx, str.AsusROGLSLService
lea rcx, str.Stopping__s.
call fcn.140013f50
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0xde0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400168aa
mov eax, dword [rbp + 0xde4]
cmp eax, 3
jne 0x1400168b0
lea rcx, [0x140059400]
call fcn.140013f50
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0xde0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140016874
mov eax, dword [rbp + 0xde4]
lea rdx, str.AsusROGLSLService
cmp eax, 1
lea rcx, str._n_s_is_stopped._n
je 0x1400168ca
lea rcx, str._n_s_failed_to_stop._n
call fcn.140013f50
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400168f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
call fcn.140013f50
jmp 0x140016905
lea rdx, str.AsusROGLSLService
lea rcx, str._s_is_removed._n
call fcn.140013f50
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x140016e1e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140016e1e
mov rdx, qword [rdi + 8]
add rdx, 2
lea rcx, str.runservice
call fcn.14002bbb8
test eax, eax
jne 0x140016e1e
xor edx, edx
mov r8d, 0x258
lea rcx, [rsp + 0x30]
call fcn.140022630
lea rax, vtable.CServiceBase.0
mov qword [rsp + 0x30], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x38]
call fcn.140022630
lea rdx, str.AsusROGLSLService
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rax, [rsp + 0x38]
mov qword [rbp + 0x140], rax
xor edi, edi
mov qword [rbp + 0x168], rdi
mov dword [rbp + 0x148], 0x10
mov dword [rbp + 0x14c], 2
mov qword [rbp + 0x150], 0x185
mov qword [rbp + 0x158], rdi
mov dword [rbp + 0x160], edi
lea rsi, vtable.CServiceControl.0
mov qword [rsp + 0x30], rsi
mov qword [rbp + 0x170], rdi
mov qword [rbp + 0x180], rdi
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x178], rax
test rax, rax
je 0x140016e48
lea rax, [rsp + 0x30]
mov qword [0x14006d880], rax
mov rax, qword [rbp + 0x140]
mov qword [rbp + 0xde0], rax
lea rax, [0x140013290]
mov qword [rbp + 0xde8], rax
mov qword [rbp + 0xdf0], rdi
mov qword [rbp + 0xdf8], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbp + 0xde0]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x140016a8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
mov r8d, ebx
lea rdx, str.Service_failed_to_run_w_err_0x_08lx
call fcn.140005c50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
call fcn.140013f50
nop
mov qword [rsp + 0x30], rsi
mov rcx, qword [rbp + 0x178]
test rcx, rcx
je 0x140016aaa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x178], rdi
mov rcx, qword [rbp + 0x180]
test rcx, rcx
je 0x140016e1e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140016e1e
mov rdx, qword [rdi + 8]
add rdx, 2
lea rcx, str.driverinstall
call fcn.14002bbb8
test eax, eax
jne 0x140016b10
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.Driver_Install_Loader_Mode
call fcn.140005c50
mov r9d, 2
lea r8, str.aaiu
call fcn.140014ef0
lea r8, str.InstallApp
jmp 0x140016b6a
mov rdx, qword [rdi + 8]
add rdx, 2
lea rcx, str.silent
call fcn.14002bbb8
xor edx, edx
xor ecx, ecx
test eax, eax
jne 0x140016b4f
call fcn.140003ed0
mov rcx, rax
lea rdx, str.Silent_Mode
call fcn.140005c50
mov r9d, 1
lea r8, str.InstallerSilentMode
jmp 0x140016b6d
call fcn.140003ed0
mov rcx, rax
lea rdx, str.Manually_Download__Install_Mode
call fcn.140005c50
lea r8, str.aaiu
xor r9d, r9d
call fcn.140014ef0
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.Start_creating_SCServerControl_object.
call fcn.140005c50
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xe00]
call fcn.140022630
xor edx, edx
mov r8d, 0xc48
lea rcx, [rbp + 0x190]
call fcn.140022630
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x190], xmm0
lea rdx, str.LocalSystem
lea rcx, [rbp + 0x1a4]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
mov r8d, 0x820
lea rcx, [rbp + 0x3ac]
call fcn.140022630
mov dword [rbp + 0x1a0], 0x10
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140016c3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
mov r8d, ebx
lea rdx, str.GetModuleFileName_failed_w_err_0x_08lx
call fcn.140005c50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
call fcn.140013f50
jmp 0x140016c5c
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r8, [rsp + 0x30]
lea rdx, str.ModuleFileName:__S
call fcn.140005c50
xor edx, edx
xor ecx, ecx
mov r8d, 0x10003
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp + 0x190], rax
xor edi, edi
test rax, rax
jne 0x140016cb6
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r8, str.get_remote_control_handle_failed
lea rdx, [rbp + 0xbcc]
call fcn.140006510
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
lea rdx, str.bindLocalSC_fail
mov rcx, rax
call fcn.140005c50
jmp 0x140016dcd
lea r8, [rsp + 0x30]
lea rdx, str.__ls_
lea rcx, [rbp + 0xe00]
call fcn.140001d30
lea rcx, [rbp + 0xe00]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdx, eax
mov rcx, rdi
test eax, eax
je 0x140016d06
nop word [rax + rax]
movzx eax, word [rbp + rcx*2 + 0xe00]
inc rcx
cmp ax, 0x20
je 0x140016d52
cmp rcx, rdx
jb 0x140016cf0
lea r9, str._runservice
lea r8, [rbp + 0xe00]
lea rcx, [rbp + 0x7bc]
lea rdx, str._s__s
call fcn.140001d30
lea rcx, [rbp + 0x190]
call fcn.140012860
cmp eax, 0xffffffff
jne 0x140016d7a
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
lea rdx, str.createService_fail
mov rcx, rax
call fcn.140005c50
jmp 0x140016dcd
lea r9, str._runservice
lea r8, [rbp + 0xe00]
lea rcx, [rbp + 0x7bc]
cmp word [rbp + 0xe00], 0x22
je 0x140016d1b
lea rdx, str.__s___s
jmp 0x140016d22
mov rcx, qword [rbp + 0x198]
test rcx, rcx
je 0x140016db4
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140016dcd
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r8, str.run_remote_control_failed
lea rdx, [rbp + 0xbcc]
call fcn.140006510
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
lea rdx, str.runService_fail
mov rcx, rax
call fcn.140005c50
nop
mov rcx, qword [rbp + 0x190]
test rcx, rcx
je 0x140016de6
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbp + 0x190], rdi
mov rcx, qword [rbp + 0x198]
test rcx, rcx
je 0x140016e1e
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140016e1e
lea rcx, str.Parameters:_n
call fcn.140013f50
lea rcx, str.__install__to_install_the_service._n
call fcn.140013f50
lea rcx, str.__remove___to_remove_the_service._n
call fcn.140013f50
xor eax, eax
mov rcx, qword [rbp + 0x1010]
xor rcx, rsp
call fcn.14001fab0
lea r11, [rsp + 0x1120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rsp + 0x20], eax
lea rdx, [0x140067e20]
lea rcx, [rsp + 0x20]
call fcn.140022098
int3