Function at 0x14000c120
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x86
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3d8]
mov rax, qword [0x140025040]
xor rax, rbp
mov qword [rbp + 0x380], rax
lea rcx, [0x14002924e]
call fcn.140015f10
lea rcx, str.____Mapping_your_driver..._n
call fcn.14000aa40
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
lea r8, [rbp + 0x28]
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x3b0]
call fcn.1400114d0
movzx eax, al
test eax, eax
jne 0x14000c1b3
lea rcx, str.____Cant_map_file_to_memory_n
call fcn.14000aa40
xor al, al
jmp 0x14000c7cc
mov rax, qword [rbp + 8]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000c21d
lea rcx, str.____Dos_signature_doesnt_match_n
call fcn.14000aa40
mov rax, qword [rbp + 8]
mov qword [rbp + 0x2e8], rax
mov rcx, qword [rbp + 0x2e8]
call fcn.140015930
cmp qword [rbp + 0x2e8], 0
jne 0x14000c203
mov qword [rbp + 0x378], 0
jmp 0x14000c216
mov qword [rbp + 8], 0x8123
mov rax, qword [rbp + 8]
mov qword [rbp + 0x378], rax
xor al, al
jmp 0x14000c7cc
mov rax, qword [rbp + 0x48]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
cmp dword [rax], 0x4550
je 0x14000c293
lea rcx, str.____NT_signature_doesnt_match_n
call fcn.14000aa40
mov rax, qword [rbp + 8]
mov qword [rbp + 0x308], rax
mov rcx, qword [rbp + 0x308]
call fcn.140015930
cmp qword [rbp + 0x308], 0
jne 0x14000c279
mov qword [rbp + 0x378], 0
jmp 0x14000c28c
mov qword [rbp + 8], 0x8123
mov rax, qword [rbp + 8]
mov qword [rbp + 0x378], rax
xor al, al
jmp 0x14000c7cc
mov rax, qword [rbp + 0x68]
add rax, 0x18
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x68]
add rax, 4
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
movzx eax, word [rax]
cmp eax, 0x8664
je 0x14000c316
lea rcx, str.____Machine___AMD64_n
call fcn.14000aa40
mov rax, qword [rbp + 8]
mov qword [rbp + 0x328], rax
mov rcx, qword [rbp + 0x328]
call fcn.140015930
cmp qword [rbp + 0x328], 0
jne 0x14000c2fc
mov qword [rbp + 0x378], 0
jmp 0x14000c30f
mov qword [rbp + 8], 0x8123
mov rax, qword [rbp + 8]
mov qword [rbp + 0x378], rax
xor al, al
jmp 0x14000c7cc
lea rcx, str.____Allocating_local_image_base..._n
call fcn.14000aa40
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0x38]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x14000c3af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualAlloc_error:__d_n
call fcn.14000aa40
mov rax, qword [rbp + 8]
mov qword [rbp + 0x348], rax
mov rcx, qword [rbp + 0x348]
call fcn.140015930
cmp qword [rbp + 0x348], 0
jne 0x14000c395
mov qword [rbp + 0x378], 0
jmp 0x14000c3a8
mov qword [rbp + 8], 0x8123
mov rax, qword [rbp + 8]
mov qword [rbp + 0x378], rax
xor al, al
jmp 0x14000c7cc
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0x3c]
mov r8d, eax
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0xc8]
call sub.VCRUNTIME140D.dll_memcpy
mov rax, qword [rbp + 0x68]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0xe8], rax
mov dword [rbp + 0x104], 0
jmp 0x14000c410
mov eax, dword [rbp + 0x104]
inc eax
mov dword [rbp + 0x104], eax
mov rax, qword [rbp + 0xe8]
add rax, 0x28
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xa8]
movzx eax, word [rax + 2]
cmp dword [rbp + 0x104], eax
jae 0x14000c486
mov rax, qword [rbp + 0xe8]
cmp dword [rax + 0x10], 0
je 0x14000c481
mov rax, qword [rbp + 0xe8]
mov eax, dword [rax + 0x10]
mov rcx, qword [rbp + 0xe8]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rbp + 8]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rbp + 0xe8]
mov edx, dword [rdx + 0xc]
mov r8, qword [rbp + 0xc8]
add r8, rdx
mov rdx, r8
mov qword [rbp + 0x378], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rbp + 0x378]
mov rcx, rax
call sub.VCRUNTIME140D.dll_memcpy
jmp 0x14000c3f0
lea rcx, str.___Local_image_allocated__n
call fcn.14000aa40
mov rax, qword [rbp + 8]
mov qword [rbp + 0x368], rax
mov rcx, qword [rbp + 0x368]
call fcn.140015930
cmp qword [rbp + 0x368], 0
jne 0x14000c4c0
mov qword [rbp + 0x378], 0
jmp 0x14000c4d3
mov qword [rbp + 8], 0x8123
mov rax, qword [rbp + 8]
mov qword [rbp + 0x378], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0xc8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
add rax, 4
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x68]
add rax, 0x18
mov qword [rbp + 0x88], rax
lea rcx, str.____Allocating_kernel_image_base..._n
call fcn.14000aa40
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0x38]
mov edx, eax
xor ecx, ecx
call fcn.14000ba70
mov qword [rbp + 0x128], rax
cmp qword [rbp + 0x128], 0
jne 0x14000c56d
lea rcx, str.____Cant_allocate_kernel_image_base_n
call fcn.14000aa40
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x14000c7cc
lea rcx, str.___Kernel_image_base_allocated__n
call fcn.14000aa40
lea rcx, str.____Resolving_relocations..._n
call fcn.14000aa40
mov rax, qword [rbp + 0x88]
mov rax, qword [rax + 0x18]
mov rcx, qword [rbp + 0x128]
sub rcx, rax
mov rax, rcx
mov r8, rax
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 0xc8]
call fcn.14000caf0
movzx eax, al
test eax, eax
jne 0x14000c5ee
lea rcx, str.____Cant_resolve_relocations_n
call fcn.14000aa40
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbp + 0x128]
call fcn.14000bc80
xor al, al
jmp 0x14000c7cc
lea rcx, str.___Relocations_resolved__n
call fcn.14000aa40
lea rcx, str.____Resolving_imports..._n
call fcn.14000aa40
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 0xc8]
call fcn.14000c900
movzx eax, al
test eax, eax
jne 0x14000c654
lea rcx, str.____Cant_resolve_imports_n
call fcn.14000aa40
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbp + 0x128]
call fcn.14000bc80
xor al, al
jmp 0x14000c7cc
lea rcx, str.___Imports_resolved__n
call fcn.14000aa40
lea rcx, str.____Copying_local_image_into_kernel_pool..._n
call fcn.14000aa40
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0x38]
mov r8d, eax
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0xc8]
call fcn.14000c020
movzx eax, al
test eax, eax
jne 0x14000c6c7
lea rcx, str.____Cant_copy_local_image_into_kernel_pool_n
call fcn.14000aa40
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbp + 0x128]
call fcn.14000bc80
xor al, al
jmp 0x14000c7cc
lea rcx, str.___Local_image_copied_into_kernel_pool__n
call fcn.14000aa40
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0x10]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x148], rax
mov r8, qword [rbp + 0x128]
xor edx, edx
mov rcx, qword [rbp + 0x148]
call fcn.14000cc60
test eax, eax
jge 0x14000c73e
lea rcx, str.____Cant_execute_driver_entry_n
call fcn.14000aa40
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbp + 0x128]
call fcn.14000bc80
xor al, al
jmp 0x14000c7cc
lea rcx, str.___Driver_entry_executed__n
call fcn.14000aa40
lea rcx, str.____Erasing_headers..._n
call fcn.14000aa40
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0x3c]
xor r8d, r8d
mov edx, eax
mov rcx, qword [rbp + 0x128]
call fcn.14000c800
movzx eax, al
test eax, eax
jne 0x14000c7a9
lea rcx, str.____Cant_erase_headers_n
call fcn.14000aa40
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbp + 0x128]
call fcn.14000bc80
xor al, al
jmp 0x14000c7cc
lea rcx, str.___Headers_erased__n
call fcn.14000aa40
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001dd30]
call fcn.140015e80
mov rax, rdi
mov rcx, qword [rbp + 0x380]
xor rcx, rbp
call fcn.140016150
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret