Function at 0x1019bb20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov ecx, dword [ebp + 0x14]
xorps xmm0, xmm0
push edi
mov edi, 0x20
movlpd qword [ebp - 0x5c], xmm0
mov eax, edi
mov dword [ebp - 0x10], 0
cmp ecx, eax
cmovl eax, ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
cmp eax, edi
cmovl edi, eax
mov dword [ebp - 0x44], edi
test eax, eax
jle 0x1019bd23
mov edx, dword [ebp + 0x1c]
shl edx, 5
mov dword [ebp - 0x64], edx
mov edx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0x4c], eax
shl edx, 5
push esi
mov dword [ebp - 0x60], edx
mov esi, eax
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0xc], edx
test ecx, ecx
jle 0x1019bcf2
mov ebx, dword [ebp - 0x10]
sar ebx, 5
imul ebx, dword [ebp + 0x28]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x58], ebx
mov edi, dword [ebp + 0x24]
mov eax, edx
sar eax, 5
add eax, ebx
cmp byte [eax + edi], 0
mov edi, dword [ebp - 0x44]
je 0x1019bcd7
cmp dword [ebp - 0x50], ecx
mov ebx, ecx
mov ecx, esi
xorps xmm0, xmm0
cmovl ebx, dword [ebp - 0x50]
cmp edi, esi
movlpd qword [ebp - 0x2c], xmm0
cmovl ecx, edi
mov dword [ebp - 0x30], ebx
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x40], ecx
test ecx, ecx
jle 0x1019bcc5
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
add eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
add eax, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x14]
add eax, edx
mov edx, dword [ebp + 8]
lea edx, [edx + eax*2]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], edx
lea eax, [esi + eax*2]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
nop
test ebx, ebx
jle 0x1019bca6
mov ecx, dword [ebp + 0x20]
mov esi, 1
rol esi, cl
mov ebx, eax
mov ecx, dword [ebp - 0x30]
mov eax, edx
ror esi, 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
movzx eax, word [eax]
lea ebx, [ebx + 2]
movzx ecx, word [ebx - 2]
sub ecx, eax
mov eax, ecx
mov ecx, dword [ebp + 0x20]
cdq
xor eax, edx
sub eax, edx
lea edx, [esi - 1]
mov edi, eax
lea ecx, [ecx - 8]
and edx, eax
sar edi, cl
mov eax, esi
sub eax, edx
imul eax, dword [edi*4 + 0x1045373c]
mov ecx, dword [edi*4 + 0x10453740]
mov edi, dword [ebp - 0x20]
imul ecx, edx
add eax, ecx
cdq
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
adc edi, edx
add eax, 2
sub dword [ebp - 0x28], 1
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], eax
jne 0x1019bc42
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
add eax, dword [ebp - 0x54]
add edx, esi
sub ecx, 1
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
jne 0x1019bc20
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
jmp 0x1019bcc8
mov esi, dword [ebp - 0x2c]
add dword [ebp - 4], esi
mov ecx, dword [ebp - 0x48]
adc dword [ebp - 0x1c], edi
mov esi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x58]
add edx, 0x20
sub ecx, 0x20
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x48], ecx
cmp edx, dword [ebp + 0x14]
jl 0x1019bba5
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
sub esi, 0x20
mov eax, dword [ebp - 0x60]
add edx, 0x20
add dword [ebp - 0x14], eax
add ebx, dword [ebp - 0x64]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x18], ebx
cmp edx, dword [ebp + 0x18]
jl 0x1019bb88
mov edx, dword [ebp - 0x1c]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
pop edi
mov esp, ebp
pop ebp
ret