Function at 0x14006a1b4
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 [0x140102700]
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.14006a164
test al, al
je 0x14006a20b
or rax, 0xffffffffffffffff
jmp 0x14006a3f8
xor edx, edx
lea r8d, [rdx + 0x64]
lea r14, [0x140103410]
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 0x14006a289
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 0x14006a252
lea rcx, [rbp + 7]
call fcn.140069d2c
nop
cmp qword [rbp + 0x17], 0
je 0x14006a3e8
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, [0x1400dc140]
lea rcx, [rbp + 7]
call fcn.14006d3d4
test al, al
je 0x14006a3e8
lea rcx, [rbp + 7]
call fcn.14006cfb4
test al, al
jne 0x14006a2f6
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 0x14006a3e8
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, [0x1400e4850]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14006a3e0
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
movdqa xmm1, xmmword [0x1400dbf10]
movdqu xmmword [rbp + 0x37], xmm1
movsd xmm0, qword [str.ntoskrnl.exe]
movsd qword [rbp + 0x27], xmm0
mov eax, dword [0x1400e48a0]
mov dword [rbp + 0x2f], eax
mov byte [rbp + 0x33], 0
lea rcx, [rbp + 0x27]
call fcn.14006d714
mov qword [0x140103478], rax
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0xf
jbe 0x14006a3b7
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a3ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006a3ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cfa98
mov rax, qword [0x140103478]
test rax, rax
je 0x14006a3e0
mov rcx, rbx
call fcn.1400693a8
test al, al
je 0x14006a3e0
mov rcx, rbx
call fcn.140068d08
test al, al
je 0x14006a3e0
mov rcx, rbx
call fcn.140069144
test al, al
jne 0x14006a3ec
mov rcx, rbx
call fcn.14006af0c
or rbx, 0xffffffffffffffff
lea rcx, [rbp + 7]
call fcn.14005fd70
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400cfb30
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