Function at 0x4d2cc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00476ea0
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
mov edx, ebx
push ebp
mov eax, dword [ecx + 4]
mov ebp, dword [esp + 0x1c]
shr edx, 3
mov dword [esp + 8], edx
push esi
push edi
mov edi, dword [ecx]
test edx, edx
je 0x4d2eb4
mov ebx, dword [esp + 0x20]
jmp 0x4d2d00
lea edx, [edi + 1]
mov edi, dword [esp + 0x18]
and edx, 0xff
mov ecx, dword [edi + edx*4 + 8]
lea esi, [ecx + eax]
and esi, 0xff
mov eax, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
and eax, 0xff
inc edx
and edx, 0xff
movzx eax, byte [edi + eax*4 + 8]
xor al, byte [ebx]
mov byte [ebp], al
mov ecx, dword [edi + edx*4 + 8]
add esi, ecx
and esi, 0xff
mov eax, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
and eax, 0xff
inc edx
and edx, 0xff
movzx eax, byte [edi + eax*4 + 8]
xor al, byte [ebx + 1]
mov byte [ebp + 1], al
mov ecx, dword [edi + edx*4 + 8]
add esi, ecx
and esi, 0xff
mov eax, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
and eax, 0xff
inc edx
and edx, 0xff
movzx eax, byte [edi + eax*4 + 8]
xor al, byte [ebx + 2]
mov byte [ebp + 2], al
mov ecx, dword [edi + edx*4 + 8]
add esi, ecx
and esi, 0xff
mov eax, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
and eax, 0xff
inc edx
and edx, 0xff
movzx eax, byte [edi + eax*4 + 8]
xor al, byte [ebx + 3]
mov byte [ebp + 3], al
mov ecx, dword [edi + edx*4 + 8]
add esi, ecx
and esi, 0xff
mov eax, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
and eax, 0xff
inc edx
and edx, 0xff
movzx eax, byte [edi + eax*4 + 8]
xor al, byte [ebx + 4]
mov byte [ebp + 4], al
mov ecx, dword [edi + edx*4 + 8]
add esi, ecx
and esi, 0xff
mov eax, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
and eax, 0xff
mov dword [edi + esi*4 + 8], ecx
inc edx
movzx eax, byte [edi + eax*4 + 8]
xor al, byte [ebx + 5]
and edx, 0xff
mov byte [ebp + 5], al
mov ecx, dword [edi + edx*4 + 8]
add esi, ecx
and esi, 0xff
mov eax, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
and eax, 0xff
movzx eax, byte [edi + eax*4 + 8]
lea edi, [edx + 1]
xor al, byte [ebx + 6]
and edi, 0xff
mov byte [ebp + 6], al
mov eax, dword [esp + 0x18]
mov edx, dword [eax + edi*4 + 8]
lea eax, [edx + esi]
mov esi, dword [esp + 0x18]
and eax, 0xff
mov ecx, dword [esi + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
and ecx, 0xff
mov dword [esi + eax*4 + 8], edx
mov cl, byte [esi + ecx*4 + 8]
xor cl, byte [ebx + 7]
add ebx, 8
mov byte [ebp + 7], cl
add ebp, 8
dec dword [esp + 0x10]
jne 0x4d2d00
mov dword [esp + 0x10], ebx
mov ecx, esi
mov ebx, dword [esp + 0x1c]
jmp 0x4d2ebc
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], esi
and ebx, 7
je 0x4d30ee
mov esi, dword [esp + 0x18]
inc edi
and edi, 0xff
mov edx, dword [ecx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [esp + 0x10]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [esi]
mov byte [ebp], cl
dec ebx
je 0x4d30f2
mov esi, dword [esp + 0x18]
inc edi
mov ecx, dword [esp + 0x18]
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [esp + 0x10]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [esi + 1]
mov byte [ebp + 1], cl
dec ebx
je 0x4d30f2
mov esi, dword [esp + 0x18]
inc edi
mov ecx, dword [esp + 0x18]
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [esp + 0x10]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [esi + 2]
mov byte [ebp + 2], cl
dec ebx
je 0x4d30f2
mov esi, dword [esp + 0x18]
inc edi
mov ecx, dword [esp + 0x18]
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [esp + 0x10]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [esi + 3]
mov byte [ebp + 3], cl
dec ebx
je 0x4d30f2
mov esi, dword [esp + 0x18]
inc edi
mov ecx, dword [esp + 0x18]
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [esp + 0x10]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [esi + 4]
mov byte [ebp + 4], cl
dec ebx
je 0x4d30f2
mov esi, dword [esp + 0x18]
inc edi
mov ecx, dword [esp + 0x18]
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [esp + 0x10]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [esi + 5]
mov byte [ebp + 5], cl
dec ebx
je 0x4d30f2
mov esi, dword [esp + 0x18]
inc edi
mov ecx, dword [esp + 0x18]
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [esp + 0x10]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [esi + 6]
mov byte [ebp + 6], cl
dec ebx
je 0x4d30f2
mov esi, dword [esp + 0x18]
inc edi
mov ecx, dword [esp + 0x18]
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [esp + 0x10]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [esi]
mov byte [ebp], cl
dec ebx
jne 0x4d2f05
mov dword [edx], edi
pop edi
pop esi
pop ebp
mov dword [edx + 4], eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x18]
mov dword [edx], edi
pop edi
pop esi
pop ebp
mov dword [edx + 4], eax
pop ebx
pop ecx
ret