Function at 0x18000f1a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xe0
mov rax, qword [0x180059080]
xor rax, rsp
mov qword [rbp - 9], rax
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x61], rax
xor r12d, r12d
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x19], r12
mov r15, qword [0x18005f8c0]
mov qword [rbp - 0x79], r15
mov eax, 0x5a4d
cmp word [0x180059ce0], ax
jne 0x18000f76a
movsxd rsi, dword [0x180059d1c]
lea rax, [0x180059ce0]
add rsi, rax
cmp dword [rsi], 0x4550
jne 0x18000f76a
test rsi, rsi
je 0x18000f76a
mov eax, 0x20b
cmp word [rsi + 0x18], ax
je 0x18000f23f
lea rdx, str.Image_is_not_64_bit
jmp 0x18000f771
mov r14d, dword [rsi + 0x50]
mov edx, r14d
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
test rax, rax
je 0x18000f785
movzx eax, word [rsi + 0x14]
mov eax, dword [rax + rsi + 0x24]
mov dword [rbp - 0x59], eax
sub r14d, eax
mov dword [rsp + 0x58], r14d
mov ebx, r14d
mov qword [rbp - 0x69], rbx
mov qword [rsp + 0x50], r12
lea rdi, [0x18005e1b0]
mov eax, dword [rbp + 0x67]
cmp eax, 1
jne 0x18000f2ab
lea r8, [rsp + 0x50]
mov edx, ebx
mov rcx, r15
call fcn.18000eae0
mov r12, rax
jmp 0x18000f3e3
mov qword [rsp + 0x40], rbx
cmp eax, 2
jne 0x18000f2c8
mov edx, r14d
mov rcx, r15
call fcn.18000ef60
mov r12, rax
jmp 0x18000f3e8
test r14d, r14d
je 0x18000f3e3
mov ecx, dword [0x18005ebe8]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x18005f940], ecx
jle 0x18000f399
lea rcx, [0x18005f940]
call fcn.180016770
cmp dword [0x18005f940], 0xffffffff
jne 0x18000f399
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
mov r8d, 0x15
lea rdx, [0x180047440]
lea rcx, [rbp - 0x51]
call fcn.18000cb10
nop
lea r8, [rbp - 0x51]
mov rdx, qword [0x18005f8b8]
mov rcx, r15
call fcn.180004460
mov qword [0x18005fa38], rax
mov rdx, qword [rbp - 0x39]
cmp rdx, 0xf
jbe 0x18000f38d
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f387
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000f7b4
call fcn.1800166c0
nop
lea rcx, [0x18005f940]
call fcn.180016704
cmp qword [0x18005fa38], 0
jne 0x18000f3bc
lea rdx, str.____Failed_to_find_ExAllocatePool
mov rcx, rdi
call fcn.18000a0f0
mov rcx, rax
call fcn.18000a3b0
jmp 0x18000f3e3
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.18000bc20
mov r12, qword [rsp + 0x48]
test al, al
mov eax, 0
cmove r12, rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r12
mov rcx, rdi
test r12, r12
jne 0x18000f41f
lea rdx, str.Failed_to_allocate_remote_image_in_kernel
call fcn.18000a0f0
mov rcx, rax
call fcn.18000a3b0
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x18000f785
lea rdx, str.Image_base_has_been_allocated_at_0x
call fcn.18000a0f0
mov rdx, r12
mov rcx, rax
call fcn.180007430
mov rcx, rax
call fcn.18000a3b0
mov r8d, dword [rsi + 0x54]
lea rdx, [0x180059ce0]
mov rcx, r13
call fcn.1800386b0
movzx ebx, word [rsi + 0x14]
add rbx, 0x28
xor ecx, ecx
mov r14d, ecx
cmp cx, word [rsi + 6]
jae 0x18000f4ae
add rbx, rsi
lea rdi, [0x180059ce0]
nop
test dword [rbx + 0x14], 0x80
ja 0x18000f48d
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, rdi
mov ecx, dword [rbx - 4]
add rcx, r13
call fcn.1800386b0
inc r14d
add rbx, 0x28
movzx eax, word [rsi + 6]
cmp r14d, eax
jl 0x18000f470
mov r14d, dword [rbp - 0x69]
lea rdi, [0x18005e1b0]
mov r15, qword [rbp - 0x79]
jmp 0x18000f4b3
mov r14, qword [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov ebx, dword [rbp - 0x59]
sub r12, rbx
lea rdx, str.Skipped_0x
mov rcx, rdi
call fcn.18000a0f0
mov rcx, qword [rax]
movsxd r8, dword [rcx + 4]
mov ecx, dword [r8 + rax + 0x18]
and ecx, 0xfffff9ff
bts ecx, 0xb
mov dword [r8 + rax + 0x18], ecx
mov edx, ebx
mov rcx, rax
call fcn.18000fde0
mov rcx, rax
lea rdx, str._bytes_of_PE_Header
call fcn.18000a0f0
mov rcx, rax
call fcn.18000a3b0
mov rbx, r12
sub rbx, qword [rsi + 0x30]
mov rdx, r13
lea rcx, [rbp - 0x51]
call fcn.180011f70
mov rdx, rbx
mov rcx, rax
call fcn.18000f7c0
mov rdx, r12
mov rcx, r13
call fcn.18000f8c0
test al, al
jne 0x18000f545
lea rdx, str.Failed_to_fix_cookie
mov rcx, rdi
jmp 0x18000f778
mov rdx, r13
lea rcx, [rbp - 0x51]
call fcn.1800120d0
mov rdx, rax
mov rcx, r15
call fcn.18000fa00
test al, al
jne 0x18000f56c
lea rdx, str.Failed_to_resolve_imports
jmp 0x18000f6cc
mov eax, dword [rbp - 0x59]
add rax, r13
je 0x18000f6c5
test r14, r14
je 0x18000f6c5
xor ecx, ecx
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x51], 0x33
mov qword [rbp - 0x41], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], r14
mov dword [rbp - 0x59], ecx
mov qword [rsp + 0x38], rcx
lea rax, [rbp - 0x59]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
mov r9d, 0x28
lea r8, [rbp - 0x51]
mov edx, 0x80862007
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18000f6c5
mov esi, dword [rsi + 0x28]
add rsi, r12
lea rdx, str.Calling_DriverEntry_0x
mov rcx, rdi
call fcn.18000a0f0
mov rdx, rsi
mov rcx, rax
call fcn.180007430
mov rcx, rax
call fcn.18000a3b0
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rbx
mov r9, r14
mov r14, qword [rsp + 0x40]
mov r8, r14
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.1800110e0
test al, al
jne 0x18000f634
lea rdx, str.Callback_returns_false__failed_
jmp 0x18000f6d1
xor eax, eax
mov dword [rbp - 0x59], eax
mov rax, qword [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x19]
mov r8, rsi
lea rdx, [rbp - 0x59]
mov rcx, r15
call fcn.180010220
test al, al
jne 0x18000f662
lea rdx, str.Failed_to_call_driver_entry
jmp 0x18000f6d1
mov ebx, dword [rbp - 0x59]
mov rax, qword [rbp - 0x61]
test rax, rax
je 0x18000f670
mov dword [rax], ebx
lea rdx, str.DriverEntry_returned_0x
mov rcx, rdi
call fcn.18000a0f0
mov rcx, qword [rax]
movsxd r8, dword [rcx + 4]
mov ecx, dword [r8 + rax + 0x18]
and ecx, 0xfffff9ff
bts ecx, 0xb
mov dword [r8 + rax + 0x18], ecx
mov edx, ebx
mov rcx, rax
call fcn.18000ffe0
mov rcx, rax
call fcn.18000a3b0
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r14
jmp 0x18000f787
lea rdx, str.Failed_to_write_local_image_to_remote_image
mov rbx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.18000a0f0
mov rcx, rax
call fcn.18000a3b0
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rdx, str.Freeing_memory
mov rcx, rdi
call fcn.18000a0f0
mov rcx, rax
call fcn.18000a3b0
mov eax, dword [rbp + 0x67]
mov rdx, qword [rsp + 0x48]
cmp eax, 1
jne 0x18000f756
mov r8, rbx
mov rcx, r15
call fcn.1800040c0
test al, al
je 0x18000f74a
mov rdx, rbx
mov rcx, r15
call fcn.1800041f0
test al, al
je 0x18000f74a
mov rdx, rbx
mov rcx, r15
call fcn.180004320
test al, al
lea rdx, str.Memory_has_been_released
jne 0x18000f751
lea rdx, str.WARNING:_Failed_to_free_memory_
mov rcx, rdi
jmp 0x18000f778
cmp eax, 2
jne 0x18000f737
mov r8d, dword [rsp + 0x58]
mov rcx, r15
call fcn.180003fb0
jmp 0x18000f73f
lea rdx, str.Invalid_format_of_PE_image
lea rcx, [0x18005e1b0]
call fcn.18000a0f0
mov rcx, rax
call fcn.18000a3b0
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1800166a0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.180020fbc
nop
int3