Function at 0x401470
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Create thread
Inject thread
Resume thread
Spawn thread to rwx shellcode
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
lea eax, [ebp - 0x2d4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [ebp - 0x290], xmm0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
mov dword [ebp - 0x158], 0
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x154], 0
movups xmmword [ebp - 0x168], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4014e2
push ebx
push esi
push edi
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
lea ecx, [ebp - 0x168]
call fcn.00401000
cmp dword [ebp - 0x154], 0x10
lea edi, [ebp - 0x168]
mov ebx, dword [ebp - 0x168]
mov esi, dword [ebp - 0x158]
cmovae edi, ebx
test esi, esi
je 0x401587
push 0x100
lea eax, [ebp - 0x280]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, 0x4031cc
nop dword [eax]
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x280], 1
cmp ecx, 0x4031ce
jne 0x401540
lea eax, [esi - 1]
or esi, 0xffffffff
cmp eax, esi
cmovb esi, eax
movzx eax, byte [esi + edi]
add esi, edi
cmp byte [ebp + eax - 0x280], 0
jne 0x401583
nop
cmp esi, edi
je 0x401587
movzx eax, byte [esi - 1]
dec esi
cmp byte [ebp + eax - 0x280], 0
je 0x401570
sub esi, edi
jmp 0x40158a
or esi, 0xffffffff
mov eax, dword [ebp - 0x154]
cmp eax, 0x10
jb 0x4015c2
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4015b8
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4015b8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.00401a45
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x128], 0
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x124], 0
movups xmmword [ebp - 0x138], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4015f0
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
lea ecx, [ebp - 0x138]
call fcn.00401000
cmp dword [ebp - 0x128], esi
lea eax, [ebp - 0x138]
mov ecx, esi
mov dword [ebp - 0x110], 0
cmovb ecx, dword [ebp - 0x128]
xorps xmm0, xmm0
cmp dword [ebp - 0x124], 0x10
push ecx
cmovae eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x120]
push eax
movups xmmword [ebp - 0x120], xmm0
mov dword [ebp - 0x10c], 0
call fcn.00401000
push 1
push 0x4031d0
lea ecx, [ebp - 0x120]
call fcn.00401300
push 0xb
push str.overlay.exe
mov ecx, eax
call fcn.00401300
push eax
lea ecx, [ebp - 0x180]
call fcn.004010a0
mov ecx, dword [ebp - 0x10c]
cmp ecx, 0x10
jb 0x4016bc
mov edx, dword [ebp - 0x120]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4016b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401703
push ecx
push edx
call fcn.00401a45
add esp, 8
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0xf
mov byte [ebp - 0x120], 0
cmp ecx, 0x10
jb 0x401713
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401709
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401709
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00401a45
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x110], 0
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x10c], 0
movups xmmword [ebp - 0x120], xmm0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401740
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
lea ecx, [ebp - 0x120]
call fcn.00401000
cmp dword [ebp - 0x110], esi
lea eax, [ebp - 0x120]
xorps xmm0, xmm0
mov dword [ebp - 0x128], 0
cmovb esi, dword [ebp - 0x110]
lea ecx, [ebp - 0x138]
cmp dword [ebp - 0x10c], 0x10
push esi
cmovae eax, dword [ebp - 0x120]
push eax
movups xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x124], 0
call fcn.00401000
push 1
push 0x4031d0
lea ecx, [ebp - 0x138]
call fcn.00401300
push 8
push str.hook.dll
mov ecx, eax
call fcn.00401300
push eax
lea ecx, [ebp - 0x150]
call fcn.004010a0
mov ecx, dword [ebp - 0x124]
cmp ecx, 0x10
jb 0x40180a
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401800
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401851
push ecx
push edx
call fcn.00401a45
add esp, 8
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
cmp ecx, 0x10
jb 0x401861
mov edx, dword [ebp - 0x120]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401857
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401857
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00401a45
add esp, 8
cmp dword [ebp - 0x16c], 0x10
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x2d4]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x180]
cmovae eax, dword [ebp - 0x180]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40196d
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x40196d
cmp eax, 0xffffffff
je 0x40196d
push 0x40
push 0x3000
push 0x104
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x4018fe
cmp dword [ebp - 0x13c], 0x10
lea ecx, [ebp - 0x150]
mov eax, dword [ebp - 0x140]
cmovae ecx, dword [ebp - 0x150]
inc eax
push 0
push eax
push ecx
push esi
push dword [ebp - 0x290]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push esi
push dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push dword [ebp - 0x290]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x40192f
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x140]
push 0x8000
inc eax
push eax
push esi
push dword [ebp - 0x290]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push str.Ratatouille
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40196d
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebp - 0x13c]
pop edi
pop esi
pop ebx
cmp ecx, 0x10
jb 0x4019a6
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40199c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4019ed
push ecx
push edx
call fcn.00401a45
add esp, 8
mov ecx, dword [ebp - 0x16c]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
cmp ecx, 0x10
jb 0x4019fd
mov edx, dword [ebp - 0x180]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4019f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4019f3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00401a45
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00401a53
mov esp, ebp
pop ebp
ret 0x10