Function at 0x14005bc20
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 - 0x220]
sub rsp, 0x320
xor r12d, r12d
mov r8d, 0x104
lea rdx, [rbp + 0x110]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdi, [r12 - 1]
xorps xmm0, xmm0
mov qword [rsp + 0x40], r12
movups xmmword [rsp + 0x30], xmm0
test eax, eax
je 0x14005bcaa
mov qword [rsp + 0x48], r12
lea rax, [rbp + 0x110]
mov r8, rdi
inc r8
cmp byte [rax + r8], r12b
jne 0x14005bc84
lea rdx, [rbp + 0x110]
lea rcx, [rsp + 0x30]
call fcn.140022410
mov r14, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
jmp 0x14005bcb8
mov rsi, r12
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x48], r14
test rsi, rsi
jne 0x14005bce7
lea rdx, str.Failed_to_get_the_path_of_the_current_executable.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140066970
lea rdx, [0x140066b40]
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]
xor bl, bl
jmp 0x14005c274
lea rbx, [rsp + 0x30]
mov r15, qword [rsp + 0x30]
cmp r14, 0x10
cmovae rbx, r15
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140127b1c]
lea rdx, [0x140127b1e]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rbp + rax + 0x10], 1
inc rcx
cmp rcx, rdx
jne 0x14005bd20
lea rax, [rsi - 1]
mov rcx, rdi
cmp rax, rcx
cmovb rcx, rax
add rcx, rbx
movzx eax, byte [rcx]
cmp byte [rbp + rax + 0x10], 0
jne 0x14005bd62
nop dword [rax + rax]
cmp rcx, rbx
je 0x14005bd68
dec rcx
movzx eax, byte [rcx]
cmp byte [rbp + rax + 0x10], 0
je 0x14005bd50
mov rdi, rcx
sub rdi, rbx
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], r12
cmp rsi, rdi
cmovb rdi, rsi
lea rdx, [rsp + 0x30]
cmp r14, 0x10
cmovae rdx, r15
mov r8, rdi
lea rcx, [rbp - 0x30]
call fcn.140022410
nop
cmp byte [0x14028fc2d], 0
jne 0x14005bdb9
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov byte [0x14028fc2d], 1
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, eax
mov eax, 0x4a90be59
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xdbba0
sub ecx, eax
lea edx, [rcx + 0x186a0]
lea rcx, [rsp + 0x50]
call fcn.140066660
nop
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
sub rax, r8
mov r14d, 4
lea rsi, str.old_
cmp rax, r14
jb 0x14005be89
lea rax, [r8 + 4]
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x50]
cmp rcx, 0x10
cmovae rbx, qword [rsp + 0x50]
lea rax, [0x140127b38]
cmp rax, rbx
jbe 0x14005be4c
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x14005be4c
cmp rbx, rsi
ja 0x14005be44
mov rdi, r12
jmp 0x14005be4f
mov rdi, rbx
sub rdi, rsi
jmp 0x14005be4f
mov rdi, r14
lea rcx, [rbx + 4]
inc r8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
sub r14, rdi
lea rdx, [rsi + 4]
add rdx, rdi
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x50]
jmp 0x14005bea3
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1400685b0
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov r8d, reloc.WS2_32.dll_select
lea rdx, str._TIGER_SCRIPTS.exe
lea rcx, [rbp - 0x50]
call fcn.1400221e0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x14005bf42
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005bf3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005bf3d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cba6c
movdqa xmm0, xmmword [0x140128a00]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14005bf93
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005bf8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005bf8e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cba6c
movdqa xmm0, xmmword [0x140128a00]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
mov r14, qword [rbp - 0x20]
sub rax, r14
cmp rax, 1
jb 0x14005c2d8
lea r13, [rbp - 0x30]
mov rsi, qword [rbp - 0x30]
mov r15, qword [rbp - 0x18]
cmp r15, 0x10
cmovae r13, rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
lea r12, [r14 + 1]
mov ebx, reloc.WS2_32.dll_ntohs
lea rdi, [rsp + 0x70]
cmp r12, rbx
jbe 0x14005c078
mov rbx, r12
or rbx, 0xf
cmp rbx, rcx
jbe 0x14005c033
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400cbd0c
test rax, rax
je 0x14005c05b
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14005c073
mov eax, reloc.WLDAP32.dll_Ordinal_22
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14005c062
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14005c2de
jmp 0x14005c018
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14005c071
call fcn.1400cbd0c
mov rdi, rax
jmp 0x14005c073
xor edi, edi
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], rbx
mov r8, r14
mov rdx, r13
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [r14 + rdi], 0x5c
mov byte [rdi + r12], 0
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
mov r8, qword [rbp]
lea rcx, [rsp + 0x70]
call fcn.1400221e0
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x14005c124
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c11f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c11f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cba6c
movdqa xmm0, xmmword [0x140128a00]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
test eax, eax
je 0x14005c186
lea rdx, str.Failed_to_rename_the_executable.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140066970
lea rdx, [0x140066b40]
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]
xor bl, bl
jmp 0x14005c1ab
lea rdx, str.Executable_renamed_successfully.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140066970
lea rdx, [0x140066b40]
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 bl, 1
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x14005c1e9
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c1e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c1e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cba6c
movdqa xmm0, xmmword [0x140128a00]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x14005c239
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c233
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c233
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cba6c
nop
cmp r15, 0x10
jb 0x14005c274
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14005c26b
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c26b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400cba6c
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14005c2b4
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c2af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005c2af
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cba6c
movzx eax, bl
lea r11, [rsp + 0x320]
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.140021fe0
nop
call fcn.140021f40
int3