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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r15, r8
test rdx, rdx
je 0x1400220e0
mov r14, rdx
mov ebx, ecx
cmp r15, 0x40
jb 0x1400220f5
mov eax, dword [0x140128b34]
test eax, eax
je 0x1400220f5
mov rsi, r15
and rsi, 0xfffffffffffffff0
not ebx
mov rcx, r14
mov rdx, rsi
mov r8d, ebx
call fcn.14000c090
mov ebx, eax
sub r15, rsi
je 0x14002234e
add r14, rsi
jmp 0x140022100
xor ebx, ebx
test r15, r15
jne 0x140022350
call fcn.140035220
jmp 0x140022350
not ebx
test r15, r15
je 0x14002234e
lea r8, [r15 - 0x20]
xor esi, esi
lea rax, [0x1400f2ac0]
lea rdi, [r14 + rsi]
test dil, 3
je 0x140022135
movzx ecx, byte [rdi]
movzx edx, bl
xor edx, ecx
shr ebx, 8
xor ebx, dword [rax + rdx*4]
inc rsi
dec r8
cmp r15, rsi
jne 0x14002210d
jmp 0x14002234e
mov r9, r15
sub r9, rsi
cmp r9, 0x20
jb 0x1400222d2
xor ebx, dword [rdi]
movzx edx, bl
movzx ecx, bh
mov ecx, dword [rax + rcx*4 + 0x800]
xor ecx, dword [rax + rdx*4 + 0xc00]
mov edx, ebx
shr edx, 0x10
movzx edx, dl
xor ecx, dword [rax + rdx*4 + 0x400]
shr ebx, 0x18
xor ecx, dword [rax + rbx*4]
xor ecx, dword [rdi + 4]
movzx edx, cl
movzx ebx, ch
mov ebx, dword [rax + rbx*4 + 0x800]
xor ebx, dword [rax + rdx*4 + 0xc00]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
xor ebx, dword [rax + rdx*4 + 0x400]
shr ecx, 0x18
xor ebx, dword [rax + rcx*4]
xor ebx, dword [rdi + 8]
movzx edx, bl
movzx ecx, bh
mov ecx, dword [rax + rcx*4 + 0x800]
xor ecx, dword [rax + rdx*4 + 0xc00]
mov edx, ebx
shr edx, 0x10
movzx edx, dl
xor ecx, dword [rax + rdx*4 + 0x400]
shr ebx, 0x18
xor ecx, dword [rax + rbx*4]
xor ecx, dword [rdi + 0xc]
movzx edx, cl
movzx ebx, ch
mov ebx, dword [rax + rbx*4 + 0x800]
xor ebx, dword [rax + rdx*4 + 0xc00]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
xor ebx, dword [rax + rdx*4 + 0x400]
shr ecx, 0x18
xor ebx, dword [rax + rcx*4]
xor ebx, dword [rdi + 0x10]
movzx edx, bl
movzx ecx, bh
mov ecx, dword [rax + rcx*4 + 0x800]
xor ecx, dword [rax + rdx*4 + 0xc00]
mov edx, ebx
shr edx, 0x10
movzx edx, dl
xor ecx, dword [rax + rdx*4 + 0x400]
shr ebx, 0x18
xor ecx, dword [rax + rbx*4]
xor ecx, dword [rdi + 0x14]
movzx edx, cl
movzx ebx, ch
mov ebx, dword [rax + rbx*4 + 0x800]
xor ebx, dword [rax + rdx*4 + 0xc00]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
xor ebx, dword [rax + rdx*4 + 0x400]
shr ecx, 0x18
xor ebx, dword [rax + rcx*4]
xor ebx, dword [rdi + 0x18]
movzx edx, bl
movzx ecx, bh
mov ecx, dword [rax + rcx*4 + 0x800]
xor ecx, dword [rax + rdx*4 + 0xc00]
mov edx, ebx
shr edx, 0x10
movzx edx, dl
xor ecx, dword [rax + rdx*4 + 0x400]
shr ebx, 0x18
xor ecx, dword [rax + rbx*4]
xor ecx, dword [rdi + 0x1c]
movzx edx, cl
movzx ebx, ch
mov ebx, dword [rax + rbx*4 + 0x800]
xor ebx, dword [rax + rdx*4 + 0xc00]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
xor ebx, dword [rax + rdx*4 + 0x400]
shr ecx, 0x18
xor ebx, dword [rax + rcx*4]
add r9, 0xffffffffffffffe0
add rdi, 0x20
cmp r9, 0x1f
ja 0x140022145
and r8, 0xffffffffffffffe0
add r14, r8
lea rdi, [rsi + r14]
add rdi, 0x20
add r15, 0xffffffffffffffe0
sub r15, r8
sub r15, rsi
mov r9, r15
cmp r9, 4
jb 0x140022330
lea r10, [r9 - 4]
mov r8, r10
shr r8, 2
mov rcx, rdi
xor ebx, dword [rcx]
movzx edx, bl
movzx ebp, bh
mov esi, ebx
mov ebp, dword [rax + rbp*4 + 0x800]
xor ebp, dword [rax + rdx*4 + 0xc00]
add rcx, 4
shr ebx, 0x10
movzx edx, bl
xor ebp, dword [rax + rdx*4 + 0x400]
shr esi, 0x18
mov ebx, ebp
xor ebx, dword [rax + rsi*4]
add r9, 0xfffffffffffffffc
cmp r9, 3
ja 0x1400222e6
lea rdi, [rdi + r8*4]
add rdi, 4
and r10d, 3
mov r9, r10
test r9, r9
je 0x14002234e
xor ecx, ecx
movzx edx, byte [rdi + rcx]
movzx ebp, bl
xor ebp, edx
shr ebx, 8
xor ebx, dword [rax + rbp*4]
inc rcx
cmp r9, rcx
jne 0x140022337
not ebx
mov eax, ebx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov r8d, r8d
jmp 0x140022090