Function at 0x140002180
Capabilities:
Delete file
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push r13
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
xor edx, edx
lea r8, [0x140002ae0]
mov r15, rcx
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov edx, 0x70
xor ecx, ecx
mov r8d, 0x5347
mov r13d, 0xc0000001
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test rax, rax
je 0x1400021e7
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 [0x140013010], rax
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140002712
call fcn.140001e40
test eax, eax
js 0x140002712
mov qword [rsp + 0x118], rbx
lea rdx, [0x140002ac0]
mov rbx, qword [r15 + 0x28]
lea rcx, [rbp - 0x29]
mov qword [rsp + 0xd0], r14
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov r14, rax
test rax, rax
je 0x140002702
mov rax, qword [0x140013028]
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xe0], rdi
mov dword [rbp + 0x77], 0
test rax, rax
jne 0x140002291
lea rdx, [0x140002930]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [0x140013028], rax
test rax, rax
je 0x1400022ab
xor edx, edx
lea r9, [rbp + 0x77]
xor r8d, r8d
lea ecx, [rdx + 0xb]
call qword [0x1400030d0]
test eax, eax
jns 0x14000239f
mov eax, dword [rbp + 0x77]
test eax, eax
je 0x1400026f2
mov r8d, 0x5347
mov edx, eax
xor ecx, ecx
mov esi, eax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x1400026f2
test rsi, rsi
je 0x1400022e6
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.140002840
mov r8d, dword [rbp + 0x77]
lea r9, [rbp + 0x77]
mov rdx, rdi
call fcn.140001000
mov esi, eax
test eax, eax
js 0x140002389
xor r10d, r10d
cmp dword [rdi], r10d
jbe 0x140002389
nop dword [rax]
mov eax, r10d
imul rcx, rax, 0x128
mov r9, qword [rcx + rdi + 0x18]
cmp r14, r9
jb 0x140002381
mov eax, dword [rcx + rdi + 0x20]
add rax, r9
cmp r14, rax
jae 0x140002381
mov rax, qword [rbx]
cmp rax, rbx
je 0x140002381
nop dword [rax + rax]
mov rdx, qword [rax + 0x30]
cmp r9, rdx
jne 0x14000235d
mov r8, qword [rax + 8]
cmp r8, rdx
jb 0x14000235d
mov ecx, dword [rax + 0x40]
add rcx, rdx
cmp r8, rcx
jb 0x140002367
mov rax, qword [rax]
cmp rax, rbx
jne 0x140002340
jmp 0x140002381
mov rcx, qword [0x140013010]
mov qword [rcx + 0x28], r9
mov rcx, qword [rax + 8]
mov rax, qword [0x140013010]
mov qword [rax + 0x38], rcx
inc r10d
cmp r10d, dword [rdi]
jb 0x140002310
mov edx, 0x5347
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test esi, esi
js 0x1400026f2
mov rax, qword [0x140013010]
mov qword [rsp + 0xd8], r12
xor r12d, r12d
mov r14, qword [rax + 0x28]
test r14, r14
je 0x1400024a6
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 0x1400024a2
lea rcx, [0x1400029e0]
mov qword [rbp + 0x77], rcx
mov eax, dword [rbx]
cmp eax, 0x7865742e
jne 0x140002400
cmp byte [rbx + 4], 0x74
je 0x140002407
cmp eax, 0x45474150
jne 0x14000247c
mov edi, dword [rbx + 0xc]
mov rax, 0xffffffffffffffff
add rdi, r14
inc rax
cmp byte [rcx + rax], r12b
jne 0x140002414
mov r11d, dword [rbx + 8]
mov r9d, r12d
sub r11d, eax
je 0x140002479
nop dword [rax]
mov r10d, r9d
lea rdx, [0x1400029f0]
add r10, rdi
mov al, 0x78
mov r8, r10
sub r8, qword [rbp + 0x77]
cmp al, 0x78
jne 0x140002453
movzx eax, byte [rdx]
cmp byte [r8 + rcx], al
jne 0x140002468
movzx eax, byte [rcx + 1]
inc rcx
inc rdx
test al, al
jne 0x140002446
test r10, r10
jne 0x140002497
jmp 0x14000247c
inc r9d
cmp r9d, r11d
jae 0x140002479
lea rcx, [0x1400029e0]
jmp 0x140002430
xor r10d, r10d
inc esi
lea rcx, [0x1400029e0]
add rbx, 0x28
cmp esi, r15d
jb 0x1400023f1
test r10, r10
je 0x1400024a2
movsxd rax, dword [r10 + 3]
lea r12, [r10 + 7]
add r12, rax
mov r15, qword [rbp + 0x67]
mov rcx, r12
call fcn.140001c30
mov r12, qword [rsp + 0xd8]
test eax, eax
js 0x1400026f2
mov rbx, qword [0x140013010]
cmp dword [rbx + 4], 0xa00
jae 0x140002506
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 [0x140013010]
cmp dword [rax + 4], 0x630
jbe 0x1400025c5
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 0x1400025c8
and rdi, 0xfffffffffffff000
sar rsi, 0xc
movabs rcx, 0xfffffffff
mov r8d, r14d
mov rax, qword [rdi]
shr rax, 0xc
and rax, rcx
cmp rax, rsi
je 0x140002584
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rdi + r8*8 + 8]
inc r8
shr rax, 0xc
and rax, rcx
cmp rax, rsi
jne 0x140002570
mov rcx, r8
mov rdx, r8
shl rcx, 0x27
movabs rax, 0xffff000000000000
or rcx, rax
shl rdx, 0x15
mov rax, r8
mov qword [rbx + 0x40], rcx
shl rax, 0x1e
or rax, rcx
shl r8, 0xc
or rdx, rax
mov qword [rbx + 0x48], rax
or r8, rdx
mov qword [rbx + 0x50], rdx
mov qword [rbx + 0x58], r8
jmp 0x1400025c8
xor r14d, r14d
call fcn.1400018e0
test eax, eax
js 0x1400026f2
xor edx, edx
lea r8, [0x140002b00]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rax, qword [r15 + 0x28]
lea r9, [rbp - 0x19]
mov qword [rsp + 0x70], r14
lea r8, [rbp - 9]
mov dword [rsp + 0x68], 0x100
lea rcx, [rbp + 0x7f]
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 + 0x7f], r14
mov qword [rbp + 0x77], r14
mov dword [rbp - 9], 0x30
mov qword [rbp - 1], r14
mov dword [rbp + 0xf], 0x240
mov qword [rbp + 7], rax
movdqu xmmword [rbp + 0x17], xmm0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileEx]
test eax, eax
js 0x1400026ec
mov r8, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
lea rax, [rbp + 0x77]
mov rcx, qword [rbp + 0x7f]
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 0x1400026e0
mov rax, qword [rbp + 0x77]
xor edx, edx
mov rcx, qword [rax + 0x28]
mov qword [rcx + 0x10], r14
mov rcx, qword [rbp + 0x77]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmFlushImageSection]
test al, al
je 0x1400026d6
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp + 0x7f]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
mov r13d, 0xe0000000
mov rdi, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0x118]
mov r14, qword [rsp + 0xd0]
mov eax, r13d
add rsp, 0xf0
pop r15
pop r13
pop rbp
ret