Function at 0x4a0bb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 4]
push ebx
push ebp
push esi
mov esi, dword [eax]
mov eax, dword [ecx + 0x24]
push edi
mov edi, dword [eax]
mov dword [esp + 0x14], edi
mov edi, dword [eax + 4]
mov dword [esp + 0x1c], edi
mov edi, dword [eax + 8]
mov dword [esp + 0x20], edi
mov edi, dword [eax + 0xc]
mov dword [esp + 0x24], edi
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x28], edi
mov edi, dword [ecx + 0x24]
mov ebx, dword [edi + 0x18]
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x34], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], ebx
mov edi, eax
mov dword [esp + 0x3c], 3
mov edi, edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
add ecx, esi
mov edx, ecx
shr edx, 0x10
movzx ebp, dl
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
or ebx, dword [eax + ebp*4 + 0x800]
mov edx, ecx
shr edx, 8
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x400]
mov edx, dword [esp + 0x18]
movzx ecx, cl
or ebx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x1c]
xor edx, ebx
add ecx, edx
mov dword [esp + 0x18], edx
mov edx, ecx
shr edx, 0x10
movzx ebp, dl
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
or ebx, dword [eax + ebp*4 + 0x800]
mov edx, ecx
shr edx, 8
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x400]
movzx ecx, cl
or ebx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x20]
xor esi, ebx
add ecx, esi
mov edx, ecx
shr edx, 0x10
movzx ebp, dl
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
or ebx, dword [eax + ebp*4 + 0x800]
mov edx, ecx
shr edx, 8
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x400]
mov edx, dword [esp + 0x18]
movzx ecx, cl
or ebx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x24]
xor edx, ebx
add ecx, edx
mov dword [esp + 0x18], edx
mov edx, ecx
shr edx, 0x10
movzx ebp, dl
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
or ebx, dword [eax + ebp*4 + 0x800]
mov edx, ecx
shr edx, 8
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x400]
movzx ecx, cl
or ebx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x28]
xor esi, ebx
add ecx, esi
mov edx, ecx
shr edx, 0x10
movzx ebp, dl
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
or ebx, dword [eax + ebp*4 + 0x800]
mov edx, ecx
shr edx, 8
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x400]
mov edx, dword [esp + 0x18]
movzx ecx, cl
or ebx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x2c]
xor edx, ebx
add ecx, edx
mov dword [esp + 0x18], edx
mov edx, ecx
shr edx, 0x10
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x800]
mov edx, ecx
shr edx, 8
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x400]
movzx ecx, cl
or ebx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x30]
xor esi, ebx
add ecx, esi
mov edx, ecx
shr edx, 0x10
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [edi + ebx*4 + 0xc00]
movzx ebp, dl
or ebx, dword [edi + ebp*4 + 0x800]
mov edx, ecx
shr edx, 8
movzx ebp, dl
or ebx, dword [edi + ebp*4 + 0x400]
mov edx, dword [esp + 0x18]
movzx ecx, cl
or ebx, dword [edi + ecx*4]
mov ecx, dword [esp + 0x34]
xor edx, ebx
add ecx, edx
mov dword [esp + 0x18], eax
mov eax, ecx
shr eax, 0x10
movzx ebp, al
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [edi + ebx*4 + 0xc00]
or ebx, dword [edi + ebp*4 + 0x800]
mov eax, ecx
shr eax, 8
movzx ebp, al
or ebx, dword [edi + ebp*4 + 0x400]
mov eax, dword [esp + 0x18]
movzx ecx, cl
or ebx, dword [edi + ecx*4]
xor esi, ebx
dec dword [esp + 0x3c]
jne 0x4a0c10
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x24]
mov eax, dword [eax + 0x14]
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x3c], edx
add ecx, esi
mov edx, ecx
shr edx, 0x10
movzx ebp, dl
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
or ebx, dword [eax + ebp*4 + 0x800]
mov edx, ecx
shr edx, 8
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x400]
mov edx, dword [esp + 0x3c]
movzx ecx, cl
or ebx, dword [eax + ecx*4]
mov ecx, dword [edi + 0x18]
xor edx, ebx
add ecx, edx
mov dword [esp + 0x3c], edx
mov edx, ecx
shr edx, 0x10
movzx ebp, dl
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
or ebx, dword [eax + ebp*4 + 0x800]
mov edx, ecx
shr edx, 8
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x400]
movzx ecx, cl
or ebx, dword [eax + ecx*4]
mov ecx, dword [edi + 0x14]
xor esi, ebx
add ecx, esi
mov edx, ecx
shr edx, 0x10
movzx ebp, dl
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
or ebx, dword [eax + ebp*4 + 0x800]
mov edx, ecx
shr edx, 8
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x400]
mov edx, dword [esp + 0x3c]
movzx ecx, cl
or ebx, dword [eax + ecx*4]
mov ecx, dword [edi + 0x10]
xor edx, ebx
add ecx, edx
mov dword [esp + 0x3c], edx
mov edx, ecx
shr edx, 0x10
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x800]
mov edx, ecx
shr edx, 8
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x400]
movzx ecx, cl
or ebx, dword [eax + ecx*4]
mov ecx, dword [edi + 0xc]
xor esi, ebx
add ecx, esi
mov edx, ecx
shr edx, 0x10
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x800]
mov edx, ecx
shr edx, 8
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x400]
mov edx, dword [esp + 0x3c]
movzx ecx, cl
or ebx, dword [eax + ecx*4]
mov ecx, dword [edi + 8]
xor edx, ebx
add ecx, edx
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov edi, ecx
shr edi, 0x18
mov edi, dword [eax + edi*4 + 0xc00]
or edi, dword [eax + ebx*4 + 0x800]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
or edi, dword [eax + ebx*4 + 0x400]
movzx ecx, cl
or edi, dword [eax + ecx*4]
mov eax, dword [esp + 0x10]
xor esi, edi
mov edi, dword [eax + 0x24]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 0x14]
add ecx, esi
mov dword [esp + 0x3c], edx
mov edx, ecx
shr edx, 0x10
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x800]
mov edx, ecx
shr edx, 8
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x400]
mov edx, dword [esp + 0x3c]
movzx ecx, cl
or ebx, dword [eax + ecx*4]
mov ecx, dword [edi]
xor edx, ebx
add ecx, edx
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov edi, ecx
shr edi, 0x18
mov edi, dword [eax + edi*4 + 0xc00]
or edi, dword [eax + ebx*4 + 0x800]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
or edi, dword [eax + ebx*4 + 0x400]
movzx ecx, cl
or edi, dword [eax + ecx*4]
mov eax, dword [esp + 0x40]
xor esi, edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x28
ret 8