Function at 0x4a78a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
mov eax, dword [esp + 0x2c]
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, ecx
mov eax, dword [edi + 0x14]
mov ebp, dword [edi + 0x24]
mov ecx, dword [ebp]
add ecx, esi
mov ebx, ecx
mov edx, ecx
shr ebx, 0x10
movzx ebx, bl
shr edx, 0x18
mov edx, dword [eax + edx*4 + 0xc00]
or edx, dword [eax + ebx*4 + 0x800]
mov ebx, ecx
movzx ecx, cl
shr ebx, 8
movzx ebx, bl
or edx, dword [eax + ebx*4 + 0x400]
or edx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x38]
xor edx, dword [ecx + 4]
mov ecx, dword [ebp + 4]
add ecx, edx
mov dword [esp + 0x38], ecx
mov ebx, ecx
shr ecx, 0x10
movzx ecx, cl
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
or ebx, dword [eax + ecx*4 + 0x800]
mov ecx, dword [esp + 0x38]
shr ecx, 8
movzx ecx, cl
or ebx, dword [eax + ecx*4 + 0x400]
movzx ecx, byte [esp + 0x38]
or ebx, dword [eax + ecx*4]
mov ecx, dword [ebp + 8]
xor esi, ebx
add ecx, esi
mov dword [esp + 0x38], ecx
mov ebx, ecx
shr ecx, 0x10
movzx ecx, cl
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
or ebx, dword [eax + ecx*4 + 0x800]
mov ecx, dword [esp + 0x38]
shr ecx, 8
movzx ecx, cl
or ebx, dword [eax + ecx*4 + 0x400]
movzx ecx, byte [esp + 0x38]
or ebx, dword [eax + ecx*4]
mov ecx, dword [ebp + 0xc]
xor edx, ebx
add ecx, edx
mov dword [esp + 0x38], ecx
mov ebx, ecx
shr ecx, 0x10
movzx ecx, cl
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
or ebx, dword [eax + ecx*4 + 0x800]
mov ecx, dword [esp + 0x38]
shr ecx, 8
movzx ecx, cl
or ebx, dword [eax + ecx*4 + 0x400]
movzx ecx, byte [esp + 0x38]
or ebx, dword [eax + ecx*4]
mov ecx, dword [ebp + 0x10]
xor esi, ebx
add ecx, esi
mov ebx, ecx
mov dword [esp + 0x38], ecx
shr ebx, 0x18
shr ecx, 0x10
movzx ecx, cl
mov ebx, dword [eax + ebx*4 + 0xc00]
or ebx, dword [eax + ecx*4 + 0x800]
mov ecx, dword [esp + 0x38]
shr ecx, 8
movzx ecx, cl
or ebx, dword [eax + ecx*4 + 0x400]
movzx ecx, byte [esp + 0x38]
or ebx, dword [eax + ecx*4]
mov ecx, dword [ebp + 0x14]
xor edx, ebx
add ecx, edx
mov dword [esp + 0x38], edx
mov edx, ecx
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
shr edx, 0x10
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 eax, dword [edi + 0x24]
mov ecx, dword [eax + 0x18]
mov eax, dword [edi + 0x14]
xor esi, ebx
add ecx, esi
mov edx, ecx
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
shr edx, 0x10
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x800]
mov edx, ecx
shr edx, 8
movzx ecx, cl
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x400]
mov edx, dword [esp + 0x38]
or ebx, dword [eax + ecx*4]
mov ecx, dword [edi + 0x24]
mov ecx, dword [ecx + 0x1c]
xor edx, ebx
add ecx, edx
mov ebx, ecx
mov dword [esp + 0x10], edx
mov edx, ecx
shr ebx, 0x18
mov ebx, dword [eax + ebx*4 + 0xc00]
shr edx, 0x10
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x800]
mov edx, ecx
movzx ecx, cl
shr edx, 8
movzx ebp, dl
or ebx, dword [eax + ebp*4 + 0x400]
or ebx, dword [eax + ecx*4]
mov eax, dword [edi + 0x24]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0x24]
xor esi, ebx
mov ebx, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x2c], ebx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
mov edi, eax
mov dword [esp + 0x38], 3
lea ecx, [ecx]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], 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 + 0x10]
movzx ecx, cl
or ebx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x18]
xor edx, ebx
add ecx, edx
mov dword [esp + 0x10], 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 + 0x1c]
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 + 0x10]
movzx ecx, cl
or ebx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x20]
xor edx, ebx
add ecx, edx
mov dword [esp + 0x10], 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 + 0x24]
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 + 0x10]
movzx ecx, cl
or ebx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x28]
xor edx, ebx
add ecx, edx
mov dword [esp + 0x10], 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 + 0x2c]
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 + 0x10]
movzx ecx, cl
or ebx, dword [edi + ecx*4]
mov ecx, dword [esp + 0x30]
xor edx, ebx
add ecx, edx
mov dword [esp + 0x10], 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 + 0x10]
movzx ecx, cl
or ebx, dword [edi + ecx*4]
xor esi, ebx
dec dword [esp + 0x38]
jne 0x4a7af0
mov eax, dword [esp + 0x3c]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x24
ret 8