Function at 0x140006ecc
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r14, rcx
lea rdi, [rcx + 0x10]
mov rcx, rdi
mov edx, 4
call fcn.140006000
test eax, eax
js 0x1400071f4
mov rdi, qword [r14 + 0x78]
mov esi, dword [r14 + 0x80]
mov qword [rsp + 0x40], 0
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test esi, esi
je 0x140006f22
test al, al
je 0x140006f22
mov qword [rsp + 0x40], rdi
mov rbx, qword [r14 + 0x78]
movzx eax, word [rbx]
cmp eax, 0x5a4d
jne 0x14000724d
movsxd rax, dword [rbx + 0x3c]
mov edx, dword [rax + rbx]
cmp edx, 0x4550
jne 0x14000724d
mov qword [rsp + 0x38], r14
mov rcx, rax
add rcx, rbx
movzx eax, word [rcx + 6]
mov r15d, eax
test r15, r15
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x2c], edx
je 0x14000703f
movzx eax, word [rcx + 0x14]
lea r12, [rcx + rax]
add r12, 0x18
lea rdi, [0x14000798a]
lea r13, [0x140007998]
lea rbp, [0x140007990]
xor r14d, r14d
lea rsi, [r14 + r14*4]
lea rcx, [r12 + rsi*8]
mov rdx, rdi
call sub.ntoskrnl.exe_strstr
test rax, rax
je 0x140007018
mov ecx, dword [r12 + rsi*8 + 8]
cmp ecx, 7
je 0x140007018
mov eax, dword [r12 + rsi*8 + 0xc]
add rax, rbx
add ecx, 0xfffffff9
mov r8, rax
xor edx, edx
xor r11d, r11d
xor r9d, r9d
mov r10d, r11d
mov r11b, byte [r8 + r9]
cmp r11b, byte [r9 + r13]
je 0x140006fd8
cmp byte [r9 + rbp], 0x3f
jne 0x140006ff3
lea rsi, [r9 + 1]
cmp r9, 6
setae r9b
mov r10d, r9d
mov r11d, r9d
mov r9, rsi
cmp rsi, 7
jne 0x140006fc4
test r10b, 1
jne 0x14000700c
mov r9, rdx
inc r9
inc r8
mov rdx, r9
cmp r9, rcx
jne 0x140006fbe
jmp 0x140007018
add rdx, rax
mov rax, rdx
jne 0x14000721e
mov rax, r14
inc rax
mov r14, rax
cmp rax, r15
jne 0x140006f8f
mov edx, dword [rsp + 0x2c]
cmp edx, 0x4550
mov rcx, qword [rsp + 0x30]
jne 0x14000724d
movzx eax, word [rcx + 6]
mov r15d, eax
test r15, r15
je 0x140007121
movzx eax, word [rcx + 0x14]
lea r12, [rcx + rax]
add r12, 0x18
lea rdi, [0x1400079a0]
lea r13, [0x140007998]
lea rbp, [0x140007990]
xor r14d, r14d
lea rsi, [r14 + r14*4]
lea rcx, [r12 + rsi*8]
mov rdx, rdi
call sub.ntoskrnl.exe_strstr
test rax, rax
je 0x1400070fc
mov ecx, dword [r12 + rsi*8 + 8]
cmp ecx, 7
je 0x1400070fc
mov eax, dword [r12 + rsi*8 + 0xc]
add rax, rbx
add ecx, 0xfffffff9
mov r8, rax
xor edx, edx
xor r11d, r11d
xor r9d, r9d
mov r10d, r11d
mov r11b, byte [r8 + r9]
cmp r11b, byte [r9 + r13]
je 0x1400070bc
cmp byte [r9 + rbp], 0x3f
jne 0x1400070d7
lea rsi, [r9 + 1]
cmp r9, 6
setae r9b
mov r10d, r9d
mov r11d, r9d
mov r9, rsi
cmp rsi, 7
jne 0x1400070a8
test r10b, 1
jne 0x1400070f0
mov r9, rdx
inc r9
inc r8
mov rdx, r9
cmp r9, rcx
jne 0x1400070a2
jmp 0x1400070fc
add rdx, rax
mov rax, rdx
jne 0x14000721e
mov rax, r14
inc rax
mov r14, rax
cmp rax, r15
jne 0x140007073
cmp dword [rsp + 0x2c], 0x4550
mov rcx, qword [rsp + 0x30]
jne 0x14000724d
movzx eax, word [rcx + 6]
mov r15d, eax
test r15, r15
je 0x14000724d
movzx eax, word [rcx + 0x14]
lea r14, [rcx + rax]
add r14, 0x18
lea rdi, [0x1400079a6]
lea r12, [0x140007998]
lea r13, [0x140007990]
xor ebp, ebp
lea rsi, [rbp*4]
add rsi, rbp
lea rcx, [r14 + rsi*8]
mov rdx, rdi
call sub.ntoskrnl.exe_strstr
test rax, rax
je 0x1400071e0
mov ecx, dword [r14 + rsi*8 + 8]
cmp ecx, 7
je 0x1400071e0
mov eax, dword [r14 + rsi*8 + 0xc]
add rax, rbx
add ecx, 0xfffffff9
mov r8, rax
xor edx, edx
xor r11d, r11d
xor r9d, r9d
mov r10d, r11d
mov r11b, byte [r8 + r9]
cmp r11b, byte [r9 + r12]
je 0x1400071a4
cmp byte [r9 + r13], 0x3f
jne 0x1400071bf
lea rsi, [r9 + 1]
cmp r9, 6
setae r9b
mov r10d, r9d
mov r11d, r9d
mov r9, rsi
cmp rsi, 7
jne 0x140007190
test r10b, 1
jne 0x1400071d8
mov r9, rdx
inc r9
inc r8
mov rdx, r9
cmp r9, rcx
jne 0x14000718a
jmp 0x1400071e0
add rdx, rax
mov rax, rdx
jne 0x14000721e
mov rax, rbp
inc rax
mov rbp, rax
cmp rax, r15
jne 0x140007154
jmp 0x14000724d
mov rcx, rdi
mov edx, 1
call fcn.140006000
test eax, eax
js 0x14000721a
mov rcx, rdi
mov edx, 4
call fcn.140006000
test eax, eax
jns 0x140006ef8
xor eax, eax
jmp 0x140007269
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14000724d
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14000724d
add rcx, 0x18
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x90], rcx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
setne al
jmp 0x14000724f
xor eax, eax
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140007267
xor ecx, ecx
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret