Function at 0x140080960
Capabilities:
Allocate or change rwx memory
Parse pe header
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
mov rax, qword [0x1400c71c0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov byte [rsp + 0x40], r8b
mov qword [rsp + 0x78], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rax, [rsp + 0x2c8]
movabs rcx, 0xff00ff00ff00ff00
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rax
mov r15, qword [rax]
xor r15, rcx
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
xor esi, esi
mov qword [rax], rsi
call fcn.14007df50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r12, rax
test rax, rax
je 0x140080c2b
mov r13d, 0x5a4d
cmp word [rax], r13w
jne 0x140080c2b
movsxd rdi, dword [rax + 0x3c]
add rdi, rax
cmp dword [rdi], 0x4550
jne 0x140080c2b
movzx ebx, word [rdi + 0x14]
add rbx, 0x18
add rbx, rdi
mov dword [rsp + 0x70], 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x80]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rsi + 1]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140080c2b
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor edx, edx
lea r8d, [rsi + 2]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test rax, rax
je 0x140080c22
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
je 0x140080c2b
cmp word [rax], r13w
jne 0x140080c19
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140080c19
mov eax, dword [rdi + 8]
cmp dword [rcx + 8], eax
jne 0x140080c19
movzx edx, word [rcx + 6]
cmp dx, word [rdi + 6]
jne 0x140080c19
movzx r15d, word [rcx + 0x14]
add r15, 0x18
add r15, rcx
xor r13b, r13b
mov r9d, esi
mov r10d, edx
test edx, edx
je 0x140080c00
mov qword [rsp + 0x48], rbp
mov r11, qword [rsp + 0x78]
nop word [rax + rax]
mov rax, rbx
mov r8, r11
sub r8, rbx
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140080b53
inc rax
test ecx, ecx
jne 0x140080b40
test edx, edx
jne 0x140080b60
test dword [rbx + 0x24], 0x20000000
jne 0x140080b75
inc r9d
add rbx, 0x28
add r15, 0x28
cmp r9d, r10d
jl 0x140080b30
jmp 0x140080c00
mov ecx, dword [rbx + 0x10]
test ecx, ecx
je 0x140080c00
mov edi, esi
mov eax, dword [r15 + 0x14]
add rax, rdi
movzx ebp, byte [rax + r14]
mov r10d, dword [rbx + 0xc]
add r10, rdi
add r10, r12
mov eax, ecx
cmp byte [r10], bpl
je 0x140080bf3
cmp byte [rsp + 0x40], 0
je 0x140080bf0
mov dword [rsp + 0x70], 0x40
lea r9, [rsp + 0x78]
mov edx, 1
lea r8d, [rdx + 0x3f]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx + 0xc]
add rax, rdi
mov byte [rax + r12], bpl
mov ecx, dword [rbx + 0xc]
add rcx, rdi
add rcx, r12
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x78]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx + 0x10]
mov r13b, 1
inc esi
mov ecx, eax
cmp esi, eax
jb 0x140080b80
mov rbp, qword [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x50]
jmp 0x140080c2e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13b, 1
movabs rax, 0xff00ff00ff00ff00
xor r15, rax
lea rax, [rsp + 0x2c8]
mov qword [rax], r15
movzx eax, r13b
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400870c0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret