Function at 0x59ab30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x24]
sub esp, 0x20
test ecx, ecx
je 0x59ae0b
mov eax, dword [ebp + 0x20]
add eax, 0xfffffffc
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push edi
nop
dec ecx
xor esi, esi
cmp byte [0x708fa1], 0
mov dword [ebp + 0x24], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 4], ecx
je 0x59ac4d
lea edx, [ecx - 0x20]
test edx, edx
js 0x59ac02
mov ecx, dword [ebp + 0x18]
add edx, 0x20
mov esi, dword [ebp + 0x10]
mov edi, ecx
sub ecx, dword [ebp + 8]
add eax, 0x10
sub esi, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
sub ecx, edi
shr edx, 5
mov esi, edx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
shl esi, 5
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x10]
lea eax, [eax + 0x20]
lea edi, [edi + 0x20]
movdqu xmm2, xmmword [ecx + eax - 0x20]
movdqu xmm0, xmmword [esi + edi - 0x20]
mov esi, dword [ebp - 0xc]
movdqa xmm3, xmm2
movdqa xmm1, xmm0
movdqu xmm4, xmmword [eax - 0x30]
movdqu xmm5, xmmword [eax - 0x20]
pcmpgtb xmm1, xmm4
psubsb xmm4, xmm0
pcmpgtb xmm3, xmm5
psubsb xmm5, xmm2
pxor xmm4, xmm1
pxor xmm5, xmm3
psubsb xmm4, xmm1
psubsb xmm5, xmm3
movdqu xmmword [edi - 0x20], xmm4
movdqu xmmword [esi + eax - 0x20], xmm5
dec edx
jne 0x59aba4
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff8
cmp esi, ecx
jg 0x59ac4d
mov edi, dword [ebp + 0x10]
sub ecx, esi
mov edx, dword [ebp + 8]
sub edx, edi
shr ecx, 3
lea eax, [esi + edi]
mov edi, dword [ebp + 0x18]
sub edi, dword [ebp + 0x10]
inc ecx
lea esi, [esi + ecx*8]
movq xmm0, qword [eax]
lea eax, [eax + 8]
movq xmm2, qword [edx + eax - 8]
movdqa xmm1, xmm0
pcmpgtb xmm1, xmm2
psubsb xmm2, xmm0
pxor xmm2, xmm1
psubsb xmm2, xmm1
movq qword [edi + eax - 8], xmm2
dec ecx
jne 0x59ac23
cmp esi, dword [ebp - 0x18]
jg 0x59ad8b
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edx
lea eax, [edx + 1]
add eax, esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x14], eax
lea edi, [esi + eax]
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x1c], eax
lea ecx, [ecx]
mov eax, dword [ebp - 0xc]
movsx ecx, byte [edi]
movsx eax, byte [edi + eax]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x10], eax
lea ecx, [eax + 0x80]
cmp ecx, 0xff
jbe 0x59acb7
mov ecx, dword [ebp - 0x10]
mov eax, 0xffffff80
test ecx, ecx
mov ecx, 0x7f
cmovg eax, ecx
mov byte [ebp - 0x10], al
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
movsx eax, byte [eax + ecx]
movsx ecx, byte [edi + 1]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x20], eax
lea ecx, [eax + 0x80]
cmp ecx, 0xff
jbe 0x59acee
cmp dword [ebp - 0x20], 0
mov eax, 0xffffff80
mov ecx, 0x7f
cmovg eax, ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov byte [edi + edx], cl
mov ecx, dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [ebp + 8]
movsx ecx, byte [edi + 2]
movsx eax, byte [eax + esi + 2]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x10], eax
lea ecx, [eax + 0x80]
cmp ecx, 0xff
jbe 0x59ad35
mov ecx, dword [ebp - 0x10]
mov eax, 0xffffff80
test ecx, ecx
mov ecx, 0x7f
cmovg eax, ecx
mov byte [ebp - 0x10], al
mov eax, dword [ebp + 8]
movsx ecx, byte [edi + 3]
movsx eax, byte [eax + esi + 3]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x20], eax
lea ecx, [eax + 0x80]
cmp ecx, 0xff
jbe 0x59ad6a
cmp dword [ebp - 0x20], 0
mov eax, 0xffffff80
mov ecx, 0x7f
cmovg eax, ecx
mov edx, dword [ebp - 8]
add esi, 4
mov ecx, dword [ebp - 0x10]
add edi, 4
mov byte [edx + 1], cl
mov byte [edx + 2], al
add edx, 4
mov dword [ebp - 8], edx
cmp esi, dword [ebp - 0x18]
jle 0x59ac80
mov ecx, dword [ebp - 4]
cmp esi, ecx
jge 0x59ade9
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
sub edx, eax
mov dword [ebp - 0x1c], edx
lea edi, [esi + eax]
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
sub ecx, esi
mov dword [ebp - 0x20], eax
mov esi, eax
mov dword [ebp - 4], ecx
movsx eax, byte [edx + edi]
movsx ecx, byte [edi]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
lea ecx, [eax + 0x80]
cmp ecx, 0xff
jbe 0x59addd
test eax, eax
mov ecx, 0xffffff80
mov eax, 0x7f
cmovg ecx, eax
mov eax, ecx
mov edx, dword [ebp - 0x1c]
mov byte [esi + edi], al
inc edi
dec dword [ebp - 4]
jne 0x59adb0
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 0x18], ecx
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x24]
mov dword [ebp + 8], eax
test ecx, ecx
jne 0x59ab50
pop edi
pop esi
mov esp, ebp
pop ebp
ret