Function at 0x140004d00
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 [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rdx, str.Service::install
mov ecx, 0x1000
call fcn.140006970
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 0x140004d9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rax, str.Service::install___line_163_:_failed_to_connect_to_SCM__error_d
lea rdx, str.failed_to_connect_to_SCM__error_d
cmp byte [0x14003b8fd], dil
cmovne rdx, rax
mov ecx, 0x10
call fcn.140006970
mov eax, 0x427
jmp 0x14000508a
mov r8d, 0xf01ff
lea rdx, str.FvSvc
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140004e01
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.140005190
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140004e01
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rax, str.Service::install___line_184_:_failed_to_re_connect_to_SCM_after_uninstall__error_d
lea rdx, str.failed_to_re_connect_to_SCM_after_uninstall__error_d
jmp 0x140004d7c
lea r15, str.FrameView_SDK_service
mov qword [rsp + 0x78], r15
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll_memset
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 0x140004e69
mov r8, r14
jmp 0x140004e7f
lea rax, [rsp + 0xa0]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x140004e74
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x80]
call fcn.140005dc0
mov r8d, 1
lea rdx, [0x140028f58]
lea rcx, [rsp + 0x80]
call fcn.140005dc0
lea rdx, str._service
cmp word [str._service], 0
jne 0x140004ec4
mov rbx, r14
jmp 0x140004ece
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140004ec4
mov r8, rbx
lea rcx, [rsp + 0x80]
call fcn.140005dc0
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 0x140004fa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
add eax, 0xfffffbd0
cmp eax, 1
ja 0x140004f7b
lea ecx, [rsi + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jne 0x140004ee3
jmp 0x140004ff1
lea rax, str.Service::install___line_231_:_CreateService_failed__error_d
lea rdx, str.CreateService_failed__error_d
cmp byte [0x14003b8fd], 0
cmovne rdx, rax
mov r8d, edi
mov ecx, 0x10
call fcn.140006970
jmp 0x140004ff1
lea r8, [rsp + 0x78]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140004fe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, str.Service::install___line_242_:_ChangeServiceConfig2_failed_to_setup_description__error_d
lea rdx, str.ChangeServiceConfig2_failed_to_setup_description__error_d
cmp byte [0x14003b8fd], 0
cmovne rdx, rax
mov r8d, edi
mov ecx, 0x10
call fcn.140006970
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 rax, qword [rsp + 0x98]
cmp rax, 8
jb 0x140005088
inc rax
mov rcx, qword [rsp + 0x80]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
jbe 0x140005037
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, rax
cmp rax, 0x1000
jb 0x140005083
test byte [rsp + 0x80], 0x1f
je 0x140005053
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140005063
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140005073
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140005080
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140024e30
mov eax, edi
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140024970
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