Function at 0x1400017e0
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get file size
Hash data using djb2
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
sub rsp, 0x88
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, qword gs:[0x60]
xor esi, esi
mov qword [r11 + 8], rbp
mov ebx, esi
mov qword [r11 + 0x10], rdi
mov edi, esi
mov qword [r11 + 0x18], r12
mov r12d, esi
mov rcx, qword [rax + 0x20]
mov qword [r11 - 0x18], r13
mov r13d, esi
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov r15d, esi
mov rax, qword [rcx + 0x68]
mov qword [r11 - 0x58], rsi
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], esi
test rax, rax
je 0x140001b4e
mov qword [r11 - 0x68], rsi
lea r8d, [rsi + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400018a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x140004b10]
lea rcx, str.______ws__Failed_With_Error:__d__n
call fcn.140001130
jmp 0x14000195d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x1400018c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140004b28]
jmp 0x140001927
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x1400018ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140004aa0]
jmp 0x140001927
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rsi
mov r8d, ebp
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000191a
cmp ebp, dword [rsp + 0x60]
jne 0x14000191a
mov rdi, rbx
mov r12d, ebp
jmp 0x140001936
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140004b40]
mov r8d, eax
lea rcx, str.______ws__Failed_With_Error:__d__n
call fcn.140001130
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
jne 0x14000195d
test rbx, rbx
je 0x14000195d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, rdi
test rdi, rdi
je 0x140001b2e
movsxd rcx, dword [rdi + 0x3c]
add rcx, rdi
cmp dword [rcx], 0x4550
jne 0x140001b27
movzx edx, word [rcx + 0x14]
movzx eax, word [rcx + 6]
add rdx, 0x18
add rdx, rcx
cmp si, ax
jae 0x140001b27
mov r8d, eax
lea r9, [0x140004c3c]
nop
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x1400019ee
cmp rcx, 7
jne 0x1400019b0
mov r15d, dword [rdx + 0x14]
mov rax, rsi
mov ecx, dword [rdx + 0x10]
add r15, rbp
test rcx, rcx
je 0x1400019ee
cmp dword [r15 + rax*4], 0xaabbeeff
je 0x1400019eb
add rax, 4
cmp rax, rcx
jb 0x1400019d6
jmp 0x1400019ee
mov r13d, eax
add rdx, 0x28
sub r8, 1
jne 0x1400019a0
test r13d, r13d
je 0x140001b2e
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.140001460
test eax, eax
je 0x140001b2e
mov rbx, qword [rsp + 0x40]
mov ecx, 0x1505
mov rdx, rbx
movzx eax, word [rbx]
test eax, eax
je 0x140001a40
nop dword [rax]
imul ecx, ecx, 0x21
lea rdx, [rdx + 2]
add ecx, eax
movzx eax, word [rdx]
test eax, eax
jne 0x140001a30
mov rdi, qword [rsp + 0x58]
mov eax, r13d
mov dword [r15 + rax*4], ecx
mov rcx, rdi
call fcn.1400015d0
test eax, eax
je 0x140001b33
mov dword [rsp + 0x60], esi
test r12d, r12d
je 0x140001b33
mov qword [rsp + 0x30], rsi
mov r14d, 1
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov edx, 0x40000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001acc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x140004b10]
lea rcx, str.______ws__Failed_With_Error:__d__n
call fcn.140001130
cmp dword [rsp + 0x60], r12d
mov eax, esi
sete al
test eax, eax
cmovne esi, r14d
jmp 0x140001b33
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001af0
cmp r12d, dword [rsp + 0x60]
je 0x140001b0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x140004c28]
lea rcx, str.______ws__Failed_With_Error:__d__n
call fcn.140001130
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x60], r12d
mov eax, esi
sete al
test eax, eax
cmovne esi, r14d
jmp 0x140001b33
mov rbx, qword [rsp + 0x40]
jmp 0x140001b38
mov rbx, qword [rsp + 0x40]
test rbp, rbp
je 0x140001b53
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140001b53
mov rbx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov r13, qword [rsp + 0x80]
mov r12, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xa0]
test rbx, rbx
je 0x140001b96
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002aa0
add rsp, 0x88
pop rsi
pop rbx
ret