Function at 0x588aa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov dl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x15], dl
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
push edi
test dl, 0x40
jne 0x588af7
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
mov dl, byte [ebp - 0x15]
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, dl
xor ecx, ecx
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov dword [ebp - 0x3c], edx
cmp edx, 0xf
jae 0x588b23
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x588b10
movzx eax, byte [esi + 0xf]
mov edi, dword [ebp + 0x14]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edi
je 0x588b48
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xf]
or eax, 8
shr eax, 3
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x588b7f
ja 0x588b69
cmp dword [esi + 0x20], 0
jbe 0x588b7f
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
mov ecx, edi
shr ecx, 4
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x588bc4
lea eax, [esi + 0x10]
push eax
push esi
push dword [ebp - 0x28]
push ecx
push dword [ebp - 0x1c]
push ebx
call dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
add esp, 0x18
shl eax, 4
add dword [ebp - 0x1c], eax
add ebx, eax
sub edi, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp + 0x14], edi
je 0x588cd7
shr eax, 4
push eax
push esi
call fcn.00588e40
add esp, 8
test edi, edi
je 0x588cd7
xor ecx, ecx
test edi, edi
je 0x588bde
mov al, byte [ebx + ecx]
xor byte [esi + ecx + 0x10], al
inc ecx
cmp ecx, edi
jb 0x588bd2
push dword [ebp - 0x28]
lea eax, [esi + 0x10]
push eax
push eax
call dword [ebp - 0x2c]
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x2c]
add esp, 0x18
xor edx, edx
test edi, edi
je 0x588cd7
mov ecx, dword [ebp - 0x1c]
cmp edi, 0x20
jb 0x588cb2
lea eax, [ebp + edi - 0x15]
cmp ecx, eax
ja 0x588c29
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ecx - 1]
add eax, edi
cmp eax, dword [ebp - 0x24]
jae 0x588cb2
lea eax, [ebx - 1]
add eax, edi
cmp ecx, eax
ja 0x588c3b
lea eax, [ecx - 1]
add eax, edi
cmp eax, ebx
jae 0x588cb2
mov esi, ecx
mov dword [ebp - 0x20], edi
sub esi, ebx
mov eax, edi
mov dword [ebp - 0x24], esi
and eax, 0x1f
sub dword [ebp - 0x20], eax
lea esi, [ebp - 0x14]
sub esi, ebx
mov eax, ebx
mov dword [ebp - 0x40], esi
lea esi, [ebp - 4]
mov edi, dword [ebp - 0x40]
sub esi, ebx
lea ebx, [ecx + 0x10]
mov dword [ebp - 0x44], esi
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ebx
mov ebx, esi
lea ecx, [ecx]
movdqu xmm0, xmmword [eax]
mov esi, dword [ebp - 0x38]
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [ecx + eax - 0x20], xmm1
movdqu xmm0, xmmword [eax - 0x10]
movdqu xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [esi + edx], xmm1
mov esi, dword [ebp - 0x30]
add edx, 0x20
cmp edx, dword [ebp - 0x20]
jb 0x588c70
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
cmp edx, edi
jae 0x588cd7
lea eax, [ebp - 0x14]
sub ebx, eax
sub ecx, eax
mov dword [ebp - 0x1c], ecx
mov esi, ecx
lea ecx, [ebp - 0x14]
add ecx, edx
inc edx
mov al, byte [ebx + ecx]
xor al, byte [ecx]
mov byte [esi + ecx], al
cmp edx, edi
jb 0x588cc2
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jae 0x588cf9
mov ecx, 0x10
lea edi, [edx + esi]
sub ecx, edx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc]
xor dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
xor dword [esi + 0x1c], eax
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi], al
xor ecx, ebp
pop esi
xor eax, eax
pop ebx
call fcn.004a16e5
mov esp, ebp
pop ebp
ret