Function at 0x588b20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
mov ebx, dword [esi + 0x20]
mov edi, dword [esi + 0xc]
mov dword [ebp - 8], eax
mov eax, ecx
shr eax, 2
add eax, ecx
mov dword [ebp - 0x24], ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov eax, edx
shr eax, 2
add eax, edx
mov dword [ebp - 0x30], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, ebx
shr eax, 2
add eax, ebx
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], ebx
mov ebx, dword [esi]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], ecx
cmp edx, 0x10
jb 0x588d67
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x1c]
add eax, 8
shr edx, 4
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x10], edx
nop word [eax + eax]
add eax, 0xfffffff8
push eax
call fcn.00588af0
xor edi, edi
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
adc edi, edi
add eax, 0xfffffffc
push eax
call fcn.00588af0
push dword [ebp - 0x10]
xor ebx, ebx
add eax, edi
adc ebx, ebx
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
adc ebx, 0
call fcn.00588af0
xor edi, edi
add eax, ebx
adc edi, edi
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
adc edi, 0
add eax, 4
push eax
call fcn.00588af0
mov ebx, eax
add esp, 0x10
xor eax, eax
add ebx, edi
adc eax, eax
add ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
adc eax, 0
add eax, dword [ebp + 0x14]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
mul esi
mov edi, eax
mov ecx, edx
mov eax, dword [ebp - 0x14]
mul dword [ebp - 0x20]
add edi, eax
mov eax, ebx
adc ecx, edx
mul dword [ebp - 0x28]
add edi, eax
mov eax, dword [ebp - 0x18]
adc ecx, edx
mul dword [ebp - 8]
add edi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], edi
adc ecx, edx
imul eax, dword [ebp - 0x28]
xor edi, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mul esi
add dword [ebp - 0xc], eax
mov eax, ebx
mov ebx, dword [ebp - 0xc]
adc edi, edx
mul dword [ebp - 0x20]
add ebx, eax
mov eax, dword [ebp - 0x1c]
adc edi, edx
mul dword [ebp - 8]
add ebx, eax
mov eax, dword [ebp - 0x18]
adc edi, edx
mul dword [ebp - 0x24]
add ebx, eax
adc edi, edx
add ebx, ecx
mov ecx, dword [ebp - 4]
adc edi, 0
mov dword [ebp - 0xc], ebx
imul ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
mul esi
add ecx, eax
mov eax, dword [ebp - 0x14]
adc ebx, edx
mul dword [ebp - 8]
add ecx, eax
mov eax, dword [ebp - 0x18]
adc ebx, edx
mul dword [ebp - 0x30]
add ecx, eax
mov eax, dword [ebp - 0x1c]
adc ebx, edx
mul dword [ebp - 0x24]
add ecx, eax
mov eax, dword [ebp - 0x2c]
adc ebx, edx
add ecx, edi
mov edi, dword [ebp - 4]
adc ebx, 0
mov dword [ebp - 0x3c], ecx
mul dword [ebp - 8]
imul edi, esi
xor ecx, ecx
add edi, eax
mov eax, dword [ebp - 0x18]
adc ecx, edx
mul dword [ebp - 0x34]
add edi, eax
mov eax, dword [ebp - 0x1c]
adc ecx, edx
mul dword [ebp - 0x30]
add edi, eax
mov eax, dword [ebp - 0x14]
adc ecx, edx
mul dword [ebp - 0x24]
add edi, eax
adc ecx, edx
mov edx, dword [ebp - 4]
add edi, ebx
mov ebx, dword [ebp - 0x38]
adc ecx, 0
imul edx, dword [ebp - 8]
add edx, ecx
mov ecx, edx
mov eax, edx
and eax, 0xfffffffc
shr ecx, 2
add ecx, eax
add ebx, ecx
mov eax, ebx
sub eax, ecx
xor eax, ecx
xor ecx, ebx
or eax, ecx
mov ecx, dword [ebp - 0xc]
xor eax, ebx
shr eax, 0x1f
add ecx, eax
mov dword [ebp - 0xc], ecx
sub ecx, eax
xor ecx, eax
xor eax, dword [ebp - 0xc]
or ecx, eax
mov eax, dword [ebp - 0x3c]
xor ecx, dword [ebp - 0xc]
shr ecx, 0x1f
add eax, ecx
mov dword [ebp - 0x14], eax
sub eax, ecx
xor eax, ecx
xor ecx, dword [ebp - 0x14]
or eax, ecx
xor eax, dword [ebp - 0x14]
shr eax, 0x1f
add edi, eax
mov ecx, edi
mov dword [ebp - 0x2c], edi
sub ecx, eax
xor ecx, eax
xor eax, edi
and edx, 3
or ecx, eax
mov eax, dword [ebp - 0x10]
xor ecx, edi
add eax, 0x10
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0x10], eax
sub dword [ebp + 0x10], 1
mov dword [ebp - 4], ecx
jne 0x588ba0
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc], edi
pop edi
mov dword [esi], ebx
mov dword [esi + 8], eax
mov dword [esi + 0x10], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret