Function at 0x14000c5e0
Capabilities:
Create service
Delete service
Persist via windows service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x140081030]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov rbx, rdx
cmp ecx, 1
jle 0x14000ca8f
mov rdx, qword [rdx + 8]
movzx eax, word [rdx]
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x14000ca8f
add rdx, 2
lea rcx, str.install
call fcn.140045988
test eax, eax
jne 0x14000c745
mov r8d, 0x104
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000c677
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
call fcn.14000b6b0
jmp 0x14000cb12
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14000c788
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
lea rcx, [0x140075ff4]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov r9d, 4
lea r8, str.ELAN_TouchXi_Service
lea rdx, str.ElanTouchXiSvc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x14000c71b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateService_failed_w_err_0x_08lx_n
call fcn.14000b6b0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000cb12
lea rdx, str.ElanTouchXiSvc
lea rcx, str._s_is_installed._n
call fcn.14000b6b0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000cb12
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.remove
call fcn.140045988
test eax, eax
jne 0x14000c8d2
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], eax
xor edx, edx
xor ecx, ecx
lea r8d, [rax + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14000c7a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.14000b6b0
jmp 0x14000cb12
mov r8d, 0x10024
lea rdx, str.ElanTouchXiSvc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14000c7e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.14000b6b0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000cb12
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000c885
lea rdx, str.ElanTouchXiSvc
lea rcx, str.Stopping__s.
call fcn.14000b6b0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000c862
nop dword [rax]
mov eax, dword [rsp + 0x74]
cmp eax, 3
jne 0x14000c866
lea rcx, [0x140077574]
call fcn.14000b6b0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14000c830
mov eax, dword [rsp + 0x74]
lea rdx, str.ElanTouchXiSvc
cmp eax, 1
lea rcx, [0x140077578]
je 0x14000c880
lea rcx, str._n_s_failed_to_stop._n
call fcn.14000b6b0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14000c8a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
call fcn.14000b6b0
jmp 0x14000c8bb
lea rdx, str.ElanTouchXiSvc
lea rcx, str._s_is_removed._n
call fcn.14000b6b0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000cb12
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.fwchk
call fcn.140045988
test eax, eax
jne 0x14000c8f6
xor ecx, ecx
call fcn.14000bff0
jmp 0x14000cb12
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.sleep
call fcn.140045988
test eax, eax
jne 0x14000c91b
lea ecx, [rax + 1]
call fcn.14000bff0
jmp 0x14000cb12
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.wake
call fcn.140045988
test eax, eax
jne 0x14000c940
lea ecx, [rax + 2]
call fcn.14000bff0
jmp 0x14000cb12
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.reset
call fcn.140045988
test eax, eax
jne 0x14000c965
lea ecx, [rax + 3]
call fcn.14000bff0
jmp 0x14000cb12
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.woton
call fcn.140045988
test eax, eax
jne 0x14000c98a
lea ecx, [rax + 4]
call fcn.14000bff0
jmp 0x14000cb12
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.wotoff
call fcn.140045988
test eax, eax
jne 0x14000c9af
lea ecx, [rax + 5]
call fcn.14000bff0
jmp 0x14000cb12
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.wotchk
call fcn.140045988
test eax, eax
jne 0x14000cb12
lea rcx, [rbp + 0x10]
call fcn.14000d080
nop
lea rcx, [rbp - 0x70]
call fcn.14000f000
nop
lea r9, str.Read_WoT_setting_by_wotchk
nop word [rax + rax]
add r9, 2
cmp word [r9], 0
jne 0x14000c9f0
lea r8, str.Read_WoT_setting_by_wotchk
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.14000f380
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rdx, qword [rsp + 0x70]
call fcn.14000bc80
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x14000ca61
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ca5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cb38
call fcn.14003a290
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], al
lea rcx, [rbp - 0x70]
call fcn.14000ef10
xor r8d, r8d
lea edx, [r8 + 2]
lea rcx, [rbp + 0x10]
call fcn.14000d790
nop
jmp 0x14000cb09
lea rcx, str.Parameters:_n
call fcn.14000b6b0
lea rcx, str.__install__to_install_the_service._n
call fcn.14000b6b0
lea rcx, str.__remove___to_remove_the_service._n
call fcn.14000b6b0
lea rcx, [rbp + 0x10]
call fcn.14000d080
lea rax, [rbp + 0x10]
mov qword [0x140085bf0], rax
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x70], rax
lea rax, [0x14000f9d0]
mov qword [rsp + 0x78], rax
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14000cb09
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
call fcn.14000b6b0
lea rcx, [rbp + 0x10]
call fcn.14000d2f0
xor eax, eax
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.14003a270
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400443d0
nop
int3