Function at 0x1400014d0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov r15, rcx
mov qword [rsp + 0x78], rcx
xor edi, edi
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov r12d, 0xa
lea r14, [0x140008768]
mov eax, dword [rcx + rax]
cmp dword [0x140008788], eax
jle 0x140001598
lea rcx, [0x140008788]
call fcn.14000312c
cmp dword [0x140008788], 0xffffffff
jne 0x14000158b
xorps xmm0, xmm0
movups xmmword [0x140008768], xmm0
mov qword [0x140008778], rdi
mov qword [0x140008780], 7
mov word [0x140008768], di
lea rcx, [0x140004320]
call fcn.140003408
lea rcx, [0x140008788]
call fcn.1400030c0
cmp byte [0x140008760], dil
jne 0x140001a2e
mov rdx, r12
lea rcx, [rbp - 0x78]
call fcn.1400012c0
mov rcx, rax
mov r8, qword [rax + 0x10]
mov r10, qword [rax + 0x18]
mov rax, r10
sub rax, r8
cmp rax, 4
jb 0x1400015e1
lea r9, [r8 + 4]
mov qword [rcx + 0x10], r9
mov rdx, rcx
cmp r10, 7
jbe 0x1400015cf
mov rdx, qword [rcx]
mov rax, qword [str..exe]
mov qword [rdx + r8*2], rax
mov word [rdx + r9*2], di
jmp 0x1400015fe
mov qword [rsp + 0x20], 4
lea r9, str..exe
mov edx, 4
call fcn.140002b60
mov rcx, rax
movups xmm0, xmmword [rcx]
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x58], xmm0
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x140001669
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001664
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001664
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003420
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], di
mov r8d, 0x104
lea rdx, [rbp + 0xd0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
lea rax, [rbp + 0xd0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400016b0
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x30]
call fcn.1400028a0
lea rdx, [rsp + 0x30]
call fcn.140002230
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14000171b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001716
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001716
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003420
mov rbx, r14
mov r12, qword [0x140008768]
mov r13, qword [0x140008780]
cmp r13, 7
cmova rbx, r12
mov rsi, qword [0x140008778]
test rsi, rsi
je 0x140001802
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x14000557c]
lea r8, [0x14000557e]
mov edx, 0x100
movzx eax, word [rcx]
cmp ax, dx
jae 0x1400017b2
movzx eax, al
mov byte [rbp + rax - 0x30], 1
add rcx, 2
cmp rcx, r8
jne 0x140001768
lea rax, [rsi - 1]
mov rcx, 0xffffffffffffffff
cmp rax, rcx
cmovb rcx, rax
lea r8, [rbx + rcx*2]
movzx eax, word [r8]
cmp ax, dx
jae 0x1400017a7
cmp byte [rbp + rax - 0x30], 0
jne 0x1400017fa
cmp r8, rbx
je 0x140001802
sub r8, 2
jmp 0x140001797
lea rax, [rsi - 1]
mov rcx, 0xffffffffffffffff
cmp rax, rcx
cmovb rcx, rax
lea r8, [rbx + rcx*2]
nop dword [rax + rax]
mov ecx, 1
lea rax, [0x14000557c]
movzx edx, word [r8]
cmp word [rax], dx
je 0x1400017fa
add rax, 2
sub rcx, 1
jne 0x1400017e0
cmp r8, rbx
je 0x140001802
sub r8, 2
jmp 0x1400017d0
sub r8, rbx
sar r8, 1
jmp 0x140001809
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
inc r8
cmp rsi, r8
cmovb r8, rsi
mov rdx, r14
cmp r13, 7
cmova rdx, r12
lea rcx, [rsp + 0x30]
call fcn.1400028a0
nop
lea r9, [rbp - 0x58]
mov rsi, qword [rsp + 0x78]
movups xmm1, xmmword [rsp + 0x58]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r12, xmm0
cmp r12, 7
cmova r9, rsi
mov r13, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, r13
movq r14, xmm1
cmp r14, rax
ja 0x1400018b0
lea rax, [r14 + r13]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rcx, 7
cmova rbx, qword [rsp + 0x30]
lea rcx, [rbx + r13*2]
lea r8, [r14 + r14]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [r14 + r13]
mov word [rbx + rax*2], di
lea rax, [rsp + 0x30]
jmp 0x1400018ca
mov qword [rsp + 0x20], r14
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.140002b60
mov r12, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x58]
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea rdx, [rsp + 0x58]
call fcn.140002230
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x14000193a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001934
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001934
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003420
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14000197f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000197a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000197a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003420
lea r14, [0x140008768]
mov rdx, r14
cmp qword [0x140008780], 7
cmova rdx, qword [0x140008768]
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1400019b3
mov byte [0x140008760], 1
jmp 0x1400019ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_rename_executable._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002360
mov rcx, rax
mov edx, ebx
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140002540]
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]
nop
cmp r12, 7
jbe 0x140001a28
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140001a20
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140003420
mov r12d, 0xa
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], rdi
cmp qword [0x140008780], 7
cmova r14, qword [0x140008768]
mov rbx, qword [0x140008778]
movabs rsi, 0x7ffffffffffffffe
cmp rbx, rsi
ja 0x140001b5a
cmp rbx, 7
ja 0x140001a86
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], 7
movups xmm0, xmmword [r14]
movups xmmword [r15], xmm0
jmp 0x140001b27
mov rax, rbx
or rax, 7
cmp rax, rsi
jbe 0x140001aa2
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140001ac9
cmp rax, 0xa
cmovb rax, r12
mov rsi, rax
lea rcx, [rax + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140001b60
add rcx, rcx
je 0x140001b09
cmp rcx, 0x1000
jb 0x140001b01
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001b60
mov rcx, rax
call fcn.1400031a4
test rax, rax
je 0x140001afa
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001b09
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400031a4
mov rdi, rax
mov qword [r15], rdi
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rsi
lea r8, [rbx*2 + 2]
mov rdx, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, r15
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.1400030a0
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400011a0
int3
call fcn.140001100
int3