Function at 0x479d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, edx
mov dword [ebp - 0x28], eax
push ebx
push esi
mov edx, dword [eax]
mov esi, ecx
mov dword [ebp - 0x14], edx
push edi
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 4]
sub eax, dword [edx]
cdq
idiv ecx
mov edi, dword [esi + 0x48]
mov dword [ebp - 0xc], ecx
mov ebx, eax
mov dword [ebp - 0x1c], ebx
lea ecx, [edi + 8]
cmp ecx, dword [esi + 0x4c]
jle 0x479d93
cmp dword [esi + 0x44], 0
je 0x479d7d
push 8
call fcn.004849cb
mov ecx, dword [esi + 0x48]
add esp, 4
add dword [esi + 0x50], ecx
mov ecx, dword [esi + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x44]
mov dword [eax], ecx
mov dword [esi + 0x54], eax
push 8
mov dword [esi + 0x4c], 8
call fcn.004849cb
add esp, 4
mov dword [esi + 0x44], eax
xor edi, edi
mov ecx, dword [esi + 0x44]
lea edx, [edi + 8]
shl ebx, 2
mov dword [esi + 0x48], edx
lea eax, [ecx + edi]
lea edi, [ebx + 7]
mov dword [ebp - 4], eax
and edi, 0xfffffff8
lea eax, [edx + edi]
cmp eax, dword [esi + 0x4c]
jle 0x479de6
test ecx, ecx
je 0x479dd5
push 8
call fcn.004849cb
mov ecx, dword [esi + 0x48]
add esp, 4
add dword [esi + 0x50], ecx
mov ecx, dword [esi + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x44]
mov dword [eax], ecx
mov dword [esi + 0x54], eax
push edi
mov dword [esi + 0x4c], edi
call fcn.004849cb
add esp, 4
mov dword [esi + 0x44], eax
xor edx, edx
mov ecx, dword [esi + 0x44]
lea eax, [edx + edi]
mov dword [esi + 0x48], eax
add ecx, edx
mov eax, dword [ebp - 4]
push ebx
push 0
push ecx
mov dword [eax], ecx
call fcn.0047ebc0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], 0
mov eax, dword [eax]
cdq
idiv ebx
cmp dword [ebp - 0x1c], 0
mov dword [ebp + 0xc], eax
jle 0x479ed2
mov ecx, dword [ebp - 0x10]
dec ecx
mov dword [ebp - 0x24], ecx
xor ecx, ecx
xor edi, edi
xor esi, esi
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], ecx
jle 0x479e92
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov dword [ebp - 0x20], edx
nop
mov eax, dword [edx + eax*4]
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
cmovg esi, eax
mov dword [ebp - 0x10], esi
mov esi, 1
cmp ebx, esi
jle 0x479e7b
mov edi, dword [ebp + 0xc]
nop dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + edi*4]
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
cmovg ecx, eax
inc esi
cmp esi, ebx
jl 0x479e60
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
add edi, ebx
mov esi, dword [ebp - 0x10]
inc eax
mov edx, dword [ebp - 0x20]
mov dword [ebp + 0xc], eax
mov dword [ebp - 8], edi
cmp edi, dword [ebp - 0xc]
jl 0x479e40
mov edi, dword [ebp - 0x24]
xor edx, edx
test edi, edi
jle 0x479eb7
mov eax, dword [ebp - 0x14]
add eax, 0xa18
cmp esi, dword [eax - 0x100]
jg 0x479eaf
cmp ecx, dword [eax]
jle 0x479eb7
inc edx
add eax, 4
cmp edx, edi
jl 0x479ea3
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x18]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
jl 0x479e28
mov eax, dword [ebp - 0x28]
pop edi
pop esi
pop ebx
inc dword [eax + 0x28]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret