Function at 0x401000
Capabilities:
Create directory
Create process on windows
Delete directory
Delete file
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, 0x2c8
mov eax, dword [0x416004]
xor eax, esp
mov dword [esp + 0x2c4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x417470
push 0x67
push edi
mov dword [esp + 0x64], edi
call esi
push 0x64
push 0x4173a8
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push edi
mov dword [esp + 0x20], 0x30
mov dword [esp + 0x24], 3
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], edi
call esi
push 0x7f00
push 0
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6b
push dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 6
mov dword [esp + 0x44], 0x6d
mov dword [esp + 0x48], 0x4173a8
call esi
mov dword [esp + 0x44], eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
xor eax, eax
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 7
mov word [esp + 0x98], ax
call fcn.00405b83
cmp dword [eax], 1
jle 0x40110d
call fcn.00405b89
mov eax, dword [eax]
mov edx, dword [eax + 4]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4010f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xa0]
call fcn.004015f0
lea eax, [esp + 0xc0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edx, dword [esp + 0x14]
xor eax, eax
mov ecx, edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 7
mov word [esp + 0x18], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401161
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.004015f0
push dword [esp + 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea edi, [esp + 0xc0]
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401190
mov esi, dword [esp + 0x2c]
sub edi, ecx
mov edx, dword [esp + 0x28]
mov eax, esi
sar edi, 1
sub eax, edx
cmp edi, eax
ja 0x401267
lea eax, [edi + edx]
cmp esi, 8
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x18]
cmovae ecx, dword [esp + 0x18]
lea eax, [esp + 0xc0]
lea eax, [eax + edi*2]
mov dword [esp + 0xc], ecx
cmp eax, ecx
jbe 0x401207
lea eax, [ecx + edx*2]
lea esi, [esp + 0xc0]
cmp esi, eax
ja 0x401207
mov eax, esi
cmp ecx, eax
ja 0x4011f4
xor esi, esi
mov dword [esp + 0x10], esi
jmp 0x40120d
mov esi, ecx
lea eax, [esp + 0xc0]
sub esi, eax
sar esi, 1
mov dword [esp + 0x10], esi
jmp 0x40120d
mov esi, edi
mov dword [esp + 0x10], edi
lea eax, [edx*2 + 2]
push eax
push ecx
lea eax, [ecx + edi*2]
push eax
call fcn.00404d10
add esp, 0xc
lea eax, [esp + 0xc0]
add esi, esi
push esi
push eax
push dword [esp + 0x14]
call fcn.004053d0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, edi
sub eax, ecx
add eax, eax
push eax
lea eax, [ecx + edi]
lea ecx, [esp + 0xc4]
lea eax, [ecx + eax*2]
push eax
mov eax, dword [esp + 0x14]
add eax, esi
push eax
call fcn.004053d0
add esp, 0xc
lea eax, [esp + 0x18]
jmp 0x401284
push edi
lea eax, [esp + 0xc4]
mov byte [esp + 0x10], 0
push eax
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x28]
push edi
call fcn.00401a50
movups xmm0, xmmword [eax]
xor ecx, ecx
movups xmmword [esp + 0x70], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0x80], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [esp + 0x2c]
cmp edx, 8
jb 0x4012e9
mov ecx, dword [esp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4012df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40157a
push edx
push ecx
call fcn.0040228d
add esp, 8
cmp dword [esp + 0x84], 8
lea eax, [esp + 0x70]
push 0
cmovae eax, dword [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ecx
lea edx, [esp + 0x74]
lea ecx, [esp + 0x5c]
call fcn.00401740
mov esi, dword [esp + 0x58]
lea eax, [esp + 0x5c]
add esp, 4
cmp dword [esp + 0x6c], 8
cmovae eax, dword [esp + 0x58]
mov dword [esp + 0xc], eax
push 0x413cd8
push 0x81
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4013ac
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4013ac
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4013ac
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [esp + 0x24]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4013ac
push 0
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0
push eax
push edi
push dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xac], 8
lea ecx, [esp + 0x98]
lea eax, [esp + 0x58]
mov dword [esp + 0x20], 0
cmovae ecx, dword [esp + 0x98]
xorps xmm0, xmm0
cmp dword [esp + 0x6c], 8
movlpd qword [esp + 0x38], xmm0
cmovae eax, dword [esp + 0x58]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push eax
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
mov dword [esp + 0x54], 0
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x28], str.open
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], 0x40
mov dword [esp + 0x38], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x6c], 8
lea eax, [esp + 0x58]
cmovae eax, dword [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x84], 8
lea eax, [esp + 0x70]
cmovae eax, dword [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [esp + 0x6c]
cmp edx, 8
jb 0x4014b1
mov ecx, dword [esp + 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4014a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40157f
push edx
push ecx
call fcn.0040228d
add esp, 8
mov edx, dword [esp + 0x84]
xor eax, eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 7
mov word [esp + 0x58], ax
cmp edx, 8
jb 0x401507
mov ecx, dword [esp + 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4014fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40157f
push edx
push ecx
call fcn.0040228d
add esp, 8
mov edx, dword [esp + 0xac]
xor eax, eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 7
mov word [esp + 0x70], ax
cmp edx, 8
jb 0x401562
mov ecx, dword [esp + 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401558
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40157f
push edx
push ecx
call fcn.0040228d
add esp, 8
mov ecx, dword [esp + 0x2cc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0040227c
mov esp, ebp
pop ebp
ret 0x10
call fcn.00405b19
call fcn.00405b19
int3