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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
xorps xmm0, xmm0
xor r13d, r13d
mov qword [rsp + 0x60], r13
movzx r14d, r9b
mov qword [rsp + 0x68], r13
mov r15, r8
movups xmmword [rbp - 0x80], xmm0
mov dword [rbp + 0x230], r13d
mov r12, rdx
movups xmmword [rbp - 0x70], xmm0
mov rsi, rcx
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov edi, dword [rcx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x1400047c7
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x1400047c7
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rbx + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1400047c2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x1400047a0
cmp r8d, 0x3376500f
je 0x1400047cc
test r9d, r9d
jne 0x140004780
mov rax, qword [rax]
jmp 0x140004750
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rdx, rsi
add rax, r10
lea rcx, [rbp - 0x50]
call rax
lea rax, [rbp - 0x50]
mov dword [rsp + 0x28], 0x60
xorps xmm0, xmm0
mov qword [rbp - 0x70], rax
lea r9, [rsp + 0x70]
mov dword [rbp - 0x80], 0x30
lea r8, [rbp - 0x80]
mov qword [rbp - 0x78], r13
mov edx, 0x100180
mov dword [rbp - 0x68], 0x40
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x20], 7
movdqu xmmword [rbp - 0x60], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
js 0x140004aba
mov rcx, qword [rsp + 0x60]
lea r8, [rbp - 0x40]
mov r9d, 0x28
mov dword [rsp + 0x20], 4
lea rdx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_ZwQueryInformationFile]
mov rcx, qword [rsp + 0x60]
lea r8, [rbp - 0x40]
mov r9d, 0x28
mov dword [rbp - 0x20], pe_nt_image_headers64
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntdll.dll_ZwSetInformationFile]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x140004aba
mov dword [rsp + 0x28], 0x60
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x80]
mov dword [rsp + 0x20], 7
mov edx, 0x100083
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtOpenFile]
test r14b, r14b
je 0x140004a84
test rsi, rsi
jne 0x1400048db
mov rbx, r13
jmp 0x1400048eb
mov edx, 0x104
mov rcx, rsi
call fcn.1400aa530
mov rbx, rax
mov r9, rbx
lea rcx, [rbp - 0x10]
mov r8, rsi
mov edx, 0x104
call fcn.1400a8478
mov eax, 0x31
mov word [rbp + rbx*2 - 0x1a], ax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov edi, dword [rcx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x140004997
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x140004997
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rbx + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140004992
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x140004970
cmp r8d, 0x3376500f
je 0x14000499c
test r9d, r9d
jne 0x140004950
mov rax, qword [rax]
jmp 0x140004920
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rdx, [rbp - 0x10]
add rax, r10
lea rcx, [rbp - 0x50]
call rax
mov dword [rsp + 0x50], r13d
lea r9, [rsp + 0x70]
mov qword [rsp + 0x48], r13
lea r8, [rbp - 0x80]
mov dword [rsp + 0x40], 0x60
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x38], 5
mov edx, 0x100002
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x20], r13
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov edx, eax
mov r8d, 0x1000
mov edi, eax
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
mov rdx, rax
mov qword [rsp + 0x20], r13
mov r8d, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov r8d, edi
mov qword [rsp + 0x20], r13
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x60]
xorps xmm0, xmm0
xor r9d, r9d
movdqa xmmword [rsp + 0x70], xmm0
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsp + 0x60]
lea r9, [rbp + 0x230]
mov r8d, r15d
mov qword [rsp + 0x20], r13
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x60]
test eax, eax
jne 0x140004ab4
call qword [sym.imp.ntdll.dll_NtClose]
xor al, al
jmp 0x140004abc
call qword [sym.imp.ntdll.dll_NtClose]
mov al, 1
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret