Function at 0x487a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xcc
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xb4], ecx
mov eax, dword [esi + 4]
lea ecx, [eax + 4]
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.005941d0
sub esp, 8
lea eax, [ebp - 0x48]
mov dword [esp], 0x50
mov ecx, eax
mov dword [ebp - 0xb8], eax
call fcn.0058c6f0
mov eax, dword [ebp - 0x48]
mov ecx, dword [esi + 4]
sub esp, 4
mov dword [ebp - 0x9c], eax
mov eax, dword [ecx]
call dword [eax]
mov dword [esp], eax
lea edx, [ebp - 0x30]
mov ecx, edx
mov dword [ebp - 0xbc], edx
call fcn.0058c6f0
mov dword [ebp - 0xac], 1
sub esp, 4
mov dword [ebp - 0xb0], 0x50
lea esi, [esi]
lea edi, [edi]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [ebp - 0xb0]
mov ecx, dword [esi + 4]
mov edi, dword [ebp + 0x10]
cmp eax, edx
cmova eax, edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x98], eax
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [eax + 0xc]
mov edi, dword [esi + 4]
sub esp, 8
mov ebx, 0xfffffff8
mov ecx, ebx
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0x60]
and ecx, 0x18
shr eax, cl
mov ecx, edi
mov byte [ebp - 0x60], al
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], edx
call dword [eax + 0xc]
sub ebx, 8
sub esp, 8
cmp ebx, 0xffffffd8
jne 0x487ad8
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0x30]
mov eax, dword [ecx]
mov dword [esp], edx
call dword [eax + 0x10]
mov edi, dword [ebp - 0x98]
mov eax, dword [ebp - 0x30]
sub esp, 4
mov ebx, dword [ebp - 0x9c]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0059ae50
lea eax, [edi - 8]
and edi, 7
mov dword [ebp - 0x90], 0x1fff
shr eax, 3
mov dword [ebp - 0xa8], edi
lea eax, [eax*8 + 8]
add ebx, eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], ebx
lea esi, [esi]
lea edi, [edi]
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x30]
mov dword [esp], edx
call dword [eax + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0x30]
sub esp, 8
mov eax, dword [ecx]
mov dword [esp], edx
call dword [eax + 0x10]
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x30]
sub esp, 4
cmp dword [ebp - 0x98], 7
mov ebx, dword [ebp - 0x90]
lea edx, [ecx + eax]
mov eax, dword [ebp - 0x9c]
jbe 0x487d25
nop
mov edi, dword [ecx]
add ecx, 8
xor dword [eax], edi
mov edi, dword [ecx - 4]
xor dword [eax + 4], edi
add eax, 8
cmp ecx, edx
jne 0x487bc0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x487c7a
lea edi, [eax + 4]
cmp edx, edi
lea edi, [edx + 4]
setae byte [ebp - 0x91]
cmp eax, edi
movzx ecx, byte [ebp - 0x91]
setae bl
mov edi, ebx
mov ebx, ecx
mov ecx, dword [ebp - 0x8c]
or edi, ebx
lea ebx, [ecx - 1]
mov ecx, edi
cmp ebx, 2
seta byte [ebp - 0x91]
movzx ebx, byte [ebp - 0x91]
test bl, cl
je 0x487ce0
mov edi, edx
or edi, eax
and edi, 3
jne 0x487ce0
mov edi, dword [edx]
xor dword [eax], edi
mov edi, dword [ebp - 0x8c]
cmp edi, 4
je 0x487c7a
movzx ebx, byte [edx + 4]
xor byte [eax + 4], bl
cmp edi, 5
je 0x487c7a
movzx ebx, byte [edx + 5]
xor byte [eax + 5], bl
cmp edi, 6
je 0x487c7a
movzx edx, byte [edx + 6]
xor byte [eax + 6], dl
sub dword [ebp - 0x90], 1
jne 0x487b70
mov edi, dword [ebp - 0x98]
add dword [ebp - 0xac], 1
add dword [ebp - 0x9c], edi
sub dword [ebp - 0xb0], edi
jne 0x487aa0
mov esi, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb4]
mov dword [esp], esi
call fcn.0058b0d0
mov ecx, dword [ebp - 0xbc]
sub esp, 4
call fcn.0058bcf0
mov ecx, esi
call fcn.0058bcf0
mov eax, dword [ebp - 0xb4]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov edi, dword [ebp - 0x8c]
movzx ebx, byte [edx]
xor byte [eax], bl
cmp edi, 1
je 0x487c7a
movzx ebx, byte [edx + 1]
xor byte [eax + 1], bl
cmp edi, 2
je 0x487c7a
movzx ebx, byte [edx + 2]
xor byte [eax + 2], bl
cmp edi, 3
je 0x487c7a
movzx ebx, byte [edx + 3]
xor byte [eax + 3], bl
cmp edi, 4
jne 0x487c5b
jmp 0x487c7a
mov edx, ecx
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x8c], ecx
jmp 0x487bec