Function at 0x140003a20
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rax, qword [0x1400102d0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x44], 0
lea rax, [rsp + 0xb0]
lea rcx, [0x14000d8a0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [0x140011b68]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
xor edx, edx
mov ecx, 0xb
mov rax, qword [rsp + 0x98]
call qword [0x14000f208]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xc0000004
jne 0x140003b62
cmp qword [rsp + 0x48], 0
je 0x140003aea
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x48], 0
mov eax, dword [rsp + 0x54]
mov r8d, 0x6864694e
mov edx, eax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140003b18
mov eax, 0xc000009a
jmp 0x140003dc7
mov rax, qword [0x140011b68]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea r9, [rsp + 0x54]
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x48]
mov ecx, 0xb
mov rax, qword [rsp + 0xa8]
call qword [0x14000f208]
mov dword [rsp + 0x44], eax
jmp 0x140003abb
cmp dword [rsp + 0x44], 0
jl 0x140003b71
cmp qword [rsp + 0x48], 0
jne 0x140003b7b
jmp 0x140003dab
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x40], 0
jmp 0x140003b9d
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
cmp dword [rsp + 0x40], eax
jae 0x140003c21
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + rax + 0x10]
cmp qword [sym.imp.ntoskrnl.exe_NtCreateFile], rax
jb 0x140003c1c
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x128
mov ecx, dword [rsp + 0x40]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x68]
mov ecx, dword [rdx + rcx + 0x18]
mov rdx, qword [rsp + 0x68]
add rcx, qword [rdx + rax + 0x10]
mov rax, rcx
cmp qword [sym.imp.ntoskrnl.exe_NtCreateFile], rax
jae 0x140003c1c
lfence
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + rax + 0x10]
mov qword [rsp + 0x60], rax
jmp 0x140003c21
jmp 0x140003b93
cmp qword [rsp + 0x60], 0
jne 0x140003c33
jmp 0x140003dab
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
mov byte [rsp + 0x50], al
mov dword [rsp + 0x44], 0xc0000225
mov rax, qword [rsp + 0x80]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140003c6e
jmp 0x140003dab
mov rax, qword [rsp + 0x80]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0x4550
je 0x140003ca1
jmp 0x140003dab
mov rax, qword [rsp + 0x78]
add rax, 0x108
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x58], rax
jmp 0x140003cd1
mov rax, qword [rsp + 0x58]
add rax, 0x28
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x58], rax
jae 0x140003dab
lfence
mov rax, qword [rsp + 0x58]
mov rax, qword [rsp + 0x58]
lea rcx, [0x14000d8b0]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x140003d21
inc rax
test dl, dl
jne 0x140003d0e
xor eax, eax
jmp 0x140003d26
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140003da6
lfence
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8d, 0xf
mov dl, 0xcc
lea rcx, [rsp + 0xb0]
call fcn.140002880
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140003da6
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 3]
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax + 7]
mov qword [0x140011b78], rax
jmp 0x140003dab
jmp 0x140003cc3
cmp qword [rsp + 0x48], 0
je 0x140003dc3
mov edx, 0x6864694e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14000d060
add rsp, 0xd8
pop rdi
pop rsi
ret