Function at 0x140006320
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1400a2080]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor ebx, ebx
mov r8d, 0x104
lea rdx, [rbp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0xb0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x140006387
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x28]
call fcn.14000efa0
nop
mov rsi, qword [rsp + 0x38]
lea rdi, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdi, qword [rsp + 0x28]
test rsi, rsi
je 0x140006429
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], eax
xor edx, edx
mov r8d, 0xa3
lea rcx, [rbp - 0x33]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp - 0x34], 1
lea rcx, [rsi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
add rax, rdi
movzx ecx, byte [rax]
cmp byte [rsp + rcx + 0x70], 0
jne 0x140006424
cmp rax, rdi
je 0x140006429
dec rax
movzx ecx, byte [rax]
cmp byte [rsp + rcx + 0x70], 0
je 0x140006412
sub rax, rdi
jmp 0x140006430
mov rax, 0xffffffffffffffff
lea rcx, [rax + 1]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
cmp rsi, rcx
jb 0x140006626
mov rax, rsi
sub rax, rcx
cmp rax, rsi
cmovb rsi, rax
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
add rdx, rcx
mov r8, rsi
lea rcx, [rsp + 0x48]
call fcn.14000efa0
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]
movups xmm0, xmmword [str.01V8YutSgDmzEX8pK3gimydac1Sn2eWa9g3z]
movups xmmword [rbp + 0x88], xmm0
movups xmm1, xmmword [0x140091cf0]
movups xmmword [rbp + 0x98], xmm1
mov eax, dword [0x140091d00]
mov dword [rbp + 0xa8], eax
movzx eax, byte [0x140091d04]
mov byte [rbp + 0xac], al
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x2aaaaaab
imul r8d
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*2]
add ecx, ecx
sub r8d, ecx
movsxd rdi, r8d
add rdi, 6
test rdi, rdi
jle 0x14000652b
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x38e38e39
imul r8d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*8]
shl ecx, 2
sub r8d, ecx
movsxd rax, r8d
movzx ecx, byte [rbp + rax + 0x88]
mov byte [rbp + rbx + 0x70], cl
inc rbx
cmp rbx, rdi
jl 0x1400064f0
cmp rdi, 0x14
jae 0x14000662c
mov byte [rbp + rdi + 0x70], 0
lea r8, str..exe
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rbp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rcx, qword [rsp + 0x48]
lea rdx, [rbp + 0x70]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400065ab
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400065a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400065a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007f32c
movdqa xmm0, xmmword [0x140094800]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400065fe
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400065f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400065f9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007f32c
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14007f2d0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14000e0e0
nop
call fcn.14007f43c
int3