Function at 0xc60887
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x2cb0]
mov dword [esi + 0x2ca8], edi
cmp eax, 2
jne 0xc608c4
push 1
call fcn.00c61bd4
test eax, eax
je 0xc608be
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x74]
push eax
push ecx
mov ecx, esi
call fcn.00c606d4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi + 0x2cb0], edi
mov eax, dword [esi + 0x38]
mov ecx, 8
sub ecx, eax
mov eax, dword [esi + 0x3c]
shr eax, cl
mov ecx, dword [esi + 0x2c98]
shr eax, 0x10
and eax, 0xff
cmp ecx, 0x25
mov ecx, dword [esi + 0x2ca4]
jae 0xc60901
cmp ecx, edi
mov ebx, 0x100c08b4
jne 0xc608fa
mov ebx, 0x100c08a4
mov edx, 0x100c08e4
jmp 0xc60914
cmp ecx, edi
mov ebx, 0x100c08d4
jne 0xc6090f
mov ebx, 0x100c08c4
mov edx, 0x100c0920
mov cl, byte [ebx]
mov ebp, 0xff
sar ebp, cl
mov ecx, dword [edx]
xor ecx, eax
not ebp
test ecx, ebp
je 0xc60940
mov cl, byte [edi + ebx + 1]
inc edi
mov ebp, 0xff
add edx, 4
sar ebp, cl
mov ecx, eax
xor ecx, dword [edx]
not ebp
test ecx, ebp
jne 0xc60927
mov ecx, dword [esi + 0x38]
xor edx, edx
mov dl, byte [edi + ebx]
add ecx, edx
mov eax, ecx
mov dword [esi + 0x38], ecx
cmp eax, 8
jb 0xc6099e
lea ebx, [esi + 0x40]
mov ebp, 0xfffffff8
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp eax, ecx
jb 0xc60972
mov ecx, ebx
call fcn.00be9f38
mov byte [esp + 0x10], al
jmp 0xc6097b
mov cl, byte [eax]
inc eax
mov byte [esp + 0x10], cl
mov dword [ebx], eax
mov edx, dword [esi + 0x3c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x38]
and eax, 0xff
shl edx, 8
add ecx, ebp
or edx, eax
mov eax, ecx
mov dword [esi + 0x3c], edx
cmp eax, 8
mov dword [esi + 0x38], ecx
jae 0xc6095c
cmp edi, 9
jb 0xc60a69
jne 0xc609cb
mov edi, dword [esi + 0x2cb0]
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x74]
inc edi
push ecx
push edx
mov ecx, esi
mov dword [esi + 0x2cb0], edi
call fcn.00c606d4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp edi, 0xe
mov dword [esi + 0x2cb0], 0
jne 0xc60a0e
push 0x100c0760
mov ecx, esi
call fcn.00c607b4
mov edi, eax
push 0xf
mov ecx, esi
add edi, 5
call fcn.00c61bd4
add eax, 0x7fff
push edi
push eax
mov ecx, esi
mov dword [esi + 0x78], edi
mov dword [esi + 0x74], eax
call fcn.00c606d4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x70]
push 0x100c0728
sub eax, edi
mov ecx, esi
inc eax
mov ebp, edi
and eax, 3
mov ebx, dword [esi + eax*4 + 0x60]
call fcn.00c607b4
add eax, 2
mov edi, eax
cmp edi, 0x101
jne 0xc60a52
cmp ebp, 0xa
jne 0xc60a52
mov eax, dword [esi + 0x2ca4]
pop edi
xor eax, 1
mov dword [esi + 0x2ca4], eax
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
cmp ebx, 0x100
jb 0xc60a5b
inc edi
mov ecx, dword [esi + 0x2cc0]
dec ecx
cmp ebx, ecx
jb 0xc60add
inc edi
jmp 0xc60add
mov edx, dword [esi + 0x2c98]
push 0x100c0808
mov dword [esi + 0x2cb0], 0
lea eax, [edx + edi]
mov ecx, eax
shr ecx, 4
sub eax, ecx
mov ecx, esi
mov dword [esi + 0x2c98], eax
call fcn.00c607b4
and eax, 0xff
mov ebx, dword [esi + eax*4 + 0x48c]
dec eax
cmp eax, 0xffffffff
je 0xc60ada
mov ebp, dword [esi + ebx*4 + 0x148c]
dec ebp
mov dword [esi + ebx*4 + 0x148c], ebp
mov ecx, dword [esi + eax*4 + 0x48c]
mov edx, dword [esi + ecx*4 + 0x148c]
inc edx
mov dword [esi + ecx*4 + 0x148c], edx
mov dword [esi + eax*4 + 0x490], ecx
mov dword [esi + eax*4 + 0x48c], ebx
add edi, 2
mov edx, dword [esi + 0x70]
push edi
push ebx
mov ecx, esi
mov dword [esi + edx*4 + 0x60], ebx
mov eax, dword [esi + 0x70]
inc eax
mov dword [esi + 0x78], edi
and eax, 3
mov dword [esi + 0x74], ebx
mov dword [esi + 0x70], eax
call fcn.00c606d4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret