Function at 0x140018620
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r13
push r15
sub rsp, 0x50
xor r13b, r13b
movsxd rsi, edx
xor ebp, ebp
lea r10, [0x14006aec0]
mov r9d, ebp
mov r12, rcx
nop
mov r8d, r9d
lea r10, [r10 + 4]
and r8d, 1
mov eax, r9d
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc r9d
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [r10 - 4], eax
cmp r9d, 0x100
jb 0x140018650
mov r15, qword [rsp + 0x98]
test r15, r15
je 0x140018707
mov dword [r15], ebp
mov ecx, 0x4c0
mov qword [rsp + 0x70], rdi
call fcn.14002da3c
mov rbx, rax
test rax, rax
je case.0x140018920.3
mov ecx, 0x6f50
mov dword [rax + 0x28], 2
call fcn.14002da3c
test rax, rax
jne 0x140018744
mov qword [rbx + 0x4b8], rbp
jmp 0x140018805
mov dword [rax + 0x64], 2
xorps xmm0, xmm0
mov dword [rax + 0x5c], 0xffffffff
mov ecx, 0x1000
mov qword [rax + 0x28], rbp
mov dword [rax + 0x60], ebp
mov qword [rbx + 0x4b8], rax
mov qword [rbx], rbp
mov byte [rbx + 0x2c], bpl
mov dword [rbx + 0x20], ebp
movups xmmword [rbx + 0x48], xmm0
mov qword [rsp + 0x48], 0x1000
movups xmmword [rbx + 0x58], xmm0
movups xmmword [rbx + 0x68], xmm0
movups xmmword [rbx + 0x78], xmm0
movups xmmword [rbx + 0x88], xmm0
movups xmmword [rbx + 0x98], xmm0
mov qword [rbx + 0xa8], rbp
mov qword [rbx + 0xb0], ntohs
call fcn.14002da3c
mov qword [rsp + 0x38], rax
mov rdi, rax
test rax, rax
je 0x1400187e3
test r12, r12
jne 0x14001884a
mov ecx, 0x1000
mov r13b, 1
call fcn.14002da3c
mov r12, rax
test rax, rax
jne 0x14001884a
mov rcx, rdi
call fcn.14002da28
mov rdi, qword [rbx + 0x4b8]
cmp dword [rdi + 0x64], ebp
je 0x1400187fd
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x1400187fd
call fcn.14002da28
mov rcx, rdi
call fcn.14002da28
mov rcx, rbx
call fcn.14002da28
lea r8, str.XZ_decompressor_ran_out_of_memory
lea rdx, [0x14005a928]
mov ecx, 1
call fcn.140001c50
mov eax, 0xffffffff
mov rdi, qword [rsp + 0x70]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
ret
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rbp
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400170e0
mov rsi, qword [rsp + 0x40]
mov ebp, eax
cmp rsi, qword [rsp + 0x48]
je 0x140018884
test eax, eax
je 0x140018860
test rsi, rsi
je 0x1400188b7
movsxd rdi, dword [0x140069a88]
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
add rcx, qword [0x140069a90]
mov r8d, esi
call fcn.14002d2a0
add edi, esi
mov qword [rsp + 0x40], 0
mov dword [0x140069a88], edi
test ebp, ebp
je 0x140018860
test r13b, r13b
je 0x1400188c4
mov rcx, r12
call fcn.14002da28
mov rcx, qword [rsp + 0x38]
call fcn.14002da28
test r15, r15
je 0x1400188da
mov eax, dword [rsp + 0x28]
add dword [r15], eax
mov rdi, qword [rbx + 0x4b8]
cmp dword [rdi + 0x64], 0
je 0x1400188f5
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x1400188f5
call fcn.14002da28
mov rcx, rdi
call fcn.14002da28
mov rcx, rbx
call fcn.14002da28
dec ebp
cmp ebp, 7
ja case.0x140018920.2
lea rdx, [0x140000000]
movsxd rax, ebp
mov ecx, dword [rdx + rax*4 + 0x1895c]
add rcx, rdx
jmp rcx
xor eax, eax
jmp 0x14001882a
lea r8, str.Input_is_not_in_the_XZ_format__wrong_magic_bytes_
jmp 0x140018814
lea r8, str.Input_was_encoded_with_settings_that_are_not_supported_by_this_XZ_decoder
jmp 0x140018814
lea r8, str.XZ_compressed_data_is_corrupt
jmp 0x140018814
lea r8, str.Bug_in_the_XZ_decompressor
jmp 0x140018814