Function at 0x14005d7e0
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, 0x270
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, rcx
lea rcx, str.check_section_integrity
call qword [sym.imp.VMProtectSDK64.dll_VMProtectBeginUltra]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r15, rax
test rax, rax
je 0x14005da5d
mov r14d, 0x5a4d
cmp word [rax], r14w
jne 0x14005da5d
movsxd rsi, dword [rax + 0x3c]
add rsi, rax
cmp dword [rsi], 0x4550
jne 0x14005da5d
movzx ebx, word [rsi + 0x14]
add rbx, 0x18
mov dword [rsp + 0x44], 0x104
add rbx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x44]
xor edx, edx
mov rcx, rax
lea r8, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
xor edi, edi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14005da5d
mov qword [rsp + 0x28], rdi
lea r8d, [rdi + 2]
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x14005da54
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [rdi + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, rax
test rax, rax
je 0x14005da5d
cmp word [rax], r14w
jne 0x14005da4b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005da4b
mov eax, dword [rsi + 8]
cmp dword [rcx + 8], eax
jne 0x14005da4b
movzx edx, word [rcx + 6]
cmp dx, word [rsi + 6]
jne 0x14005da4b
movzx r14d, word [rcx + 0x14]
xor sil, sil
add r14, 0x18
mov byte [rsp + 0x40], sil
add r14, rcx
mov r9d, edi
mov r10d, edx
test edx, edx
je 0x14005da33
nop word [rax + 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 0x14005d993
inc rax
test ecx, ecx
jne 0x14005d980
test edx, edx
jne 0x14005d9a0
test dword [rbx + 0x24], 0x20000000
jne 0x14005d9b5
inc r9d
add rbx, 0x28
add r14, 0x28
cmp r9d, r10d
jl 0x14005d970
jmp 0x14005da33
mov edx, dword [rbx + 0x10]
test edx, edx
je 0x14005da33
nop dword [rax]
mov eax, dword [r14 + 0x14]
mov ecx, dword [rbx + 0xc]
mov esi, edi
add rax, rsi
add rcx, rsi
add rcx, r15
movzx ebp, byte [rax + r12]
cmp byte [rcx], bpl
je 0x14005da28
mov edx, 1
mov dword [rsp + 0x44], 0x40
lea r9, [rsp + 0x48]
lea r8d, [rdx + 0x3f]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx + 0xc]
lea r9, [rsp + 0x44]
add rax, rsi
mov edx, 1
mov byte [rax + r15], bpl
mov ecx, dword [rbx + 0xc]
mov r8d, dword [rsp + 0x48]
add rcx, rsi
add rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [rbx + 0x10]
mov byte [rsp + 0x40], 1
inc edi
cmp edi, edx
jb 0x14005d9c0
movzx esi, byte [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
jmp 0x14005da5f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140148bf0
lea r11, [rsp + 0x270]
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