Function at 0x14007af30
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x14011f040]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
xor edi, edi
mov r8d, 0x104
lea rdx, [rbp + 0xd0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
lea rax, [rbp + 0xd0]
mov r14, 0xffffffffffffffff
mov r8, r14
nop dword [rax]
inc r8
cmp byte [rax + r8], dil
jne 0x14007afa0
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x70]
call fcn.14009c460
nop
movzx eax, word [0x1401114ac]
mov word [rsp + 0x20], ax
cmp byte [0x1401114ad], 0
je 0x14007afda
mov byte [rsp + 0x20], 0x5c
xor byte [rsp + 0x21], 0x3a
lea rax, [rsp + 0x20]
mov rbx, r14
inc rbx
cmp byte [rax + rbx], 0
jne 0x14007afe2
lea rsi, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rsi, qword [rsp + 0x70]
mov r15, qword [rbp - 0x80]
test rbx, rbx
je 0x14007b087
test r15, r15
je 0x14007b087
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x20]
add rdx, rbx
lea rax, [rsp + 0x20]
cmp rax, rdx
je 0x14007b050
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rbp + rax - 0x50], 1
inc rcx
cmp rcx, rdx
jne 0x14007b040
lea rcx, [r15 - 1]
mov rax, r14
cmp rcx, rax
cmovb rax, rcx
add rax, rsi
movzx ecx, byte [rax]
cmp byte [rbp + rcx - 0x50], 0
jne 0x14007b082
nop dword [rax + rax]
cmp rax, rsi
je 0x14007b087
dec rax
movzx ecx, byte [rax]
cmp byte [rbp + rcx - 0x50], 0
je 0x14007b070
sub rax, rsi
jmp 0x14007b08a
mov rax, r14
lea rcx, [rax + 1]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
cmp r15, rcx
jb 0x14007b2b7
sub r15, rcx
cmp r15, 0xffffffffffffffff
cmovb r14, r15
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rdx, qword [rsp + 0x70]
add rdx, rcx
mov r8, r14
lea rcx, [rbp - 0x70]
call fcn.14009c460
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
movups xmm0, xmmword [str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [0x14010f470]
movups xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [0x14010f480]
movups xmmword [rsp + 0x50], xmm0
movsd xmm0, qword [0x14010f490]
movsd qword [rsp + 0x60], xmm0
mov eax, dword [0x14010f498]
mov dword [rsp + 0x68], eax
movzx eax, word [0x14010f49c]
mov word [rsp + 0x6c], ax
movzx eax, byte [0x14010f49e]
mov byte [rsp + 0x6e], al
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x80000007
jge 0x14007b147
dec eax
or eax, 0xfffffff8
inc eax
movsxd rbx, eax
add rbx, 8
test rbx, rbx
jle 0x14007b18e
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x84210843
imul r8d
add edx, r8d
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x3e
sub r8d, ecx
movsxd rax, r8d
movzx ecx, byte [rsp + rax + 0x30]
mov byte [rbp + rdi + 0xb0], cl
inc rdi
cmp rdi, rbx
jl 0x14007b153
cmp rbx, 0x14
jae 0x14007b2bd
mov byte [rbp + rbx + 0xb0], 0
mov eax, dword [0x140110bd4]
mov dword [rsp + 0x24], eax
movzx eax, byte [0x140110bd8]
mov byte [rsp + 0x24], 0x2e
xor byte [rsp + 0x25], 0x3a
xor byte [rsp + 0x26], 0x3b
xor byte [rsp + 0x27], 0x3c
xor al, 0x3d
mov byte [rsp + 0x28], al
lea r8, [rsp + 0x24]
mov edx, 0x14
lea rcx, [rbp + 0xb0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rcx, qword [rbp - 0x70]
lea rdx, [rbp + 0xb0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14007b23b
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007b236
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007b236
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009e330
movdqa xmm0, xmmword [0x140112410]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14007b28b
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007b286
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007b286
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009e330
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14009e2c0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140099f30
nop
call fcn.14009e8e0
int3