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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
cmp qword [rsp + 0x48], 0
jne 0x5aa811
xor eax, eax
jmp 0x5aaab4
xor eax, eax
cmp eax, 1
je 0x5aa85b
mov dword [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x5aa843
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call fcn.005aaac0
jmp 0x5aaab4
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call fcn.005ab0e0
jmp 0x5aaab4
mov eax, dword [rsp + 0x40]
xor eax, 0xffffffff
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x50], 8
jb 0x5aaa59
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rax]
mov eax, dword [rsp + 0x40]
xor eax, ecx
and eax, 0xff
movsxd rdx, eax
lea rax, [0x00798320]
mov ecx, dword [rsp + 0x40]
shr ecx, 8
mov eax, dword [rax + rdx*4]
xor eax, ecx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
add rax, 1
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rax]
mov eax, dword [rsp + 0x40]
xor eax, ecx
and eax, 0xff
movsxd rdx, eax
lea rax, [0x00798320]
mov ecx, dword [rsp + 0x40]
shr ecx, 8
mov eax, dword [rax + rdx*4]
xor eax, ecx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
add rax, 1
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rax]
mov eax, dword [rsp + 0x40]
xor eax, ecx
and eax, 0xff
movsxd rdx, eax
lea rax, [0x00798320]
mov ecx, dword [rsp + 0x40]
shr ecx, 8
mov eax, dword [rax + rdx*4]
xor eax, ecx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
add rax, 1
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rax]
mov eax, dword [rsp + 0x40]
xor eax, ecx
and eax, 0xff
movsxd rdx, eax
lea rax, [0x00798320]
mov ecx, dword [rsp + 0x40]
shr ecx, 8
mov eax, dword [rax + rdx*4]
xor eax, ecx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
add rax, 1
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rax]
mov eax, dword [rsp + 0x40]
xor eax, ecx
and eax, 0xff
movsxd rdx, eax
lea rax, [0x00798320]
mov ecx, dword [rsp + 0x40]
shr ecx, 8
mov eax, dword [rax + rdx*4]
xor eax, ecx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
add rax, 1
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rax]
mov eax, dword [rsp + 0x40]
xor eax, ecx
and eax, 0xff
movsxd rdx, eax
lea rax, [0x00798320]
mov ecx, dword [rsp + 0x40]
shr ecx, 8
mov eax, dword [rax + rdx*4]
xor eax, ecx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
add rax, 1
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rax]
mov eax, dword [rsp + 0x40]
xor eax, ecx
and eax, 0xff
movsxd rdx, eax
lea rax, [0x00798320]
mov ecx, dword [rsp + 0x40]
shr ecx, 8
mov eax, dword [rax + rdx*4]
xor eax, ecx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
add rax, 1
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rax]
mov eax, dword [rsp + 0x40]
xor eax, ecx
and eax, 0xff
movsxd rdx, eax
lea rax, [0x00798320]
mov ecx, dword [rsp + 0x40]
shr ecx, 8
mov eax, dword [rax + rdx*4]
xor eax, ecx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
add rax, 1
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x50]
sub eax, 8
mov dword [rsp + 0x50], eax
jmp 0x5aa866
cmp dword [rsp + 0x50], 0
je 0x5aaaad
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rax]
mov eax, dword [rsp + 0x40]
xor eax, ecx
and eax, 0xff
movsxd rdx, eax
lea rax, [0x00798320]
mov ecx, dword [rsp + 0x40]
shr ecx, 8
mov eax, dword [rax + rdx*4]
xor eax, ecx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
add rax, 1
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x50]
sub eax, 1
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x5aaa60
mov eax, dword [rsp + 0x40]
xor eax, 0xffffffff
add rsp, 0x38
ret