Function at 0x59f7d0
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, 0x18
mov eax, dword [rsp + 0x20]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
not eax
mov dword [rsp + 8], eax
cmp dword [rsp + 0x30], 0
je 0x59f850
mov rax, qword [rsp + 0x28]
and rax, 3
test rax, rax
je 0x59f850
mov rax, qword [rsp + 0x28]
movzx ecx, byte [rax]
mov eax, dword [rsp + 8]
xor eax, ecx
and eax, 0xff
mov edx, eax
lea rax, [0x007bf2a0]
mov ecx, dword [rsp + 8]
shr ecx, 8
mov eax, dword [rax + rdx*4]
xor eax, ecx
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0x28]
add rax, 1
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
sub eax, 1
mov dword [rsp + 0x30], eax
jmp 0x59f7f4
mov rax, qword [rsp + 0x28]
mov qword [rsp], rax
cmp dword [rsp + 0x30], 0x20
jb 0x59fcd4
mov rax, qword [rsp]
mov ecx, dword [rax]
mov eax, dword [rsp + 8]
xor eax, ecx
mov dword [rsp + 8], eax
mov rax, qword [rsp]
add rax, 4
mov qword [rsp], rax
lea r8, [0x007bf2a0]
mov eax, dword [rsp + 8]
and eax, 0xff
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 8
and eax, 0xff
mov eax, eax
mov eax, dword [rcx + rax*4 + 0x800]
mov r8d, dword [r8 + rdx*4 + 0xc00]
xor r8d, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 0x10
and eax, 0xff
mov eax, eax
xor r8d, dword [rcx + rax*4 + 0x400]
mov eax, dword [rsp + 8]
shr eax, 0x18
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 8], eax
mov rax, qword [rsp]
mov ecx, dword [rax]
mov eax, dword [rsp + 8]
xor eax, ecx
mov dword [rsp + 8], eax
mov rax, qword [rsp]
add rax, 4
mov qword [rsp], rax
lea r8, [0x007bf2a0]
mov eax, dword [rsp + 8]
and eax, 0xff
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 8
and eax, 0xff
mov eax, eax
mov eax, dword [rcx + rax*4 + 0x800]
mov r8d, dword [r8 + rdx*4 + 0xc00]
xor r8d, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 0x10
and eax, 0xff
mov eax, eax
xor r8d, dword [rcx + rax*4 + 0x400]
mov eax, dword [rsp + 8]
shr eax, 0x18
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 8], eax
mov rax, qword [rsp]
mov ecx, dword [rax]
mov eax, dword [rsp + 8]
xor eax, ecx
mov dword [rsp + 8], eax
mov rax, qword [rsp]
add rax, 4
mov qword [rsp], rax
lea r8, [0x007bf2a0]
mov eax, dword [rsp + 8]
and eax, 0xff
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 8
and eax, 0xff
mov eax, eax
mov eax, dword [rcx + rax*4 + 0x800]
mov r8d, dword [r8 + rdx*4 + 0xc00]
xor r8d, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 0x10
and eax, 0xff
mov eax, eax
xor r8d, dword [rcx + rax*4 + 0x400]
mov eax, dword [rsp + 8]
shr eax, 0x18
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 8], eax
mov rax, qword [rsp]
mov ecx, dword [rax]
mov eax, dword [rsp + 8]
xor eax, ecx
mov dword [rsp + 8], eax
mov rax, qword [rsp]
add rax, 4
mov qword [rsp], rax
lea r8, [0x007bf2a0]
mov eax, dword [rsp + 8]
and eax, 0xff
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 8
and eax, 0xff
mov eax, eax
mov eax, dword [rcx + rax*4 + 0x800]
mov r8d, dword [r8 + rdx*4 + 0xc00]
xor r8d, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 0x10
and eax, 0xff
mov eax, eax
xor r8d, dword [rcx + rax*4 + 0x400]
mov eax, dword [rsp + 8]
shr eax, 0x18
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 8], eax
mov rax, qword [rsp]
mov ecx, dword [rax]
mov eax, dword [rsp + 8]
xor eax, ecx
mov dword [rsp + 8], eax
mov rax, qword [rsp]
add rax, 4
mov qword [rsp], rax
lea r8, [0x007bf2a0]
mov eax, dword [rsp + 8]
and eax, 0xff
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 8
and eax, 0xff
mov eax, eax
mov eax, dword [rcx + rax*4 + 0x800]
mov r8d, dword [r8 + rdx*4 + 0xc00]
xor r8d, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 0x10
and eax, 0xff
mov eax, eax
xor r8d, dword [rcx + rax*4 + 0x400]
mov eax, dword [rsp + 8]
shr eax, 0x18
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 8], eax
mov rax, qword [rsp]
mov ecx, dword [rax]
mov eax, dword [rsp + 8]
xor eax, ecx
mov dword [rsp + 8], eax
mov rax, qword [rsp]
add rax, 4
mov qword [rsp], rax
lea r8, [0x007bf2a0]
mov eax, dword [rsp + 8]
and eax, 0xff
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 8
and eax, 0xff
mov eax, eax
mov eax, dword [rcx + rax*4 + 0x800]
mov r8d, dword [r8 + rdx*4 + 0xc00]
xor r8d, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 0x10
and eax, 0xff
mov eax, eax
xor r8d, dword [rcx + rax*4 + 0x400]
mov eax, dword [rsp + 8]
shr eax, 0x18
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 8], eax
mov rax, qword [rsp]
mov ecx, dword [rax]
mov eax, dword [rsp + 8]
xor eax, ecx
mov dword [rsp + 8], eax
mov rax, qword [rsp]
add rax, 4
mov qword [rsp], rax
lea r8, [0x007bf2a0]
mov eax, dword [rsp + 8]
and eax, 0xff
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 8
and eax, 0xff
mov eax, eax
mov eax, dword [rcx + rax*4 + 0x800]
mov r8d, dword [r8 + rdx*4 + 0xc00]
xor r8d, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 0x10
and eax, 0xff
mov eax, eax
xor r8d, dword [rcx + rax*4 + 0x400]
mov eax, dword [rsp + 8]
shr eax, 0x18
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 8], eax
mov rax, qword [rsp]
mov ecx, dword [rax]
mov eax, dword [rsp + 8]
xor eax, ecx
mov dword [rsp + 8], eax
mov rax, qword [rsp]
add rax, 4
mov qword [rsp], rax
lea r8, [0x007bf2a0]
mov eax, dword [rsp + 8]
and eax, 0xff
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 8
and eax, 0xff
mov eax, eax
mov eax, dword [rcx + rax*4 + 0x800]
mov r8d, dword [r8 + rdx*4 + 0xc00]
xor r8d, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 0x10
and eax, 0xff
mov eax, eax
xor r8d, dword [rcx + rax*4 + 0x400]
mov eax, dword [rsp + 8]
shr eax, 0x18
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x30]
sub eax, 0x20
mov dword [rsp + 0x30], eax
jmp 0x59f859
cmp dword [rsp + 0x30], 4
jb 0x59fd7b
mov rax, qword [rsp]
mov ecx, dword [rax]
mov eax, dword [rsp + 8]
xor eax, ecx
mov dword [rsp + 8], eax
mov rax, qword [rsp]
add rax, 4
mov qword [rsp], rax
lea r8, [0x007bf2a0]
mov eax, dword [rsp + 8]
and eax, 0xff
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 8
and eax, 0xff
mov eax, eax
mov eax, dword [rcx + rax*4 + 0x800]
mov r8d, dword [r8 + rdx*4 + 0xc00]
xor r8d, eax
lea rcx, [0x007bf2a0]
mov eax, dword [rsp + 8]
shr eax, 0x10
and eax, 0xff
mov eax, eax
xor r8d, dword [rcx + rax*4 + 0x400]
mov eax, dword [rsp + 8]
shr eax, 0x18
mov edx, eax
lea rcx, [0x007bf2a0]
mov eax, r8d
xor eax, dword [rcx + rdx*4]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x30]
sub eax, 4
mov dword [rsp + 0x30], eax
jmp 0x59fcd4
mov rax, qword [rsp]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x30], 0
je 0x59fdd7
mov rax, qword [rsp + 0x28]
movzx ecx, byte [rax]
mov eax, dword [rsp + 8]
xor eax, ecx
and eax, 0xff
mov edx, eax
lea rax, [0x007bf2a0]
mov ecx, dword [rsp + 8]
shr ecx, 8
mov eax, dword [rax + rdx*4]
xor eax, ecx
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0x28]
add rax, 1
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
sub eax, 1
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x59fd8b
mov eax, dword [rsp + 8]
not eax
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
add rsp, 0x18
ret