Function at 0x140006ae0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
push r12
push r13
sub rsp, 0x320
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0x358], rbx
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov r12, r8
mov r13, rdx
mov rbx, rcx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x30], 0x78
lea rsi, str._CatchedProcess::InjectData_
mov qword [rsp + 0x70], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x80], rax
mov rcx, qword [0x140260548]
test rcx, rcx
je 0x140006c47
mov rax, qword [rcx]
mov edx, 0x3e8
call qword [rax + 0x10]
test eax, eax
je 0x140006c47
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int____ptr64]
nop
call qword [sym.imp.MSVCP90.dll_public:_static_class_std::locale_const____ptr64___cdecl_std::locale::classic_void_]
mov r8, rax
mov rax, qword [rsp + 0x1d0]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x1d0]
lea rdx, [rsp + 0x60]
call qword [sym.imp.MSVCP90.dll_public:_class_std::locale___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::imbue_class_std::locale_const____ptr64____ptr64]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::locale::destructor_void____ptr64]
mov rdx, rsi
lea rcx, [rsp + 0x1d0]
call fcn.140002150
mov rcx, rax
lea rdx, str.Started
call fcn.140002150
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void____ptr64]
nop
lea r8, [rsp + 0x2c8]
cmp qword [rsp + 0x2e0], 8
cmovae r8, qword [rsp + 0x2c8]
mov rcx, qword [0x140260548]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x2d8]
mov edx, 0x3e8
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void____ptr64]
nop
test r13, r13
je 0x140006d96
test r12, r12
je 0x140006d96
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov qword [rsp + 0xa8], rax
test rax, rax
jne 0x140006cba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, [0x1401b7b80]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x90], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x90]
call sub.MSVCR90.dll__CxxThrowException
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x140006d16
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, [0x1401b7b98]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0xb0], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0xb0]
call sub.MSVCR90.dll__CxxThrowException
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, r12
mov r8, r13
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140006d77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, [0x1401b7bb8]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0xc0], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0xc0]
call sub.MSVCR90.dll__CxxThrowException
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x50], rsi
cmp rbx, 0xffffffffffffffff
je 0x140006d94
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140006dcd
mov dword [rsp + 0x40], 0x57
lea rax, str.ParametersCheck
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0xd0], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0xd0]
call sub.MSVCR90.dll__CxxThrowException
nop
mov rbx, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140017eb0
nop
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.140155650
mov rbx, qword [rsp + 0x358]
add rsp, 0x320
pop r13
pop r12
pop rsi
ret