Function at 0x1400fb4f0
Capabilities:
Access peb ldr_data
Encode data using xor
Get file size
Hash data using fnv
Parse pe header
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x190
mov rax, qword [0x140596f00]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rax, qword [0x14059f730]
xor r14d, r14d
mov r13, rcx
test rax, rax
jne 0x1400fb5e7
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x18]
mov rax, qword [rdx + 0x10]
mov rsi, qword [rax]
mov r11, rsi
nop dword [rax]
nop word [rax + rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x1400fb5c8
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x1400fb5c8
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0x97ef4bc0
lea rax, [rdi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x1400fb5c3
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x1400fb5a0
cmp edx, 0x35b895b8
je 0x1400fb6a0
test r8d, r8d
jne 0x1400fb580
mov rax, qword [r11]
mov r11, rax
cmp rax, rsi
je 0x1400fb5dd
cmp qword [rax + 0x30], r14
jne 0x1400fb550
mov rax, r14
mov qword [0x14059f730], rax
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call rax
xorps xmm0, xmm0
lea rax, [rsp + 0x70]
xorps xmm1, xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
inc r8
cmp byte [rax + r8], r14b
jne 0x1400fb613
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1400f2730
cmp qword [rsp + 0x58], 0xf
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], r14
mov edx, 0xc0000000
cmova rcx, qword [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdx, qword [rsp + 0x58]
mov rbp, rax
cmp rdx, 0xf
jbe 0x1400fb6c1
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400fb6bc
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400fb6bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x1400fb5e0
call fcn.140127e30
movdqa xmm0, xmmword [0x140173540]
mov qword [rsp + 0x1c8], r12
mov byte [rsp + 0x40], r14b
movdqu xmmword [rsp + 0x50], xmm0
cmp rbp, 0xffffffffffffffff
je 0x1400fb7d9
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov r12d, eax
call fcn.140127e64
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], r14
mov r8d, r12d
mov rdx, rax
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x1400fb7d9
movsxd rbx, dword [rsi + 0x3c]
add rbx, rsi
cmp dword [rbx], 0x4550
jne 0x1400fb7d9
mov qword [rsp + 0x1d0], r15
mov edi, r14d
movzx r15d, word [rbx + 0x14]
add r15, 0x18
add r15, rbx
cmp r14w, word [rbx + 6]
jae 0x1400fb792
lea r14, [r15 + 7]
nop word [rax + rax]
movsxd rax, edi
mov rdx, r13
lea rcx, [rax + rax*4]
xor eax, eax
lea rcx, [r15 + rcx*8]
mov qword [rcx], rax
lea r8d, [rax + 7]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [r14], 0
lea r14, [r14 + 0x28]
movzx eax, word [rbx + 6]
inc edi
cmp edi, eax
jl 0x1400fb760
xor r14d, r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], r14
mov r8d, r12d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140127e30
mov r15, qword [rsp + 0x1d0]
mov al, 1
jmp 0x1400fb7db
xor al, al
mov r12, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140128080
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x190
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret