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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x2c0
mov rax, qword [0x140083030]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rbx, rcx
mov qword [rsp + 0x78], rcx
xor r14d, r14d
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], 7
lea r8d, [r14 + 0x15]
lea rdx, str.Installing_service...
lea rcx, [rsp + 0x80]
call fcn.140001d60
lea rcx, [rsp + 0x80]
call fcn.140002220
mov r8d, 0x104
lea rdx, [rsp + 0xa0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140006a26
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140006a1c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140006a17
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006c79
mov rcx, r8
call fcn.14003b67c
mov eax, 0xfffffffc
jmp 0x140006c3b
mov r8, rbx
lea rdx, [0x14007846c]
lea rcx, [rsp + 0x80]
call fcn.1400073e0
cmp qword [rax + 0x18], 8
jb 0x140006a47
mov rax, qword [rax]
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call fcn.140048748
mov rdx, qword [rsp + 0x98]
cmp rdx, 8
jb 0x140006aa4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006a9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006c73
call fcn.14003b67c
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140006b05
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140006afb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140006af6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006c79
mov rcx, r8
call fcn.14003b67c
mov eax, 0xfffffffb
jmp 0x140006c3b
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
lea rax, [rsp + 0xa0]
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, [0x140078470]
lea rdx, str.rsSyncSvc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x140006bb1
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140006ba7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140006ba2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006c79
mov rcx, r8
call fcn.14003b67c
mov eax, 0xfffffffa
jmp 0x140006c3b
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 ebp, r14d
mov ecx, 0xfffffff9
test eax, eax
cmove ebp, ecx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140006c39
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140006c34
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006c79
mov rcx, r8
call fcn.14003b67c
mov eax, ebp
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.14003b550
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140047598
nop
call fcn.140047598
int3