Function at 0x140004eb0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x2c0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rdx, str.Service::install
mov ecx, 0x1000
call fcn.140006e40
xor r14d, r14d
mov edi, r14d
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140004f4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rax, str.Service::install___line_162_:_failed_to_connect_to_SCM__error_d
lea rdx, str.failed_to_connect_to_SCM__error_d
cmp byte [0x1400d91cd], dil
cmovne rdx, rax
mov ecx, 0x10
call fcn.140006e40
mov eax, 0x427
jmp 0x1400051e0
mov r8d, 0xf01ff
lea rdx, str.FvSvc
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140004fb1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.1400052e0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140004fb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rax, str.Service::install___line_183_:_failed_to_re_connect_to_SCM_after_uninstall__error_d
lea rdx, str.failed_to_re_connect_to_SCM_after_uninstall__error_d
jmp 0x140004f2c
lea r15, str.FrameView_SDK_service
mov qword [rsp + 0x78], r15
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xa0]
call fcn.140051840
mov r8d, 0x104
lea rdx, [rsp + 0xa0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r14
mov word [rsp + 0x80], r14w
or rbx, 0xffffffffffffffff
cmp word [rsp + 0xa0], 0
jne 0x140005019
mov r8, r14
jmp 0x14000502f
lea rax, [rsp + 0xa0]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x140005024
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x80]
call fcn.140006340
mov r8d, 1
lea rdx, [0x1400b2d60]
lea rcx, [rsp + 0x80]
call fcn.140006340
lea rdx, str._service
cmp word [str._service], 0
jne 0x140005074
mov rbx, r14
jmp 0x14000507e
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140005074
mov r8, rbx
lea rcx, [rsp + 0x80]
call fcn.140006340
mov ebx, 0xa
dec ebx
lea rax, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov r9d, 2
mov r8, r15
lea rdx, str.FvSvc
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x140005153
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
add eax, 0xfffffbd0
cmp eax, 1
ja 0x14000512b
lea ecx, [rsi + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jne 0x140005093
jmp 0x1400051a1
lea rax, str.Service::install___line_230_:_CreateService_failed__error_d
lea rdx, str.CreateService_failed__error_d
cmp byte [0x1400d91cd], 0
cmovne rdx, rax
mov r8d, edi
mov ecx, 0x10
call fcn.140006e40
jmp 0x1400051a1
lea r8, [rsp + 0x78]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140005198
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, str.Service::install___line_241_:_ChangeServiceConfig2_failed_to_setup_description__error_d
lea rdx, str.ChangeServiceConfig2_failed_to_setup_description__error_d
cmp byte [0x1400d91cd], 0
cmovne rdx, rax
mov r8d, edi
mov ecx, 0x10
call fcn.140006e40
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [rdi - 0x430]
cmp eax, 1
cmovbe edi, r14d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov r8, qword [rsp + 0x98]
cmp r8, 8
jb 0x1400051de
inc r8
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x80]
call fcn.1400062d0
mov eax, edi
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.14002d9f0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret