Function at 0x423340
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
push 0
push 0x10000080
push 2
push 0
push 3
push 0xc0000000
mov ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebx + 0xfc], eax
jne 0x42337e
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret 0xc
lea ebp, [ebx + 0x48]
mov ecx, 0x1b
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov edi, 0x464c60
or ecx, 0xffffffff
mov dword [ebp], eax
lea edx, [ebx + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [ebp]
lea esi, [ebx + 0xb4]
inc cl
xor eax, eax
mov byte [ebx + 0x100], cl
mov ecx, 0xd
mov edi, esi
mov dword [ebx + 0x4c], edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x24]
mov dword [esi], 0x9a
mov dword [ebx + 0xdc], edx
mov dword [ebx + 0xe0], edx
mov dword [ebx + 0xbc], 0x3f4
mov dword [ebx + 0xc4], 0x2aa
mov dword [ebx + 0xcc], 0x44
mov dword [ebx + 0xd4], 0x250
mov dword [ebx + 0xe4], edx
lea eax, [ecx - 0x9a]
cmp ecx, edx
je 0x423438
mov esi, dword [eax + 0x9a]
add eax, 0x9a
cmp esi, edx
je 0x423438
inc dword [ebx + 0xdc]
jmp 0x42341d
mov eax, dword [esp + 0x20]
lea esi, [eax - 0x38c]
cmp dword [esp + 0x20], edx
je 0x4234ad
add esi, 0x3f4
or ecx, 0xffffffff
xor eax, eax
lea edi, [esi - 0x64]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4234ad
mov edx, dword [ebx + 0xe0]
mov ecx, dword [esp + 0x1c]
push esi
inc edx
push ecx
mov ecx, ebx
mov dword [ebx + 0xe0], edx
call fcn.00423980
or edx, 0xffffffff
inc edx
mov eax, edx
mov dword [esp + 0x14], edx
shl eax, 4
add eax, edx
lea eax, [eax + eax*4]
lea ecx, [edx + eax*4]
mov eax, dword [esi + 0xec]
lea edi, [eax + ecx*2]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4234a9
inc dword [ebx + 0xe4]
jmp 0x42347a
xor edx, edx
jmp 0x423442
mov ecx, dword [ebx + 0xb4]
mov dword [esp + 0x10], edx
imul ecx, dword [ebx + 0xdc]
push edx
lea edx, [esp + 0x14]
lea eax, [ecx + 0xa0]
mov ecx, dword [ebx + 0xe0]
mov esi, ecx
mov dword [ebx + 0xc0], eax
imul esi, dword [ebx + 0xbc]
add eax, esi
mov esi, dword [ebx + 0xc4]
imul esi, dword [ebx + 0xe4]
mov dword [ebx + 0xc8], eax
add eax, esi
push edx
push 0x6c
lea eax, [eax + ecx*4]
push ebp
mov dword [ebx + 0xd0], eax
add eax, 0x44
mov dword [ebx + 0xd8], eax
mov eax, dword [ebx + 0xfc]
push eax
mov dword [ebx + 0xb8], 0xa0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], 0x6c
je 0x423536
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret 0xc
mov edx, dword [ebx + 0xfc]
xor edi, edi
lea ecx, [esp + 0x10]
push edi
push ecx
lea eax, [ebx + 0xb4]
push 0x34
push eax
push edx
mov ecx, ebx
mov dword [esp + 0x24], edi
call fcn.00423a90
cmp dword [esp + 0x10], 0x34
je 0x42356d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret 0xc
mov eax, dword [ebx + 0xdc]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0xfc]
push edi
lea esi, [eax + eax*4]
mov dword [esp + 0x14], edi
shl esi, 3
sub esi, eax
shl esi, 1
sub esi, eax
lea eax, [esp + 0x14]
shl esi, 1
push eax
push esi
push ecx
push edx
mov ecx, ebx
call fcn.00423a90
cmp dword [esp + 0x10], esi
je 0x4235b2
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret 0xc
mov eax, dword [ebx + 0xe0]
mov ebp, dword [esp + 0x20]
mov ecx, eax
lea edx, [esp + 0x10]
shl ecx, 6
sub ecx, eax
push edi
push edx
mov dword [esp + 0x18], edi
lea esi, [eax + ecx*4]
mov eax, dword [ebx + 0xfc]
shl esi, 2
push esi
push ebp
push eax
mov ecx, ebx
call fcn.00423a90
cmp dword [esp + 0x10], esi
je 0x4235f6
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret 0xc
add ebp, 0xfffffd60
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4236b6
add ebp, 0x3f4
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp - 0x150]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4236b6
or edx, 0xffffffff
inc edx
mov eax, edx
mov dword [esp + 0x14], edx
shl eax, 4
add eax, edx
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [ebp]
lea edi, [ecx + eax*2]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x423627
mov ecx, dword [ebx + 0xfc]
xor edi, edi
lea edx, [esp + 0x10]
push edi
push edx
lea eax, [esp + 0x1c]
push 4
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x24], edi
call fcn.00423a90
cmp dword [esp + 0x10], 4
jne 0x423371
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], edi
mov eax, ecx
push edi
shl eax, 4
add eax, ecx
lea edx, [eax + eax*4]
lea eax, [esp + 0x14]
push eax
lea esi, [ecx + edx*4]
mov ecx, dword [ebp]
mov edx, dword [ebx + 0xfc]
shl esi, 1
push esi
push ecx
push edx
mov ecx, ebx
call fcn.00423a90
cmp dword [esp + 0x10], esi
jne 0x423371
jmp 0x4235fc
mov eax, dword [ebx + 0xd8]
mov edi, dword [esp + 0x1c]
mov dword [ebx + 0x44], eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [ebx + 0x26]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov edi, 0x464c60
or ecx, 0xffffffff
mov dword [edx], 0
mov dword [esp + 0x14], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x44
push edx
mov edx, dword [ebx + 0xfc]
push edx
mov ecx, ebx
call fcn.00423a90
mov eax, dword [esp + 0x10]
pop edi
sub eax, 0x44
pop esi
neg eax
pop ebp
pop ebx
sbb eax, eax
add esp, 8
ret 0xc