Function at 0x180041d10
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, 0x38
cmp qword [rsp + 0x48], 0
jne 0x180041d31
xor eax, eax
jmp 0x180042075
xor eax, eax
cmp eax, 1
je 0x180041d7b
mov dword [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180041d63
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call fcn.180041510
jmp 0x180042075
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call fcn.180040cb0
jmp 0x180042075
mov eax, dword [rsp + 0x40]
xor eax, 0xffffffff
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x50], 8
jb 0x180042005
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
sub rax, 8
mov qword [rsp + 0x50], rax
jmp 0x180041d86
cmp qword [rsp + 0x50], 0
je 0x18004206e
mov eax, 0x400
imul rax, rax, 0
lea rcx, [0x180052f80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx]
mov edx, dword [rsp + 0x40]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov edx, dword [rsp + 0x40]
shr edx, 8
mov eax, dword [rax + rcx*4]
xor eax, edx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
dec rax
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x18004200d
mov eax, dword [rsp + 0x40]
xor eax, 0xffffffff
add rsp, 0x38
ret