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

Disassembly:
push rbp
push rdi
push r13
push r14
lea rbp, [rsp - 0x8c8]
sub rsp, 0x9c8
mov rax, qword [0x140073688]
xor rax, rsp
mov qword [rbp + 0x8b0], rax
movsxd rdi, dword [rcx + 0x3c]
lea rdx, [rbp + 0x4b0]
add rdi, rcx
mov r14, rcx
xor ecx, ecx
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [rdi], 0x4550
jne 0x140001368
xorps xmm1, xmm1
mov dword [rbp + 0x440], WSASetLastError
xor eax, eax
lea rcx, [rbp + 0x4b0]
mov qword [rsp + 0x60], rax
xor r13d, r13d
mov dword [rbp + 0x4a4], eax
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp + 0x440]
xor edx, edx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r13d
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rbp + 0x444], xmm1
movups xmmword [rbp + 0x454], xmm1
movups xmmword [rbp + 0x464], xmm1
movups xmmword [rbp + 0x474], xmm1
movups xmmword [rbp + 0x484], xmm1
movups xmmword [rbp + 0x494], xmm1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14000135c
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov dword [rbp - 0x60], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140001350
mov rdx, qword [rbp - 8]
lea r9d, [r13 + 8]
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x68]
add rdx, 0x10
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14000115c
lea rdx, str.Failed_to_read_process_memory.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001830
lea rdx, [0x140001a00]
mov rcx, rax
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 eax, 0xffffffff
jmp 0x14000132f
mov r8d, dword [rdi + 0x50]
mov r9d, 0x3000
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0xa08], r12
mov qword [rsp + 0x9c0], r15
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
jne 0x14000119e
lea rdx, str.Failed_to_allocate_memory_in_target_process.
jmp 0x1400011c3
mov r9d, dword [rdi + 0x54]
mov r8, r14
mov rcx, qword [rsp + 0x50]
mov rdx, r15
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400011e9
lea rdx, str.Failed_to_write_headers_to_target_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001830
lea rdx, [0x140001a00]
mov rcx, rax
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 eax, 0xffffffff
jmp 0x14000131f
mov qword [rsp + 0x9f8], rbx
mov ebx, r13d
mov qword [rsp + 0xa00], rsi
cmp r13w, word [rdi + 6]
jae 0x140001257
mov rsi, r13
nop word [rax + rax]
movsxd rax, dword [r14 + 0x3c]
mov rcx, qword [rsp + 0x50]
add rax, rsi
mov qword [rsp + 0x20], r13
mov r8d, dword [rax + r14 + 0x11c]
mov edx, dword [rax + r14 + 0x114]
add r8, r14
mov r9d, dword [rax + r14 + 0x118]
add rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001286
movzx eax, word [rdi + 6]
inc ebx
add rsi, 0x28
cmp ebx, eax
jl 0x140001210
mov rdx, qword [rbp - 8]
lea r8, [rdi + 0x30]
mov rcx, qword [rsp + 0x50]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400012b0
lea rdx, str.Failed_to_write_image_base_to_target_process.
jmp 0x1400012ee
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_write_section
call fcn.140001830
mov edx, ebx
mov rcx, rax
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___int____ptr64]
mov rcx, rax
lea rdx, str._to_target_process.
jmp 0x1400012f5
mov eax, dword [rdi + 0x28]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
add rax, r15
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x1400012d7
lea rdx, str.Failed_to_set_thread_context.
jmp 0x1400012ee
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x14000134c
lea rdx, str.Failed_to_resume_thread.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001830
lea rdx, [0x140001a00]
mov rcx, rax
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 eax, 0xffffffff
mov rsi, qword [rsp + 0xa00]
mov rbx, qword [rsp + 0x9f8]
mov r12, qword [rsp + 0xa08]
mov r15, qword [rsp + 0x9c0]
mov rcx, qword [rbp + 0x8b0]
xor rcx, rsp
call fcn.14005b3a0
add rsp, 0x9c8
pop r14
pop r13
pop rdi
pop rbp
ret
xor eax, eax
jmp 0x14000130f
lea rdx, str.Failed_to_get_thread_context.
jmp 0x140001136
lea rdx, str.Failed_to_create_process.
jmp 0x140001136
lea rdx, str.Invalid_PE_signature.
jmp 0x140001136