Function at 0x4db480
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
mov edx, ebx
push esi
mov esi, dword [eax + 4]
shr edx, 3
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], edx
test edx, edx
je 0x4db653
lea ebx, [ebx]
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + esi*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [ebp]
inc ecx
mov byte [edi], dl
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + esi*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [ebp + 1]
inc ecx
mov byte [edi + 1], dl
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + esi*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [ebp + 2]
inc ecx
mov byte [edi + 2], dl
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + esi*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [ebp + 3]
inc ecx
mov byte [edi + 3], dl
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [ebp + 4]
inc ecx
mov byte [edi + 4], dl
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [ebp + 5]
inc ecx
and ecx, 0xff
mov byte [edi + 5], dl
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [ebp + 6]
inc ecx
mov byte [edi + 6], dl
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [ebp + 7]
add ebp, 8
mov byte [edi + 7], dl
add edi, 8
dec dword [esp + 0x14]
jne 0x4db4b0
mov ebx, dword [esp + 0x18]
and ebx, 7
mov dword [esp + 0x14], ebx
je 0x4db834
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [ebp]
dec dword [esp + 0x14]
mov byte [edi], dl
je 0x4db834
lea ebx, [ebx]
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [ebp + 1]
dec dword [esp + 0x14]
mov byte [edi + 1], dl
je 0x4db834
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [ebp + 2]
dec dword [esp + 0x14]
mov byte [edi + 2], dl
je 0x4db834
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [ebp + 3]
dec dword [esp + 0x14]
mov byte [edi + 3], dl
je 0x4db834
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [ebp + 4]
dec dword [esp + 0x14]
mov byte [edi + 4], dl
je 0x4db834
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [ebp + 5]
dec dword [esp + 0x14]
mov byte [edi + 5], dl
je 0x4db834
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [ebp + 6]
dec dword [esp + 0x14]
mov byte [edi + 6], dl
je 0x4db834
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [ebp]
dec dword [esp + 0x14]
mov byte [edi], dl
jne 0x4db6a0
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
ret