Function at 0x180041510
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]
mov dword [rsp], eax
mov eax, dword [rsp]
not eax
mov dword [rsp], eax
cmp qword [rsp + 0x30], 0
je 0x18004159e
mov rax, qword [rsp + 0x28]
and rax, 3
test rax, rax
je 0x18004159e
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx]
mov edx, dword [rsp]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, ecx
mov edx, dword [rsp]
shr 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 0x180041531
mov rax, qword [rsp + 0x28]
mov qword [rsp + 8], rax
cmp qword [rsp + 0x30], 0x20
jb 0x180041ba7
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, 3
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x180052f80]
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, 1
lea rdx, [0x180052f80]
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, 0
lea rdx, [0x180052f80]
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, 3
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x180052f80]
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, 1
lea rdx, [0x180052f80]
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, 0
lea rdx, [0x180052f80]
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, 3
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x180052f80]
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, 1
lea rdx, [0x180052f80]
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, 0
lea rdx, [0x180052f80]
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, 3
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x180052f80]
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, 1
lea rdx, [0x180052f80]
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, 0
lea rdx, [0x180052f80]
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, 3
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x180052f80]
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, 1
lea rdx, [0x180052f80]
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, 0
lea rdx, [0x180052f80]
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, 3
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x180052f80]
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, 1
lea rdx, [0x180052f80]
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, 0
lea rdx, [0x180052f80]
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, 3
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x180052f80]
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, 1
lea rdx, [0x180052f80]
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, 0
lea rdx, [0x180052f80]
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, 3
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x180052f80]
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, 1
lea rdx, [0x180052f80]
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, 0
lea rdx, [0x180052f80]
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 0x1800415a8
cmp qword [rsp + 0x30], 4
jb 0x180041c82
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, 3
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp]
and ecx, 0xff
mov ecx, ecx
mov edx, 0x400
imul rdx, rdx, 2
lea r8, [0x180052f80]
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, 1
lea rdx, [0x180052f80]
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, 0
lea rdx, [0x180052f80]
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 0x180041ba7
mov rax, qword [rsp + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x30], 0
je 0x180041cf1
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx]
mov edx, dword [rsp]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, ecx
mov edx, dword [rsp]
shr 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 0x180041c94
mov eax, dword [rsp]
not eax
mov dword [rsp], eax
mov eax, dword [rsp]
add rsp, 0x18
ret