Function at 0x1400027e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8a0]
sub rsp, 0x9a0
mov rax, qword [0x140024018]
xor rax, rsp
mov qword [rbp + 0x890], rax
xor edi, edi
mov dword [rsp + 0x30], r8d
mov r12d, edi
mov qword [rsp + 0x38], rdx
mov esi, edi
mov r15d, edi
mov ebx, edi
mov r14, rcx
mov edi, 0x10b
mov r13d, 0x20b
nop dword [rax]
nop dword [rax + rax]
xorps xmm0, xmm0
lea r8, [rsp + 0x40]
add rbx, 0x10000
mov r9d, 0x30
mov rdx, rbx
mov rcx, r14
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x1400028fb
nop dword [rax]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
and eax, 0xfff
cmp rax, 0xfff
je 0x1400028fb
mov rdx, qword [rsp + 0x40]
lea rax, [rcx + rdx]
cmp rax, rbx
jb 0x1400028fb
cmp dword [rsp + 0x60], 0x1000
jne 0x1400028db
mov eax, dword [rsp + 0x64]
cmp al, 1
je 0x1400028db
bt eax, 8
jb 0x1400028db
lea r8, [rbp + 0x690]
mov rdx, rbx
mov rcx, r14
call fcn.1400013a0
test eax, eax
jne 0x14000291c
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
lea rbx, [rcx + rdx]
mov r9d, 0x30
mov rdx, rbx
lea r8, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
jne 0x140002880
mov r13, qword [rsp + 0x38]
mov edi, 0
test r15, r15
jne 0x14000297e
mov ecx, 0x10dd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140002be6
test rbx, rbx
je 0x1400028fb
mov eax, 0x2000
test word [rbp + 0x6a6], ax
jne 0x140002957
mov r15, rbx
cmp word [rbp + 0x6a8], di
jne 0x140002840
cmp word [rbp + 0x694], 0
je 0x140002840
mov esi, 1
jmp 0x140002840
cmp word [rbp + 0x6a8], r13w
jne 0x140002840
cmp word [rbp + 0x694], 0
je 0x140002840
mov r12d, 1
jmp 0x140002840
test esi, esi
jne 0x14000298a
mov ebx, edi
mov dword [rsp + 0x34], ebx
jmp 0x1400029b8
test r12d, r12d
jne 0x14000299e
mov r12d, 1
mov ebx, r12d
mov dword [rsp + 0x34], ebx
jmp 0x1400029be
lea rdx, [rsp + 0x34]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x140002915
mov ebx, dword [rsp + 0x34]
mov r12d, 1
xorps xmm0, xmm0
lea r8, [rsp + 0x70]
mov r9d, 0x30
mov rdx, r15
mov rcx, r14
mov esi, edi
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x140002bd9
mov r9d, 0x40
mov qword [rsp + 0x20], rdi
lea r8, [rbp - 0x60]
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140002bd9
mov eax, 0x5a4d
cmp word [rbp - 0x60], ax
jne 0x140002bce
movsxd rcx, dword [rbp - 0x24]
mov eax, ecx
cmp rax, qword [rbp - 0x78]
ja 0x140002bce
cmp ecx, 0x40
jb 0x140002bce
lea rdx, [r15 + rcx]
mov qword [rsp + 0x20], rdi
mov rcx, r14
lea r8, [rbp + 0x790]
mov r9d, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140002bd9
cmp dword [rbp + 0x790], 0x4550
jne 0x140002bce
mov eax, 0x10b
cmp word [rbp + 0x7a8], ax
jne 0x140002a8b
cmp word [rbp + 0x794], si
cmovne esi, r12d
lea r8, [rbp - 0x20]
mov rdx, r15
mov rcx, r14
call fcn.1400014a0
test eax, eax
je 0x140002be4
test ebx, ebx
jne 0x140002bc7
test esi, esi
je 0x140002aeb
cmp qword [rbp], rdi
je 0x140002bc7
mov eax, dword [rbp + 0x660]
test al, 1
je 0x140002bc7
test al, 2
jne 0x140002bc7
mov r8d, 0x8664
lea r9, [rbp - 0x20]
mov rdx, r15
mov rcx, r14
call fcn.1400016e0
test eax, eax
je 0x140002be4
mov r9d, dword [rsp + 0x30]
mov r8, r13
mov rdx, r15
mov rcx, r14
call fcn.140001a80
test eax, eax
je 0x140002be4
mov rdx, qword [rbp]
test rdx, rdx
je 0x140002ba6
mov eax, dword [rbp + 0x660]
mov r9d, 4
movaps xmm0, xmmword [rbp + 0x650]
and eax, 0xfffffffe
mov dword [rbp + 0x680], eax
mov rcx, r14
lea rax, [rsp + 0x30]
lea r8d, [r9 + 0x10]
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0x670], xmm0
call fcn.140002c10
test eax, eax
je 0x140002be4
mov rdx, qword [rbp]
lea r8, [rbp + 0x670]
mov r9d, 0x14
mov qword [rsp + 0x20], rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140002be4
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov rdx, qword [rbp]
mov r8d, 0x14
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140002be4
test byte [rbp + 0x660], 2
jne 0x140002bc7
mov r9d, 0x688
lea r8, [rbp - 0x20]
lea rdx, [0x140019430]
mov rcx, r14
call fcn.140002150
test eax, eax
setne dil
jmp 0x140002be4
mov ecx, 6
jmp 0x140002bde
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x10dd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rcx, qword [rbp + 0x890]
xor rcx, rsp
call fcn.140003650
mov rbx, qword [rsp + 0x9f8]
add rsp, 0x9a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret