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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
mov dword [rsp + 0xb0], 0
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
lea r8, str.ntdll.dll
mov edx, eax
lea rcx, [rsp + 0xf8]
call fcn.140001a30
xor edx, edx
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x30], 0
lea rcx, str.Reading_DLL_n
call fcn.140003bc0
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x90]
call fcn.140004c60
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x40], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001d0a
xor al, al
jmp 0x14000235b
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140001d20
xor al, al
jmp 0x14000235b
lea rcx, str.Initializing_Headers._n
call fcn.140003bc0
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, word [rax]
cmp eax, 0x8664
je 0x140001d89
lea rcx, str.Dll_is_not_X64_n
call fcn.140003bc0
xor al, al
jmp 0x14000235b
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
add rax, 0x18
mov qword [rsp + 0xa8], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0xa8]
lea rax, [rcx + rax + 0x70]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001e27
xor al, al
jmp 0x14000235b
mov edx, 0x1400000
lea rcx, [rsp + 0x50]
call fcn.140001900
nop
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x140001e6c
lea rcx, str.Unable_to_alloc_memory._n
call fcn.140003bc0
nop
mov rdi, qword [rsp + 0x98]
xor eax, eax
mov ecx, 0x1400000
rep stosb byte [rdi], al
mov dword [rsp + 0x70], 0
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x38]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, 0x40
mov r8d, eax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rdx, str.DLL_addr:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001010
mov qword [rsp + 0xc8], rax
lea rdx, [0x140003ae0]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov qword [rsp + 0xd8], rax
lea rdx, [0x140001270]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.Initing_Mapping_Data_n
call fcn.140003bc0
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400091a8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400091b0], rax
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [0x1400091b8], rax
mov rax, qword [rsp + 0x30]
mov qword [0x1400091c0], rax
mov dword [0x1400091e0], 1
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call fcn.140001a00
mov qword [0x1400091f0], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xa0]
call fcn.140001a00
mov qword [0x1400091f8], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xa8]
call fcn.140001a00
mov qword [0x140009200], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xe0]
call fcn.140001a00
mov qword [0x140009208], rax
lea rdx, [0x140003ae0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov qword [rsp + 0xf0], rax
mov rax, qword [0x1400091f0]
mov qword [rsp + 0xe8], rax
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
lea rdx, [0x1400068b0]
mov rcx, rax
call fcn.140001010
lea rcx, str.Writing_DLL_Header_n
call fcn.140003bc0
nop
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400020bc
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
mov byte [rsp + 0x38], 0
lea rcx, [rsp + 0x50]
call fcn.1400019b0
movzx eax, byte [rsp + 0x38]
jmp 0x14000235b
lea rcx, str.Writing_Sections_n
call fcn.140003bc0
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x48], 0
jmp 0x140002102
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x58]
add rax, 0x28
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 2]
cmp dword [rsp + 0x48], eax
je 0x1400021b1
mov rax, qword [rsp + 0x58]
cmp dword [rax + 0x10], 0
je 0x1400021ac
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x58]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rsp + 0x30]
add rdi, rdx
mov rdx, rdi
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, rcx
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400021ac
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
mov byte [rsp + 0x39], 0
lea rcx, [rsp + 0x50]
call fcn.1400019b0
movzx eax, byte [rsp + 0x39]
jmp 0x14000235b
jmp 0x1400020ea
lea rcx, str.Writing_Mapping_Data_n
call fcn.140003bc0
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x68
xor edx, edx
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140002224
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
mov byte [rsp + 0x3a], 0
lea rcx, [rsp + 0x50]
call fcn.1400019b0
movzx eax, byte [rsp + 0x3a]
jmp 0x14000235b
mov qword [rsp + 0x20], 0
mov r9d, 0x68
lea r8, [0x1400091a8]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400022a3
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
mov byte [rsp + 0x3b], 0
lea rcx, [rsp + 0x50]
call fcn.1400019b0
movzx eax, byte [rsp + 0x3b]
jmp 0x14000235b
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax + 0x3090]
imul rax, rax, 0x30
mov rcx, qword [rsp + 0x1a0]
lea rax, [rcx + rax + 0x90]
mov r9d, 0x30
mov r8, rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
jne 0x1400022fc
mov byte [rsp + 0x3c], 0
lea rcx, [rsp + 0x50]
call fcn.1400019b0
movzx eax, byte [rsp + 0x3c]
jmp 0x14000235b
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax + 0x3090]
inc eax
mov rcx, qword [rsp + 0x1a0]
mov dword [rcx + 0x3090], eax
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x140002347
lea rcx, str.WARNING:_cant_release_mapping_data_memory_n
call fcn.140003bc0
nop
mov byte [rsp + 0x3d], 1
lea rcx, [rsp + 0x50]
call fcn.1400019b0
movzx eax, byte [rsp + 0x3d]
add rsp, 0x180
pop rdi
ret