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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12d4
call section..text
push ebx
push esi
push edi
lea eax, [ebp - 0x1cc]
push 0x136
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor esi, esi
lea eax, [ebp - 0x1cc]
push esi
push pe_nt_image_headers32
push 3
push esi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x4013d3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov ebx, 0x2710
sub edi, ebx
js 0x4013d3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, esi
je 0x4013d3
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x4013d3
push esi
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
jne 0x4013d3
mov ebx, dword [ebp - 8]
lea eax, [ebp - 4]
push esi
push eax
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4013d3
cmp dword [ebp - 4], edi
jne 0x4013d3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
je 0x4013d3
lea eax, [ebx + 1]
mov dword [ebp + 0xc], eax
cmp byte [ebx], 0x2a
jne 0x401232
push 0x13
push str.BEGINCOMPRESSEDDATA
push dword [ebp + 0xc]
call fcn.004010cf
add esp, 0xc
test eax, eax
je 0x40123b
dec edi
inc ebx
inc dword [ebp + 0xc]
cmp edi, esi
jne 0x401217
cmp edi, esi
je 0x4013d3
lea eax, [ebp - 0x2d4]
add ebx, 0x18
push eax
push 0x104
sub edi, 0x18
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4013d3
lea eax, [ebp - 0x1cc]
push eax
push esi
lea eax, [ebp - 0x2d4]
push 0x404024
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4013d3
lea eax, [ebp - 0x1cc]
push 0x2e
push eax
call fcn.004010a9
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp + 0xc], eax
je 0x4012ba
push 0x5c
push eax
call fcn.00401090
pop ecx
test eax, eax
pop ecx
jne 0x4012ba
push str..exe
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4012cc
lea eax, [ebp - 0x1cc]
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push pe_nt_image_headers32
push 1
push esi
push 2
lea eax, [ebp - 0x1cc]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x4013d3
push 0x38
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.0040102f
add esp, 0xc
lea eax, [ebp - 0x50]
push 0x38
push str.1.0.4
push eax
call fcn.004015e8
mov dword [ebp - 0x4c], edi
add esp, 0xc
mov dword [ebp - 0x50], ebx
mov edi, 0x1000
lea eax, [ebp - 0x12d4]
push esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x40], edi
call fcn.004015ff
mov eax, edi
pop ecx
sub eax, dword [ebp - 0x40]
pop ecx
je 0x40135d
lea ecx, [ebp - 4]
push esi
push ecx
push eax
lea eax, [ebp - 0x12d4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401322
jmp 0x4013d3
lea eax, [ebp - 0x50]
push eax
call fcn.004014bc
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [ebp + 0xc]
call edi
push 0x44
lea eax, [ebp - 0x94]
pop ebx
push ebx
push esi
push eax
call fcn.0040102f
add esp, 0xc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x94], ebx
push eax
lea eax, [ebp - 0x94]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1cc]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4013c6
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x18]
call edi
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10