Function at 0x1006d0a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x10108c80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x44], esi
cmp dword [esi + 0xec], 0
jne 0x1006d0e9
movzx eax, byte [esi + 0x124]
push eax
push dword [esi + 0xe4]
lea eax, [ebp - 0x38]
push str.NULL_row_buffer_for_row__ld__pass__d
push eax
call fcn.10066e40
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.10071aa0
add esp, 0x18
test dword [esi + 0x70], 0x1000
push ebx
push edi
mov ebx, 3
je 0x1006d2dc
movzx edx, word [esi + 0x11a]
cmp byte [esi + 0x108], bl
jne 0x1006d135
mov eax, dword [esi + 0xec]
push edx
push dword [esi + 0x188]
inc eax
push dword [esi + 0x114]
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006c4a0
add esp, 0x14
jmp 0x1006d2dc
mov ecx, dword [esi + 0xec]
inc ecx
test dx, dx
je 0x1006d15d
lea eax, [esi + 0x18c]
push eax
push ecx
lea eax, [esi + 0x100]
push eax
call fcn.1006c070
add esp, 0xc
jmp 0x1006d2dc
cmp byte [esi + 0x108], 0
mov edx, dword [esi + 0x100]
mov dword [ebp - 0x48], edx
jne 0x1006d2dc
mov al, byte [esi + 0x109]
cmp al, 8
jae 0x1006d2dc
movzx eax, al
sub eax, 1
je 0x1006d271
sub eax, 1
je 0x1006d213
sub eax, 2
jne 0x1006d2c8
lea eax, [edx - 1]
mov edi, eax
and eax, 1
shr edi, 1
add edi, ecx
shl eax, 2
dec ecx
add ecx, edx
mov dword [ebp - 0x40], ecx
mov ecx, 4
sub ecx, eax
mov dword [ebp - 0x4c], ecx
test edx, edx
je 0x1006d2c8
mov esi, dword [ebp - 0x40]
mov ebx, ecx
mov dword [ebp - 0x3c], edx
nop
mov dl, byte [edi]
lea esi, [esi - 1]
mov cl, bl
shr dl, cl
mov ecx, 4
mov al, dl
shl dl, 4
and al, 0xf
xor al, dl
cmp ebx, 4
mov byte [esi + 1], al
lea eax, [edi - 1]
cmovne eax, edi
mov edi, eax
xor eax, eax
cmp ebx, 4
cmovne eax, ecx
sub dword [ebp - 0x3c], 1
mov ebx, eax
jne 0x1006d1d0
mov esi, dword [ebp - 0x44]
lea ebx, [ecx - 1]
mov edx, dword [ebp - 0x48]
jmp 0x1006d2c8
lea eax, [edx - 1]
mov edi, eax
and eax, 3
shr edi, 2
sub ebx, eax
add edi, ecx
add ebx, ebx
dec ecx
add ecx, edx
test edx, edx
je 0x1006d2bf
mov dword [ebp - 0x3c], edx
mov esi, ecx
mov dl, byte [edi]
mov cl, bl
shr dl, cl
and dl, 3
mov al, dl
shl al, 2
or al, dl
shl al, 2
or al, dl
shl al, 2
or al, dl
mov byte [esi], al
cmp ebx, 6
jne 0x1006d25a
xor ebx, ebx
dec edi
jmp 0x1006d25d
add ebx, 2
dec esi
sub dword [ebp - 0x3c], 1
jne 0x1006d234
mov esi, dword [ebp - 0x44]
mov ebx, 3
mov edx, dword [ebp - 0x48]
jmp 0x1006d2c8
lea eax, [edx - 1]
dec edx
mov edi, eax
and eax, 7
shr edi, 3
add edi, ecx
add ecx, edx
mov edx, 7
sub edx, eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x1006d2c6
mov ebx, eax
mov esi, ecx
mov al, byte [edi]
mov cl, dl
shr al, cl
and al, 1
neg al
sbb al, al
mov byte [esi], al
cmp edx, 7
jne 0x1006d2ab
xor edx, edx
dec edi
jmp 0x1006d2ac
inc edx
dec esi
sub ebx, 1
jne 0x1006d293
mov esi, dword [ebp - 0x44]
mov ebx, 3
mov edx, dword [ebp - 0x48]
jmp 0x1006d2c8
mov ebx, 3
jmp 0x1006d2c8
mov edx, eax
mov byte [esi + 0x109], 8
mov byte [esi + 0x10b], 8
mov dword [esi + 0x104], edx
test dword [esi + 0x70], 0x40000
je 0x1006d301
mov eax, dword [esi + 0xec]
inc eax
push 0x80
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006f090
add esp, 0xc
test dword [esi + 0x70], 0x600000
je 0x1006d35b
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
push esi
call fcn.1006d8c0
add esp, 0xc
test eax, eax
je 0x1006d35b
cmp dword [esi + 0x70], 0x400000
mov byte [esi + 0x228], 1
jne 0x1006d344
push str.png_do_rgb_to_gray_found_nongray_pixel
push esi
call fcn.10071ba0
add esp, 8
cmp dword [esi + 0x70], 0x200000
jne 0x1006d35b
push str.png_do_rgb_to_gray_found_nongray_pixel
push esi
call fcn.10071aa0
add esp, 8
test dword [esi + 0x70], 0x4000
je 0x1006d384
test dword [esi + 0x68], 0x800
jne 0x1006d384
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006cb50
add esp, 8
test byte [esi + 0x70], 0x80
je 0x1006d3f3
cmp word [esi + 0x11a], 0
jne 0x1006d39d
test byte [esi + 0x126], 4
je 0x1006d3f3
push dword [esi + 0x158]
lea eax, [esi + 0x142]
push dword [esi + 0x178]
push dword [esi + 0x174]
push dword [esi + 0x170]
push dword [esi + 0x16c]
push dword [esi + 0x168]
push dword [esi + 0x164]
push eax
lea eax, [esi + 0x138]
push eax
lea eax, [esi + 0x18c]
push eax
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006aec0
add esp, 0x30
mov eax, dword [esi + 0x70]
test eax, 0x2000
je 0x1006d446
test al, al
jns 0x1006d414
cmp word [esi + 0x11a], 0
jne 0x1006d446
test byte [esi + 0x126], 4
jne 0x1006d446
cmp byte [esi + 0x126], 3
je 0x1006d446
push dword [esi + 0x158]
mov eax, dword [esi + 0xec]
push dword [esi + 0x170]
inc eax
push dword [esi + 0x164]
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006c760
add esp, 0x14
test dword [esi + 0x70], 0x400
je 0x1006d4aa
cmp byte [esi + 0x109], 0x10
jne 0x1006d4aa
movzx edi, byte [esi + 0x10a]
imul edi, dword [esi + 0x100]
mov ecx, dword [esi + 0xec]
inc ecx
mov edx, ecx
test edi, edi
je 0x1006d482
mov al, byte [ecx]
lea ecx, [ecx + 2]
mov byte [edx], al
lea edx, [edx + 1]
sub edi, 1
jne 0x1006d473
mov cl, byte [esi + 0x10a]
mov al, cl
mov byte [esi + 0x109], 8
shl al, 3
mov byte [esi + 0x10b], al
movzx eax, cl
imul eax, dword [esi + 0x100]
mov dword [esi + 0x104], eax
test byte [esi + 0x70], 0x40
je 0x1006d4ea
push dword [esi + 0x1f0]
mov eax, dword [esi + 0xec]
push dword [esi + 0x1ec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006bf10
add esp, 0x10
cmp dword [esi + 0x104], 0
jne 0x1006d4ea
push str.png_do_dither_returned_rowbytes0
push esi
call fcn.10071aa0
add esp, 8
test byte [esi + 0x70], 0x20
je 0x1006d507
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006efc0
add esp, 8
test byte [esi + 0x70], 8
je 0x1006d52b
lea eax, [esi + 0x181]
push eax
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006df20
add esp, 0xc
test byte [esi + 0x70], 4
je 0x1006d696
mov edx, dword [esi + 0xec]
mov al, byte [esi + 0x109]
inc edx
mov dword [ebp - 0x40], edx
cmp al, 8
jae 0x1006d696
mov ecx, dword [esi + 0x100]
movzx eax, al
mov dword [ebp - 0x4c], ecx
sub eax, 1
je 0x1006d620
sub eax, 1
je 0x1006d5c8
sub eax, 2
jne 0x1006d671
mov edi, dword [ebp - 0x40]
lea eax, [ecx - 1]
mov edx, eax
mov ebx, 1
shr edx, 1
and eax, 1
add edx, edi
sub ebx, eax
dec edi
shl ebx, 2
add edi, ecx
test ecx, ecx
je 0x1006d671
mov esi, ecx
mov al, byte [edx]
lea edi, [edi - 1]
mov cl, bl
shr al, cl
mov ecx, 4
and al, 0xf
cmp ebx, 4
mov byte [edi + 1], al
lea eax, [edx - 1]
cmovne eax, edx
mov edx, eax
xor eax, eax
cmp ebx, 4
cmovne eax, ecx
mov ebx, eax
sub esi, 1
jne 0x1006d596
jmp 0x1006d66e
lea eax, [ecx - 1]
mov edi, eax
and eax, 3
shr edi, 2
sub ebx, eax
add edi, edx
add ebx, ebx
dec edx
add edx, ecx
mov dword [ebp - 0x3c], edx
test ecx, ecx
je 0x1006d671
mov esi, ecx
nop dword [eax]
mov al, byte [edi]
mov cl, bl
shr al, cl
mov edx, ebx
mov ecx, dword [ebp - 0x3c]
and al, 3
mov byte [ecx], al
dec ecx
cmp ebx, 6
mov dword [ebp - 0x3c], ecx
lea eax, [edi - 1]
cmovne eax, edi
xor ebx, ebx
cmp edx, 6
mov edi, eax
lea eax, [edx + 2]
cmovne ebx, eax
sub esi, 1
jne 0x1006d5f0
jmp 0x1006d66e
lea eax, [ecx - 1]
mov ebx, 7
mov edi, eax
and eax, 7
shr edi, 3
sub ebx, eax
add edi, edx
dec edx
add edx, ecx
mov dword [ebp - 0x3c], edx
test ecx, ecx
je 0x1006d671
mov esi, ecx
mov al, byte [edi]
mov cl, bl
shr al, cl
mov edx, ebx
mov ecx, dword [ebp - 0x3c]
and al, 1
mov byte [ecx], al
dec ecx
cmp ebx, 7
mov dword [ebp - 0x3c], ecx
lea eax, [edi - 1]
cmovne eax, edi
xor ebx, ebx
cmp edx, 7
mov edi, eax
lea eax, [edx + 1]
cmovne ebx, eax
sub esi, 1
jne 0x1006d640
mov esi, dword [ebp - 0x44]
mov cl, byte [esi + 0x10a]
mov al, cl
mov byte [esi + 0x109], 8
shl al, 3
mov byte [esi + 0x10b], al
movzx eax, cl
imul eax, dword [ebp - 0x4c]
mov dword [esi + 0x104], eax
test byte [esi + 0x70], 1
je 0x1006d6b3
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006eee0
add esp, 8
test dword [esi + 0x70], 0x10000
je 0x1006d6d3
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006f040
add esp, 8
test dword [esi + 0x70], 0x4000
je 0x1006d6fc
test dword [esi + 0x68], 0x800
je 0x1006d6fc
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006cb50
add esp, 8
test dword [esi + 0x70], 0x8000
je 0x1006d727
push dword [esi + 0x6c]
movzx eax, word [esi + 0x12e]
push eax
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006cce0
add esp, 0x10
test dword [esi + 0x70], 0x80000
je 0x1006d7fc
mov eax, dword [esi + 0xec]
mov cl, byte [esi + 0x108]
inc eax
mov edx, dword [esi + 0x100]
cmp cl, 6
jne 0x1006d7a4
mov ecx, dword [esi + 0x104]
add ecx, eax
cmp byte [esi + 0x109], 8
mov edi, ecx
jne 0x1006d77e
test edx, edx
je 0x1006d7fc
mov al, byte [ecx - 1]
sub ecx, 4
not al
mov byte [edi - 1], al
mov edi, ecx
sub edx, 1
jne 0x1006d767
jmp 0x1006d7fc
test edx, edx
je 0x1006d7fc
movzx eax, byte [ecx - 1]
not al
mov byte [edi - 1], al
movzx eax, byte [ecx - 2]
sub ecx, 8
not al
mov byte [edi - 2], al
mov edi, ecx
sub edx, 1
jne 0x1006d786
jmp 0x1006d7fc
cmp cl, 4
jne 0x1006d7fc
mov ecx, dword [esi + 0x104]
add ecx, eax
cmp byte [esi + 0x109], 8
mov edi, ecx
jne 0x1006d7db
test edx, edx
je 0x1006d7fc
movzx eax, byte [ecx - 1]
lea ecx, [ecx - 2]
lea edi, [edi - 2]
not al
mov byte [edi + 1], al
movzx eax, byte [ecx]
mov byte [edi], al
sub edx, 1
jne 0x1006d7c0
jmp 0x1006d7fc
test edx, edx
je 0x1006d7fc
nop
movzx eax, byte [ecx - 1]
not al
mov byte [edi - 1], al
movzx eax, byte [ecx - 2]
sub ecx, 4
not al
mov byte [edi - 2], al
mov edi, ecx
sub edx, 1
jne 0x1006d7e0
test dword [esi + 0x70], 0x20000
pop edi
pop ebx
je 0x1006d81e
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006cf90
add esp, 8
test byte [esi + 0x70], 0x10
je 0x1006d83b
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006f2d0
add esp, 8
test dword [esi + 0x70], 0x100000
je 0x1006d8a7
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x1006d860
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
push esi
call ecx
add esp, 0xc
mov al, byte [esi + 0x64]
test al, al
je 0x1006d86d
mov byte [esi + 0x109], al
mov al, byte [esi + 0x65]
test al, al
je 0x1006d87a
mov byte [esi + 0x10a], al
movzx eax, byte [esi + 0x109]
movzx ecx, byte [esi + 0x10a]
imul ecx, eax
movzx eax, cl
imul eax, dword [esi + 0x100]
mov byte [esi + 0x10b], cl
add eax, 7
shr eax, 3
mov dword [esi + 0x104], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret