Function at 0x140007f40
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x1400bb060]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rbx, rcx
mov qword [rbp - 0x80], rcx
xor r15d, r15d
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], 0xf
lea r8d, [r15 + 0x15]
lea rdx, str.Service_install_start
lea rcx, [rbp - 0x78]
call fcn.140004570
lea rcx, [rbp - 0x78]
call fcn.140002f60
mov r8d, 0x104
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000800a
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140008000
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140007ffb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008319
mov rcx, r8
call fcn.140062c6c
mov eax, 0xfffffffc
jmp 0x1400082d7
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 1
jb 0x14000831f
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140008032
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
lea r9, [0x1400a8a10]
lea rcx, [rbp - 0x78]
call fcn.1400027e0
lea r8, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae r8, qword [rbp - 0x78]
mov edx, 0x104
lea rcx, [rbp - 0x30]
call fcn.140070900
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x1400080b1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400080ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008325
call fcn.140062c6c
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140008112
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140008108
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140008103
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008319
mov rcx, r8
call fcn.140062c6c
mov eax, 0xfffffffb
jmp 0x1400082d7
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
lea r8, str.Reason_Security_Sync_Service
lea rdx, str.rsSyncSvc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x1400081ba
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400081b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400081ab
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008319
mov rcx, r8
call fcn.140062c6c
mov eax, 0xfffffffa
jmp 0x1400082d7
lea rax, str.Provides_sync_for_reason_services
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov r14d, r15d
mov ecx, 0xfffffff9
test eax, eax
cmove r14d, ecx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, r14d
lea rcx, [rbp - 0x58]
call fcn.140002d90
nop
mov r9d, 0x23
lea r8, str.Service_install_finished_with_code
mov rcx, rax
call fcn.140008fd0
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rbp - 0x78]
call fcn.140002f60
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140008299
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008293
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008313
call fcn.140062c6c
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400082d4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400082cf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008319
mov rcx, r8
call fcn.140062c6c
mov eax, r14d
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140062b40
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14006ef68
nop
call fcn.14006ef68
nop
call fcn.140001480
int3
call fcn.14006ef68
int3