Function at 0x7ff7610f87a0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
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, 0x280
mov rax, qword [0x7ff7611a3088]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbp, rcx
mov byte [rsp + 0x40], dl
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
mov r15, rax
test rax, rax
je 0x7ff7610f8a13
mov r13d, 0x5a4d
cmp word [rax], r13w
jne 0x7ff7610f8a13
movsxd rdi, dword [rax + 0x3c]
add rdi, rax
cmp dword [rdi], reloc.ucrtbase.dll_free
jne 0x7ff7610f8a13
movzx ebx, word [rdi + 0x14]
add rbx, 0x18
mov dword [rsp + 0x50], reloc.ucrtbase.dll_free
add rbx, rdi
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
lea r9, [rsp + 0x50]
xor edx, edx
mov rcx, rax
lea r8, [rsp + 0x60]
call qword [sym.imp.kernel32.dll_QueryFullProcessImageNameW]
xor esi, esi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.kernel32.dll_CreateFileW]
mov r14, rax
mov qword [rsp + 0x48], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x7ff7610f8a13
mov qword [rsp + 0x28], rsi
lea r8d, [rsi + 2]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
mov rcx, rax
call qword [sym.imp.kernel32.dll_CreateFileMappingW]
test rax, rax
je 0x7ff7610f8a0a
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [rsi + 4]
mov rcx, rax
call qword [sym.imp.kernel32.dll_MapViewOfFile]
mov r12, rax
test rax, rax
je 0x7ff7610f8a13
cmp word [rax], r13w
jne 0x7ff7610f8a01
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.ucrtbase.dll_free
jne 0x7ff7610f8a01
mov eax, dword [rdi + 8]
cmp dword [rcx + 8], eax
jne 0x7ff7610f8a01
movzx edx, word [rcx + 6]
cmp dx, word [rdi + 6]
jne 0x7ff7610f8a01
movzx r14d, word [rcx + 0x14]
xor r13b, r13b
add r14, 0x18
mov r9d, esi
add r14, rcx
mov r10d, edx
test edx, edx
je 0x7ff7610f89e7
nop dword [rax]
mov r8, rbp
mov rax, rbx
sub r8, rbx
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x7ff7610f8943
inc rax
test ecx, ecx
jne 0x7ff7610f8930
test edx, edx
jne 0x7ff7610f8950
test dword [rbx + 0x24], reloc.ucrtbase.dll_free
jne 0x7ff7610f8965
inc r9d
add rbx, 0x28
add r14, 0x28
cmp r9d, r10d
jl 0x7ff7610f8920
jmp 0x7ff7610f89e7
mov edx, dword [rbx + 0x10]
test edx, edx
je 0x7ff7610f89e7
nop dword [rax]
mov eax, dword [r14 + 0x14]
mov ecx, dword [rbx + 0xc]
mov edi, esi
add rax, rdi
add rcx, rdi
add rcx, r15
movzx ebp, byte [rax + r12]
mov eax, edx
cmp byte [rcx], bpl
je 0x7ff7610f89df
cmp byte [rsp + 0x40], 0
je 0x7ff7610f89dc
mov edx, 1
mov dword [rsp + 0x50], 0x40
lea r9, [rsp + 0x54]
lea r8d, [rdx + 0x3f]
call qword [sym.imp.kernel32.dll_VirtualProtect]
mov eax, dword [rbx + 0xc]
lea r9, [rsp + 0x50]
add rax, rdi
mov edx, 1
mov byte [rax + r15], bpl
mov ecx, dword [rbx + 0xc]
mov r8d, dword [rsp + 0x54]
add rcx, rdi
add rcx, r15
call qword [sym.imp.kernel32.dll_VirtualProtect]
mov eax, dword [rbx + 0x10]
mov r13b, 1
inc esi
mov edx, eax
cmp esi, eax
jb 0x7ff7610f8970
mov rcx, r12
call qword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.kernel32.dll_CloseHandle]
movzx eax, r13b
jmp 0x7ff7610f8a15
mov rcx, r12
call qword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov rcx, r14
call qword [sym.imp.kernel32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.7ff76114ff90
lea r11, [rsp + 0x280]
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