Function at 0x14000dd50
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 [0x1400880a0]
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 0x14000de2a
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 0x14000ddd5
lea rcx, [rbp - 0x19]
call fcn.1400165a0
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x14000dff9
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000dff4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e01e
jmp 0x14000dff4
mov rcx, qword [rdi + 0x10]
inc ecx
cmp qword [rdi + 0x18], 0x10
jb 0x14000de3a
mov rdi, qword [rdi]
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000de47
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 0x14000df8d
movdqa xmm0, xmmword [0x140078860]
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 0x14000deab
lea rcx, [rbp - 0x19]
call fcn.140019a60
mov qword [rbp - 9], rsi
mov r8d, 0x14
lea rdx, str.Successfully_added_
lea rcx, [rbp - 0x19]
call fcn.140016700
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14000decf
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.140016700
mov r8d, 0xd
lea rdx, str._to_startup.
lea rcx, [rbp - 0x19]
call fcn.140016700
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 0x14000df4d
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000df47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e02a
call fcn.140038554
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x14000dff9
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000dff4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e024
jmp 0x14000dff4
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 0x14000dfb0
lea rcx, [rbp - 0x19]
call fcn.1400165a0
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x14000dff9
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000dff4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e018
call fcn.140038554
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140038530
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.140040314
int3
call fcn.140040314
int3
call fcn.140040314
nop
call fcn.140040314
nop