Function at 0x535110
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 0x5352e4
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
sub dword [esp + 0x14], 1
jne 0x535140
mov ebx, dword [esp + 0x18]
and ebx, 7
mov dword [esp + 0x14], ebx
je 0x5354cb
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]
sub dword [esp + 0x14], 1
mov byte [edi], dl
je 0x5354cb
lea esp, [esp]
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]
sub dword [esp + 0x14], 1
mov byte [edi + 1], dl
je 0x5354cb
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]
sub dword [esp + 0x14], 1
mov byte [edi + 2], dl
je 0x5354cb
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]
sub dword [esp + 0x14], 1
mov byte [edi + 3], dl
je 0x5354cb
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]
sub dword [esp + 0x14], 1
mov byte [edi + 4], dl
je 0x5354cb
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]
sub dword [esp + 0x14], 1
mov byte [edi + 5], dl
je 0x5354cb
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]
sub dword [esp + 0x14], 1
mov byte [edi + 6], dl
je 0x5354cb
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]
sub dword [esp + 0x14], 1
mov byte [edi], dl
jne 0x535330
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
ret