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

Disassembly:
sub esp, 0x26c
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
mov ebx, dword [esp + 0x278]
push ebp
mov ebp, dword [esp + 0x278]
push esi
xor eax, eax
push edi
push 0x44
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x3c]
push eax
call fcn.004b6dc0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
add esp, 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x20], 1
call edi
push eax
push 0x50ef1c
call fcn.00404690
add esp, 4
push eax
lea ecx, [esp + 0x180]
push ecx
call fcn.004b79a8
add esp, 0xc
push 0
push 0x80
push 2
lea edx, [esp + 0x24]
push edx
push 0
push 0x40000000
lea eax, [esp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x411fa9
call edi
push eax
push 0x50ef08
call fcn.00404690
add esp, 4
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.004b79a8
add esp, 0xc
push 0
push 0x80
push 2
lea edx, [esp + 0x24]
push edx
push 0
push 0x40000000
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411fb0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x412111
mov eax, ebp
mov dword [esp + 0x10], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411fc0
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea ecx, [esp + 0x98]
push ecx
push 0
mov dword [esp + 0x5c], 0x44
mov dword [esp + 0x88], 0x100
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x9c], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x412041
push esi
call edi
xor al, al
jmp 0x412111
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x24]
push eax
call edi
mov ecx, dword [esp + 0x28]
push ecx
call edi
push esi
call edi
push 0
push 0x80
push 3
lea edx, [esp + 0x24]
push edx
push 0
push closesocket
lea eax, [esp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
je 0x412037
inc eax
push eax
call fcn.004b97b1
mov ecx, dword [esp + 0x14]
push ecx
push 0
push eax
mov dword [ebx], eax
call fcn.004b6dc0
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx]
add esp, 0x10
push 0
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebx]
mov eax, dword [esp + 0x14]
mov byte [eax + edx], 0
mov ecx, dword [ebx]
push ecx
push 0x50e3bc
push 0x527e20
call fcn.00401350
add esp, 0xc
push ebp
call edi
push ebx
call fcn.004b722a
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 4
lea edx, [esp + 0x78]
push edx
call esi
lea eax, [esp + 0x178]
push eax
call esi
mov al, 1
mov ecx, dword [esp + 0x278]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b6da3
add esp, 0x26c
ret