Function at 0x5cc3b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
push edi
push eax
push ecx
xor ebx, ebx
xor edi, edi
call fcn.005cc120
add esp, 8
mov dword [esi + 8], eax
cmp eax, ebx
jle 0x5cc44e
mov eax, dword [esi]
mov ecx, dword [esi + 8]
jmp 0x5cc3e0
movzx edx, word [eax]
add edi, edx
cmp dword [eax + 0x10], ebx
je 0x5cc3f8
mov edx, dword [eax + 4]
movzx edx, word [edx]
inc edi
and edi, 0xfffffffe
lea edi, [edi + edx*2 + 2]
add eax, 0x14
dec ecx
jne 0x5cc3e0
cmp edi, 0xfffff
jle 0x5cc44e
push ebx
push 0x73f6b8
push 0xa3
push str.src_backend_tsearch_to_tsany.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5cc44e
push 0xfffff
push edi
push str.string_is_too_long_for_tsvector___d_bytes__max__d_bytes_
call sym.postgres.exe_errmsg
add esp, 0xc
push eax
push 0x105
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov eax, dword [esi + 8]
mov ecx, dword [sym.postgres.exe_CurrentMemoryContext]
lea edi, [edi + eax*4 + 8]
push edi
push ecx
call sym.postgres.exe_MemoryContextAllocZero
lea edx, [edi*4]
mov dword [eax], edx
mov ecx, dword [esi + 8]
mov dword [eax + 4], ecx
mov dword [ebp - 0x14], eax
lea edi, [eax + 8]
lea eax, [eax + ecx*4 + 8]
xor ecx, ecx
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], ecx
mov dword [ebp - 0x10], ebx
cmp dword [esi + 8], ebx
jle 0x5cc5cf
mov dword [ebp - 8], ebx
jmp 0x5cc49a
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
movzx eax, word [ebx + edx]
and eax, 0x7ff
mov edx, ecx
add ecx, dword [ebp - 0xc]
shl edx, 0xb
or eax, edx
mov edx, dword [edi]
add eax, eax
and edx, 1
or eax, edx
mov dword [edi], eax
mov eax, dword [esi]
movzx edx, word [eax + ebx]
mov eax, dword [eax + ebx + 0xc]
push edx
push eax
push ecx
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi]
movzx ecx, word [eax + ebx]
mov edx, dword [eax + ebx + 0xc]
add dword [ebp + 8], ecx
push edx
call sym.postgres.exe_pfree
mov eax, dword [esi]
add esp, 0x10
cmp dword [eax + ebx + 0x10], 0
je 0x5cc5b3
mov ecx, dword [eax + ebx + 4]
movzx ecx, word [ecx]
mov dword [ebp - 4], ecx
cmp ecx, 0xffff
jle 0x5cc527
push 0x73f6b8
push 0xba
push str.src_backend_tsearch_to_tsany.c
call sym.postgres.exe_elog_start
push str.positions_array_too_long
push 0x14
call sym.postgres.exe_elog_finish
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebp + 8]
or dword [edi], 1
mov edx, dword [ebp - 0xc]
inc eax
and eax, 0xfffffffe
mov word [eax + edx], cx
mov dword [ebp + 8], eax
mov eax, dword [edi]
mov ecx, eax
shr ecx, 1
and ecx, 0x7ff
shr eax, 0xc
lea edx, [ecx + eax + 1]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
and edx, 0xfffffffe
add edx, eax
xor eax, eax
lea ecx, [edx + ecx*4 + 0xa]
cmp dword [ebp - 4], eax
jle 0x5cc595
mov edx, 0x3fff
and word [ecx + eax*2], dx
mov edx, dword [esi]
mov edx, dword [ebx + edx + 4]
mov dx, word [edx + eax*2 + 2]
xor dx, word [ecx + eax*2]
mov ebx, 0x3fff
and dx, bx
xor dx, word [ecx + eax*2]
mov ebx, dword [ebp - 8]
mov word [ecx + eax*2], dx
inc eax
cmp eax, dword [ebp - 4]
jl 0x5cc564
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea edx, [eax + ecx*2 + 2]
mov eax, dword [esi]
mov ecx, dword [ebx + eax + 4]
push ecx
mov dword [ebp + 8], edx
call sym.postgres.exe_pfree
add esp, 4
jmp 0x5cc5b6
and dword [edi], 0xfffffffe
mov eax, dword [ebp - 0x10]
inc eax
add ebx, 0x14
add edi, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
cmp eax, dword [esi + 8]
jl 0x5cc497
mov edx, dword [esi]
push edx
call sym.postgres.exe_pfree
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret