Function at 0x25a50
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0xd0
mov r14, r9
lea r15, [0x00062108]
mov esi, dword [0x000620ec]
xor ebx, ebx
mov dword [rsp + 0x40], ebx
cmp dword [0x000620e8], ebx
je 0x25d63
cmp qword [0x00062100], rbx
je 0x25d63
cmp r9, rbx
je 0x25d63
cmp esi, ebx
je 0x25d63
mov edi, 0x410
mov r8d, 0x466c6962
mov rdx, rdi
lea ecx, [rbx + 1]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r12, rax
mov qword [rsp + 0x48], rax
cmp rax, rbx
jne 0x25ade
mov eax, 0xc000009a
jmp 0x25d68
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.000407c0
lea rdx, [0x00041a70]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x00041160]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdi, qword [r14 + 0x10]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.0001f6e0
cmp ax, word [rdi]
jae 0x25b77
mov word [rsp + 0x50], bx
mov eax, 0x208
mov word [rsp + 0x52], ax
mov qword [rsp + 0x58], r12
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea rdx, [0x000620a8]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
mov r11, qword [r14 + 0x10]
mov rdx, qword [r11 + 8]
add rdx, 0x16
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rdi, [rsp + 0x50]
mov r13d, ebx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 5
xor r9d, r9d
mov r8d, 0x40000000
movzx edx, word [rdi]
mov rcx, qword [rdi + 8]
call fcn.0002fb7c
mov edi, eax
mov dword [rsp + 0x44], eax
cmp eax, ebx
jl 0x25cee
mov dword [rsp + 0xb8], esi
mov rcx, qword [0x00068120]
mov rax, rcx
mov qword [rsp + 0x68], rcx
lea r9, [0x00068120]
mov r8d, dword [rsp + 0x40]
cmp rax, r9
je 0x25bf2
cmp r8d, dword [rax + 0x40]
je 0x25bf5
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
jmp 0x25bdd
mov rax, rbx
cmp rax, rbx
je 0x25c31
test byte [rax + 0x4c], 0x10
jne 0x25c31
mov rax, qword [rax + 0x30]
mov edx, dword [rax + 0x10]
cmp edx, 3
jne 0x25c10
mov edi, ebx
jmp 0x25c2b
cmp edx, 2
je 0x25c29
cmp edx, 1
je 0x25c29
sub edx, 4
neg edx
sbb edi, edi
and edi, 0xc000000d
jmp 0x25c2b
mov edi, ebx
mov dword [rsp + 0x44], edi
jmp 0x25c3a
mov edi, 0xc000000d
mov dword [rsp + 0x44], edi
cmp edi, ebx
jl 0x25cde
cmp r15, rbx
je 0x25cde
mov eax, dword [r15 + 0x20]
mov dword [rsp + 0x88], eax
mov rax, qword [r15]
mov qword [rsp + 0x8c], rax
mov dword [rsp + 0xa4], esi
mov rax, qword [r15 + 8]
mov qword [rsp + 0x94], rax
mov qword [rsp + 0x9c], rax
mov qword [rsp + 0x70], rcx
cmp rcx, r9
je 0x25c96
cmp r8d, dword [rcx + 0x40]
je 0x25c99
mov rcx, qword [rcx]
mov qword [rsp + 0x70], rcx
jmp 0x25c81
mov rcx, rbx
cmp rcx, rbx
je 0x25cd5
test byte [rcx + 0x4c], 0x10
jne 0x25cd5
mov rax, qword [rcx + 0x30]
mov ecx, dword [rax + 0x10]
cmp ecx, 3
jne 0x25cb4
mov edi, ebx
jmp 0x25ccf
cmp ecx, 2
je 0x25ccd
cmp ecx, 1
je 0x25ccd
sub ecx, 4
neg ecx
sbb edi, edi
and edi, 0xc000000d
jmp 0x25ccf
mov edi, ebx
mov dword [rsp + 0x44], edi
jmp 0x25cde
mov edi, 0xc000000d
mov dword [rsp + 0x44], edi
mov ecx, r8d
call fcn.0002fc9c
mov esi, ebx
mov dword [rsp + 0x40], ebx
jmp 0x25cf2
mov esi, dword [rsp + 0x40]
cmp edi, ebx
je 0x25d0d
cmp edi, 0xc0000043
jne 0x25d04
mov dword [rsp + 0x44], ebx
jmp 0x25d0d
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
cmp esi, ebx
je 0x25d1e
mov ecx, esi
call fcn.0002fc9c
mov esi, ebx
mov dword [rsp + 0x40], ebx
cmp r12, rbx
je 0x25d33
mov rcx, r12
call fcn.00025a2c
mov r12, rbx
mov qword [rsp + 0x48], rbx
jmp 0x25d43
cmp esi, ebx
je 0x25d4e
mov ecx, esi
call fcn.0002fc9c
cmp r12, rbx
je 0x25d5e
xor edx, edx
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, r13d
jmp 0x25d68
mov eax, 0xc000000d
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret