Function at 0x180066cb0
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 0x180066cd1
xor eax, eax
jmp 0x180067015
xor eax, eax
cmp eax, 1
je 0x180066d1b
mov dword [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180066d03
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call fcn.1800664b0
jmp 0x180067015
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call fcn.180065c50
jmp 0x180067015
mov eax, dword [rsp + 0x40]
xor eax, 0xffffffff
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x50], 8
jb 0x180066fa5
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x18008ac90]
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, [0x18008ac90]
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, [0x18008ac90]
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, [0x18008ac90]
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, [0x18008ac90]
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, [0x18008ac90]
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, [0x18008ac90]
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, [0x18008ac90]
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 0x180066d26
cmp qword [rsp + 0x50], 0
je 0x18006700e
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x18008ac90]
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 0x180066fad
mov eax, dword [rsp + 0x40]
xor eax, 0xffffffff
add rsp, 0x38
ret