Function at 0x14007ba80
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov r11, rsp
push rbx
push r13
sub rsp, 0x6a8
mov rax, qword [0x14016adb0]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov r8d, dword [rcx + 0x528]
mov rbx, rcx
cmp r8d, 8
je 0x14007bc82
cmp r8d, 0xa
je 0x14007bc82
cmp r8d, 0xc
je 0x14007bc82
cmp r8d, 0xd
je 0x14007bc82
cmp r8d, 9
jne 0x14007bdb7
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 - 0x18], r12
lea r12d, [r8 - 5]
mov edi, 1
lea rsi, [rcx + 0x2040]
lea r13, str.OPTIONS
nop
cmp edi, dword [rbx + 0x96c]
jne 0x14007bb57
mov r8d, dword [rbx + 0x528]
lea rdx, str.Sync__d__d
lea rcx, [rsp + 0x60]
mov r9d, 1
call fcn.14001e4d0
mov r11, qword [rsi]
mov rcx, qword [rbx + 0x940]
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, r13
cmp dword [r11 + 0x260], r9d
setne r9b
add rcx, 0x27568
call fcn.140085200
jmp 0x14007bc54
cmp edi, dword [rbx + 0x970]
jne 0x14007bbae
mov r8d, dword [rbx + 0x528]
lea rdx, str.Sync__d__d
lea rcx, [rsp + 0x60]
mov r9d, 2
call fcn.14001e4d0
mov r11, qword [rsi]
mov rcx, qword [rbx + 0x940]
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, r13
cmp dword [r11 + 0x260], r9d
setne r9b
add rcx, 0x27568
call fcn.140085200
jmp 0x14007bc54
cmp edi, dword [rbx + 0x974]
jne 0x14007bc02
mov r8d, dword [rbx + 0x528]
lea rdx, str.Sync__d__d
lea rcx, [rsp + 0x60]
mov r9d, 3
call fcn.14001e4d0
mov r11, qword [rsi]
mov rcx, qword [rbx + 0x940]
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, r13
cmp dword [r11 + 0x260], r9d
setne r9b
add rcx, 0x27568
call fcn.140085200
jmp 0x14007bc54
cmp edi, dword [rbx + 0x978]
jne 0x14007bc54
mov r8d, dword [rbx + 0x528]
lea rdx, str.Sync__d__d
lea rcx, [rsp + 0x60]
mov r9d, 4
call fcn.14001e4d0
mov r11, qword [rsi]
mov rcx, qword [rbx + 0x940]
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, r13
cmp dword [r11 + 0x260], r9d
setne r9b
add rcx, 0x27568
call fcn.140085200
add edi, 1
add rsi, 8
sub r12, 1
jne 0x14007bb00
mov r12, qword [rsp + 0x6a0]
mov rdi, qword [rsp + 0x6d0]
mov rsi, qword [rsp + 0x6c8]
jmp 0x14007bdb7
lea rdx, str.Sync__d__d
lea rcx, [rsp + 0x60]
mov r9d, 1
call fcn.14001e4d0
mov r11, qword [rbx + 0x2040]
mov rbx, qword [rbx + 0x940]
xor ecx, ecx
cmp dword [r11 + 0x260], ecx
setne cl
add rbx, 0x27568
je 0x14007bdb7
lea rdx, [rsp + 0x480]
mov r9d, 0xa
mov r8d, 0x104
call fcn.1400fa960
lea r13, str.OPTIONS
lea r8, str.SYSTEMCurrentControlSetServicesVIA_HD_Audio_Codec_DefaultVDeckINI
lea rdx, str._s_s_s_
lea rcx, [rsp + 0x270]
mov r9, rbx
mov qword [rsp + 0x20], r13
call fcn.14001e4d0
lea r11, [rsp + 0x50]
lea rdx, [rsp + 0x270]
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14007bd7e
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
lea r9, str.REG_SZ
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x270]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14007bdb7
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x480]
lea rdx, [rsp + 0x60]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.1400f9790
add rsp, 0x6a8
pop r13
pop rbx
ret