Function at 0x164f99390
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rbp + 0xa8], rax
mov rsi, qword [rbp + 0xe0]
xor r14d, r14d
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.164f98df0
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 4
jb 0x164f99415
add rdx, 0xfffffffffffffffc
mov qword [rsp + 0x20], 4
lea r9, str..log
lea r8d, [r14 + 4]
lea rcx, [rbp - 0x40]
call fcn.164ea0680
test eax, eax
sete cl
jmp 0x164f99418
mov ecx, r14d
test cl, cl
je 0x164f99a08
call fcn.164fa5a20
mov rdx, rax
lea rax, str..to_rotate.:016x
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0x14
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rcx, qword [rbp - 0x40]
mov qword [rbp - 0x50], rcx
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x48], rax
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp + 0x30], xmm0
movabs r15, 0xc000000000000000
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x40], rdx
movabs r12, 0x4000000000000010
mov qword [rbp + 0x28], r12
mov qword [rbp - 0x50], 2
lea rax, [rbp + 0x20]
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rsp + 0x40], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x68]
call fcn.164e59d70
nop
mov rdi, qword [rbp + 0xe8]
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x164f994cc
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x88]
call fcn.164f9ef40
nop
lea r8, [rbp + 0x68]
mov rdx, rax
lea rcx, [rbp]
call fcn.164ee2c00
nop
lea rcx, [rbp + 0x88]
call fcn.164e54bf0
lea rax, [rbp + 0x68]
cmp qword [rbp + 0x80], 7
cmova rax, qword [rbp + 0x68]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp + 0x78]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.164f990b0
test al, al
je 0x164f999f4
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp - 0x30]
sub rax, rcx
cmp rax, 4
jb 0x164f99a3c
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], 4
lea rax, str..old
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x20]
call fcn.164e589c0
nop
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rax, qword [rbp - 0x20]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.164f990b0
test al, al
jne 0x164f999ea
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x164f995e9
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.164f9ef40
nop
lea r8, [rbp - 0x20]
mov rdx, rax
lea rcx, [rbp + 0x88]
call fcn.164ee2c00
nop
lea rcx, [rbp + 0x20]
call fcn.164e54bf0
lea rcx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 7
cmova rcx, qword [rbp + 0x88]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x10000
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rbp - 0x50], rax
cmp rax, 0xffffffffffffffff
jne 0x164f996f8
mov rcx, rsi
call fcn.164f992b0
test al, al
jne 0x164f999cd
lea rdx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rdx, qword [rbp]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov rdi, rbx
nop dword [rax]
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x164f996b0
mov r8, rdi
lea rcx, [rsp + 0x40]
call fcn.164e485e0
nop
cmp qword [rsp + 0x50], 0
je 0x164f996ee
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop
lea rcx, [rsp + 0x40]
jmp 0x164f999c7
call fcn.164fa5a20
lea rcx, str..to_delete.:016x
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0x14
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rcx, qword [rbp - 0x40]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rbp - 0x30]
mov qword [rsp + 0x68], rcx
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x78], r12
mov qword [rsp + 0x60], 2
lea rax, [rbp - 0x80]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x48]
call fcn.164e59d70
nop
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x164f9978c
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.164f9ef40
nop
lea r8, [rbp + 0x48]
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.164ee2c00
nop
lea rcx, [rsp + 0x60]
call fcn.164e54bf0
lea rax, [rbp + 0x48]
cmp qword [rbp + 0x60], 7
cmova rax, qword [rbp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.164f990b0
test al, al
je 0x164f99934
mov rcx, rbx
call fcn.164f992b0
mov rdi, 0xffffffffffffffff
test al, al
jne 0x164f99888
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 7
cmova rdx, qword [rbp + 0x20]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov r8, rdi
inc r8
cmp word [rdx + r8*2], 0
jne 0x164f99842
lea rcx, [rsp + 0x40]
call fcn.164e485e0
nop
cmp qword [rsp + 0x50], 0
je 0x164f9987e
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop
lea rcx, [rsp + 0x40]
call fcn.164e54bf0
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rax, qword [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.164f990b0
test al, al
jne 0x164f999b9
mov rcx, rsi
call fcn.164f992b0
test al, al
jne 0x164f999b9
lea rdx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rdx, qword [rbp]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x164f998f4
mov r8, rdi
lea rcx, [rsp + 0x40]
call fcn.164e485e0
nop
cmp qword [rsp + 0x50], 0
je 0x164f99932
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop
jmp 0x164f999ae
mov rcx, rsi
call fcn.164f992b0
test al, al
jne 0x164f999b9
lea rdx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rdx, qword [rbp]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x164f99970
mov r8, rdi
lea rcx, [rsp + 0x40]
call fcn.164e485e0
nop
cmp qword [rsp + 0x50], 0
je 0x164f999ae
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop
lea rcx, [rsp + 0x40]
call fcn.164e54bf0
nop
lea rcx, [rbp + 0x20]
call fcn.164e54bf0
nop
lea rcx, [rbp + 0x48]
call fcn.164e54bf0
nop
cmp rbx, 0xffffffffffffffff
je 0x164f999dd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0x88]
call fcn.164e54bf0
nop
lea rcx, [rbp - 0x20]
call fcn.164e54bf0
nop
lea rcx, [rbp]
call fcn.164e54bf0
nop
lea rcx, [rbp + 0x68]
call fcn.164e54bf0
nop
lea rcx, [rbp - 0x40]
call fcn.164e54bf0
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.165001080
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.164e43760
nop
int3