Function at 0x140012cd0
Capabilities:
Create service
Persist via windows service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x510]
sub rsp, 0x610
mov rax, qword [0x14005a318]
xor rax, rsp
mov qword [rbp + 0x500], rax
mov rbx, rdx
cmp ecx, 1
jle 0x1400130c5
mov rdx, qword [rdx + 8]
movzx eax, word [rdx]
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x1400130c5
add rdx, 2
lea rcx, str.install
call fcn.1400308ec
test eax, eax
jne 0x140012f08
lea r9, [0x14004df38]
lea r8, [0x14004f084]
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140021fa0
cmp qword [rax + 0x18], 8
jb 0x140012d61
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea r9, str.SynTPEnh_Caller_Service
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rbp + 0x2f0]
call fcn.14000ea00
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140012dc6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012dc1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013178
call fcn.1400243b8
call fcn.14001f590
mov rsi, rax
mov r8d, 0x106
lea rdx, [rbp - 0x5e]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, eax
test eax, eax
jne 0x140012dff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
call fcn.140012c70
jmp 0x140013148
inc eax
movsxd rcx, eax
mov eax, 0x22
mov word [rbp + rcx*2 - 0x60], ax
mov word [rbp - 0x60], ax
lea eax, [rdx + 2]
movsxd rcx, eax
add rcx, rcx
cmp rcx, 0x20c
jae 0x140013172
xor edi, edi
mov word [rbp + rcx - 0x60], di
xor edx, edx
xor ecx, ecx
lea r8d, [rdi + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140012e5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.140012c70
jmp 0x140013148
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rdi
lea rax, [0x14004df6c]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
lea rax, [rbp - 0x60]
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, [rbp + 0x2f0]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x140012ee2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateService_failed_w_err_0x_08lx_n
call fcn.140012c70
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140013148
mov rdx, rsi
lea rcx, str._s_is_installed._n
call fcn.140012c70
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140013148
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.remove
call fcn.1400308ec
test eax, eax
jne 0x140012f32
call fcn.14001f590
mov rcx, rax
call fcn.14001e4a0
jmp 0x140013148
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.disable
call fcn.1400308ec
test eax, eax
jne 0x140012f61
call fcn.14001f590
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.14001e7a0
jmp 0x140013148
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.enableAutoStart
call fcn.1400308ec
test eax, eax
jne 0x140012f93
call fcn.14001f590
mov edx, 1
mov r8d, edx
mov rcx, rax
call fcn.14001e7a0
jmp 0x140013148
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.enableDemandStart
call fcn.1400308ec
test eax, eax
jne 0x140012fc4
call fcn.14001f590
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rax
call fcn.14001e7a0
jmp 0x140013148
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.stop
call fcn.1400308ec
test eax, eax
jne 0x140012fee
call fcn.14001f590
mov rcx, rax
call fcn.14001e640
jmp 0x140013148
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, [0x14004f7ec]
call fcn.1400308ec
test eax, eax
je 0x140013052
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, [0x14004f7f0]
call fcn.1400308ec
test eax, eax
je 0x140013052
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, [0x14004f7f4]
call fcn.1400308ec
test eax, eax
je 0x140013052
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, [0x14004f7fc]
call fcn.1400308ec
test eax, eax
jne 0x140013148
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.140022af0
nop
xor edi, edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x20006
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnh
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call fcn.140022d20
test eax, eax
je 0x1400130b6
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8, qword [rbx + 8]
lea rdx, str.Command
lea rcx, [rsp + 0x78]
call fcn.140023b10
lea rcx, [rsp + 0x78]
call fcn.140023410
nop
lea rcx, [rsp + 0x70]
call fcn.140022bf0
jmp 0x140013148
lea rcx, str.Parameters:_n
call fcn.140012c70
lea rcx, str.__install__to_install_the_service._n
call fcn.140012c70
lea rcx, str.__remove___to_remove_the_service._n
call fcn.140012c70
lea rcx, [rbp - 0x60]
call fcn.140014360
lea rax, [rbp - 0x60]
mov qword [0x14005d008], rax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x70], rax
lea rax, [0x14001de80]
mov qword [rsp + 0x78], rax
xor edi, edi
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14001313f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
call fcn.140012c70
lea rcx, [rbp - 0x60]
call fcn.140014b30
xor eax, eax
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.140023ea0
lea r11, [rsp + 0x610]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140024534
int3
call fcn.1400303f4
int3