Function at 0x1006e1d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x100d8180]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x4c], esi
cmp dword [esi + 0xec], 0
jne 0x1006e219
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.10067f40
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.10072c00
add esp, 0x18
test dword [esi + 0x70], 0x1000
push ebx
push edi
mov ebx, 3
je 0x1006e421
movzx edx, word [esi + 0x11a]
cmp byte [esi + 0x108], bl
jne 0x1006e265
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.1006d5d0
add esp, 0x14
jmp 0x1006e421
mov ecx, dword [esi + 0xec]
inc ecx
test dx, dx
je 0x1006e28d
lea eax, [esi + 0x18c]
push eax
push ecx
lea eax, [esi + 0x100]
push eax
call fcn.1006d180
add esp, 0xc
jmp 0x1006e421
cmp byte [esi + 0x108], 0
mov edx, dword [esi + 0x100]
mov dword [ebp - 0x48], edx
jne 0x1006e421
mov al, byte [esi + 0x109]
cmp al, 8
jae 0x1006e421
movzx eax, al
sub eax, 1
je 0x1006e3a6
sub eax, 1
je 0x1006e33a
sub eax, 2
jne 0x1006e40d
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 - 0x3c], ecx
mov ecx, 4
sub ecx, eax
mov dword [ebp - 0x40], ecx
test edx, edx
je 0x1006e40d
mov esi, dword [ebp - 0x3c]
mov ebx, ecx
mov dword [ebp - 0x44], edx
nop word [eax + eax]
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 - 0x44], 1
mov ebx, eax
jne 0x1006e300
jmp 0x1006e402
lea eax, [edx - 1]
mov edi, eax
and eax, 3
shr edi, 2
add edi, ecx
dec ecx
add ecx, edx
mov dword [ebp - 0x40], ecx
mov ecx, ebx
sub ecx, eax
add ecx, ecx
mov dword [ebp - 0x3c], ecx
test edx, edx
je 0x1006e40d
mov esi, dword [ebp - 0x40]
mov ebx, ecx
mov dword [ebp - 0x44], edx
mov dl, byte [edi]
lea esi, [esi - 1]
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
cmp ebx, 6
mov byte [esi + 1], al
lea eax, [edi - 1]
cmovne eax, edi
xor ecx, ecx
cmp ebx, 6
mov edi, eax
lea eax, [ebx + 2]
cmovne ecx, eax
sub dword [ebp - 0x44], 1
mov ebx, ecx
jne 0x1006e366
jmp 0x1006e402
lea eax, [edx - 1]
mov edi, eax
and eax, 7
shr edi, 3
add edi, ecx
dec ecx
add ecx, edx
mov dword [ebp - 0x44], ecx
mov ecx, 7
sub ecx, eax
mov dword [ebp - 0x3c], ecx
test edx, edx
je 0x1006e40d
mov esi, edx
mov ebx, ecx
nop dword [eax + eax]
mov al, byte [edi]
mov cl, bl
shr al, cl
mov edx, ebx
mov ecx, dword [ebp - 0x44]
and al, 1
neg al
sbb al, al
mov byte [ecx], al
dec ecx
cmp ebx, 7
mov dword [ebp - 0x44], 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 0x1006e3d0
mov esi, dword [ebp - 0x4c]
mov ebx, 3
mov edx, dword [ebp - 0x48]
mov byte [esi + 0x109], 8
mov byte [esi + 0x10b], 8
mov dword [esi + 0x104], edx
test dword [esi + 0x70], 0x40000
je 0x1006e446
mov eax, dword [esi + 0xec]
inc eax
push 0x80
push eax
lea eax, [esi + 0x100]
push eax
call fcn.100701f0
add esp, 0xc
test dword [esi + 0x70], 0x600000
je 0x1006e4a0
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
push esi
call fcn.1006ea10
add esp, 0xc
test eax, eax
je 0x1006e4a0
cmp dword [esi + 0x70], 0x400000
mov byte [esi + 0x228], 1
jne 0x1006e489
push str.png_do_rgb_to_gray_found_nongray_pixel
push esi
call fcn.10072d00
add esp, 8
cmp dword [esi + 0x70], 0x200000
jne 0x1006e4a0
push str.png_do_rgb_to_gray_found_nongray_pixel
push esi
call fcn.10072c00
add esp, 8
test dword [esi + 0x70], 0x4000
je 0x1006e4c9
test dword [esi + 0x68], 0x800
jne 0x1006e4c9
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006dc80
add esp, 8
test byte [esi + 0x70], 0x80
je 0x1006e538
cmp word [esi + 0x11a], 0
jne 0x1006e4e2
test byte [esi + 0x126], 4
je 0x1006e538
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.1006bff0
add esp, 0x30
mov eax, dword [esi + 0x70]
test eax, 0x2000
je 0x1006e58b
test al, al
jns 0x1006e559
cmp word [esi + 0x11a], 0
jne 0x1006e58b
test byte [esi + 0x126], 4
jne 0x1006e58b
cmp byte [esi + 0x126], 3
je 0x1006e58b
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.1006d890
add esp, 0x14
test dword [esi + 0x70], 0x400
je 0x1006e5ef
cmp byte [esi + 0x109], 0x10
jne 0x1006e5ef
movzx edi, byte [esi + 0x10a]
imul edi, dword [esi + 0x100]
mov ecx, dword [esi + 0xec]
inc ecx
mov edx, ecx
test edi, edi
je 0x1006e5c7
mov al, byte [ecx]
lea ecx, [ecx + 2]
mov byte [edx], al
lea edx, [edx + 1]
sub edi, 1
jne 0x1006e5b8
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 0x1006e62f
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.1006d020
add esp, 0x10
cmp dword [esi + 0x104], 0
jne 0x1006e62f
push str.png_do_dither_returned_rowbytes0
push esi
call fcn.10072c00
add esp, 8
test byte [esi + 0x70], 0x20
je 0x1006e64c
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.10070120
add esp, 8
test byte [esi + 0x70], 8
je 0x1006e670
lea eax, [esi + 0x181]
push eax
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006f070
add esp, 0xc
test byte [esi + 0x70], 4
je 0x1006e7db
mov ecx, dword [esi + 0xec]
mov al, byte [esi + 0x109]
inc ecx
cmp al, 8
jae 0x1006e7db
mov edi, dword [esi + 0x100]
movzx eax, al
mov dword [ebp - 0x48], edi
sub eax, 1
je 0x1006e763
sub eax, 1
je 0x1006e712
sub eax, 2
jne 0x1006e7b7
lea eax, [edi - 1]
mov ebx, 1
mov edx, eax
and eax, 1
shr edx, 1
sub ebx, eax
add edx, ecx
shl ebx, 2
dec ecx
add ecx, edi
mov dword [ebp - 0x3c], ecx
test edi, edi
je 0x1006e7b7
mov dword [ebp - 0x40], edi
mov esi, ecx
nop dword [eax + eax]
mov al, byte [edx]
lea esi, [esi - 1]
mov cl, bl
shr al, cl
mov ecx, 4
and al, 0xf
cmp ebx, 4
mov byte [esi + 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 edi, 1
jne 0x1006e6e0
jmp 0x1006e7b1
lea eax, [edi - 1]
mov edx, eax
and eax, 3
shr edx, 2
sub ebx, eax
add edx, ecx
add ebx, ebx
dec ecx
add ecx, edi
mov dword [ebp - 0x3c], ecx
test edi, edi
je 0x1006e7b7
mov dword [ebp - 0x40], edi
mov esi, ecx
mov al, byte [edx]
lea esi, [esi - 1]
mov cl, bl
shr al, cl
and al, 3
cmp ebx, 6
mov byte [esi + 1], al
lea eax, [edx - 1]
cmovne eax, edx
xor ecx, ecx
cmp ebx, 6
mov edx, eax
lea eax, [ebx + 2]
cmovne ecx, eax
mov ebx, ecx
sub edi, 1
jne 0x1006e736
jmp 0x1006e7b1
lea eax, [edi - 1]
mov ebx, 7
mov edx, eax
and eax, 7
shr edx, 3
sub ebx, eax
add edx, ecx
dec ecx
add ecx, edi
mov dword [ebp - 0x3c], ecx
test edi, edi
je 0x1006e7b7
mov dword [ebp - 0x40], edi
mov esi, ecx
mov al, byte [edx]
lea esi, [esi - 1]
mov cl, bl
shr al, cl
and al, 1
cmp ebx, 7
mov byte [esi + 1], al
lea eax, [edx - 1]
cmovne eax, edx
xor ecx, ecx
cmp ebx, 7
mov edx, eax
lea eax, [ebx + 1]
cmovne ecx, eax
mov ebx, ecx
sub edi, 1
jne 0x1006e786
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x48]
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, edi
mov dword [esi + 0x104], eax
test byte [esi + 0x70], 1
je 0x1006e7f8
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.10070040
add esp, 8
test dword [esi + 0x70], 0x10000
je 0x1006e818
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.100701a0
add esp, 8
test dword [esi + 0x70], 0x4000
je 0x1006e841
test dword [esi + 0x68], 0x800
je 0x1006e841
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006dc80
add esp, 8
test dword [esi + 0x70], 0x8000
je 0x1006e86c
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.1006de10
add esp, 0x10
test dword [esi + 0x70], 0x80000
je 0x1006e94c
mov eax, dword [esi + 0xec]
mov cl, byte [esi + 0x108]
inc eax
mov edx, dword [esi + 0x100]
cmp cl, 6
jne 0x1006e8ee
mov ecx, dword [esi + 0x104]
add ecx, eax
cmp byte [esi + 0x109], 8
mov edi, ecx
jne 0x1006e8c7
test edx, edx
je 0x1006e94c
nop dword [eax]
mov al, byte [ecx - 1]
sub ecx, 4
not al
mov byte [edi - 1], al
mov edi, ecx
sub edx, 1
jne 0x1006e8b0
jmp 0x1006e94c
test edx, edx
je 0x1006e94c
nop
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 0x1006e8d0
jmp 0x1006e94c
cmp cl, 4
jne 0x1006e94c
mov ecx, dword [esi + 0x104]
add ecx, eax
cmp byte [esi + 0x109], 8
mov edi, ecx
jne 0x1006e92b
test edx, edx
je 0x1006e94c
nop word [eax + eax]
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 0x1006e910
jmp 0x1006e94c
test edx, edx
je 0x1006e94c
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 0x1006e930
test dword [esi + 0x70], 0x20000
pop edi
pop ebx
je 0x1006e96e
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.1006e0c0
add esp, 8
test byte [esi + 0x70], 0x10
je 0x1006e98b
mov eax, dword [esi + 0xec]
inc eax
push eax
lea eax, [esi + 0x100]
push eax
call fcn.10070430
add esp, 8
test dword [esi + 0x70], 0x100000
je 0x1006e9f7
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x1006e9b0
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 0x1006e9bd
mov byte [esi + 0x109], al
mov al, byte [esi + 0x65]
test al, al
je 0x1006e9ca
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.1007f9c9
mov esp, ebp
pop ebp
ret