Function at 0x14006af08
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x140104700]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
imul eax, ebx
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call fcn.14006aeb8
test al, al
je 0x14006af5f
or rax, 0xffffffffffffffff
jmp 0x14006b14c
xor edx, edx
lea r8d, [rdx + 0x64]
lea r14, [0x140105440]
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x66666667
imul r8d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
shl ecx, 2
sub r8d, ecx
add r8d, 0xa
movsxd rdi, r8d
test r8d, r8d
jle 0x14006afdd
xor ebx, ebx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rcx, eax
movabs rax, 0x4ec4ec4ec4ec4ec5
mul rcx
shr rdx, 4
imul rax, rdx, 0x34
sub rcx, rax
lea rax, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
mov al, byte [rcx + rax]
mov byte [rbx + r14], al
inc rbx
cmp rbx, rdi
jl 0x14006afa6
lea rcx, [rbp + 7]
call fcn.14006aa80
nop
cmp qword [rbp + 0x17], 0
je 0x14006b13c
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rcx, qword [rbp + 7]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
mov r8d, 0x8708
lea rdx, [0x1400dd420]
lea rcx, [rbp + 7]
call fcn.14006e124
test al, al
je 0x14006b13c
lea rcx, [rbp + 7]
call fcn.14006dd04
test al, al
jne 0x14006b04a
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rcx, qword [rbp + 7]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
jmp 0x14006b13c
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [0x1400e5b30]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14006b134
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
movdqa xmm1, xmmword [0x1400dd1b0]
movdqu xmmword [rbp + 0x37], xmm1
movsd xmm0, qword [str.ntoskrnl.exe]
movsd qword [rbp + 0x27], xmm0
mov eax, dword [0x1400e5b80]
mov dword [rbp + 0x2f], eax
mov byte [rbp + 0x33], 0
lea rcx, [rbp + 0x27]
call fcn.14006e464
mov qword [0x1401054a8], rax
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0xf
jbe 0x14006b10b
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006b0ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006b0ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d07e8
mov rax, qword [0x1401054a8]
test rax, rax
je 0x14006b134
mov rcx, rbx
call fcn.14006a0fc
test al, al
je 0x14006b134
mov rcx, rbx
call fcn.140069a5c
test al, al
je 0x14006b134
mov rcx, rbx
call fcn.140069e98
test al, al
jne 0x14006b140
mov rcx, rbx
call fcn.14006bc60
or rbx, 0xffffffffffffffff
lea rcx, [rbp + 7]
call fcn.140060a4c
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400d0880
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret