Function at 0x140041890
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x140113010]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
xor ebx, ebx
mov r8d, 0x104
lea rdx, [rbp + 0xd0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x28], xmm0
lea rdi, [rbp + 0xd0]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], 0xf
mov ecx, 0x100
call fcn.140098fc0
mov qword [rsp + 0x28], rax
mov r8d, 0xff
mov qword [rsp + 0x40], r8
mov rdx, qword [rsp + 0x38]
nop word [rax + rax]
lea rcx, [rsp + 0x28]
cmp r8, 0x10
cmovae rcx, rax
movzx eax, byte [rdi]
mov byte [rdx + rcx], al
mov rdx, qword [rsp + 0x38]
inc rdx
mov qword [rsp + 0x38], rdx
add rdi, 2
lea rax, [rbp + 0x2ce]
cmp rdi, rax
je 0x14004195c
mov r8, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
jmp 0x140041920
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rax, qword [rsp + 0x28]
mov byte [rdx + rax], bl
mov rsi, qword [rsp + 0x38]
lea rdi, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdi, qword [rsp + 0x28]
test rsi, rsi
je 0x1400419f7
vpxor xmm0, xmm0, xmm0
xor eax, eax
vmovups ymmword [rsp + 0x70], ymm0
vmovups ymmword [rbp - 0x70], ymm0
vmovups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], eax
xor edx, edx
mov r8d, 0xa3
lea rcx, [rbp - 0x33]
vzeroupper
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 0x1400419f2
nop
cmp rax, rdi
je 0x1400419f7
dec rax
movzx ecx, byte [rax]
cmp byte [rsp + rcx + 0x70], 0
je 0x1400419e0
sub rax, rdi
jmp 0x1400419fe
mov rax, 0xffffffffffffffff
lea rcx, [rax + 1]
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x48], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rsp + 0x58], xmm1
cmp rsi, rcx
jb 0x140041c1a
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.140004b90
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]
vmovups ymm0, ymmword [str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
vmovups ymmword [rbp + 0x88], ymm0
vmovups xmm1, xmmword [0x1401009a0]
vmovups xmmword [rbp + 0xa8], xmm1
vmovsd xmm0, qword [0x1401009b0]
vmovsd qword [rbp + 0xb8], xmm0
mov eax, dword [0x1401009b8]
mov dword [rbp + 0xc0], eax
movzx eax, word [0x1401009bc]
mov word [rbp + 0xc4], ax
movzx eax, byte [0x1401009be]
mov byte [rbp + 0xc6], al
vzeroupper
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x2aaaaaab
imul r8d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*2]
shl ecx, 3
sub r8d, ecx
movsxd rdi, r8d
test r8d, r8d
jle 0x140041b1f
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 0x140041ae4
cmp rdi, 0x14
jae 0x140041c20
mov byte [rbp + rdi + 0x70], 0
lea r8, str..exe
mov edx, 0x14
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 0x140041b9f
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041b9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041b9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009931c
vmovdqu xmm0, xmmword [0x140102e00]
vmovdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140041bf2
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041bed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041bed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009931c
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.140098e80
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140004940
nop
call fcn.140099460
int3