Function at 0x140011276
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
jmp 0x140011940
push rbp
push rdi
sub rsp, 0x698
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x106
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001d008]
xor rax, rbp
mov qword [rbp + 0x640], rax
lea rcx, [0x140023035]
call fcn.14001138e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea rcx, str.pid:_dn
call fcn.140011195
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 8], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, str.Dll1.dll
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x28], rax
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rbp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x48]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x84], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x84]
mov r8d, dword [rbp + 0x48]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
mov eax, dword [rax + 0x50]
mov qword [rbp + 0xe8], rax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, qword [rbp + 0xe8]
mov rax, qword [rbp + 0xc8]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x108], rax
mov rdx, qword [rbp + 0x108]
lea rcx, str.new_memory_addr:_pn
call fcn.140011195
mov rax, qword [rbp + 0xc8]
mov rax, qword [rax + 0x30]
mov rcx, qword [rbp + 0x108]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0xc8]
mov eax, dword [rax + 0x54]
mov r8d, eax
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x108]
call fcn.1400111b3
mov rax, qword [rbp + 0xc8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0xc8]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x148], rax
mov qword [rbp + 0x168], 0
jmp 0x140011b1a
mov rax, qword [rbp + 0x168]
inc rax
mov qword [rbp + 0x168], rax
mov rax, qword [rbp + 0xc8]
movzx eax, word [rax + 6]
cmp qword [rbp + 0x168], rax
jae 0x140011b9e
mov rax, qword [rbp + 0x148]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x148]
mov eax, dword [rax + 0x14]
mov rcx, qword [rbp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x148]
mov eax, dword [rax + 0x10]
mov r8d, eax
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rbp + 0x188]
call fcn.1400111b3
mov rax, qword [rbp + 0x148]
add rax, 0x28
mov qword [rbp + 0x148], rax
jmp 0x140011b09
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rbp + 0xc8]
mov rax, qword [rcx + rax + 0x88]
mov qword [rbp + 0x1c8], rax
mov eax, dword [rbp + 0x1c8]
add rax, qword [rbp + 0x108]
mov qword [rbp + 0x1e8], rax
mov dword [rbp + 0x204], 0
mov eax, dword [rbp + 0x1cc]
cmp dword [rbp + 0x204], eax
jae 0x140011d82
mov eax, dword [rbp + 0x204]
mov rcx, qword [rbp + 0x1e8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x228], rax
mov eax, dword [rbp + 0x204]
add rax, 8
mov dword [rbp + 0x204], eax
mov rax, qword [rbp + 0x228]
mov eax, dword [rax + 4]
sub rax, 8
xor edx, edx
mov ecx, 2
div rcx
mov dword [rbp + 0x244], eax
mov eax, dword [rbp + 0x204]
mov rcx, qword [rbp + 0x1e8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x268], rax
mov dword [rbp + 0x284], 0
jmp 0x140011c69
mov eax, dword [rbp + 0x284]
inc eax
mov dword [rbp + 0x284], eax
mov eax, dword [rbp + 0x244]
cmp dword [rbp + 0x284], eax
jae 0x140011d7d
mov eax, dword [rbp + 0x204]
add rax, 2
mov dword [rbp + 0x204], eax
mov eax, dword [rbp + 0x284]
mov rcx, qword [rbp + 0x268]
movzx eax, word [rcx + rax*2]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
test eax, eax
jne 0x140011cad
jmp 0x140011c5b
mov eax, dword [rbp + 0x284]
mov ecx, 0xfff
mov rdx, qword [rbp + 0x268]
movzx eax, word [rdx + rax*2]
and ax, cx
movzx eax, ax
mov rcx, qword [rbp + 0x228]
mov ecx, dword [rcx]
add ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rbp + 0x2a8], rax
mov qword [rbp + 0x2c8], 0
mov rax, qword [rbp + 0x2a8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x638], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rbp + 0x2c8]
mov rcx, qword [rbp + 0x638]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x2c8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x2c8], rax
mov rax, qword [rbp + 0x2a8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
mov r8d, 8
lea rdx, [rbp + 0x2c8]
mov rcx, rax
call fcn.1400111b3
jmp 0x140011c5b
jmp 0x140011bdb
mov qword [rbp + 0x2e8], 0
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0xc8]
mov rax, qword [rcx + rax + 0x88]
mov qword [rbp + 0x308], rax
mov eax, dword [rbp + 0x308]
add rax, qword [rbp + 0x108]
mov qword [rbp + 0x2e8], rax
lea rax, [0x14001add6]
mov qword [rbp + 0x328], rax
mov qword [rbp + 0x348], 0
mov rax, qword [rbp + 0x2e8]
cmp dword [rax + 0xc], 0
je 0x140011f30
mov rax, qword [rbp + 0x2e8]
mov eax, dword [rax + 0xc]
add rax, qword [rbp + 0x108]
mov qword [rbp + 0x328], rax
mov rcx, qword [rbp + 0x328]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp + 0x348], rax
cmp qword [rbp + 0x348], 0
je 0x140011f19
mov qword [rbp + 0x368], 0
mov rax, qword [rbp + 0x2e8]
mov eax, dword [rax + 0x10]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x368], rax
mov rax, qword [rbp + 0x368]
cmp qword [rax], 0
je 0x140011f19
mov rax, qword [rbp + 0x368]
movabs rcx, 0x8000000000000000
mov rax, qword [rax]
and rax, rcx
test rax, rax
je 0x140011eb1
mov rax, qword [rbp + 0x368]
mov rax, qword [rax]
and rax, 0xffff
mov qword [rbp + 0x388], rax
mov rdx, qword [rbp + 0x388]
mov rcx, qword [rbp + 0x348]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x368]
mov qword [rcx], rax
jmp 0x140011f02
mov rax, qword [rbp + 0x368]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x3a8], rax
mov rax, qword [rbp + 0x3a8]
add rax, 2
mov rdx, rax
mov rcx, qword [rbp + 0x348]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x3c8], rax
mov rax, qword [rbp + 0x368]
mov rcx, qword [rbp + 0x3c8]
mov qword [rax], rcx
mov rax, qword [rbp + 0x368]
add rax, 8
mov qword [rbp + 0x368], rax
jmp 0x140011e4d
mov rax, qword [rbp + 0x2e8]
add rax, 0x14
mov qword [rbp + 0x2e8], rax
jmp 0x140011dd9
mov rax, qword [rbp + 0xc8]
mov eax, dword [rax + 0x28]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x3e8], rax
xor r8d, r8d
mov edx, 1
mov rcx, qword [rbp + 0x108]
call qword [rbp + 0x3e8]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x68]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001ad80]
call fcn.140011325
mov eax, edi
mov rcx, qword [rbp + 0x640]
xor rcx, rbp
call fcn.1400111ae
lea rsp, [rbp + 0x658]
pop rdi
pop rbp
ret