Function at 0x54aba0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [edi + 0x80c]
mov ebp, dword [edi + 0x804]
inc eax
mov dword [edi + 0x80c], eax
mov esi, eax
mov eax, dword [edi + 0x808]
lea ecx, [edi + 0x404]
add eax, esi
lea ebx, [ecx + 0x200]
cmp ecx, ebx
mov dword [esp + 0x14], eax
lea edx, [edi + 4]
mov eax, ecx
mov dword [esp + 0x18], ebx
jae 0x54ad11
lea esp, [esp]
mov esi, dword [eax]
mov edi, ebp
shl edi, 0xd
xor edi, ebp
add edi, dword [ebx]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], esi
and esi, 0x3fc
mov esi, dword [esi + ecx]
add esi, ebp
add esi, edi
mov dword [eax], esi
mov ebp, dword [esp + 0x10]
shr esi, 8
and esi, 0x3fc
mov esi, dword [esi + ecx]
add esi, ebp
mov dword [edx], esi
mov ebp, dword [eax + 4]
mov dword [esp + 0x10], ebp
mov ebp, edi
add eax, 4
shr ebp, 6
xor ebp, edi
mov edi, dword [ebx + 4]
add ebp, edi
mov edi, dword [esp + 0x10]
and edi, 0x3fc
mov edi, dword [edi + ecx]
add edi, esi
mov esi, dword [esp + 0x10]
add edi, ebp
mov dword [eax], edi
add ebx, 4
shr edi, 8
and edi, 0x3fc
mov edi, dword [edi + ecx]
add edi, esi
mov dword [edx + 4], edi
mov esi, dword [eax + 4]
mov dword [esp + 0x14], edi
lea edi, [ebp*4]
xor edi, ebp
mov ebp, dword [ebx + 4]
add edi, ebp
mov ebp, dword [esp + 0x14]
add edx, 4
mov dword [esp + 0x10], esi
add eax, 4
and esi, 0x3fc
mov esi, dword [esi + ecx]
add esi, ebp
mov ebp, dword [esp + 0x10]
add ebx, 4
add esi, edi
mov dword [eax], esi
shr esi, 8
and esi, 0x3fc
mov esi, dword [esi + ecx]
add esi, ebp
add edx, 4
mov dword [edx], esi
mov ebp, dword [eax + 4]
add eax, 4
mov dword [esp + 0x10], ebp
mov ebp, edi
shr ebp, 0x10
xor ebp, edi
mov edi, dword [ebx + 4]
add ebx, 4
add ebp, edi
mov edi, dword [esp + 0x10]
and edi, 0x3fc
mov edi, dword [edi + ecx]
add edi, esi
add edi, ebp
add edx, 4
add ebx, 4
mov dword [eax], edi
add eax, 4
shr edi, 8
and edi, 0x3fc
mov esi, dword [edi + ecx]
add esi, dword [esp + 0x10]
mov dword [edx], esi
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x18]
add edx, 4
cmp eax, esi
jb 0x54abf0
mov edi, dword [esp + 0x20]
cmp ecx, dword [esp + 0x18]
mov esi, ecx
jae 0x54ae59
lea ecx, [ecx]
mov edi, dword [eax]
mov ebx, ebp
shl ebx, 0xd
xor ebx, ebp
add ebx, dword [esi]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], edi
and edi, 0x3fc
mov edi, dword [edi + ecx]
add edi, ebp
add edi, ebx
mov dword [eax], edi
mov ebp, dword [esp + 0x10]
shr edi, 8
and edi, 0x3fc
mov edi, dword [edi + ecx]
add edi, ebp
mov dword [edx], edi
mov ebp, dword [eax + 4]
mov dword [esp + 0x10], ebp
mov ebp, ebx
add eax, 4
shr ebp, 6
xor ebp, ebx
mov ebx, dword [esi + 4]
add ebp, ebx
mov ebx, dword [esp + 0x10]
and ebx, 0x3fc
mov ebx, dword [ebx + ecx]
add ebx, edi
mov edi, dword [esp + 0x10]
add ebx, ebp
mov dword [eax], ebx
add esi, 4
shr ebx, 8
and ebx, 0x3fc
mov ebx, dword [ebx + ecx]
add ebx, edi
mov dword [edx + 4], ebx
mov edi, dword [eax + 4]
mov dword [esp + 0x14], ebx
lea ebx, [ebp*4]
xor ebx, ebp
mov ebp, dword [esi + 4]
add ebx, ebp
mov ebp, dword [esp + 0x14]
add edx, 4
mov dword [esp + 0x10], edi
add eax, 4
and edi, 0x3fc
mov edi, dword [edi + ecx]
add edi, ebp
mov ebp, dword [esp + 0x10]
add esi, 4
add edi, ebx
mov dword [eax], edi
shr edi, 8
and edi, 0x3fc
mov edi, dword [edi + ecx]
add edi, ebp
add edx, 4
mov dword [edx], edi
mov ebp, dword [eax + 4]
add eax, 4
mov dword [esp + 0x10], ebp
mov ebp, ebx
shr ebp, 0x10
xor ebp, ebx
mov ebx, dword [esi + 4]
add esi, 4
add ebp, ebx
mov ebx, dword [esp + 0x10]
and ebx, 0x3fc
mov ebx, dword [ebx + ecx]
add ebx, edi
add ebx, ebp
add edx, 4
add esi, 4
mov dword [eax], ebx
add eax, 4
shr ebx, 8
and ebx, 0x3fc
mov edi, dword [ebx + ecx]
add edi, dword [esp + 0x10]
mov dword [edx], edi
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x18]
add edx, 4
cmp esi, edi
jb 0x54ad20
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + 0x804], ebp
pop ebp
mov dword [eax + 0x808], ecx
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x14]
mov dword [edi + 0x804], ebp
mov dword [edi + 0x808], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret