Function at 0x401000
Capabilities:
Create directory
Create process on windows
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xce8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xce4], eax
push esi
push edi
push 0x20a
lea eax, [esp + 0x6bc]
mov dword [esp + 0x30], edx
push 0
push eax
mov dword [esp + 0x28], ecx
call fcn.004029f0
add esp, 0xc
lea eax, [esp + 0x6b8]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x401400
push 0
call fcn.00403e6b
add esp, 4
push eax
call fcn.00403dd5
add esp, 4
call fcn.00403db4
push 0x20a
mov esi, eax
lea eax, [esp + 0x94]
push 0
push eax
call fcn.004029f0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
lea eax, [esp + 0x6c4]
push eax
lea eax, [esp + 0xa0]
push str._s_X_X_X_
push eax
call fcn.00401420
add esp, 0x18
cmp eax, 0xffffffff
je 0x401400
push 0x41dbc0
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401400
push 0x20a
lea eax, [esp + 0x2a4]
mov dword [esp + 0x44], 0
push 0
push eax
call fcn.004029f0
mov eax, 0x208
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x8d4]
add esp, 0xc
mov esi, 0x419998
sub eax, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
nop dword [eax]
push esi
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x2a8]
push 0x4177c8
push eax
call fcn.00401420
add esp, 0x10
cmp eax, 0xffffffff
je 0x401400
push 0xa
lea edi, [esi - 0x208]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x401297
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x24], eax
test eax, eax
je 0x401400
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401400
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x28], eax
test eax, eax
je 0x401400
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x8c8]
movzx edx, word [edx]
test dx, dx
je 0x401214
mov eax, edx
mov edx, dword [esp + 0x20]
add edx, edi
cmp ax, 0x5c
je 0x4011cd
mov word [ecx], ax
add ecx, 2
movzx eax, word [edx + ecx]
test ax, ax
jne 0x4011b6
jmp 0x401214
test ax, ax
je 0x401214
xor eax, eax
mov word [ecx], ax
lea eax, [esp + 0x8c8]
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0xae0]
push 0x4177c8
push eax
call fcn.00401420
add esp, 0x10
cmp eax, 0xffffffff
je 0x401214
push 0x41dbc0
lea eax, [esp + 0xadc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401400
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x40]
push 0
push eax
push edi
push dword [esp + 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4013f9
cmp dword [esp + 0x40], edi
jne 0x4013f9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
add edi, 0x410
add esi, 0x410
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
cmp edi, 0x38e0
jb 0x401120
push 0x419998
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x2a8]
push 0x4177c8
push eax
call fcn.00401420
add esp, 0x10
cmp eax, 0xffffffff
je 0x401400
push 0x208
lea eax, [esp + 0x4b4]
push 0
push eax
call fcn.004029f0
add esp, 0xc
lea eax, [esp + 0x4b0]
push 0x419998
push 0x4177e8
push eax
call fcn.00401460
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x401400
xor edi, edi
cmp dword [esp + 0x1c], edi
jle 0x401355
nop word [eax + eax]
cmp esi, 0x104
ja 0x401400
mov eax, dword [esp + 0x2c]
push dword [eax + edi*4]
mov eax, 0x104
sub eax, esi
push str.__s_
push eax
lea eax, [esp + 0x4bc]
lea eax, [eax + esi*2]
push eax
call fcn.004014b0
add esp, 0x10
cmp eax, 0xffffffff
je 0x401400
inc edi
add esi, eax
cmp edi, dword [esp + 0x1c]
jl 0x401310
push 0x44
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.004029f0
add esp, 0xc
mov dword [esp + 0x48], 0x44
lea eax, [esp + 0x30]
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x98]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x4d0]
push eax
lea eax, [esp + 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401400
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 1
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x34]
call esi
mov eax, dword [esp + 0x44]
pop edi
pop esi
mov ecx, dword [esp + 0xce4]
xor ecx, esp
call fcn.00401cda
mov esp, ebp
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xcec]
mov eax, 0xb
pop edi
pop esi
xor ecx, esp
call fcn.00401cda
mov esp, ebp
pop ebp
ret