Function at 0x140005910
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 [0x14009e080]
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 + 0x50], xmm0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
lea rax, [rbp + 0xb0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x140005977
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x50]
call fcn.14000d510
nop
mov rsi, qword [rsp + 0x60]
lea rdi, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdi, qword [rsp + 0x50]
test rsi, rsi
je 0x140005a18
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], eax
xor edx, edx
mov r8d, 0xa3
lea rcx, [rbp - 0x13]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp - 0x14], 1
lea rcx, [rsi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
add rax, rdi
movzx ecx, byte [rax]
cmp byte [rbp + rcx - 0x70], 0
jne 0x140005a13
cmp rax, rdi
je 0x140005a18
dec rax
movzx ecx, byte [rax]
cmp byte [rbp + rcx - 0x70], 0
je 0x140005a01
sub rax, rdi
jmp 0x140005a1f
mov rax, 0xffffffffffffffff
lea rcx, [rax + 1]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
cmp rsi, rcx
jb 0x140005c10
mov rax, rsi
sub rax, rcx
cmp rax, rsi
cmovb rsi, rax
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdx, qword [rsp + 0x50]
add rdx, rcx
mov r8, rsi
lea rcx, [rsp + 0x70]
call fcn.14000d510
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 [rsp + 0x28], xmm0
movups xmm1, xmmword [0x14008e6b0]
movups xmmword [rsp + 0x38], xmm1
mov eax, dword [0x14008e6c0]
mov dword [rsp + 0x48], eax
movzx eax, byte [0x14008e6c4]
mov byte [rsp + 0x4c], 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 0x140005b0f
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 [rsp + rax + 0x28]
mov byte [rbp + rbx + 0x90], cl
inc rbx
cmp rbx, rdi
jl 0x140005ad4
cmp rdi, 0x14
jae 0x140005c16
mov byte [rbp + rdi + 0x90], 0
lea r8, str..exe
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rbp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rcx, qword [rsp + 0x70]
lea rdx, [rbp + 0x90]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140005b96
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b91
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b91
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007c6f8
movdqa xmm0, xmmword [0x140090870]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140005be8
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005be3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005be3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007c6f8
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14007c1c0
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.14000c6d0
nop
call fcn.14007c2e8
int3