Function at 0x1400077f0
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x340
mov rax, qword [0x1400332d0]
xor rax, rsp
mov qword [rsp + 0x330], rax
mov rbx, rdx
cmp ecx, 1
jle 0x140007b06
mov rdx, qword [rdx + 8]
mov ecx, 0xfffd
movzx eax, word [rdx]
sub ax, 0x2d
test cx, ax
jne 0x140007b06
lea rcx, str.install
add rdx, 2
call fcn.14000f38c
test eax, eax
jne 0x1400078bd
lea r9, [0x14002b308]
lea r8, [0x14002b3b4]
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.14000d1c0
cmp qword [rax + 0x18], 8
jb 0x14000786c
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.14000ff2c
cmp qword [rsp + 0x78], 8
jb 0x1400078a3
mov rcx, qword [rsp + 0x60]
call fcn.14000e8fc
call fcn.14000bf30
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.14000b8c0
jmp 0x140007b9b
mov rdx, qword [rbx + 8]
lea rcx, str.remove
add rdx, 2
call fcn.14000f38c
test eax, eax
jne 0x1400078e7
call fcn.14000bf30
mov rcx, rax
call fcn.14000ba50
jmp 0x140007b9b
mov rdx, qword [rbx + 8]
lea rcx, str.disable
add rdx, 2
call fcn.14000f38c
test eax, eax
jne 0x140007916
call fcn.14000bf30
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.14000bd70
jmp 0x140007b9b
mov rdx, qword [rbx + 8]
lea rcx, str.enableAutoStart
add rdx, 2
call fcn.14000f38c
test eax, eax
jne 0x1400079ff
call fcn.14000bf30
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 0x140007969
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed___d__n
mov edx, eax
call fcn.14000ff50
jmp 0x140007b9b
mov r8d, 2
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x1400079a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed___d__n
mov edx, eax
call fcn.14000ff50
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140007b9b
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 0x140007aae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ChangeServiceConfig_failed___d__n
mov edx, eax
call fcn.14000ff50
jmp 0x140007ac1
mov rdx, qword [rbx + 8]
lea rcx, str.enableDemandStart
add rdx, 2
call fcn.14000f38c
test eax, eax
jne 0x140007ad8
call fcn.14000bf30
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 0x140007950
mov r8d, 2
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140007983
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 0x140007aae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ChangeServiceConfig_failed___d__n
mov edx, eax
call fcn.14000ff50
jmp 0x140007ac1
lea rdx, str.enabled
lea rcx, str.Service__s_successfully._n
call fcn.14000ff50
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140007b9b
mov rdx, qword [rbx + 8]
lea rcx, str.stop
add rdx, 2
call fcn.14000f38c
test eax, eax
jne 0x140007b9b
call fcn.14000bf30
mov rcx, rax
call fcn.14000bc00
jmp 0x140007b9b
lea rcx, str.Parameters:_n
call fcn.14000ff50
lea rcx, str.__install__to_install_the_service._n
call fcn.14000ff50
lea rcx, str.__remove___to_remove_the_service._n
call fcn.14000ff50
lea rcx, [rsp + 0x80]
call fcn.1400082e0
lea rax, [rsp + 0x80]
lea rcx, [rsp + 0x60]
mov qword [0x140036e48], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
lea rax, [0x14000b300]
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 0x140007b8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
mov edx, eax
call fcn.14000ff50
lea rcx, [rsp + 0x80]
call fcn.1400085c0
xor eax, eax
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.14000e920
mov rbx, qword [rsp + 0x350]
add rsp, 0x340
pop rdi
ret