Function at 0x4aa750
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [eax + 4]
mov ecx, edx
shr ecx, 3
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [eax]
mov dword [esp + 0x14], ecx
test ecx, ecx
mov ecx, dword [esp + 0x20]
je 0x4aa929
lea ebx, [ebx]
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [eax + ebp*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc edi
mov byte [ecx], dl
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [eax + ebp*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
inc esi
mov byte [ecx + 1], dl
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
inc ecx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [eax + ebp*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
inc esi
mov byte [ecx + 1], dl
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
inc ecx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [eax + ebp*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
inc esi
mov byte [ecx + 1], dl
inc edi
inc ecx
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
inc esi
inc ecx
inc edi
mov byte [ecx], dl
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
inc ecx
inc esi
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [eax + ebp*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc edi
mov byte [ecx], dl
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
inc esi
mov byte [ecx + 1], dl
inc ecx
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
inc esi
inc ecx
mov byte [ecx], dl
inc ecx
inc esi
sub dword [esp + 0x14], 1
jne 0x4aa780
mov edx, dword [esp + 0x18]
and edx, 7
mov dword [esp + 0x14], edx
je 0x4aab16
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [esp + 0x14], 1
je 0x4aab16
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [esp + 0x14], 1
je 0x4aab16
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [esp + 0x14], 1
je 0x4aab16
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [esp + 0x14], 1
je 0x4aab16
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [esp + 0x14], 1
je 0x4aab16
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [esp + 0x14], 1
je 0x4aab16
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [esp + 0x14], 1
je 0x4aab16
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [esp + 0x14], 1
jne 0x4aa973
mov dword [eax], edi
pop edi
pop esi
mov dword [eax + 4], ebp
pop ebp
pop ebx
ret