Function at 0x4ccb00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov edx, 1
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x18]
mov ecx, esi
shl edx, cl
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0x18], edx
cmp ebx, dword [eax + 8]
jle 0x4ccb33
push ebx
push eax
call fcn.00488610
mov edx, dword [ebp + 0x18]
add esp, 8
test eax, eax
jne 0x4ccb3e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 3
jg 0x4ccbaa
xor ecx, ecx
mov dword [ebp + 0x10], ecx
test ebx, ebx
jle 0x4ccce4
xor esi, esi
xor eax, eax
test edx, edx
jle 0x4ccb8c
mov ebx, dword [ebp + 0x18]
jmp 0x4ccb60
mov ecx, eax
xor ecx, dword [ebp + 0x14]
lea edx, [ecx - 1]
not ecx
shr edx, 0x1f
shr ecx, 0x1f
and edx, ecx
neg edx
and edx, 1
neg edx
and edx, dword [edi + eax*4]
inc eax
or esi, edx
cmp eax, ebx
jl 0x4ccb60
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [eax + ecx*4], esi
inc ecx
lea eax, [edx*4]
mov dword [ebp + 0x10], ecx
add edi, eax
cmp ecx, ebx
jl 0x4ccb50
jmp 0x4ccce4
mov edx, dword [ebp + 0x14]
lea ecx, [esi - 2]
sar edx, cl
mov esi, 1
shl esi, cl
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x24], esi
lea eax, [esi - 1]
and ecx, eax
mov eax, edx
mov dword [ebp - 0x10], ecx
not eax
shr eax, 0x1f
lea ecx, [edx - 1]
shr ecx, 0x1f
and ecx, eax
mov eax, edx
neg ecx
xor eax, 1
and ecx, 1
neg ecx
mov dword [ebp - 0x20], ecx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
mov eax, edx
neg ecx
xor eax, 2
and ecx, 1
xor edx, 3
neg ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [edx - 1]
shr eax, 0x1f
not edx
shr edx, 0x1f
neg ecx
and eax, edx
and ecx, 1
neg eax
neg ecx
and eax, 1
mov dword [ebp - 0x18], ecx
neg eax
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], edx
test ebx, ebx
jle 0x4ccce4
mov eax, dword [ebp + 0x18]
shl eax, 2
mov dword [ebp - 0x28], eax
xor ecx, ecx
xor ebx, ebx
mov dword [ebp + 0x18], ecx
test esi, esi
jle 0x4cccca
lea eax, [esi + esi*2]
lea edx, [edi + esi*4]
lea ecx, [edi + esi*8]
mov dword [ebp - 8], edx
lea eax, [edi + eax*4]
mov dword [ebp - 4], ecx
mov dword [ebp + 0x10], eax
mov eax, dword [eax]
mov esi, ebx
mov ecx, dword [ecx]
and ecx, dword [ebp - 0x18]
and eax, dword [ebp - 0x14]
xor esi, dword [ebp - 0x10]
or ecx, eax
mov edx, dword [edx]
and edx, dword [ebp - 0x1c]
mov eax, dword [edi + ebx*4]
or edx, ecx
and eax, dword [ebp - 0x20]
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
or eax, edx
mov edx, dword [ebp - 8]
and ecx, esi
mov esi, dword [ebp - 0x24]
neg ecx
and ecx, 1
inc ebx
neg ecx
add edx, 4
and ecx, eax
mov dword [ebp - 8], edx
or dword [ebp + 0x18], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
add eax, 4
add ecx, 4
mov dword [ebp + 0x10], eax
mov dword [ebp - 4], ecx
cmp ebx, esi
jl 0x4ccc68
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add edi, dword [ebp - 0x28]
mov ebx, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [eax + edx*4], ecx
inc edx
mov dword [ebp - 0xc], edx
cmp edx, ebx
jl 0x4ccc48
mov edx, dword [ebp + 8]
mov dword [edx + 4], ebx
test ebx, ebx
jle 0x4ccd07
mov ecx, dword [edx]
add ecx, 0xfffffffc
lea ecx, [ecx + ebx*4]
mov eax, dword [ecx]
lea ecx, [ecx - 4]
test eax, eax
jne 0x4ccd04
dec ebx
test ebx, ebx
jg 0x4cccf6
mov dword [edx + 4], ebx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret