Function at 0x6aafc0
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xcc
mov dword [esp + 8], edx
mov esi, dword [edx + 8]
cmp esi, 0xa
jae 0x6aafe1
add esp, 0xcc
jmp 0x6ab8e5
mov dword [esp + 0x40], ecx
push esi
push 1
call sub.msvcrt.dll_calloc
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x6ab8ea
mov eax, dword [esp + 0xe0]
dec eax
mov dword [esp + 0x44], eax
je 0x6ab70f
xor edi, edi
mov dword [esp + 0x2c], 1
nop dword [eax + eax]
lea ecx, [edi + 1]
mov eax, esi
sub eax, ecx
cmp eax, 0x3ff
mov dword [esp], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], ecx
ja 0x6ab0d0
movsd xmm1, qword [str.9Y__F]
mov ebp, ecx
cmp esi, ecx
mov eax, esi
jbe 0x6ab49a
mov ebp, dword [esp + 0x30]
mov ebx, ebp
movsd xmm0, qword [str.9Y__F]
nop
movsd qword [esp + 0xc], xmm0
mov dword [esp + 4], ebp
mov esi, dword [esp + 8]
mov ecx, esi
mov ebp, edi
mov edx, edi
push ebx
mov edi, eax
call fcn.006a0660
add esp, 4
movsd qword [esp + 0x18], xmm0
mov ecx, esi
mov edx, ebx
push edi
call fcn.006a0660
mov eax, edi
mov edi, ebp
mov ebp, dword [esp + 8]
add esp, 4
movapd xmm1, xmm0
addsd xmm1, qword [esp + 0x18]
movsd xmm0, qword [esp + 0xc]
ucomisd xmm0, xmm1
cmova ebp, ebx
minsd xmm1, xmm0
inc ebx
movapd xmm0, xmm1
cmp eax, ebx
jne 0x6ab060
jmp 0x6ab49a
mov dword [esp + 4], ecx
movsd xmm1, qword [str.9Y__F]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x34], esi
jmp 0x6ab115
mov ecx, dword [esp + eax*4 + 0x64]
mov dword [esp + 0x34], ecx
mov eax, dword [esp + eax*4 + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0xc]
movapd xmm1, xmm0
cmp eax, 9
jbe 0x6ab490
movsd qword [esp + 0x24], xmm1
mov ecx, 0xcccccccd
mul ecx
mov esi, edx
mov dword [esp + 0x48], edx
shr esi, 3
mov ecx, dword [esp + 0xc]
lea ebx, [ecx + esi]
mov dword [esp + 0x60], ebx
mov ecx, dword [esp + 8]
mov ebp, ecx
mov edi, dword [esp + 0x14]
mov edx, edi
push ebx
call fcn.006a0660
add esp, 4
movsd qword [esp + 0x58], xmm0
mov ecx, ebp
mov edx, ebx
push dword [esp]
call fcn.006a0660
add esp, 4
addsd xmm0, qword [esp + 0x58]
movsd qword [esp + 0x58], xmm0
mov eax, dword [esp + 0xc]
lea ebx, [eax + esi*2]
mov dword [esp + 0x64], ebx
mov ecx, ebp
mov edx, edi
push ebx
call fcn.006a0660
add esp, 4
movsd qword [esp + 0x38], xmm0
mov ecx, ebp
mov edx, ebx
push dword [esp]
call fcn.006a0660
add esp, 4
addsd xmm0, qword [esp + 0x38]
movsd qword [esp + 0xbc], xmm0
lea eax, [esi + esi*2]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0xc]
lea ebx, [ecx + eax]
mov dword [esp + 0x68], ebx
mov ecx, dword [esp + 8]
mov edx, edi
push ebx
call fcn.006a0660
add esp, 4
movsd qword [esp + 0x38], xmm0
mov ecx, dword [esp + 8]
mov edx, ebx
push dword [esp]
call fcn.006a0660
add esp, 4
addsd xmm0, qword [esp + 0x38]
movsd qword [esp + 0xa4], xmm0
mov eax, dword [esp + 0xc]
lea ebx, [eax + esi*4]
mov dword [esp + 0x18], esi
mov dword [esp + 0x6c], ebx
mov ecx, dword [esp + 8]
mov edx, edi
push ebx
call fcn.006a0660
add esp, 4
movsd qword [esp + 0x38], xmm0
mov ecx, dword [esp + 8]
mov edx, ebx
push dword [esp]
call fcn.006a0660
add esp, 4
movsd qword [esp + 0xac], xmm0
lea ebx, [esi + esi*4]
add ebx, dword [esp + 0xc]
mov dword [esp + 0x70], ebx
mov ecx, dword [esp + 8]
mov edx, edi
push ebx
call fcn.006a0660
add esp, 4
movsd qword [esp + 0xc4], xmm0
mov ecx, dword [esp + 8]
mov edx, ebx
push dword [esp]
call fcn.006a0660
add esp, 4
movsd qword [esp + 0x9c], xmm0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0xc]
lea ebx, [ecx + eax*2]
mov ebp, dword [esp + 8]
mov dword [esp + 0x74], ebx
mov ecx, ebp
mov edx, edi
push ebx
call fcn.006a0660
add esp, 4
movsd qword [esp + 0x50], xmm0
mov ecx, ebp
mov edx, ebx
push dword [esp]
call fcn.006a0660
add esp, 4
movsd qword [esp + 0x94], xmm0
mov esi, dword [esp + 0x48]
and esi, 0xfffffff8
mov ebx, esi
sub ebx, dword [esp + 0x18]
add ebx, dword [esp + 0xc]
mov dword [esp + 0x78], ebx
mov ecx, ebp
mov edx, edi
push ebx
call fcn.006a0660
add esp, 4
movsd qword [esp + 0xb4], xmm0
mov ecx, ebp
mov edx, ebx
mov edi, dword [esp + 0xc]
push dword [esp]
call fcn.006a0660
add esp, 4
movsd qword [esp + 0x8c], xmm0
add esi, edi
mov dword [esp + 0x7c], esi
mov ecx, ebp
mov ebx, dword [esp + 0x14]
mov edx, ebx
push esi
call fcn.006a0660
add esp, 4
movsd qword [esp + 0x48], xmm0
mov ecx, ebp
mov edx, esi
push dword [esp]
call fcn.006a0660
add esp, 4
movsd qword [esp + 0x84], xmm0
mov eax, dword [esp + 0x18]
lea esi, [eax + eax*8]
add esi, edi
mov dword [esp + 0x80], esi
mov ecx, ebp
mov edx, ebx
push esi
call fcn.006a0660
add esp, 4
movsd qword [esp + 0x18], xmm0
mov ecx, ebp
mov edx, esi
mov esi, dword [esp]
push esi
call fcn.006a0660
movsd xmm2, qword [esp + 0xa8]
add esp, 4
xor ecx, ecx
movsd xmm1, qword [esp + 0x58]
movsd xmm3, qword [esp + 0xbc]
ucomisd xmm1, xmm3
seta dl
minsd xmm3, xmm1
movapd xmm1, xmm3
ucomisd xmm3, xmm2
mov eax, 2
ja 0x6ab38f
mov cl, dl
mov eax, ecx
movsd xmm3, qword [esp + 0x38]
addsd xmm3, qword [esp + 0xac]
minsd xmm2, xmm1
ucomisd xmm2, xmm3
mov ecx, 3
ja 0x6ab3af
mov ecx, eax
movsd xmm4, qword [esp + 0xc4]
addsd xmm4, qword [esp + 0x9c]
minsd xmm3, xmm2
ucomisd xmm3, xmm4
mov eax, 4
movsd xmm1, qword [esp + 0x24]
movsd xmm5, qword [esp + 0xb4]
ja 0x6ab3e1
mov eax, ecx
movsd xmm2, qword [esp + 0x50]
addsd xmm2, qword [esp + 0x94]
minsd xmm4, xmm3
ucomisd xmm4, xmm2
mov ecx, 5
ja 0x6ab401
mov ecx, eax
addsd xmm5, qword [esp + 0x8c]
minsd xmm2, xmm4
ucomisd xmm2, xmm5
mov eax, 6
movsd xmm3, qword [esp + 0x48]
ja 0x6ab421
mov eax, ecx
addsd xmm3, qword [esp + 0x84]
minsd xmm5, xmm2
ucomisd xmm5, xmm3
mov ecx, 7
ja 0x6ab43b
mov ecx, eax
movsd xmm2, qword [esp + 0x18]
addsd xmm2, xmm0
minsd xmm3, xmm5
ucomisd xmm3, xmm2
mov eax, 8
ja 0x6ab456
mov eax, ecx
movapd xmm0, xmm2
minsd xmm0, xmm3
ucomisd xmm0, xmm1
ja 0x6ab490
test eax, eax
je 0x6ab0f0
ucomisd xmm3, xmm2
mov ecx, dword [esp + eax*4 + 0x5c]
mov dword [esp + 0xc], ecx
jbe 0x6ab0f0
jmp 0x6ab0f8
mov eax, esi
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 4]
movsd qword [esp + 0x24], xmm1
mov ecx, dword [esp + 8]
mov esi, edi
mov edx, edi
push eax
mov edi, eax
call fcn.006a0660
add esp, 4
movsd xmm1, qword [esp + 0x24]
ucomisd xmm1, xmm0
jbe 0x6ab4e0
mov eax, dword [esp + 0x20]
mov byte [eax + esi], 1
mov eax, dword [esp + 0xe4]
mov eax, dword [eax]
jmp 0x6ab624
cmp ebp, dword [esp + 0x30]
je 0x6ab4bf
mov eax, edi
cmp ebp, edi
je 0x6ab4bf
mov eax, dword [esp + 0xe8]
mov esi, dword [eax]
lea eax, [esi - 1]
test esi, eax
jne 0x6ab522
mov ebx, ebp
test esi, esi
mov edi, dword [esp + 0xe4]
je 0x6ab52d
shl esi, 3
push esi
push dword [edi]
call sub.msvcrt.dll_realloc
add esp, 8
mov ecx, dword [esp + 0xe8]
mov esi, dword [ecx]
jmp 0x6ab539
mov eax, dword [esp + 0xe4]
mov eax, dword [eax]
jmp 0x6ab53d
xor esi, esi
push 4
call sub.msvcrt.dll_malloc
add esp, 4
mov dword [edi], eax
mov ebp, ebx
mov dword [esp + 4], ebp
mov dword [eax + esi*4], ebp
mov edx, dword [esp + 0xe8]
mov ebx, dword [edx]
lea ecx, [ebx + 1]
mov dword [edx], ecx
cmp ecx, 1
mov edx, ebx
adc edx, 1
mov esi, 1
sub esi, edx
mov edi, 0xffffffff
mov dword [esp + 0xc], ebx
mov bh, bl
nop dword [eax]
lea edx, [esi + edi]
cmp edx, 0xffffffff
je 0x6ab620
mov bl, bh
lea edx, [edi + 1]
add bh, 3
mov ebp, dword [esp + 4]
cmp dword [eax + edi*4 + 4], ebp
mov edi, edx
jbe 0x6ab570
mov esi, dword [esp + 0xc]
sub esi, edx
jbe 0x6ab619
mov dword [esp + 0x18], ecx
mov ecx, esi
test cl, 3
je 0x6ab5da
mov esi, dword [esp + 0xc]
lea ebp, [eax + esi*4]
movzx esi, bl
and esi, 3
xor edi, edi
mov ecx, dword [esp + 0x18]
nop word [eax + eax]
mov ebx, dword [ebp - 4]
mov dword [ebp], ebx
add ebp, 0xfffffffc
inc edi
cmp esi, edi
jne 0x6ab5c0
sub ecx, edi
mov ebx, dword [esp + 0xc]
mov esi, ebx
sub esi, edi
jmp 0x6ab5e4
mov ebx, dword [esp + 0xc]
mov esi, ebx
mov ecx, dword [esp + 0x18]
mov edi, edx
not edi
add ebx, edi
cmp ebx, 3
jb 0x6ab619
nop
mov ecx, dword [eax + ecx*4 - 8]
mov dword [eax + esi*4], ecx
mov ecx, dword [eax + esi*4 - 8]
mov dword [eax + esi*4 - 4], ecx
lea ecx, [esi - 3]
mov edi, dword [eax + esi*4 - 0x10]
mov ebx, dword [eax + esi*4 - 0xc]
mov dword [eax + esi*4 - 8], ebx
mov dword [eax + esi*4 - 0xc], edi
add esi, 0xfffffffc
cmp esi, edx
ja 0x6ab5f0
mov ecx, dword [esp + 4]
mov dword [eax + edx*4], ecx
inc dword [esp + 0x2c]
mov ecx, dword [esp + 8]
mov esi, dword [ecx + 8]
mov ecx, dword [esp + 0xe8]
mov edx, dword [ecx]
mov dword [esp + 0x24], esi
lea ebx, [esi - 1]
lea ecx, [edx + 1]
cmp ecx, 1
mov edi, edx
adc edi, 1
mov dword [esp + 0xc], ebx
test edx, edx
je 0x6ab650
mov ebx, dword [eax]
xor ebp, ebp
mov esi, dword [esp + 0x20]
cmp byte [esi], 0
jne 0x6ab680
mov dword [esp + 4], 0
test ebx, ebx
mov esi, dword [esp + 0x14]
je 0x6ab68c
mov ebp, 1
xor esi, esi
mov dword [esp], ebx
mov dword [esp + 4], ebx
jmp 0x6ab68c
mov dword [esp + 4], 0
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], esi
cmp ecx, 2
jae 0x6ab6c0
cmp dword [esp + 0x18], 0
je 0x6ab713
mov eax, dword [esp]
mov esi, eax
mov edi, dword [esp + 0x14]
sub eax, edi
cmp eax, 0xa
jb 0x6ab713
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x44], eax
jae 0x6ab020
jmp 0x6ab713
mov ecx, 1
jmp 0x6ab6e3
mov ebp, dword [eax + ecx*4 - 4]
mov esi, dword [esp + 0x20]
cmp byte [esi + ebp], 0
je 0x6ab6f0
inc ecx
cmp edi, ecx
je 0x6ab699
mov ebx, dword [esp + 0xc]
cmp edx, ecx
je 0x6ab6d0
mov ebx, dword [eax + ecx*4]
jmp 0x6ab6d0
mov esi, ebx
sub esi, ebp
cmp esi, dword [esp + 4]
jbe 0x6ab6de
mov dword [esp + 0x18], 1
mov dword [esp], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 4], esi
jmp 0x6ab6de
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x40]
cmp dword [eax], 0
je 0x6ab8d6
mov eax, dword [esp + 0xe8]
mov edx, dword [eax]
xor esi, esi
test edx, edx
mov eax, dword [esp + 0xe4]
je 0x6ab7f3
mov dword [esp], 0
cmp dword [esp + 0x24], 0
je 0x6ab7fe
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov dword [esp], 0
xor edi, edi
xor ebp, ebp
xor esi, esi
mov dword [esp + 4], edx
jmp 0x6ab790
mov eax, dword [esp]
mov dword [esp], eax
mov dword [eax + esi*4], edi
inc esi
cmp esi, edx
je 0x6ab7fc
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
add edi, ebx
inc ebp
mov dword [esp + 0x24], eax
cmp ebp, eax
jae 0x6ab7fe
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 4]
cmp word [eax + ebp*2], 0
je 0x6ab7b0
mov eax, dword [ecx]
movzx ebx, word [eax + ebp*2]
jmp 0x6ab7b5
mov ebx, 1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
cmp ebp, dword [ecx + esi*4]
jne 0x6ab785
lea eax, [esi - 1]
test esi, eax
jne 0x6ab770
test esi, esi
je 0x6ab7e3
lea eax, [esi*8]
push eax
push dword [esp + 4]
call sub.msvcrt.dll_realloc
add esp, 8
jmp 0x6ab7ed
push 4
call sub.msvcrt.dll_malloc
add esp, 4
mov edx, dword [esp + 4]
jmp 0x6ab773
mov dword [esp], 0
jmp 0x6ab7fe
mov esi, edx
push 2
call dword [0x71401c]
add esp, 4
push eax
push 1
push 0x14
push str.block_split_points:
call sub.msvcrt.dll_fwrite
add esp, 0x10
test esi, esi
je 0x6ab890
xor ebx, ebx
mov edi, dword [fcn.004a11a0]
mov ebp, dword [esp]
nop word [eax + eax]
push 2
call edi
add esp, 4
push dword [ebp + ebx*4]
push 0x70866d
push eax
call fcn.006ab900
add esp, 0xc
inc ebx
cmp esi, ebx
jne 0x6ab830
push 2
call dword [0x71401c]
add esp, 4
push eax
push 1
push 5
push str._hex:
call sub.msvcrt.dll_fwrite
add esp, 0x10
xor ebx, ebx
nop dword [eax]
push 2
call edi
add esp, 4
push dword [ebp + ebx*4]
push 0x708677
push eax
call fcn.006ab900
add esp, 0xc
inc ebx
cmp esi, ebx
jne 0x6ab870
jmp 0x6ab8b0
push 2
call dword [0x71401c]
add esp, 4
push eax
push 1
push 5
push str._hex:
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov ebp, dword [esp]
push 2
call dword [0x71401c]
add esp, 4
push eax
push 1
push 2
push 0x70867b
call sub.msvcrt.dll_fwrite
add esp, 0x10
push ebp
call sub.msvcrt.dll_free
add esp, 4
push dword [esp + 0x20]
call sub.msvcrt.dll_free
add esp, 0xd0
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xffffffffffffffff
call sub.msvcrt.dll_exit
int3