Function at 0x1800400b0
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]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [rsp + 0x20]
shr ecx, 8
and ecx, 0xff00
add eax, ecx
mov ecx, dword [rsp + 0x20]
and ecx, 0xff00
shl ecx, 8
add eax, ecx
mov ecx, dword [rsp + 0x20]
and ecx, 0xff
shl ecx, 0x18
add eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
not eax
mov dword [rsp], eax
cmp qword [rsp + 0x30], 0
je 0x18004016e
mov rax, qword [rsp + 0x28]
and rax, 3
test rax, rax
je 0x18004016e
mov eax, 0x400
imul rax, rax, 4
lea rcx, [0x180072060]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
shr ecx, 0x18
mov rdx, qword [rsp + 0x28]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov edx, dword [rsp]
shl 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 0x180040106
mov rax, qword [rsp + 0x28]
mov qword [rsp + 8], rax
cmp qword [rsp + 0x30], 0x20
jb 0x180040777
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, 4
lea rcx, [0x180072060]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 5
lea r8, [0x180072060]
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, 6
lea rdx, [0x180072060]
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, 7
lea rdx, [0x180072060]
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, 4
lea rcx, [0x180072060]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 5
lea r8, [0x180072060]
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, 6
lea rdx, [0x180072060]
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, 7
lea rdx, [0x180072060]
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, 4
lea rcx, [0x180072060]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 5
lea r8, [0x180072060]
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, 6
lea rdx, [0x180072060]
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, 7
lea rdx, [0x180072060]
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, 4
lea rcx, [0x180072060]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 5
lea r8, [0x180072060]
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, 6
lea rdx, [0x180072060]
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, 7
lea rdx, [0x180072060]
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, 4
lea rcx, [0x180072060]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 5
lea r8, [0x180072060]
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, 6
lea rdx, [0x180072060]
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, 7
lea rdx, [0x180072060]
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, 4
lea rcx, [0x180072060]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 5
lea r8, [0x180072060]
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, 6
lea rdx, [0x180072060]
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, 7
lea rdx, [0x180072060]
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, 4
lea rcx, [0x180072060]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 5
lea r8, [0x180072060]
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, 6
lea rdx, [0x180072060]
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, 7
lea rdx, [0x180072060]
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, 4
lea rcx, [0x180072060]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 5
lea r8, [0x180072060]
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, 6
lea rdx, [0x180072060]
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, 7
lea rdx, [0x180072060]
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 0x180040178
cmp qword [rsp + 0x30], 4
jb 0x180040852
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, 4
lea rcx, [0x180072060]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 5
lea r8, [0x180072060]
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, 6
lea rdx, [0x180072060]
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, 7
lea rdx, [0x180072060]
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 0x180040777
mov rax, qword [rsp + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x30], 0
je 0x1800408bc
mov eax, 0x400
imul rax, rax, 4
lea rcx, [0x180072060]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
shr ecx, 0x18
mov rdx, qword [rsp + 0x28]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov edx, dword [rsp]
shl 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 0x180040864
mov eax, dword [rsp]
not eax
mov dword [rsp], eax
mov eax, dword [rsp]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [rsp]
shr ecx, 8
and ecx, 0xff00
add eax, ecx
mov ecx, dword [rsp]
and ecx, 0xff00
shl ecx, 8
add eax, ecx
mov ecx, dword [rsp]
and ecx, 0xff
shl ecx, 0x18
add eax, ecx
add rsp, 0x18
ret