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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
cmp qword [rsp + 0x48], 0
jne 0x1401209d1
xor eax, eax
jmp 0x140120d15
xor eax, eax
cmp eax, 1
je 0x140120a1b
mov dword [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140120a03
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call fcn.140120d70
jmp 0x140120d15
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call fcn.140121570
jmp 0x140120d15
mov eax, dword [rsp + 0x40]
xor eax, 0xffffffff
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x50], 8
jb 0x140120ca5
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
sub rax, 8
mov qword [rsp + 0x50], rax
jmp 0x140120a26
cmp qword [rsp + 0x50], 0
je 0x140120d0e
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
dec rax
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140120cad
mov eax, dword [rsp + 0x40]
xor eax, 0xffffffff
add rsp, 0x38
ret