Function at 0x140001630
Capabilities:
Copy file
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
mov qword [rsp + 0x20], r15
push rbp
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
lea r8d, [r12 + 0x13]
lea rdx, str.C:Windowsuuid.txt
lea rcx, [rsp + 0x48]
call fcn.140004840
nop
mov r8d, 0x104
lea rdx, [rbp + 0xd0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
lea rax, [rbp + 0xd0]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400016d0
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x28]
call fcn.140004840
nop
lea rbx, [rsp + 0x28]
cmp qword [rsp + 0x40], 7
cmova rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x1400017d2
mov r15d, 0x100
mov r8d, r15d
xor edx, edx
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140007770]
lea rdx, [0x140007774]
nop
movzx eax, word [rcx]
cmp ax, r15w
jae 0x14000177c
movzx eax, al
mov byte [rbp + rax - 0x30], 1
add rcx, 2
cmp rcx, rdx
jne 0x140001730
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
movzx eax, word [r8]
cmp ax, r15w
jae 0x140001771
cmp byte [rbp + rax - 0x30], 0
jne 0x1400017ca
cmp r8, rbx
je 0x1400017d2
sub r8, 2
jmp 0x140001760
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
nop dword [rax]
nop word [rax + rax]
mov ecx, 2
lea rax, [0x140007770]
movzx edx, word [r8]
cmp word [rax], dx
je 0x1400017ca
add rax, 2
sub rcx, 1
jne 0x1400017b0
cmp r8, rbx
je 0x1400017d2
sub r8, 2
jmp 0x1400017a0
sub r8, rbx
sar r8, 1
jmp 0x1400017d9
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
inc r8
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 7
cmova rdx, qword [rsp + 0x28]
lea rcx, [rbp - 0x58]
call fcn.140004840
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
mov r8d, 8
lea rdx, [0x140007778]
lea rcx, [rbp - 0x78]
call fcn.140004840
nop
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x68]
call fcn.140004350
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 7
cmova rcx, qword [rsp + 0x68]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1400018c4
lea rdx, str.File_copied_successfully_to:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004130
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov rcx, rax
call fcn.140004c90
mov rcx, rax
lea rdx, [0x140004310]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, str.uuid.txt
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
jmp 0x1400018fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_copy_file._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140004130
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140004310]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x14000193f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000193a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000193a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005558
movdqa xmm0, xmmword [0x140007b40]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r12w
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x140001997
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001991
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001991
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005558
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x1400019db
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005558
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x140001a20
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a1b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a1b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005558
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r12w
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140001a79
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a74
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a74
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005558
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.140005260
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret