Function at 0x140002540
Capabilities:
Delete file
Enumerate pe sections

Disassembly:
push rbp
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor eax, eax
mov qword [rbp - 0x80], rcx
mov dword [rbp - 0x64], eax
lea rdx, [rbp - 0x70]
mov qword [rbp - 0x70], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov r15, rcx
movabs rax, 0xfffff78000000014
lea rcx, [rbp - 0x68]
mov rax, qword [rax]
mov qword [rbp - 0x68], rax
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, ds:[rbp - 0x20]
lea rcx, [rbp - 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov eax, 0x7e7
cmp word [rbp - 0x20], ax
jg 0x1400029fb
cmp word ds:[rbp - 0x1e], 0xc
jg 0x1400029fb
cmp word [rbp - 0x1c], 5
jg 0x1400029fb
mov qword [rsp + 0x108], r13
mov edx, 0x70
xor ecx, ecx
mov r8d, 0x5347
mov r13d, 0xc0000001
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test rax, rax
je 0x140002615
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
mov rcx, rax
mov qword [0x140017950], rax
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400029f0
call fcn.1400021c0
test eax, eax
js 0x1400029f0
mov rcx, qword ds:[r15 + 0x28]
call fcn.140001f80
test eax, eax
js 0x1400029f0
mov rax, qword [0x140017950]
mov qword [rsp + 0x110], r12
xor r12d, r12d
mov qword [rsp + 0x100], r14
mov qword [rsp + 0x138], rbx
mov r14, qword [rax + 0x28]
mov qword [rsp + 0x140], rsi
mov qword [rsp + 0x148], rdi
test r14, r14
je 0x140002785
movsxd rcx, dword [r14 + 0x3c]
lea rbx, [r14 + 0x18]
add rbx, rcx
xor r10d, r10d
xor esi, esi
movzx eax, word [rcx + r14 + 0x14]
movzx r15d, word [rcx + r14 + 6]
add rbx, rax
test r15d, r15d
je 0x140002781
lea r8, [0x140002eb0]
mov qword [rbp - 0x78], r8
nop
mov eax, dword [rbx]
cmp eax, 0x7865742e
jne 0x1400026cf
cmp byte [rbx + 4], 0x74
je 0x1400026da
cmp eax, 0x45474150
jne 0x14000275b
mov edi, dword [rbx + 0xc]
mov rax, 0xffffffffffffffff
add rdi, r14
inc rax
cmp byte [r8 + rax], r12b
jne 0x1400026e7
mov r11d, dword [rbx + 8]
mov r9d, r12d
sub r11d, eax
je 0x140002758
nop dword [rax]
mov rax, r8
mov r10d, r9d
add r10, rdi
lea rdx, [0x140002ec0]
mov r8, r10
mov cl, 0x78
sub r8, qword [rbp - 0x78]
nop dword [rax]
cmp cl, 0x78
jne 0x14000272e
movzx ecx, byte [rdx]
cmp byte [r8 + rax], cl
jne 0x140002747
movzx ecx, byte [rax + 1]
inc rax
inc rdx
test cl, cl
jne 0x140002720
nop dword [rax]
test r10, r10
jne 0x140002776
jmp 0x14000275b
inc r9d
cmp r9d, r11d
jae 0x140002758
lea r8, [0x140002eb0]
jmp 0x140002700
xor r10d, r10d
inc esi
lea r8, [0x140002eb0]
add rbx, 0x28
cmp esi, r15d
jb 0x1400026c0
test r10, r10
je 0x140002781
movsxd r12, dword [r10 + 3]
add r12, 7
add r12, r10
mov r15, qword [rbp - 0x80]
mov rcx, r12
call fcn.140001c80
mov r12, qword [rsp + 0x110]
test eax, eax
js 0x1400029d0
mov rbx, qword [0x140017950]
cmp dword [rbx + 4], 0xa00
jae 0x1400027e5
movabs rax, 0xfffff68000000000
mov qword [rbx + 0x40], rax
movabs rax, 0xfffff6fb40000000
mov qword [rbx + 0x48], rax
movabs rax, 0xfffff6fb7da00000
mov qword [rbx + 0x50], rax
movabs rax, 0xfffff6fb7dbed000
mov qword [rbx + 0x58], rax
mov rax, qword [0x140017950]
cmp dword [rax + 4], 0x630
jbe 0x1400028a6
mov rsi, cr3
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmGetVirtualForPhysical]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
xor r14d, r14d
test al, al
je 0x1400028a9
and rdi, 0xfffffffffffff000
sar rsi, 0xc
movabs rcx, 0xfffffffff
mov edx, r14d
mov rax, qword [rdi]
shr rax, 0xc
and rax, rcx
cmp rax, rsi
je 0x140002865
nop word [rax + rax]
mov rax, qword ds:[rdi + rdx*8 + 8]
inc rdx
shr rax, 0xc
and rax, rcx
cmp rax, rsi
jne 0x140002850
mov rcx, rdx
movabs rax, 0xffff000000000000
shl rcx, 0x27
or rcx, rax
mov rax, rdx
mov qword [rbx + 0x40], rcx
shl rax, 0x1e
or rax, rcx
mov rcx, rdx
shl rcx, 0x15
or rcx, rax
shl rdx, 0xc
or rdx, rcx
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x58], rdx
mov qword [rbx + 0x50], rcx
jmp 0x1400028a9
xor r14d, r14d
call fcn.140001920
test eax, eax
js 0x1400029d0
mov rax, qword ds:[r15 + 0x28]
lea r9, [rbp - 0x30]
mov qword [rsp + 0x70], r14
lea r8, [rbp - 0x60]
mov dword [rsp + 0x68], 0x100
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x60], r14
add rax, 0x48
mov dword [rsp + 0x58], r14d
xorps xmm0, xmm0
mov dword [rsp + 0x50], r14d
mov edx, 0x110000
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x60], 0x30
mov qword [rbp - 0x58], r14
mov dword [rbp - 0x48], 0x240
mov qword [rbp - 0x50], rax
movdqu xmmword [rbp - 0x40], xmm0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileEx]
test eax, eax
js 0x1400029ca
mov r8, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
lea rax, ds:[rbp - 0x80]
mov rcx, qword [rbp - 0x78]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov edx, 0x110000
mov qword [rsp + 0x28], rax
mov r8, qword [r8]
mov dword [rsp + 0x20], 0x454c4946
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandleWithTag]
test eax, eax
js 0x1400029be
mov rax, qword [rbp - 0x80]
xor edx, edx
mov rcx, qword [rax + 0x28]
mov qword [rcx + 0x10], r14
mov rcx, qword [rbp - 0x80]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmFlushImageSection]
test al, al
je 0x1400029b4
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp - 0x78]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
mov r13d, 0xe0000000
mov rdi, qword [rsp + 0x148]
mov rsi, qword [rsp + 0x140]
mov rbx, qword [rsp + 0x138]
mov r14, qword [rsp + 0x100]
mov eax, r13d
mov r13, qword [rsp + 0x108]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140002a30
add rsp, 0x118
pop r15
pop rbp
ret