Function at 0x6597b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov ecx, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx + 0x18]
mov eax, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x1c]
mov esi, dword [ecx + 0x20]
mov dword [ebp - 0xc], eax
mov eax, edx
shr eax, 2
add eax, edx
mov dword [ebp - 0x24], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
mov eax, ebx
shr eax, 2
add eax, ebx
mov dword [ebp - 0x14], edx
mov edx, dword [ecx + 8]
mov dword [ebp - 0x20], eax
mov eax, esi
shr eax, 2
add eax, esi
mov dword [ebp - 0x18], edx
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ecx + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], ebx
cmp edx, 0x10
jb 0x659ab1
mov ecx, dword [ebp - 0x10]
push edi
mov edi, dword [ebp + 0xc]
add edi, 6
shr edx, 4
mov dword [ebp - 4], edi
mov dword [ebp + 0x10], edx
nop dword [eax]
movzx eax, byte [edi - 3]
cdq
mov ebx, eax
mov esi, edx
movzx eax, byte [edi - 4]
shld esi, ebx, 8
cdq
shl ebx, 8
or esi, edx
or ebx, eax
movzx eax, byte [edi - 5]
shld esi, ebx, 8
cdq
shl ebx, 8
or esi, edx
or ebx, eax
movzx eax, byte [edi - 6]
shld esi, ebx, 8
cdq
shl ebx, 8
or esi, edx
or ebx, eax
movzx eax, byte [edi + 1]
add ebx, dword [ebp - 0x1c]
cdq
adc esi, 0
mov dword [ebp - 0x10], ebx
mov ebx, eax
mov edi, edx
mov eax, dword [ebp - 4]
shld edi, ebx, 8
shl ebx, 8
movzx eax, byte [eax]
cdq
or ebx, eax
or edi, edx
mov eax, dword [ebp - 4]
shld edi, ebx, 8
shl ebx, 8
movzx eax, byte [eax - 1]
cdq
or ebx, eax
or edi, edx
mov eax, dword [ebp - 4]
shld edi, ebx, 8
shl ebx, 8
movzx eax, byte [eax - 2]
cdq
or ebx, eax
or edi, edx
mov eax, dword [ebp - 4]
add ebx, esi
adc edi, 0
add dword [ebp - 0x14], ebx
movzx eax, byte [eax + 5]
adc edi, 0
cdq
mov esi, eax
mov ebx, edx
mov eax, dword [ebp - 4]
shld ebx, esi, 8
shl esi, 8
movzx eax, byte [eax + 4]
cdq
or esi, eax
or ebx, edx
mov eax, dword [ebp - 4]
shld ebx, esi, 8
shl esi, 8
movzx eax, byte [eax + 3]
cdq
or esi, eax
or ebx, edx
mov eax, dword [ebp - 4]
shld ebx, esi, 8
shl esi, 8
movzx eax, byte [eax + 2]
cdq
or esi, eax
or ebx, edx
add esi, edi
adc ebx, 0
mov eax, dword [ebp - 4]
add dword [ebp - 0x18], esi
adc ebx, 0
movzx eax, byte [eax + 9]
cdq
mov edi, eax
mov esi, edx
shld esi, edi, 8
mov eax, dword [ebp - 4]
shl edi, 8
movzx eax, byte [eax + 8]
cdq
or edi, eax
or esi, edx
mov eax, dword [ebp - 4]
shld esi, edi, 8
shl edi, 8
movzx eax, byte [eax + 7]
cdq
or edi, eax
or esi, edx
mov eax, dword [ebp - 4]
shld esi, edi, 8
shl edi, 8
movzx eax, byte [eax + 6]
cdq
or edi, eax
or esi, edx
mov eax, dword [ebp - 0x14]
add edi, ebx
mov ebx, dword [ebp - 8]
adc esi, 0
add edi, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edi
adc esi, 0
add esi, dword [ebp + 0x14]
mul ecx
add ebx, esi
mov edi, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0x18]
mov esi, edx
mul dword [ebp - 0x20]
add edi, eax
mov eax, dword [ebp - 0x1c]
adc esi, edx
mul dword [ebp - 0x2c]
add edi, eax
mov eax, dword [ebp - 0x10]
adc esi, edx
mul dword [ebp - 0xc]
add edi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], edi
adc esi, edx
imul ebx, dword [ebp - 0x2c]
mul ecx
xor edi, edi
add ebx, eax
mov eax, dword [ebp - 0x1c]
adc edi, edx
mul dword [ebp - 0x20]
add ebx, eax
mov eax, dword [ebp - 0x10]
adc edi, edx
mul dword [ebp - 0x24]
add ebx, eax
mov eax, dword [ebp - 0x14]
adc edi, edx
mul dword [ebp - 0xc]
add ebx, eax
mov eax, dword [ebp - 0x1c]
adc edi, edx
add ebx, esi
mov esi, dword [ebp - 8]
adc edi, 0
mov dword [ebp - 0x38], ebx
imul esi, dword [ebp - 0x20]
xor ebx, ebx
mul ecx
add esi, eax
mov eax, dword [ebp - 0x10]
adc ebx, edx
mul dword [ebp - 0x30]
add esi, eax
mov eax, dword [ebp - 0x14]
adc ebx, edx
mul dword [ebp - 0x24]
add esi, eax
mov eax, dword [ebp - 0x18]
adc ebx, edx
mul dword [ebp - 0xc]
add esi, eax
mov eax, dword [ebp - 0x10]
adc ebx, edx
add esi, edi
mov edi, dword [ebp - 8]
adc ebx, 0
mov dword [ebp - 0x3c], esi
mul dword [ebp - 0x34]
imul edi, ecx
xor esi, esi
add edi, eax
mov eax, dword [ebp - 0x14]
adc esi, edx
mul dword [ebp - 0x30]
add edi, eax
mov eax, dword [ebp - 0x18]
adc esi, edx
mul dword [ebp - 0x24]
add edi, eax
mov eax, dword [ebp - 0x1c]
adc esi, edx
mul dword [ebp - 0xc]
add edi, eax
mov eax, dword [ebp - 8]
adc esi, edx
add edi, ebx
adc esi, 0
imul eax, dword [ebp - 0xc]
add esi, eax
mov edx, esi
mov eax, esi
and eax, 0xfffffffc
shr edx, 2
add edx, eax
and esi, 3
mov eax, dword [ebp - 0x28]
lea ebx, [eax + edx]
xor eax, edx
xor edx, ebx
mov dword [ebp - 0x1c], ebx
or eax, edx
mov edx, dword [ebp - 0x38]
xor eax, ebx
mov ebx, edi
mov edi, dword [ebp - 4]
shr eax, 0x1f
add edi, 0x10
add eax, edx
mov dword [ebp - 4], edi
or edx, eax
mov dword [ebp - 0x14], eax
xor edx, eax
mov eax, dword [ebp - 0x3c]
shr edx, 0x1f
add edx, eax
or eax, edx
mov dword [ebp - 0x18], edx
xor eax, edx
shr eax, 0x1f
add eax, ebx
or ebx, eax
mov dword [ebp - 0x28], eax
xor ebx, eax
shr ebx, 0x1f
add ebx, esi
sub dword [ebp + 0x10], 1
mov dword [ebp - 8], ebx
jne 0x659830
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
pop edi
jmp 0x659ab4
mov edx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x28]
pop esi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
pop ebx
mov esp, ebp
pop ebp
ret