Function at 0x1400068b0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x1400760a0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov dword [rbp + 7], esi
lea rax, [rbp + 0x37]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 2]
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000698a
movsxd rdx, eax
lea rax, str.Error_opening_registry_key:
add rdx, rax
mov qword [rbp - 9], rsi
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], sil
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], sil
jne 0x140006935
lea rcx, [rbp - 0x19]
call fcn.14000ffd0
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x140006b59
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006b54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006b7e
jmp 0x140006b54
mov rcx, qword [rdi + 0x10]
inc ecx
cmp qword [rdi + 0x18], 0x10
jb 0x14000699a
mov rdi, qword [rdi]
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400069a7
mov rdx, qword [rbx]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
movsxd rdi, eax
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140006aed
movdqa xmm0, xmmword [0x140069c00]
movdqu xmmword [rbp - 9], xmm0
mov byte [rbp - 0x19], dil
mov dword [rbp + 7], 1
mov rdx, qword [rbx + 0x10]
add rdx, 0x14
cmp rdx, 0x10
jb 0x140006a0b
lea rcx, [rbp - 0x19]
call fcn.140012ac0
mov qword [rbp - 9], rsi
mov r8d, 0x14
lea rdx, str.Successfully_added_
lea rcx, [rbp - 0x19]
call fcn.140010130
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140006a2f
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.140010130
mov r8d, 0xd
lea rdx, str._to_startup.
lea rcx, [rbp - 0x19]
call fcn.140010130
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x17], xmm0
movups xmm1, xmmword [rax + 0x10]
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
psrldq xmm1, 8
movq rdx, xmm1
cmp rdx, 0x10
jb 0x140006aad
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006aa7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006b8a
call fcn.14002b234
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x140006b59
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006b54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006b84
jmp 0x140006b54
lea rdx, str.Error_adding_startup_program:
add rdx, rdi
mov qword [rbp - 9], rsi
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], sil
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], sil
jne 0x140006b10
lea rcx, [rbp - 0x19]
call fcn.14000ffd0
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x140006b59
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006b54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006b78
call fcn.14002b234
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14002b210
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.1400328c4
int3
call fcn.1400328c4
int3
call fcn.1400328c4
nop
call fcn.1400328c4
nop