Function at 0x1400340e0
Capabilities:
Enumerate pe sections
Get file size
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2a8
mov rax, qword [rsp + 0x2b8]
mov dword [rax], 0
mov rax, qword [rsp + 0x2c0]
mov dword [rax], 0
mov rax, qword [rsp + 0x2c8]
mov dword [rax], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0xffffffffffffffff
jne 0x14003416e
xor eax, eax
jmp 0x140034620
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov r11, qword [rsp + 0x2c8]
mov eax, dword [rsp + 0x70]
mov dword [r11], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, 0x200
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400341e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x288], eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x288]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140034620
lea rax, [rsp + 0x80]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14003421d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140034620
mov rax, qword [rsp + 0x58]
movsxd rax, dword [rax + 0x3c]
mov qword [rsp + 0x60], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, 0x200
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140034298
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28c], eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x28c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140034620
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4550
je 0x1400342cf
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140034620
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x5c]
and eax, 2
test eax, eax
jne 0x1400342fc
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140034620
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 6]
mov word [rsp + 0x284], ax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x14]
add eax, 0x18
movsxd rcx, eax
mov rax, qword [rsp + 0x60]
add rax, rcx
mov qword [rsp + 0x60], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, 0x200
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140034396
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x290], eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140034620
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0
jmp 0x1400343b8
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
movzx eax, word [rsp + 0x284]
cmp dword [rsp + 0x50], eax
jae 0x140034497
lea rdx, str..text
mov rcx, qword [rsp + 0x48]
call fcn.14001d8dc
test eax, eax
je 0x140034470
mov rax, qword [rsp + 0x60]
add rax, 0x28
mov qword [rsp + 0x60], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, 0x200
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003445e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x294], eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x294]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140034620
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
jmp 0x1400343ad
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x14]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 0x10]
mov rax, qword [rsp + 0x60]
add rax, rcx
mov qword [rsp + 0x70], rax
jmp 0x1400343ad
jmp 0x1400c4533
add rsp, 0x2a8
ret