Function at 0x1400413b4
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 [0x1401b67c0]
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.140041364
test al, al
je 0x14004140b
or rax, 0xffffffffffffffff
jmp 0x140041604
xor edx, edx
lea r8d, [rdx + 0x64]
lea r14, [0x1401b6f20]
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 0x140041489
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 0x140041452
lea rcx, [rbp + 7]
call fcn.140040f28
nop
cmp qword [rbp + 0x17], 0
je 0x1400415f4
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, [0x1400c6cd0]
lea rcx, [rbp + 7]
call fcn.140045b44
test al, al
je 0x1400415f4
lea rcx, [rbp + 7]
call fcn.140045818
test al, al
jne 0x1400414f6
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 0x1400415f4
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, str..Nal
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400415ec
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
movdqa xmm1, xmmword [0x1400cf8d0]
movdqu xmmword [rbp + 0x37], xmm1
movsd xmm0, qword [str.ntoskrnl.exe]
movsd qword [rbp + 0x27], xmm0
mov eax, dword [0x1400cf470]
mov dword [rbp + 0x2f], eax
mov byte [rbp + 0x33], 0
lea rcx, [rbp + 0x27]
call fcn.140045e58
mov qword [0x1401b6f88], rax
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0xf
jbe 0x1400415b7
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400415ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400415ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bbf20
mov rax, qword [0x1401b6f88]
mov rcx, rbx
test rax, rax
je 0x1400415ef
call fcn.140040240
mov rcx, rbx
test al, al
je 0x1400415ef
call fcn.14003fb60
mov rcx, rbx
test al, al
je 0x1400415ef
call fcn.14003ffc8
mov rcx, rbx
test al, al
je 0x1400415ef
call fcn.1400404b4
test al, al
jne 0x1400415f8
mov rcx, rbx
call fcn.140042348
or rbx, 0xffffffffffffffff
lea rcx, [rbp + 7]
call fcn.1400427f0
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400bbdc0
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