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

Disassembly:
push rsi
push rbx
test rdx, rdx
je 0x4084c0
test r8d, r8d
not ecx
je 0x408231
test dl, 3
je 0x408240
lea r9, [0x0040e200]
jmp 0x408215
test dl, 3
je 0x408240
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 0x408210
mov eax, ecx
not eax
pop rbx
pop rsi
ret
cmp r8d, 0x1f
jbe 0x408421
lea r9, [0x0040e200]
mov r11d, r8d
mov r10, rdx
nop word [rax + rax]
mov eax, dword [r10]
xor eax, ecx
mov ebx, eax
mov esi, eax
movzx ecx, al
shr ebx, 0x10
shr esi, 0x18
movzx eax, ah
mov ecx, dword [r9 + rcx*4 + 0xc00]
movzx ebx, bl
xor ecx, dword [r9 + rsi*4]
xor ecx, dword [r10 + 4]
xor ecx, dword [r9 + rax*4 + 0x800]
xor ecx, dword [r9 + rbx*4 + 0x400]
mov ebx, ecx
mov esi, ecx
movzx eax, cl
shr ebx, 0x10
shr esi, 0x18
movzx ecx, ch
mov eax, dword [r9 + rax*4 + 0xc00]
movzx ebx, bl
xor eax, dword [r9 + rsi*4]
xor eax, dword [r10 + 8]
xor eax, dword [r9 + rcx*4 + 0x800]
xor eax, dword [r9 + rbx*4 + 0x400]
mov ebx, eax
mov esi, eax
movzx ecx, al
shr ebx, 0x10
shr esi, 0x18
movzx eax, ah
mov ecx, dword [r9 + rcx*4 + 0xc00]
movzx ebx, bl
xor ecx, dword [r9 + rsi*4]
xor ecx, dword [r10 + 0xc]
xor ecx, dword [r9 + rax*4 + 0x800]
xor ecx, dword [r9 + rbx*4 + 0x400]
mov ebx, ecx
mov esi, ecx
movzx eax, cl
shr ebx, 0x10
shr esi, 0x18
movzx ecx, ch
mov eax, dword [r9 + rax*4 + 0xc00]
movzx ebx, bl
xor eax, dword [r9 + rsi*4]
xor eax, dword [r10 + 0x10]
xor eax, dword [r9 + rcx*4 + 0x800]
xor eax, dword [r9 + rbx*4 + 0x400]
mov ebx, eax
mov esi, eax
movzx ecx, al
shr ebx, 0x10
shr esi, 0x18
movzx eax, ah
mov ecx, dword [r9 + rcx*4 + 0xc00]
movzx ebx, bl
xor ecx, dword [r9 + rsi*4]
xor ecx, dword [r10 + 0x14]
xor ecx, dword [r9 + rax*4 + 0x800]
xor ecx, dword [r9 + rbx*4 + 0x400]
mov ebx, ecx
mov esi, ecx
movzx eax, cl
shr ebx, 0x10
shr esi, 0x18
movzx ecx, ch
mov eax, dword [r9 + rax*4 + 0xc00]
movzx ebx, bl
xor eax, dword [r9 + rsi*4]
add r10, 0x20
sub r11d, 0x20
xor eax, dword [r10 - 8]
xor eax, dword [r9 + rcx*4 + 0x800]
xor eax, dword [r9 + rbx*4 + 0x400]
mov ecx, eax
mov esi, eax
movzx ebx, al
shr ecx, 0x10
shr esi, 0x18
movzx eax, ah
mov ebx, dword [r9 + rbx*4 + 0xc00]
movzx ecx, cl
xor ebx, dword [r9 + rsi*4]
xor ebx, dword [r10 - 4]
xor ebx, dword [r9 + rax*4 + 0x800]
xor ebx, dword [r9 + rcx*4 + 0x400]
mov eax, ebx
mov ecx, ebx
movzx esi, bl
shr eax, 0x10
shr ecx, 0x18
movzx ebx, bh
movzx eax, al
mov ecx, dword [r9 + rcx*4]
xor ecx, dword [r9 + rsi*4 + 0xc00]
xor ecx, dword [r9 + rbx*4 + 0x800]
xor ecx, dword [r9 + rax*4 + 0x400]
cmp r11d, 0x1f
ja 0x408260
lea eax, [r8 - 0x20]
and r8d, 0x1f
shr eax, 5
add rax, 1
shl rax, 5
add rdx, rax
cmp r8d, 3
jbe 0x4084c5
lea eax, [r8 - 4]
lea r9, [0x0040e200]
shr eax, 2
lea r11, [rdx + rax*4 + 4]
nop
add rdx, 4
xor ecx, dword [rdx - 4]
mov r10d, ecx
mov eax, ecx
movzx ebx, cl
shr r10d, 0x10
shr eax, 0x18
movzx r10d, r10b
mov eax, dword [r9 + rax*4]
xor eax, dword [r9 + rbx*4 + 0xc00]
movzx ebx, ch
xor eax, dword [r9 + rbx*4 + 0x800]
mov ecx, dword [r9 + r10*4 + 0x400]
xor ecx, eax
cmp rdx, r11
jne 0x408440
and r8d, 3
test r8d, r8d
je 0x408231
lea r9, [0x0040e200]
sub r8d, 1
lea rax, [r11 + r8 + 1]
nop dword [rax]
add r11, 1
mov edx, ecx
shr ecx, 8
xor dl, byte [r11 - 1]
movzx edx, dl
xor ecx, dword [r9 + rdx*4]
cmp r11, rax
jne 0x4084a0
jmp 0x408231
xor eax, eax
pop rbx
pop rsi
ret
mov r11, rdx
jmp 0x408484