Function at 0x140007550
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x330
mov rax, qword [0x1400332d0]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov rbx, rdx
cmp ecx, 1
jle 0x140007866
mov rdx, qword [rdx + 8]
mov ecx, 0xfffd
movzx eax, word [rdx]
sub ax, 0x2d
test cx, ax
jne 0x140007866
lea rcx, str.install
add rdx, 2
call fcn.14000e7ec
test eax, eax
jne 0x14000761d
lea r9, [0x14002b678]
lea r8, [0x14002b724]
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.14000bcf0
cmp qword [rax + 0x18], 8
jb 0x1400075cc
mov rax, qword [rax]
lea r9, str.SynTPEnh_Caller_Service
lea r8, str._s_s
lea rcx, [rsp + 0x80]
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.14000f38c
cmp qword [rsp + 0x78], 8
jb 0x140007603
mov rcx, qword [rsp + 0x60]
call fcn.14000dd5c
call fcn.14000ab70
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.14000a480
jmp 0x1400078fb
mov rdx, qword [rbx + 8]
lea rcx, str.remove
add rdx, 2
call fcn.14000e7ec
test eax, eax
jne 0x140007647
call fcn.14000ab70
mov rcx, rax
call fcn.14000a610
jmp 0x1400078fb
mov rdx, qword [rbx + 8]
lea rcx, str.disable
add rdx, 2
call fcn.14000e7ec
test eax, eax
jne 0x140007676
call fcn.14000ab70
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.14000a930
jmp 0x1400078fb
mov rdx, qword [rbx + 8]
lea rcx, str.enableAutoStart
add rdx, 2
call fcn.14000e7ec
test eax, eax
jne 0x14000775f
call fcn.14000ab70
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1400076c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed___d__n
mov edx, eax
call fcn.14000f3b0
jmp 0x1400078fb
mov r8d, 2
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140007705
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed___d__n
mov edx, eax
call fcn.14000f3b0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400078fb
xor eax, eax
or r9d, 0xffffffff
mov rcx, rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea r8d, [rax + 2]
or edx, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14000780e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ChangeServiceConfig_failed___d__n
mov edx, eax
call fcn.14000f3b0
jmp 0x140007821
mov rdx, qword [rbx + 8]
lea rcx, str.enableDemandStart
add rdx, 2
call fcn.14000e7ec
test eax, eax
jne 0x140007838
call fcn.14000ab70
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x1400076b0
mov r8d, 2
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1400076e3
xor eax, eax
or r9d, 0xffffffff
mov rcx, rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea r8d, [rax + 3]
or edx, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14000780e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ChangeServiceConfig_failed___d__n
mov edx, eax
call fcn.14000f3b0
jmp 0x140007821
lea rdx, str.enabled
lea rcx, str.Service__s_successfully._n
call fcn.14000f3b0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400078fb
mov rdx, qword [rbx + 8]
lea rcx, str.stop
add rdx, 2
call fcn.14000e7ec
test eax, eax
jne 0x1400078fb
call fcn.14000ab70
mov rcx, rax
call fcn.14000a7c0
jmp 0x1400078fb
lea rcx, str.Parameters:_n
call fcn.14000f3b0
lea rcx, str.__install__to_install_the_service._n
call fcn.14000f3b0
lea rcx, str.__remove___to_remove_the_service._n
call fcn.14000f3b0
lea rcx, [rsp + 0x80]
call fcn.140007b30
lea rax, [rsp + 0x80]
lea rcx, [rsp + 0x60]
mov qword [0x140036978], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
lea rax, [0x140009ec0]
mov qword [rsp + 0x68], rax
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x1400078ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
mov edx, eax
call fcn.14000f3b0
lea rcx, [rsp + 0x80]
call fcn.140007da0
xor eax, eax
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.14000dd80
mov rbx, qword [rsp + 0x340]
add rsp, 0x330
pop rdi
ret