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

Disassembly:
push rbp
push rbx
push r13
push r14
push r15
lea rbp, [rsp - 0x750]
sub rsp, 0x850
mov rax, qword [0x004180a8]
xor rax, rsp
mov qword [rbp + 0x730], rax
mov rbx, rcx
mov r15, r8
mov r14, rdx
lea rcx, [rbp + 0x520]
xor edx, edx
mov r8d, 0x208
call fcn.00404ed0
lea r9, [0x0042f340]
lea r8, str.__s___s
lea rcx, [rbp + 0x520]
mov edx, 0x104
mov qword [rsp + 0x20], rbx
call fcn.00401000
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.00404ed0
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, str.StarCraft_II_IPC_Mem
xor edx, edx
mov r8d, 0x8000004
mov qword [rsp + 0x28], rax
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov r13, rax
test rax, rax
je 0x40140e
mov qword [rsp + 0x898], rsi
mov esi, 2
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, esi
mov qword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x401401
mov qword [rsp + 0x848], rdi
mov qword [rax + 0x20], 4
mov dword [rax + 0x30], 3
mov qword [rsp + 0x840], r12
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [rbx + 0x2c], 3
mov dword [rbx + 0x4c], 0xffffffff
mov dword [rbx + 0x54], 0xffffffff
mov dword [rbx + 0x28], eax
call fcn.00433303
mov edi, eax
call fcn.00433309
lea rdx, [rbp + 0x520]
mov r12, rax
lea rax, [rsp + 0x50]
lea rcx, [0x0042f340]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x4013ed
mov rcx, qword [rsp + 0x50]
mov r9d, 0x3000
mov r8d, edi
xor edx, edx
mov r14d, edi
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp - 0x20]
mov rdi, rax
mov dword [rbp + 0x10], 0x100001
call qword [sym.imp.KERNEL32.DLL_GetThreadContext]
test eax, eax
je 0x40135a
call fcn.004332fd
mov rcx, qword [rbp + 0xd8]
mov r8, r15
add rax, r12
mov edx, 0x104
mov qword [rax], rcx
lea rcx, [rax + 8]
call fcn.00403a30
test rdi, rdi
je 0x401353
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
mov r9d, r14d
mov r8, r12
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
je 0x40134c
mov rcx, qword [rsp + 0x58]
mov eax, edi
lea rdx, [rbp - 0x20]
mov qword [rbp + 0xd8], rax
mov dword [rbp + 0x10], 0x100001
call qword [sym.imp.KERNEL32.DLL_SetThreadContext]
test eax, eax
je 0x40135f
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.DLL_ResumeThread]
cmp eax, 0xffffffff
jne 0x40129a
mov esi, 1
jmp 0x40135f
xor dil, dil
mov r12d, 0x4650
xor r14d, r14d
nop word [rax + rax]
lea rdx, str.StarCraft_II
lea rcx, str.32770
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x4012dd
xor r9d, r9d
mov r8, rsi
mov edx, 0x111
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageA]
cmp dword [rbx + 0x20], 5
jne 0x4012f0
cmp dword [rbx + 0x24], 1
jne 0x40131b
mov dword [rbx + 0x24], r14d
mov dil, 1
mov ecx, 0xa
call qword [sym.imp.KERNEL32.DLL_Sleep]
mov rcx, qword [rsp + 0x50]
xor edx, edx
dec r12d
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x40131f
test r12d, r12d
je 0x40131f
test dil, dil
je 0x4012b0
jmp 0x40131f
mov dword [rbx + 0x20], r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov rcx, r13
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test dil, dil
jne 0x401346
mov rcx, qword [rsp + 0x50]
mov edx, 0x400000ff
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
movzx eax, dil
jmp 0x4013b6
mov esi, 3
jmp 0x40135f
mov esi, 4
jmp 0x40135f
mov esi, 5
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov rcx, r13
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rdx, str.Error_0x_08X._Please_make_sure_all_files_are_ok_
lea rcx, [rbp + 0x4b0]
mov r8d, esi
call fcn.00401510
lea r8, str.Error
lea rdx, [rbp + 0x4b0]
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0x50]
lea edx, [rsi + 0x40000000]
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
xor al, al
mov rdi, qword [rsp + 0x848]
mov r12, qword [rsp + 0x840]
mov rsi, qword [rsp + 0x898]
mov rcx, qword [rbp + 0x730]
xor rcx, rsp
call fcn.00403070
add rsp, 0x850
pop r15
pop r14
pop r13
pop rbx
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov rcx, r13
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4013b4
mov rcx, r13
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
jmp 0x4013c6
jmp 0x4013ce