Function at 0x140053280
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1400b8100]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x58], rdx
mov rax, qword [rdx]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400535b4
movsxd rbp, dword [rax + 0x3c]
add rbp, rax
cmp dword [rbp], 0x4550
jne 0x1400535b4
test rbp, rbp
je 0x1400535b4
mov eax, 0x20b
cmp word [rbp + 0x18], ax
je 0x140053385
lea rdx, str.Image_is_not_64_bit
lea rcx, [0x1400b9570]
call fcn.140050f90
mov rcx, rax
call fcn.140051240
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140053358
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140053346
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400535c0
mov rcx, r8
call fcn.14005cc24
xor esi, esi
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14005c8e0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ebx, dword [rbp + 0x50]
mov qword [rsp + 0x48], rbx
mov r9d, 4
mov r8d, 0x3000
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
mov r8d, ebx
mov rcx, r13
call fcn.14004e1c0
mov r12, rax
xor esi, esi
test rax, rax
jne 0x1400533c7
lea rdx, str.Failed_to_allocate_remote_image_in_kernel
jmp 0x140053545
lea rax, [rbp + 0x54]
mov qword [rsp + 0x50], rax
mov r8d, dword [rax]
mov rdx, qword [rdi]
mov rcx, r15
call fcn.140088c40
movzx ebx, word [rbp + 0x14]
add rbx, 0x28
mov r14d, esi
lea rax, [rbp + 6]
cmp si, word [rax]
jae 0x14005342a
add rbx, rbp
mov r13, rax
nop dword [rax + rax]
mov ecx, dword [rbx - 4]
add rcx, r15
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, qword [rdi]
call fcn.140088c40
inc r14d
lea rbx, [rbx + 0x28]
movzx eax, word [r13]
cmp r14d, eax
jl 0x140053400
mov r13, qword [rsp + 0x40]
mov rbx, r12
sub rbx, qword [rbp + 0x30]
mov rdx, r15
lea rcx, [rsp + 0x68]
call fcn.1400544d0
mov rdx, rbx
mov rcx, rax
call fcn.1400535d0
mov rdx, r15
lea rcx, [rsp + 0x68]
call fcn.140054630
mov rdx, rax
mov rcx, r13
call fcn.1400536d0
test al, al
jne 0x140053471
lea rdx, str.Failed_to_resolve_imports
jmp 0x140053545
test r15, r15
je 0x14005353e
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14005353e
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], 0x33
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, 0x28
lea r8, [rsp + 0x68]
mov edx, 0x80862007
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14005353e
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r8d, dword [rbp + 0x28]
add r8, r12
mov dword [rsp + 0x60], esi
lea rdx, [rsp + 0x60]
mov rcx, r13
call fcn.1400539a0
test al, al
jne 0x14005351a
lea rdx, str.Failed_to_call_driver_entry
jmp 0x140053545
mov rax, qword [rsp + 0x50]
mov r9d, dword [rax]
mov rdx, r12
mov rcx, r13
call fcn.14004deb0
nop
mov rcx, rdi
call fcn.140053030
mov rax, r12
jmp 0x14005335a
lea rdx, str.Failed_to_write_local_image_to_remote_image
lea rcx, [0x1400b9570]
call fcn.140050f90
mov rcx, rax
call fcn.140051240
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r12
mov rcx, r13
call fcn.14004e340
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140053358
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400535aa
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400535c0
mov rcx, r8
call fcn.14005cc24
jmp 0x14005334d
lea rdx, str.Invalid_format_of_PE_image
jmp 0x1400532fd
call fcn.14006df58
int3