Function at 0x402c16
Capabilities:
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push 0x1f4
mov eax, 0x445429
call fcn.00444606
lea ecx, [ebp - 0x100]
call fcn.004080f0
and dword [ebp - 4], 0
lea edi, [ebp - 0x58]
push 6
xor eax, eax
lea edx, [ebp - 0x100]
cmp dword [ebp - 0xec], 7
pop ecx
cmova edx, dword [ebp - 0x100]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x58]
call fcn.004071dd
push str.UseConsole
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 1
call fcn.004044f3
push str.Dll_Injection
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 2
call fcn.004044f3
lea eax, [ebp - 0x1fc]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x1dc]
lea ecx, [ebp - 0x58]
call fcn.004072f2
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00404556
lea ecx, [ebp - 0x1dc]
call fcn.004049d9
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 6
call fcn.004049d9
cmp dword [ebp - 0x24], 0xf
lea ecx, [ebp - 0x38]
mov esi, dword [ebp - 0x28]
lea ebx, [ebp - 0x38]
cmova ecx, dword [ebp - 0x38]
lea edi, [ebp - 0x38]
cmova ebx, dword [ebp - 0x38]
add esi, ecx
cmp dword [ebp - 0x24], 0xf
cmova edi, dword [ebp - 0x38]
cmp edi, esi
je 0x402cf9
sub ebx, edi
movsx eax, byte [edi]
push eax
call fcn.0042883c
mov byte [edi + ebx], al
inc edi
pop ecx
cmp edi, esi
jne 0x402ce7
mov edx, str.true
lea ecx, [ebp - 0x38]
call fcn.00404d83
test al, al
je 0x402d25
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x402d20
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x402d25
call fcn.00408567
lea ecx, [ebp - 0x1fc]
call fcn.0040805b
push str..env
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1dc]
call fcn.00404f15
pop ecx
lea ecx, [ebp - 0x1fc]
call fcn.00404984
mov byte [ebp - 4], 8
lea edx, [ebp - 0x1dc]
cmp dword [ebp - 0x1c8], 7
lea ecx, [ebp - 0xe8]
cmova edx, dword [ebp - 0x1dc]
call fcn.00406e5e
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 0xa
call fcn.00404984
xor ebx, ebx
lea eax, [ebp - 0xe8]
cmp dword [ebp - 0xd4], 0xf
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
cmova eax, dword [ebp - 0xe8]
push eax
call fcn.00402468
pop ecx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x402dc7
lea edx, [eax + 4]
cmp dword [edx + 0x14], 0xf
mov eax, dword [edx + 0x10]
jbe 0x402dc0
mov edx, dword [edx]
push eax
call fcn.00405dcb
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, eax
lea ecx, [ebp - 0x1fc]
call fcn.00407fd5
push str..dll
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xb8]
call fcn.00404f15
pop ecx
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 0xe
call fcn.00404984
push str.ProxyPath
lea ecx, [ebp - 0x1dc]
call fcn.004044f3
mov esi, str.Dll_Injection
mov byte [ebp - 4], 0xf
push esi
lea ecx, [ebp - 0x1fc]
call fcn.004044f3
lea eax, [ebp - 0x1dc]
mov byte [ebp - 4], 0x10
push eax
lea edx, [ebp - 0x1fc]
lea ecx, [ebp - 0x58]
call fcn.004072f2
pop ecx
cmp dword [eax + 0x14], 0xf
jbe 0x402e47
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.00406f3a
lea ecx, [ebp - 0x1fc]
call fcn.004049d9
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 0x13
call fcn.004049d9
push str.TargetPath
lea ecx, [ebp - 0x1dc]
call fcn.004044f3
push esi
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 0x14
call fcn.004044f3
lea eax, [ebp - 0x1dc]
mov byte [ebp - 4], 0x15
push eax
lea edx, [ebp - 0x1fc]
lea ecx, [ebp - 0x58]
call fcn.004072f2
pop ecx
cmp dword [eax + 0x14], 0xf
jbe 0x402eb0
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00406f3a
lea ecx, [ebp - 0x1fc]
call fcn.004049d9
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 0x18
call fcn.004049d9
push str.DllPath
lea ecx, [ebp - 0x1dc]
call fcn.004044f3
push esi
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 0x19
call fcn.004044f3
lea eax, [ebp - 0x1dc]
mov byte [ebp - 4], 0x1a
push eax
lea edx, [ebp - 0x1fc]
lea ecx, [ebp - 0x58]
call fcn.004072f2
pop ecx
cmp dword [eax + 0x14], 0xf
jbe 0x402f16
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.00406f3a
lea ecx, [ebp - 0x1fc]
call fcn.004049d9
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 0x1d
call fcn.004049d9
push 7
pop esi
cmp dword [ebp - 0x5c], esi
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x160]
cmova edx, dword [ebp - 0x70]
xor edi, edi
inc edi
push edi
call fcn.004081bb
mov byte [ebp - 4], 0x1e
lea edx, [ebp - 0x88]
cmp dword [ebp - 0x74], esi
lea ecx, [ebp - 0x118]
push edi
cmova edx, dword [ebp - 0x88]
call fcn.004081bb
mov byte [ebp - 4], 0x1f
lea edx, [ebp - 0xa0]
cmp dword [ebp - 0x8c], esi
lea ecx, [ebp - 0x148]
push edi
cmova edx, dword [ebp - 0xa0]
call fcn.004081bb
mov byte [ebp - 4], 0x20
lea edx, [ebp - 0xb8]
cmp dword [ebp - 0xa4], esi
lea ecx, [ebp - 0x130]
push edi
cmova edx, dword [ebp - 0xb8]
call fcn.004081bb
cmp dword [ebp - 0x108], 0
lea edi, [ebp - 0x17c]
xorps xmm0, xmm0
mov dword [ebp - 0x1c0], 0x44
seta byte [ebp - 0x1c1]
mov dword [ebp - 0x1bc], ebx
xor eax, eax
mov dword [ebp - 0x1b8], ebx
mov dword [ebp - 0x190], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1b4], ebx
mov dword [ebp - 0x1b0], ebx
mov dword [ebp - 0x1ac], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x1a8], ebx
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x1a0], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x198], ebx
mov dword [ebp - 0x194], ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x164]
movups xmmword [ebp - 0x18c], xmm0
mov dword [ebp - 0x1d0], ebx
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x1cc], eax
mov byte [ebp - 0x1c8], 1
push 0x14
mov byte [ebp - 4], 0x22
call fcn.004085cb
add esp, 0x14
mov ecx, dword [ebp - 0x164]
mov edx, eax
xor eax, eax
mov dword [ebp - 0x1e4], edx
mov edi, edx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
inc eax
mov dword [edx], vtable.std::_Ref_count_resource_std::nullptr_t__class__void___cdecl_run_void_::_2::_lambda_1__.0
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ebx
mov cl, byte [ebp - 0x1c1]
lea eax, [ebp - 0x160]
test cl, cl
mov byte [ebp - 4], 0x23
lea edi, [ebp - 0x118]
cmove edi, eax
lea ebx, [ebp - 0x88]
lea eax, [ebp - 0x70]
cmove ebx, eax
lea esi, [ebp - 0x130]
lea eax, [ebp - 0x148]
cmove esi, eax
lea edx, [ebp - 0xa0]
lea eax, [ebp - 0xb8]
cmove eax, edx
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x200], eax
mov edx, edi
jbe 0x4030f2
mov edx, dword [edi]
lea ecx, [ebp - 0xd0]
call fcn.0040827c
mov byte [ebp - 4], 0x24
lea eax, [ebp - 0xd0]
cmp dword [ebp - 0xbc], 7
cmova eax, dword [ebp - 0xd0]
cmp dword [edi + 0x14], 7
jbe 0x40311d
mov edi, dword [edi]
lea ecx, [ebp - 0x17c]
push ecx
lea ecx, [ebp - 0x1c0]
push ecx
push eax
xor eax, eax
push eax
push 4
push eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4034db
mov ecx, dword [ebp - 0x17c]
xor edi, edi
and dword [ebp - 0x16c], edi
cmp byte [ebp - 0x1c1], 0
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edi
je 0x403301
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x4031a1
lea ecx, [eax + 0x10]
cmp dword [ecx + 0x10], 0
jbe 0x403196
mov edx, str.Dll_Injection
call fcn.00404d83
test al, al
jne 0x403196
inc edi
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x14]
call fcn.004056b1
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0xd], 0
je 0x40317b
test edi, edi
jne 0x4031af
xor ecx, ecx
jmp 0x4031c7
or eax, 0xffffffff
xor edx, edx
div edi
cmp eax, 0x410
jb 0x403509
imul ecx, edi, 0x410
push 0x10
pop edx
call fcn.00404f75
mov edi, 0x208
mov edx, eax
mov ecx, edi
call fcn.00404f75
mov ecx, dword [ebp - 0x168]
mov edx, eax
call fcn.00406835
cmp dword [esi + 0x14], 7
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x164], eax
mov eax, esi
lea ecx, [ecx*2 + 2]
jbe 0x40320a
mov eax, dword [esi]
push edi
push ecx
mov ecx, dword [ebp - 0x168]
lea edx, [ebp - 0x164]
push eax
call fcn.00406855
mov edi, dword [ebp - 0x164]
lea eax, [ebp - 0x168]
mov dword [ebp - 0x1cc], eax
lea ecx, [ebp - 0x164]
mov eax, dword [ebp - 0x58]
add esp, 0xc
mov dword [ebp - 0x16c], edi
mov dword [ebp - 0x1c8], ecx
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp byte [eax + 0xd], 0
jne 0x40327d
lea ecx, [eax + 0x10]
lea eax, [ecx + 0x18]
push eax
push ecx
lea ecx, [ebp - 0x1cc]
call fcn.00403577
lea ecx, [ebp - 0x14]
call fcn.004056b1
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0xd], 0
je 0x403253
mov edi, dword [ebp - 0x164]
push 0
push 4
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 0x168]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40352a
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x18]
push 0
push 4
add eax, 4
push ecx
push eax
push dword [ebp - 0x168]
mov dword [ebp - 0x164], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40352a
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x16c]
push 0
push 4
add eax, 4
push ecx
push eax
push dword [ebp - 0x168]
mov dword [ebp - 0x164], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40352a
add dword [ebp - 0x164], 4
jmp 0x4033a3
mov edx, 0x218
call fcn.00406835
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x10]
lea ecx, [eax*2 + 2]
mov eax, esi
jbe 0x403328
mov eax, dword [esi]
push 0x208
push ecx
mov ecx, dword [ebp - 0x168]
lea edx, [ebp - 0x14]
push eax
call fcn.00406855
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
add esp, 0xc
push 0
push 4
push eax
push edi
push dword [ebp - 0x168]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40352a
push 0
push 4
lea ecx, [ebp - 0x18]
push ecx
lea eax, [edi + 4]
push eax
push dword [ebp - 0x168]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40352a
push 0
push 4
lea ecx, [ebp - 0x16c]
push ecx
lea eax, [edi + 8]
push eax
push dword [ebp - 0x168]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40352a
lea eax, [ebx + 0x14]
cmp dword [eax], 7
mov dword [ebp - 0x14], eax
jbe 0x4033b0
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 7
jbe 0x4033b8
mov esi, dword [esi]
mov eax, dword [ebp - 0x200]
cmp dword [eax + 0x14], 7
jbe 0x4033c6
mov eax, dword [eax]
mov edx, dword [ebp - 0x1e0]
lea ecx, [ebp - 0x17c]
push ebx
push esi
push eax
push edi
call fcn.0040661e
add esp, 0x10
mov edx, str.Wait_for
mov ecx, 0x4591d0
call fcn.00404fa4
cmp byte [ebp - 0x1c1], 0
lea ecx, [ebp - 0x70]
lea edx, [ebp - 0x88]
cmove edx, ecx
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 7
mov esi, dword [edx + 0x10]
jbe 0x40340d
mov edx, dword [edx]
push esi
mov ecx, eax
call fcn.00405fb5
pop ecx
mov edx, str...._n
mov ecx, eax
call fcn.00404fa4
push dword [ebp - 0x178]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0x17c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0xd0]
call fcn.00404984
mov ecx, dword [ebp - 0x1e4]
call fcn.004016ba
lea ecx, [ebp - 0x130]
call fcn.00404984
lea ecx, [ebp - 0x148]
call fcn.00404984
lea ecx, [ebp - 0x118]
call fcn.00404984
lea ecx, [ebp - 0x160]
call fcn.00404984
lea ecx, [ebp - 0xa0]
call fcn.00404984
lea ecx, [ebp - 0x70]
call fcn.00404984
lea ecx, [ebp - 0x88]
call fcn.00404984
lea ecx, [ebp - 0xb8]
call fcn.00404984
lea ecx, [ebp - 0x1c]
call fcn.004042de
lea ecx, [ebp - 0xe8]
call fcn.004049d9
lea ecx, [ebp - 0x38]
call fcn.004049d9
lea ecx, [ebp - 0x58]
call fcn.004036ef
lea ecx, [ebp - 0x100]
call fcn.00404984
call fcn.004445b5
ret
push str.Failed_to_launch
lea ecx, [ebp - 0x1fc]
call fcn.00404366
push ebx
mov edx, eax
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x1dc]
call fcn.00404f53
pop ecx
mov ecx, eax
mov byte [ebp - 4], 0x26
call fcn.004084ec
push str.Unsigned_integer_overflow
lea ecx, [ebp - 0x1d0]
call fcn.0040138e
push 0x455f8c
lea eax, [ebp - 0x1d0]
push eax
call fcn.00423294
mov ecx, str.Failed_to_run_WriteProcessMemory
call fcn.0040845b
int3