Function at 0x140001b30
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov r9, qword [rcx + 0x10]
mov rdx, rcx
mov r10, qword [rcx + 0x18]
cmp r10, 7
jbe 0x140001b71
mov rdx, qword [rcx]
test r9, r9
je 0x140001ba9
lea rcx, [r9 - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rdx + rax*2]
cmp word [rcx], 0x5c
je 0x140001ba1
cmp rcx, rdx
je 0x140001ba9
sub rcx, 2
cmp word [rcx], 0x5c
jne 0x140001b92
sub rcx, rdx
sar rcx, 1
jmp 0x140001bb0
mov rcx, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r8, [rcx + 1]
cmp r9, r8
cmovb r8, r9
mov rdx, rdi
cmp r10, 7
jbe 0x140001bd8
mov rdx, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.140001430
nop
mov rbp, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, rbp
cmp rax, 0xc
jb 0x140001c34
lea rax, [rbp + 0xc]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rcx, 7
cmova rbx, qword [rsp + 0x30]
lea rcx, [rbx + rbp*2]
mov r8d, 0x18
lea rdx, str.todelete.exe
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rbp*2 + 0x18], r14w
lea rax, [rsp + 0x30]
jmp 0x140001c53
mov qword [rsp + 0x20], 0xc
lea r9, str.todelete.exe
mov edx, 0xc
lea rcx, [rsp + 0x30]
call fcn.140006760
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140001cca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cc5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cc5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007ab4
movdqa xmm0, xmmword [0x14000a650]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r14w
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rdx, qword [rsp + 0x58]
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140001cfc
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140001d0f
lea rdx, str.Failed_to_rename_current_executable._Error_code:
jmp 0x140001d3a
cmp qword [rdi + 0x18], 7
jbe 0x140001d19
mov rdi, qword [rdi]
cmp qword [rsi + 0x18], 7
jbe 0x140001d23
mov rsi, qword [rsi]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140001d6e
lea rdx, str.Failed_to_replace_old_executable_with_new_one._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.140005bb0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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]
lea rdx, [0x140005d90]
mov rcx, rax
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]
xor bl, bl
jmp 0x140001d70
mov bl, 1
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140001db5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001db0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001db0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007ab4
movzx eax, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140007810
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret