Function at 0x59ad70
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 0x59ad91
xor eax, eax
jmp 0x59b034
xor eax, eax
cmp eax, 1
je 0x59addb
mov dword [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x59adc3
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call fcn.0059b040
jmp 0x59b034
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call fcn.0059b660
jmp 0x59b034
mov eax, dword [rsp + 0x40]
xor eax, 0xffffffff
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x50], 8
jb 0x59afd9
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, [0x00726cc0]
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, [0x00726cc0]
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, [0x00726cc0]
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, [0x00726cc0]
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, [0x00726cc0]
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, [0x00726cc0]
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, [0x00726cc0]
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, [0x00726cc0]
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 0x59ade6
cmp dword [rsp + 0x50], 0
je 0x59b02d
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, [0x00726cc0]
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 0x59afe0
mov eax, dword [rsp + 0x40]
xor eax, 0xffffffff
add rsp, 0x38
ret