Function at 0x4ff7b0
Capabilities:
Encode data using xor
Encrypt data using xxtea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], 0x9e3779b9
cmp dword [ebp + 0xc], 1
jle 0x4ff8c6
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [eax + edx*4 - 4]
mov eax, 0x34
cdq
idiv dword [ebp + 0xc]
add eax, 6
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea edx, [ecx + eax*4 - 4]
mov dword [ebp - 0x18], edx
jmp 0x4ff8ab
mov ecx, dword [ebp - 0xc]
add dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
shr ecx, 2
and ecx, 3
mov dword [ebp - 8], ecx
xor eax, eax
mov edx, dword [ebp + 8]
add edx, 4
mov dword [ebp - 0x14], edx
jmp 0x4ff865
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov edx, ebx
shr edx, 5
mov esi, ecx
shl esi, 2
xor edx, esi
mov esi, ecx
shr esi, 3
mov edi, ebx
shl edi, 4
xor esi, edi
add edx, esi
mov esi, eax
and esi, 3
xor esi, dword [ebp - 8]
mov edi, dword [ebp + 0x10]
xor ebx, dword [edi + esi*4]
xor ecx, dword [ebp - 4]
add ebx, ecx
xor edx, ebx
mov ecx, dword [ebp - 0x14]
add edx, dword [ecx - 4]
mov ecx, dword [ebp - 0x14]
mov dword [ecx - 4], edx
mov ebx, edx
inc eax
add dword [ebp - 0x14], 4
mov edx, dword [ebp + 0xc]
dec edx
cmp eax, edx
jl 0x4ff81e
mov ecx, dword [ebp + 8]
mov edx, ebx
shr edx, 5
mov edi, ebx
mov ecx, dword [ecx]
and eax, 3
mov esi, ecx
xor eax, dword [ebp - 8]
shl esi, 2
xor edx, esi
mov esi, ecx
shl edi, 4
xor ecx, dword [ebp - 4]
shr esi, 3
xor esi, edi
add edx, esi
mov esi, dword [ebp + 0x10]
xor ebx, dword [esi + eax*4]
mov eax, dword [ebp - 0x18]
add ebx, ecx
mov ecx, dword [ebp - 0x18]
xor edx, ebx
add edx, dword [eax]
mov dword [ecx], edx
mov ebx, edx
mov ecx, dword [ebp - 0x10]
add dword [ebp - 0x10], 0xffffffff
test ecx, ecx
jg 0x4ff7ff
xor eax, eax
jmp 0x4ff9c3
cmp dword [ebp + 0xc], 0xffffffff
jge 0x4ff9be
neg dword [ebp + 0xc]
mov eax, 0x34
cdq
idiv dword [ebp + 0xc]
add eax, 6
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
imul ebx, dword [ebp - 0xc]
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ebx, [eax + edx*4 - 4]
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 4], 0
je 0x4ff9ba
mov eax, dword [ebp - 4]
shr eax, 2
and eax, 3
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
dec eax
test eax, eax
lea edx, [edx + eax*4 - 4]
mov dword [ebp - 0x1c], edx
jle 0x4ff96c
mov edx, dword [ebp - 0x1c]
mov esi, ecx
shl esi, 2
mov ebx, dword [edx]
mov edx, ebx
mov edi, ebx
shr edx, 5
xor edx, esi
mov esi, ecx
shr esi, 3
xor ecx, dword [ebp - 4]
shl edi, 4
xor esi, edi
mov edi, dword [ebp + 0x10]
add edx, esi
mov esi, eax
and esi, 3
xor esi, dword [ebp - 8]
xor ebx, dword [edi + esi*4]
add ebx, ecx
mov ecx, dword [ebp - 0x1c]
xor edx, ebx
mov ecx, dword [ecx + 4]
sub ecx, edx
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], ecx
dec eax
add dword [ebp - 0x1c], 0xfffffffc
test eax, eax
jg 0x4ff921
mov edx, dword [ebp - 0x20]
mov esi, ecx
shl esi, 2
and eax, 3
mov ebx, dword [edx]
xor eax, dword [ebp - 8]
mov edx, ebx
mov edi, ebx
shr edx, 5
xor edx, esi
mov esi, ecx
shl edi, 4
xor ecx, dword [ebp - 4]
shr esi, 3
xor esi, edi
add edx, esi
mov esi, dword [ebp + 0x10]
xor ebx, dword [esi + eax*4]
mov eax, dword [ebp + 8]
add ebx, ecx
xor edx, ebx
mov ecx, dword [eax]
sub ecx, edx
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0xc]
sub dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4ff903
xor eax, eax
jmp 0x4ff9c3
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret