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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14008d140]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140013b02
movsxd rdx, eax
lea rax, str.Error_opening_registry_key:
add rdx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], sil
jne 0x140013a90
lea rcx, [rsp + 0x40]
call fcn.1400244a0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140013ae0
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013adb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013cd3
call fcn.140042790
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140042770
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov eax, dword [rdi + 0x10]
inc eax
cmp qword [rdi + 0x18], 0xf
jbe 0x140013b11
mov rdi, qword [rdi]
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140013b1e
mov rdx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
movsxd rdi, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140013c50
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0x14
jb 0x140013cd9
cmp qword [rbx + 0x18], 0xf
jbe 0x140013b76
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0x14
lea r9, str.Successfully_added_
lea rcx, [rsp + 0x40]
call fcn.1400260e0
nop
mov r8d, 0xd
lea rdx, str._to_startup.
lea rcx, [rsp + 0x40]
call fcn.1400208c0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
psrldq xmm0, 8
movq rdx, xmm0
cmp rdx, 0xf
jbe 0x140013c0b
inc rdx
movq rcx, xmm1
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013c05
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013cc7
call fcn.140042790
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140013ae0
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013adb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013ccd
jmp 0x140013adb
lea rdx, str.Error_adding_startup_program:
add rdx, rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], sil
jne 0x140013c73
lea rcx, [rsp + 0x40]
call fcn.1400244a0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140013ae0
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013adb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013cd3
jmp 0x140013adb
call fcn.14004cd30
nop
call fcn.14004cd30
int3
call fcn.14004cd30
int3
call fcn.140002410
int3