Function at 0x140001d30
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor ebx, ebx
mov r8d, 0x104
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str.C:ProgramDataMicrosoftWindowsStart_MenuProgramsStartup_
lea rcx, [rsp + 0x68]
call fcn.140001560
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.140001560
nop
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
mov r14, qword [rsp + 0x78]
sub rax, r14
cmp rax, 9
jb 0x14000208e
lea r12, [rsp + 0x68]
mov rsi, qword [rsp + 0x68]
mov r13, qword [rbp - 0x80]
cmp r13, 7
cmova r12, rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
lea r15, [r14 + 9]
mov ebx, 7
lea rdi, [rsp + 0x28]
cmp r15, rbx
jbe 0x140001e86
mov rbx, r15
or rbx, 7
cmp rbx, rcx
jbe 0x140001e4d
mov rbx, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x140001e79
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002088
mov rcx, rax
call fcn.140003410
test rax, rax
je 0x140001fa0
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001e81
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140002088
add rcx, rcx
jne 0x140001e18
xor edi, edi
jmp 0x140001e81
call fcn.140003410
mov rdi, rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], rbx
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str.myapp.exe]
movups xmmword [rbx + rdi], xmm0
movzx eax, word [0x140005950]
mov word [rbx + rdi + 0x10], ax
xor ebx, ebx
mov word [rdi + r15*2], bx
lea rcx, [rsp + 0x28]
mov r8, qword [rsp + 0x28]
mov r11, qword [rsp + 0x40]
cmp r11, 7
cmova rcx, r8
lea r9, [rsp + 0x48]
mov r10, qword [rsp + 0x60]
cmp r10, 7
cmova r9, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
cmp rdx, qword [rsp + 0x38]
jne 0x140001f16
test rdx, rdx
je 0x140001f71
sub r9, rcx
nop
movzx eax, word [rcx + r9]
cmp ax, word [rcx]
jne 0x140001f16
add rcx, 2
sub rdx, 1
jne 0x140001f00
jmp 0x140001f71
lea rdx, [rsp + 0x28]
cmp r11, 7
cmova rdx, r8
lea rcx, [rsp + 0x48]
cmp r10, 7
cmova rcx, qword [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140001f62
lea rdx, str.Failed_to_copy_the_executable_to_the_startup_folder.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002be0
lea rdx, [0x140002dc0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r8, qword [rsp + 0x28]
mov r11, qword [rsp + 0x40]
mov r10, qword [rsp + 0x60]
cmp r11, 7
jbe 0x140001fb4
lea rdx, [r11*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x140001fa7
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001fa7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140003764
mov r10, qword [rsp + 0x60]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], bx
cmp r10, 7
jbe 0x140002007
lea rdx, [r10*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002002
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002002
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003764
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bx
cmp r13, 7
jbe 0x140002058
lea rdx, [r13*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140002050
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002050
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140003764
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400033f0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400012e0
nop
call fcn.140001380
int3