Function at 0x140003480
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push rdi
sub rsp, 0xb0
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0xa0], 0
mov dword [rsp + 0x44], 1
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.1400037c0
mov rcx, rax
call fcn.140005020
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x68], rax
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0x90]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000358f
xor eax, eax
jmp 0x1400037a0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x54], 0
jmp 0x140003614
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x54], eax
jge 0x14000368e
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x41]
call fcn.140003920
mov rcx, rax
call fcn.140004f50
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x58]
sub rax, rcx
movzx edx, byte [rcx]
cmp dl, byte [rcx + rax]
jne 0x140003666
inc rcx
test dl, dl
jne 0x140003653
xor eax, eax
jmp 0x14000366b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14000367b
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
jmp 0x14000368e
mov rax, qword [rsp + 0x58]
add rax, 0x28
mov qword [rsp + 0x58], rax
jmp 0x14000360a
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call fcn.1400028c0
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x50]
lea r9, [rsp + 0xa4]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
call fcn.140002c70
test eax, eax
jne 0x1400036fc
mov dword [rsp + 0x44], 0
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
call fcn.140002e80
test eax, eax
jne 0x140003724
mov dword [rsp + 0x44], 0
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
call fcn.140003080
test eax, eax
jne 0x14000374c
mov dword [rsp + 0x44], 0
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
call fcn.140003270
test eax, eax
jne 0x140003774
mov dword [rsp + 0x44], 0
cmp qword [rsp + 0x68], 0
je 0x140003790
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], 0
cmp dword [rsp + 0x44], 0
je 0x14000379e
mov eax, 1
jmp 0x1400037a0
xor eax, eax
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140008560
add rsp, 0xb0
pop rdi
ret