Function at 0x10008f80
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0x54
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x100091e8
call dword [0x100102e4]
mov esi, eax
test esi, esi
jg 0x10008fac
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x54
ret 0x14
mov eax, dword [esp + 0x74]
sar eax, 0x10
sub esi, eax
test esi, esi
mov dword [esp + 0x78], esi
jg 0x10008fca
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x54
ret 0x14
mov ecx, dword [esp + 0x68]
push ecx
lea edx, [esp + 0x18]
push 0x100093a0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x8000000
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x74], eax
mov eax, 0x55555556
imul esi
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push edx
call dword [0x10010310]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
mov ebp, esi
imul ebp, edi
push 4
push 0x1000
push 0x4200
add ebp, 0x1ff
push 0
mov dword [esp + 0x78], eax
and ebp, 0xfffffe00
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov eax, edi
sub eax, esi
test eax, eax
lea edx, [ebx + 0x200]
push edx
jle 0x1000906b
mov ecx, dword [esp + 0x6c]
cdq
sub eax, edx
mov edx, dword [ecx + 0x10]
sar eax, 1
add eax, edx
push eax
push esi
push esi
jmp 0x10009075
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x10]
push ecx
push esi
push edi
push 0x80
push 0x80
call fcn.1000edb0
mov eax, dword [esp + 0x78]
or ecx, 0xffffffff
mov edx, ebp
imul edx, eax
mov dword [0x10025c38], edx
mov dword [ebx], edi
mov dword [ebx + 0xc], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], 8
mov dword [ebx + 0x10], 0x73412317
xor eax, eax
mov edi, 0x10025c14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [ebx + 0x14]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x10029c3c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [ebx + 0x34]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x10025c00
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [ebx + 0x54]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x78]
lea ecx, [esp + 0x14]
push ecx
push 0x4200
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x78]
xor esi, esi
test eax, eax
jle 0x100091c7
push esi
call dword [0x100102dc]
mov eax, dword [eax + 0x10]
push 0
lea edx, [esp + 0x14]
push edx
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [0x1001030c]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x10009179
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
push ecx
push esi
push edx
call eax
cmp eax, 0xffffffff
je 0x100091a3
mov eax, dword [esp + 0x78]
inc esi
cmp esi, eax
jl 0x1000913e
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret 0x14
push 0
push 0
push 0
push edi
mov dword [ebx + 0xc], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
push 0x4200
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret 0x14
call dword [0x100102e4]
test eax, eax
jg 0x100091ff
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x54
ret 0x14
call dword [0x100102e0]
mov ecx, dword [esp + 0x68]
push ecx
lea edx, [esp + 0x18]
push 0x100093a0
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x8000000
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x7c], eax
call dword [0x100102dc]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
mov ebp, esi
imul ebp, edi
push 4
push 0x1000
push 0x4200
add ebp, 0x1ff
push 0
mov dword [esp + 0x78], eax
and ebp, 0xfffffe00
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov eax, edi
sub eax, esi
test eax, eax
jle 0x1000929a
cdq
sub eax, edx
mov edx, dword [esp + 0x68]
lea ecx, [ebx + 0x200]
push ecx
mov ecx, dword [edx + 0x10]
sar eax, 1
add eax, ecx
push eax
push esi
push esi
jmp 0x100092ab
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0x10]
lea eax, [ebx + 0x200]
push eax
push edx
push esi
push edi
push 0x80
push 0x80
call fcn.1000edb0
or ecx, 0xffffffff
mov dword [0x10025c38], ebp
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov dword [ebx + 8], 8
mov dword [ebx + 0xc], 1
mov dword [ebx + 0x10], 0x73412317
xor eax, eax
mov edi, 0x10025c14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [ebx + 0x14]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x10029c3c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [ebx + 0x34]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x10025c00
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [ebx + 0x54]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x78]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x78]
push ecx
push 0x4200
push ebx
push esi
call edi
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x10]
push 0
lea edx, [esp + 0x78]
push edx
push ebp
push ecx
push esi
call edi
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x14