Function at 0x140120d70
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, 0x18
mov eax, dword [rsp + 0x20]
mov dword [rsp], eax
mov eax, dword [rsp]
not eax
mov dword [rsp], eax
cmp qword [rsp + 0x30], 0
je 0x140120dfe
mov rax, qword [rsp + 0x28]
and rax, 3
test rax, rax
je 0x140120dfe
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx]
mov edx, dword [rsp]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, ecx
mov edx, dword [rsp]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp], eax
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
jmp 0x140120d91
mov rax, qword [rsp + 0x28]
mov qword [rsp + 8], rax
cmp qword [rsp + 0x30], 0x20
jb 0x140121407
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov eax, 0x400
imul rax, rax, 3
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x14016c770]
add r8, rdx
mov rdx, r8
mov r8d, dword [rsp]
shr r8d, 8
and r8d, 0xff
mov r8d, r8d
mov edx, dword [rdx + r8*4]
mov eax, dword [rax + rcx*4]
xor eax, edx
mov ecx, 0x400
imul rcx, rcx, 1
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x10
and edx, 0xff
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov ecx, 0x400
imul rcx, rcx, 0
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x18
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov eax, 0x400
imul rax, rax, 3
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x14016c770]
add r8, rdx
mov rdx, r8
mov r8d, dword [rsp]
shr r8d, 8
and r8d, 0xff
mov r8d, r8d
mov edx, dword [rdx + r8*4]
mov eax, dword [rax + rcx*4]
xor eax, edx
mov ecx, 0x400
imul rcx, rcx, 1
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x10
and edx, 0xff
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov ecx, 0x400
imul rcx, rcx, 0
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x18
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov eax, 0x400
imul rax, rax, 3
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x14016c770]
add r8, rdx
mov rdx, r8
mov r8d, dword [rsp]
shr r8d, 8
and r8d, 0xff
mov r8d, r8d
mov edx, dword [rdx + r8*4]
mov eax, dword [rax + rcx*4]
xor eax, edx
mov ecx, 0x400
imul rcx, rcx, 1
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x10
and edx, 0xff
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov ecx, 0x400
imul rcx, rcx, 0
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x18
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov eax, 0x400
imul rax, rax, 3
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x14016c770]
add r8, rdx
mov rdx, r8
mov r8d, dword [rsp]
shr r8d, 8
and r8d, 0xff
mov r8d, r8d
mov edx, dword [rdx + r8*4]
mov eax, dword [rax + rcx*4]
xor eax, edx
mov ecx, 0x400
imul rcx, rcx, 1
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x10
and edx, 0xff
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov ecx, 0x400
imul rcx, rcx, 0
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x18
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov eax, 0x400
imul rax, rax, 3
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x14016c770]
add r8, rdx
mov rdx, r8
mov r8d, dword [rsp]
shr r8d, 8
and r8d, 0xff
mov r8d, r8d
mov edx, dword [rdx + r8*4]
mov eax, dword [rax + rcx*4]
xor eax, edx
mov ecx, 0x400
imul rcx, rcx, 1
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x10
and edx, 0xff
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov ecx, 0x400
imul rcx, rcx, 0
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x18
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov eax, 0x400
imul rax, rax, 3
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x14016c770]
add r8, rdx
mov rdx, r8
mov r8d, dword [rsp]
shr r8d, 8
and r8d, 0xff
mov r8d, r8d
mov edx, dword [rdx + r8*4]
mov eax, dword [rax + rcx*4]
xor eax, edx
mov ecx, 0x400
imul rcx, rcx, 1
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x10
and edx, 0xff
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov ecx, 0x400
imul rcx, rcx, 0
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x18
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov eax, 0x400
imul rax, rax, 3
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x14016c770]
add r8, rdx
mov rdx, r8
mov r8d, dword [rsp]
shr r8d, 8
and r8d, 0xff
mov r8d, r8d
mov edx, dword [rdx + r8*4]
mov eax, dword [rax + rcx*4]
xor eax, edx
mov ecx, 0x400
imul rcx, rcx, 1
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x10
and edx, 0xff
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov ecx, 0x400
imul rcx, rcx, 0
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x18
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov eax, 0x400
imul rax, rax, 3
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x14016c770]
add r8, rdx
mov rdx, r8
mov r8d, dword [rsp]
shr r8d, 8
and r8d, 0xff
mov r8d, r8d
mov edx, dword [rdx + r8*4]
mov eax, dword [rax + rcx*4]
xor eax, edx
mov ecx, 0x400
imul rcx, rcx, 1
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x10
and edx, 0xff
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov ecx, 0x400
imul rcx, rcx, 0
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x18
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov dword [rsp], eax
mov rax, qword [rsp + 0x30]
sub rax, 0x20
mov qword [rsp + 0x30], rax
jmp 0x140120e08
cmp qword [rsp + 0x30], 4
jb 0x1401214e2
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov eax, 0x400
imul rax, rax, 3
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x14016c770]
add r8, rdx
mov rdx, r8
mov r8d, dword [rsp]
shr r8d, 8
and r8d, 0xff
mov r8d, r8d
mov edx, dword [rdx + r8*4]
mov eax, dword [rax + rcx*4]
xor eax, edx
mov ecx, 0x400
imul rcx, rcx, 1
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x10
and edx, 0xff
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov ecx, 0x400
imul rcx, rcx, 0
lea rdx, [0x14016c770]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp]
shr edx, 0x18
mov edx, edx
xor eax, dword [rcx + rdx*4]
mov dword [rsp], eax
mov rax, qword [rsp + 0x30]
sub rax, 4
mov qword [rsp + 0x30], rax
jmp 0x140121407
mov rax, qword [rsp + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x30], 0
je 0x140121551
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x14016c770]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx]
mov edx, dword [rsp]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, ecx
mov edx, dword [rsp]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp], eax
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1401214f4
mov eax, dword [rsp]
not eax
mov dword [rsp], eax
mov eax, dword [rsp]
add rsp, 0x18
ret