Function at 0x401280
Capabilities:
Delete file
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x424234]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x41c3f0
push 0x424fa8
mov byte [ebp - 0x10d], 0xff
call fcn.00405425
mov esi, eax
add esp, 8
test esi, esi
je 0x401774
push ebx
push edi
push 2
push 0
push esi
call fcn.00405a19
push esi
call fcn.0040602c
push 0
mov ebx, eax
push 0
push esi
mov dword [ebp - 0x108], ebx
call fcn.00405a19
add esp, 0x1c
push 0x400000
cmp ebx, 0x400000
ja 0x40178d
push 0xff
push 0x4251c8
call fcn.00403560
push esi
push ebx
push 1
push 0x4251c8
call fcn.00405622
push esi
call fcn.00405195
call fcn.0040cbec
lea eax, [ebp - 0x11c]
push eax
call fcn.0040c5e6
movaps xmm0, xmmword [0x41c6c0]
lea eax, [ebp - 0xcc]
push 0xc8
push 0xff
push eax
movups xmmword [ebp - 0xe4], xmm0
mov dword [ebp - 0xd4], 0xffffffff
call fcn.00403560
mov eax, dword [0x424e9c]
mov dword [ebp - 0xf8], eax
mov eax, dword [0x424d94]
push ebx
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x11c]
push 0x4251c8
push 1
mov dword [ebp - 0x104], 0x6e696278
mov dword [ebp - 0x100], 0x6e696278
mov dword [ebp - 0xfc], 0x1000003
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xec], eax
call fcn.00401000
mov cl, byte [0x8251cc]
add esp, 0x3c
mov dword [ebp - 0xe8], eax
test cl, cl
je 0x4014ef
mov al, byte [0x8251d4]
test al, al
je 0x40148d
cmp byte [0x8251dc], 0
je 0x40148d
cmp byte [0x8251e4], 0
je 0x40148d
cmp byte [0x8251ec], 0
je 0x40148d
cmp byte [0x8251f4], 0
je 0x40148d
push 0x8251cc
call fcn.00404faf
push 0x8251d4
mov dword [ebp - 0x114], eax
call fcn.00404faf
push 0x8251dc
mov dword [ebp - 0x10c], eax
call fcn.00404faf
push 0x8251e4
mov ebx, eax
call fcn.00404faf
push 0x8251ec
mov edi, eax
call fcn.00404faf
push 0x8251f4
mov esi, eax
call fcn.00404faf
mov ecx, dword [ebp - 0x114]
add esp, 0x18
mov edx, dword [ebp - 0x10c]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [ebx + ecx*2]
mov ebx, dword [ebp - 0x108]
lea ecx, [ecx + ecx*4]
lea ecx, [edi + ecx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [esi + ecx*2]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*2]
mov cl, byte [0x8251cc]
mov dword [0x8251c8], eax
mov al, byte [0x8251d4]
test cl, cl
je 0x4014ef
test al, al
je 0x4014ef
cmp byte [0x8251dc], 0
je 0x4014ef
cmp byte [0x8251e4], 0
jne 0x4014ef
cmp byte [0x8251ec], 0
jne 0x4014ef
cmp byte [0x8251f4], 0
jne 0x4014ef
push 0x8251cc
call fcn.00404faf
push 0x8251d4
mov edi, eax
call fcn.00404faf
push 0x8251dc
mov esi, eax
call fcn.00404faf
lea ecx, [edi + edi*4]
add esp, 0xc
lea ecx, [esi + ecx*2]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*2]
mov dword [0x8251c8], eax
mov ecx, 0x4251b4
mov dword [ebp - 0xd4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xe4], xmm0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401510
sub ecx, edx
mov eax, 0x13
cmp ecx, eax
cmovb eax, ecx
push eax
lea eax, [ebp - 0xe4]
push 0x4251b4
push eax
call fcn.00402fe0
mov eax, dword [0x8251c8]
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0x104]
push 0xfc
push eax
push 1
call fcn.00401000
push 0x41c438
push 0x4250b0
mov dword [ebp - 8], eax
call fcn.00405425
mov edi, eax
add esp, 0x20
test edi, edi
je 0x4017a7
mov ecx, dword [0x424d94]
test ecx, ecx
jne 0x40163e
mov ebx, dword [0x424fa4]
test ebx, ebx
je 0x40159d
mov eax, dword [ebp - 0x108]
xor edx, edx
add eax, 0x100
div ebx
sub ebx, edx
jmp 0x4015ba
mov ebx, dword [0x4250ac]
test ebx, ebx
je 0x4015b8
shl ebx, 0xa
sub ebx, dword [ebp - 0x108]
sub ebx, 0x100
jmp 0x4015ba
xor ebx, ebx
push edi
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
mov dword [ebp - 0x10c], ebx
push 1
push eax
call fcn.00406256
push edi
push dword [ebp - 0x108]
mov esi, eax
push 1
push 0x4251c8
call fcn.00406256
add esp, 0x20
add esi, eax
test ebx, ebx
je 0x401621
mov dword [ebp - 0x114], ebx
nop dword [eax + eax]
push edi
push 1
lea eax, [ebp - 0x10d]
push 1
push eax
call fcn.00406256
add esp, 0x10
add esi, eax
sub ebx, 1
jne 0x401600
mov ebx, dword [ebp - 0x10c]
push edi
call fcn.00405195
mov eax, dword [ebp - 0x108]
add esp, 4
add eax, 0x100
add eax, ebx
cmp esi, eax
jmp 0x40174e
xor edx, edx
mov eax, ebx
div ecx
push edi
mov dword [ebp - 0x10c], eax
mov eax, pe_nt_image_headers32
push eax
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x104]
push 1
push eax
mov dword [ebp - 0x114], edx
call fcn.00406256
mov ecx, dword [ebp - 0x10c]
add esp, 0x10
mov esi, eax
mov ebx, 0x4251c8
test ecx, ecx
je 0x4016ee
mov eax, dword [0x424d94]
lea edx, [eax + 4]
imul edx, ecx
add edx, 0x100
mov dword [ebp - 0x108], edx
test ecx, ecx
je 0x4016f3
nop word [eax + eax]
push eax
push ebx
push 1
call fcn.00401000
push edi
push dword [0x424d94]
mov dword [ebp - 0x118], eax
push 1
push ebx
call fcn.00406256
push edi
push 4
add esi, eax
lea eax, [ebp - 0x118]
push 1
push eax
call fcn.00406256
add esi, eax
add esp, 0x2c
mov eax, dword [0x424d94]
add ebx, eax
sub dword [ebp - 0x10c], 1
jne 0x4016a0
mov edx, dword [ebp - 0x108]
jmp 0x4016f3
mov edx, pe_nt_image_headers32
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x40173f
push eax
add edx, 4
add edx, eax
push ebx
push 1
mov dword [ebp - 0x108], edx
call fcn.00401000
mov edx, dword [ebp - 0x114]
push edi
push edx
push 1
push ebx
mov dword [ebp - 0x118], eax
call fcn.00406256
push edi
push 4
add esi, eax
lea eax, [ebp - 0x118]
push 1
push eax
call fcn.00406256
add esp, 0x2c
add esi, eax
push edi
call fcn.00405195
add esp, 4
cmp esi, dword [ebp - 0x108]
jne 0x4017c0
push esi
push 0x4250b0
push str.Output_file___s__was_successful_created___d_bytes_n
call fcn.00401fc0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.00402212
mov esp, ebp
pop ebp
ret
push 0x424fa8
push str.Error:_Input_file___s__not_found_n
call fcn.00401fc0
add esp, 8
push 1
call fcn.004042eb
push str.Error:_Input_file_size____d_n
call fcn.00401fc0
push esi
call fcn.00405195
add esp, 0xc
push 1
call fcn.004042eb
push 0x4250b0
push str.Error:_Could_not_create___s__n
call fcn.00401fc0
add esp, 8
push 1
call fcn.004042eb
push str.Error:_Write_error_n
call fcn.00401fc0
add esp, 4
push 0x4250b0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
call fcn.004042eb
int3