Function at 0x4087d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
test rdx, rdx
je 0x408a92
test r8d, r8d
not ecx
je 0x408811
test dl, 3
je 0x408820
lea r9, [0x0040e280]
jmp 0x4087f5
test dl, 3
je 0x408820
add rdx, 1
mov r10d, ecx
shr ecx, 8
xor r10b, byte [rdx - 1]
movzx r10d, r10b
xor ecx, dword [r9 + r10*4]
sub r8d, 1
jne 0x4087f0
mov eax, ecx
not eax
pop rbx
ret
cmp r8d, 0x1f
mov r10, rdx
jbe 0x4089f8
lea r11d, [r8 - 0x20]
lea r9, [0x0040e280]
shr r11d, 5
add r11, 1
shl r11, 5
add r11, rdx
nop word [rax + rax]
xor ecx, dword [r10]
mov eax, ecx
mov ebx, ecx
movzx edx, cl
shr eax, 0x10
shr ebx, 0x18
movzx ecx, ch
mov edx, dword [r9 + rdx*4 + 0xc00]
movzx eax, al
xor edx, dword [r9 + rbx*4]
xor edx, dword [r10 + 4]
xor edx, dword [r9 + rcx*4 + 0x800]
xor edx, dword [r9 + rax*4 + 0x400]
mov ecx, edx
mov ebx, edx
movzx eax, dl
shr ecx, 0x10
shr ebx, 0x18
movzx edx, dh
mov eax, dword [r9 + rax*4 + 0xc00]
movzx ecx, cl
xor eax, dword [r9 + rbx*4]
xor eax, dword [r10 + 8]
xor eax, dword [r9 + rdx*4 + 0x800]
xor eax, dword [r9 + rcx*4 + 0x400]
mov ecx, eax
mov ebx, eax
movzx edx, al
shr ecx, 0x10
shr ebx, 0x18
movzx eax, ah
mov edx, dword [r9 + rdx*4 + 0xc00]
movzx ecx, cl
xor edx, dword [r9 + rbx*4]
xor edx, dword [r10 + 0xc]
xor edx, dword [r9 + rax*4 + 0x800]
xor edx, dword [r9 + rcx*4 + 0x400]
mov ecx, edx
mov ebx, edx
movzx eax, dl
shr ecx, 0x10
shr ebx, 0x18
movzx edx, dh
mov eax, dword [r9 + rax*4 + 0xc00]
movzx ecx, cl
xor eax, dword [r9 + rbx*4]
xor eax, dword [r10 + 0x10]
xor eax, dword [r9 + rdx*4 + 0x800]
xor eax, dword [r9 + rcx*4 + 0x400]
mov ecx, eax
mov ebx, eax
movzx edx, al
shr ecx, 0x10
shr ebx, 0x18
movzx eax, ah
mov edx, dword [r9 + rdx*4 + 0xc00]
movzx ecx, cl
xor edx, dword [r9 + rbx*4]
xor edx, dword [r10 + 0x14]
xor edx, dword [r9 + rax*4 + 0x800]
xor edx, dword [r9 + rcx*4 + 0x400]
mov ecx, edx
mov ebx, edx
movzx eax, dl
shr ecx, 0x10
movzx edx, dh
shr ebx, 0x18
mov eax, dword [r9 + rax*4 + 0xc00]
movzx ecx, cl
xor eax, dword [r9 + rbx*4]
add r10, 0x20
xor eax, dword [r10 - 8]
xor eax, dword [r9 + rdx*4 + 0x800]
xor eax, dword [r9 + rcx*4 + 0x400]
mov ecx, eax
mov ebx, eax
movzx edx, al
shr ecx, 0x10
shr ebx, 0x18
movzx eax, ah
mov edx, dword [r9 + rdx*4 + 0xc00]
movzx ecx, cl
xor edx, dword [r9 + rbx*4]
xor edx, dword [r10 - 4]
xor edx, dword [r9 + rax*4 + 0x800]
xor edx, dword [r9 + rcx*4 + 0x400]
mov eax, edx
mov ebx, edx
movzx ecx, dl
shr eax, 0x10
shr ebx, 0x18
movzx edx, dh
mov ecx, dword [r9 + rcx*4 + 0xc00]
movzx eax, al
xor ecx, dword [r9 + rbx*4]
xor ecx, dword [r9 + rdx*4 + 0x800]
xor ecx, dword [r9 + rax*4 + 0x400]
cmp r10, r11
jne 0x408850
and r8d, 0x1f
cmp r8d, 3
jbe 0x408a56
lea eax, [r8 - 4]
lea r9, [0x0040e280]
shr eax, 2
lea rbx, [r10 + rax*4 + 4]
add r10, 4
xor ecx, dword [r10 - 4]
mov r11d, ecx
mov edx, ecx
movzx eax, cl
shr r11d, 0x10
shr edx, 0x18
movzx ecx, ch
mov eax, dword [r9 + rax*4 + 0xc00]
movzx r11d, r11b
xor eax, dword [r9 + rdx*4]
xor eax, dword [r9 + rcx*4 + 0x800]
mov ecx, dword [r9 + r11*4 + 0x400]
xor ecx, eax
cmp r10, rbx
jne 0x408a11
and r8d, 3
test r8d, r8d
je 0x408811
lea eax, [r8 - 1]
lea rax, [r10 + rax + 1]
lea r9, [0x0040e280]
nop
add r10, 1
mov edx, ecx
shr ecx, 8
xor dl, byte [r10 - 1]
movzx edx, dl
xor ecx, dword [r9 + rdx*4]
cmp r10, rax
jne 0x408a70
mov eax, ecx
not eax
jmp 0x408815
xor eax, eax
pop rbx
ret