Function at 0x4256a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc8
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov edi, edx
mov esi, ecx
mov dword [esp + 0x14], eax
lea edx, [esp + 0x10]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], eax
call fcn.004259c0
test eax, eax
jne 0x4256d6
pop edi
pop esi
pop ebp
add esp, 0xc8
ret
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x425702
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc8
ret
mov dl, 0x10
lea ecx, [esp + 0x30]
call fcn.00425920
mov dl, 0x10
lea ecx, [esp + 0xac]
call fcn.00425960
xor eax, eax
mov ecx, 0x1b
lea edi, [esp + 0x40]
push eax
lea edx, [esp + 0x44]
push 1
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
push edx
push eax
push esi
mov dword [esp + 0x54], 0x6c
call dword [ecx + 0x64]
test eax, eax
je 0x42574f
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc8
ret
mov eax, dword [esp + 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push 0
lea ecx, [eax + eax*2]
lea esi, [ecx + ecx*4]
mov ecx, dword [esp + 0x6c]
shl esi, 5
sub esi, eax
lea eax, [esp + 0x2c]
add esi, ecx
push eax
lea ecx, [esp + 0x3c]
push 0xe
push ecx
push ebp
mov dword [esp + 0x24], esi
call edi
lea edx, [esp + 0x28]
lea eax, [esp + 0xb0]
push 0
push edx
push 0x28
push eax
push ebp
call edi
push 0xe1000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x425860
mov dword [esp + 0x20], 0x1e0
jmp 0x4257bb
mov esi, dword [esp + 0x10]
mov edi, esi
mov ebx, 0x280
mov si, word [edi]
add eax, 3
movzx cx, byte [esp + 0x1e]
mov edx, esi
add edi, 2
shr dx, cl
and dl, byte [esp + 0x15]
mov byte [eax - 1], dl
mov cl, byte [esp + 0x1a]
shl dl, cl
mov byte [eax - 1], dl
mov edx, esi
movzx cx, byte [esp + 0x1d]
shr dx, cl
and dl, byte [esp + 0x15]
mov byte [eax - 2], dl
mov cl, byte [esp + 0x19]
shl dl, cl
mov byte [eax - 2], dl
mov edx, esi
movzx cx, byte [esp + 0x1c]
shr dx, cl
and dl, byte [esp + 0x14]
mov byte [eax - 3], dl
mov cl, byte [esp + 0x18]
shl dl, cl
dec ebx
mov byte [eax - 3], dl
jne 0x4257c2
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
sub edx, ecx
mov ecx, dword [esp + 0x20]
dec ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ecx
jne 0x4257b7
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x28]
push 0
push edx
push 0xe1000
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4258f5
mov dword [esp + 0x20], 0x1e0
jmp 0x42586e
mov esi, dword [esp + 0x10]
mov edi, 0x280
mov ax, word [esi]
mov edx, dword [esp + 0x14]
movzx cx, byte [esp + 0x1e]
mov ebx, eax
push 0
shr bx, cl
mov cl, byte [esp + 0x1e]
and bl, dh
shl bl, cl
movzx cx, byte [esp + 0x21]
mov byte [esp + 0x2a], bl
mov ebx, eax
shr bx, cl
mov cl, byte [esp + 0x1d]
and bl, dh
shl bl, cl
movzx cx, byte [esp + 0x20]
shr ax, cl
mov cl, byte [esp + 0x1c]
mov byte [esp + 0x29], bl
and al, dl
shl al, cl
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
lea eax, [esp + 0x2c]
push eax
push 3
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, 2
dec edi
jne 0x425873
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
sub ecx, edx
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
jne 0x42586a
mov eax, dword [esp + 0x30]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc8
ret