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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
movapd xmmword [rsp + 0x120], xmm8
movapd xmmword [rsp + 0x110], xmm7
movapd xmmword [rsp + 0x100], xmm6
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0xf8], rax
movabs r13, 0xfffffffc00000000
mov rax, rcx
and rax, r13
cmp rax, qword [0x14029ce48]
je 0x14013b9bb
mov qword [rsp + 0x50], rsi
movabs rax, 0x100000002
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], 2
mov qword [rsp + 0x68], 3
mov dword [rsp + 0x70], edi
lea rax, [0x140270700]
mov qword [rsp + 0x48], rax
test rsi, rsi
je 0x14013b9a5
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x14013b017
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rcx
test rcx, rcx
js 0x14013b9b5
je 0x14013aec8
test rax, rax
je 0x14013b9db
lea rcx, [rsp + 0x80]
call fcn.1400f8e80
mov rsi, rax
test rax, rax
je 0x14013b091
mov edi, dword [rsp + 0x58]
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov ecx, 2
lea rdx, [0x1400baf60]
cmp rax, rdx
je 0x14013af0f
xor ecx, ecx
lea rdx, [0x140183230]
cmp rax, rdx
jne 0x14013aff2
cmp edi, ecx
jne 0x14013b8ce
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x14013af91
mov edx, dword [rsp + 0x5c]
mov r8d, dword [rsp + 0x60]
mov rax, qword [rsi]
mov rax, qword [rax + 0x20]
lea rcx, [0x1401f9b50]
cmp rax, rcx
jne 0x14013b9e1
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx]
mov r10, qword [rcx + 8]
sub r10, rax
mov rcx, r10
sar rcx, 2
lea r11, [rcx - 1]
cmp r11, r9
jne 0x14013b8ce
cmp r11, 2
jb 0x14013b9c8
cmp r10, 4
jbe 0x14013b9b2
cmp dword [rax + 4], edx
jne 0x14013b8ce
mov eax, dword [rax + rcx*4 - 8]
cmp eax, r8d
jne 0x14013b8ce
lea rax, [0x1402706c0]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x50]
and r13, rcx
cmp r13, qword [0x14029ce48]
je 0x14013b9a8
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1401879f0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x100]
movaps xmm7, xmmword [rsp + 0x110]
movaps xmm8, xmmword [rsp + 0x120]
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 1
lea rdx, [0x1400eb8e0]
cmp rax, rdx
je 0x14013af0f
mov rcx, rsi
call qword [0x1402ca008]
mov ecx, eax
jmp 0x14013af0f
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rax
jmp 0x14013aec8
cmp eax, 0x3f
je 0x14013b044
mov r8d, 0x3f
sub r8, rax
add rcx, rsi
xor edx, edx
call fcn.140189b30
lea rcx, [rsp + 0x98]
mov r8d, 1
mov rdx, rsi
call fcn.140082a00
xor ecx, ecx
jmp 0x14013b15f
shr r8, 6
lea rcx, [rsp + 0x98]
mov rdx, rdi
call fcn.140082a00
mov r8, rbx
and r8, 0x3f
je 0x14013b12e
and rbx, 0xffffffffffffffc0
add rdi, rbx
mov ebx, r8d
jmp 0x14013b11c
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14013b9fa
movzx ebx, byte [rdi + 0x17]
test bl, bl
jns 0x14013b0c2
mov rbx, qword [rdi + 8]
test rbx, rbx
js 0x14013ba07
mov rdi, qword [rdi]
je 0x14013b0c2
test rdi, rdi
je 0x14013ba16
xorps xmm0, xmm0
lea rsi, [rsp + 0xb0]
movups xmmword [rsi + 0x34], xmm0
movups xmmword [rsi + 0x28], xmm0
movups xmmword [rsi + 0x18], xmm0
movups xmmword [rsi + 8], xmm0
movups xmmword [rsi - 8], xmm0
movapd xmm0, xmmword [0x14027c770]
movupd xmmword [rsi - 0x18], xmm0
test rbx, rbx
je 0x14013b12e
lea eax, [rbx*8]
mov rcx, rbx
shr rcx, 0x1d
mov dword [rsp + 0xac], ecx
mov dword [rsp + 0xa8], eax
mov r8, rbx
cmp rbx, 0x40
jae 0x14013b061
mov dword [rsp + 0xf0], ebx
mov rcx, rsi
mov rdx, rdi
call fcn.140189480
mov eax, dword [rsp + 0xf0]
lea rcx, [rax + 1]
mov ebx, dword [rsp + 0xa8]
mov ebp, dword [rsp + 0xac]
mov byte [rsp + rax + 0xb0], 0x80
cmp rax, 0x38
jae 0x14013b02c
cmp rcx, 0x38
je 0x14013b172
mov r8d, 0x38
sub r8, rcx
add rcx, rsi
xor edx, edx
call fcn.140189b30
lea rdi, [rsp + 0x98]
mov dword [rdi + 0x50], ebx
mov dword [rdi + 0x54], ebp
mov r8d, 1
mov rcx, rdi
mov rdx, rsi
call fcn.140082a00
mov edi, dword [rdi]
mov rsi, qword [0x1402b77d8]
cmp rsi, 1
jbe 0x14013b96d
mov rax, qword [rsi]
test al, 0x1c
jne 0x14013b944
mov rcx, rax
or rcx, 1
add rcx, 0x100
lock cmpxchg qword [rsi], rcx
jne 0x14013b944
mov rax, qword [0x1402b77e8]
mov bl, 1
test rax, rax
je 0x14013b1e6
mov rcx, qword [rax + 0x98]
test rcx, rcx
jne 0x14013ba81
mov rax, qword [rsi]
mov ecx, eax
and ecx, 0x15
cmp ecx, 1
jne 0x14013b95e
cmp rax, 0x200
mov rcx, rax
sbb rcx, 0
add rcx, 0xffffffffffffff00
lock cmpxchg qword [rsi], rcx
jne 0x14013b95e
test bl, bl
je 0x14013b937
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
lea rcx, [0x14006b5b0]
cmp rax, rcx
jne 0x14013b547
mov ecx, 0x20
call fcn.140184dc4
mov rsi, rax
mov rdi, qword [rsp + 0x68]
mov rbx, rdi
xorpd xmm0, xmm0
movupd xmmword [rax], xmm0
mov qword [rax + 0x10], 0
inc rbx
je 0x14013b2ae
mov rax, rbx
shr rax, 0x3e
jne 0x14013ba13
lea rcx, [rbx*4]
call fcn.140184dc4
mov qword [rsi], rax
mov qword [rsi + 8], rax
lea rcx, [rax + rbx*4]
mov qword [rsi + 0x10], rcx
lea rdx, [rdi*4 + 4]
test rax, rax
je 0x14013b9a2
mov dword [rax], 0
add rax, 4
add rdx, 0xfffffffffffffffc
jne 0x14013b291
mov qword [rsi + 8], rcx
mov qword [rsi + 0x18], 0
mov ebx, dword [rsp + 0x5c]
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [rsp + 0x60]
call fcn.1401a6b60
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
sub rcx, rax
cmp rcx, 4
jbe 0x14013ba0d
mov dword [rax + 4], ebx
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov r14, rax
sub r14, rcx
sar r14, 2
lea rdx, [r14 - 1]
cmp rdx, 3
jb 0x14013b3c8
movapd xmm6, xmm0
mov r15d, 3
sub r15, r14
add r14, 0xfffffffffffffffd
mov r12d, 2
lea rdi, [rsp + 0x98]
movdqa xmm7, xmmword [0x140275d70]
movapd xmm8, xmmword [0x140275d80]
xorps xmm0, xmm0
cvtsi2sd xmm0, ebx
call fcn.1401a6b60
movsd qword [rsp + 0x98], xmm0
mov rcx, rdi
call fcn.1400ddc50
movsd xmm1, qword [rsp + 0x98]
movq xmm2, r14
punpckldq xmm2, xmm7
subpd xmm2, xmm8
haddpd xmm2, xmm2
movapd xmm0, xmm6
subsd xmm0, xmm1
divsd xmm0, xmm2
addsd xmm0, xmm1
call fcn.1401a45b0
mov rbp, qword [rsi]
mov rax, qword [rsi + 8]
sub rax, rbp
sar rax, 2
cmp rax, r12
jbe 0x14013b99f
call fcn.1401be9cc
cvttsd2si eax, xmm0
cmp ebx, eax
lea ecx, [rbx + 1]
cmovl ecx, eax
mov dword [rbp + r12*4], ecx
lea rax, [r15 + r12]
inc rax
inc r12
dec r14
mov ebx, ecx
cmp rax, 2
jne 0x14013b32e
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
cmp rax, rcx
je 0x14013ba10
mov dword [rax - 4], 0x7fffffff
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
sub rcx, rax
je 0x14013b9fd
mov rdx, rcx
shr rdx, 2
xor r8d, r8d
lea r9, [0x14027d470]
movzx r10d, dl
movzx r11d, byte [rax + r8]
xor r11d, r10d
shr edx, 8
xor edx, dword [r9 + r11*4]
inc r8
cmp rcx, r8
jne 0x14013b3f9
mov dword [rsi + 0x18], edx
mov rcx, rsi
call fcn.1400fbc20
mov rsi, rax
cmp qword [rsp + 0x68], 0
je 0x14013b86a
mov dword [rsp + 0x7c], 0
mov rdi, qword [0x1402b7818]
test rdi, rdi
je 0x14013b50f
mov r9, qword [rsp + 0x50]
test r9, r9
je 0x14013ba04
mov r8d, dword [rsp + 0x58]
mov eax, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x60]
mov edx, dword [rsp + 0x70]
lea r10, [rsp + 0x7c]
mov qword [rsp + 0x40], r10
mov dword [rsp + 0x38], edx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
lea rbx, [rsp + 0x98]
mov rcx, rdi
mov rdx, rbx
call fcn.1400fac20
mov rbx, qword [rbx]
test rbx, rbx
je 0x14013b50f
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x10]
lea rcx, [fcn.1401c2f30]
cmp rax, rcx
jne 0x14013b4db
mov rcx, rbx
call fcn.1400f9770
mov rsi, rax
mov edx, dword [rsp + 0x7c]
test edx, edx
je 0x14013aee1
cmp rsi, rbx
sete r8b
mov rcx, rdi
call fcn.140119f30
jmp 0x14013aee1
lea rcx, [0x1401c7840]
cmp rax, rcx
jne 0x14013baa2
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
call qword [0x1402ca008]
cmp eax, 5
je 0x14013b4b0
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x14013b4b0
jmp 0x14013ba19
lea r14, [rsp + 0x48]
and byte [r14 + 0x28], 0xbf
mov rax, qword [r14]
mov rax, qword [rax + 8]
lea rbx, [rsp + 0x98]
mov rcx, r14
mov rdx, rbx
mov r8, rsi
call qword [0x1402ca008]
mov rbx, qword [rbx]
mov eax, dword [r14 + 0x28]
lock or dword [rbx + 0x10], eax
jmp 0x14013b49b
lea rcx, [0x1401c6e30]
cmp rax, rcx
jne 0x14013b6ff
mov ecx, 0x20
call fcn.140184dc4
mov rsi, rax
mov rdi, qword [rsp + 0x68]
mov rbx, rdi
xorpd xmm0, xmm0
movupd xmmword [rax], xmm0
mov qword [rax + 0x10], 0
inc rbx
je 0x14013b8c1
mov rax, rbx
shr rax, 0x3e
jne 0x14013ba9c
lea rcx, [rbx*4]
call fcn.140184dc4
mov qword [rsi], rax
mov qword [rsi + 8], rax
lea r8, [rax + rbx*4]
mov qword [rsi + 0x10], r8
lea rcx, [rdi*4 + 4]
xor edx, edx
mov r9, rax
add r9, rdx
je 0x14013b9b8
mov dword [r9], 0
add rdx, 4
cmp rcx, rdx
jne 0x14013b5b8
mov qword [rsi + 8], r8
mov qword [rsi + 0x18], 0
mov rcx, r8
sub rcx, rax
sar rcx, 2
lea rdx, [rcx - 1]
cmp rdx, 2
jb 0x14013b6ad
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [rsp + 0x5c]
cvtsi2sd xmm1, dword [rsp + 0x60]
add rcx, 0xfffffffffffffffd
movq xmm2, rcx
punpckldq xmm2, xmmword [0x140275d70]
subpd xmm2, xmmword [0x140275d80]
haddpd xmm2, xmm2
mov eax, 1
movdqa xmm3, xmmword [0x140275d70]
movapd xmm4, xmmword [0x140275d80]
movsd xmm5, qword [0x140260a70]
mov r8, qword [rsi]
mov r9, qword [rsi + 8]
sub r9, r8
sar r9, 2
cmp r9, rax
jbe 0x14013b9de
movq xmm6, rcx
punpckldq xmm6, xmm3
subpd xmm6, xmm4
haddpd xmm6, xmm6
lea r9, [rax - 1]
movq xmm7, r9
punpckldq xmm7, xmm3
subpd xmm7, xmm4
haddpd xmm7, xmm7
mulsd xmm6, xmm0
mulsd xmm7, xmm1
addsd xmm7, xmm6
divsd xmm7, xmm2
addsd xmm7, xmm5
cvttsd2si r9d, xmm7
mov dword [r8 + rax*4], r9d
dec rcx
inc rax
cmp rax, rdx
jne 0x14013b641
mov rax, qword [rsi]
mov r8, qword [rsi + 8]
cmp r8, rax
je 0x14013ba99
mov dword [r8 - 4], 0x7fffffff
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
sub rcx, rax
je 0x14013b9fd
mov rdx, rcx
shr rdx, 2
xor r8d, r8d
lea r9, [0x14027d470]
movzx r10d, dl
movzx r11d, byte [rax + r8]
xor r11d, r10d
shr edx, 8
xor edx, dword [r9 + r11*4]
inc r8
cmp rcx, r8
jne 0x14013b6df
jmp 0x14013b414
lea rcx, [0x1401f9f80]
cmp rax, rcx
jne 0x14013b857
mov ecx, 0x20
call fcn.140184dc4
mov rsi, rax
mov ecx, 0x10
call fcn.140184dc4
mov qword [rsi], rax
mov qword [rsi + 8], rax
lea rcx, [rax + 0x10]
mov qword [rsi + 0x10], rcx
test rax, rax
je 0x14013ba0a
mov dword [rax], 0
cmp rax, 0xfffffffffffffffc
je 0x14013ba0a
mov dword [rax + 4], 0
cmp rax, 0xfffffffffffffff8
je 0x14013ba0a
mov dword [rax + 8], 0
add rax, 0xc
je 0x14013ba0a
mov dword [rax], 0
mov qword [rsi + 8], rcx
mov qword [rsi + 0x18], 0
mov eax, 1
movdqa xmm0, xmmword [0x140275d70]
movapd xmm1, xmmword [0x140275d80]
movsd xmm2, qword [0x140260a70]
mov ecx, 1
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
sar r8, 2
cmp r8, rcx
jbe 0x14013b9f7
movq xmm3, rax
punpckldq xmm3, xmm0
subpd xmm3, xmm1
haddpd xmm3, xmm3
lea r8, [rcx - 1]
movq xmm4, r8
punpckldq xmm4, xmm0
subpd xmm4, xmm1
haddpd xmm4, xmm4
addsd xmm4, xmm4
addsd xmm4, xmm3
addsd xmm4, xmm2
cvttsd2si r8d, xmm4
mov dword [rdx + rcx*4], r8d
dec rax
inc rcx
cmp rcx, 3
jne 0x14013b7a4
mov rax, qword [rsi + 8]
cmp rax, qword [rsi]
je 0x14013ba9f
mov dword [rax - 4], 0x7fffffff
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
sub rcx, rax
je 0x14013b9fd
mov rdx, rcx
shr rdx, 2
xor r8d, r8d
lea r9, [0x14027d470]
movzx r10d, dl
movzx r11d, byte [rax + r8]
xor r11d, r10d
shr edx, 8
xor edx, dword [r9 + r11*4]
inc r8
cmp rcx, r8
jne 0x14013b837
jmp 0x14013b414
lea rcx, [rsp + 0x48]
call qword [0x1402ca008]
mov rsi, rax
jmp 0x14013b417
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
sar rax, 2
lea rcx, [rax - 1]
mov qword [rsp + 0x68], rcx
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
sub rdx, rcx
cmp rdx, 4
jbe 0x14013bab5
mov ecx, dword [rcx + 4]
mov dword [rsp + 0x5c], ecx
lea rdx, [rax - 2]
mov rcx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rcx
sar r8, 2
cmp r8, rdx
jbe 0x14013bab8
mov eax, dword [rcx + rax*4 - 8]
mov dword [rsp + 0x60], eax
jmp 0x14013b42e
xor eax, eax
xor r8d, r8d
jmp 0x14013b5d8
int3
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14013b8cb
movzx ecx, byte [rax + 0x17]
test cl, cl
jns 0x14013b90c
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa0], rax
test rax, rax
js 0x14013babb
je 0x14013b91c
test rcx, rcx
jne 0x14013b91c
jmp 0x14013babe
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rcx
lea rcx, [rsp + 0x98]
call fcn.14014a970
lea rcx, str.Histogram.MismatchedConstructionArguments
mov edx, eax
call fcn.14001bb20
call fcn.1401c3020
mov rsi, rax
jmp 0x14013af91
lea rdx, [0x140274dd0]
mov rcx, rsi
xor r8d, r8d
xor r9d, r9d
call fcn.1401c5f74
jmp 0x14013b1c8
mov rcx, rsi
xor edx, edx
call fcn.1401c551a
jmp 0x14013b216
lea rcx, [0x1402b77d8]
call fcn.14015c450
test al, al
je 0x14013bac1
mov qword [0x1402b77e0], 0
lea rsi, [0x1402b77e0]
mov qword [0x1402b77d8], rsi
jmp 0x14013b1a4
int3
int3
int3
call fcn.1400de590
jmp 0x14013afb2
int3
int3
int3
mov rcx, rsi
call fcn.1400ddc60
jmp 0x14013ae53
mov eax, 0xffffffff
cmp edx, 0xffffffff
je 0x14013af88
jmp 0x14013b8ce
int3
int3
mov rcx, rsi
call qword [0x1402ca008]
test al, al
jne 0x14013af91
jmp 0x14013b8ce
int3
int3
xor edx, edx
jmp 0x14013b414
int3
int3
int3
int3
int3
int3
int3
mov rsi, qword [r8 + 8]
test rsi, rsi
je 0x14013b4b0
lea r14, [rbx + 0x28]
xor ebp, ebp
lea r15, [rsp + 0x98]
lea r12, [rsp + 0x90]
add r8, rbp
mov qword [rsp + 0x90], r8
mov rcx, r14
mov rdx, r15
mov r9, r12
call fcn.140072680
mov rcx, qword [rsp + 0x98]
add rcx, 0x28
mov rdx, rsi
call fcn.140175330
mov r8, qword [rsp + 0x78]
mov rsi, qword [r8 + rbp + 0x18]
add rbp, 0x10
test rsi, rsi
jne 0x14013ba3c
jmp 0x14013b4b0
bswap edi
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov edx, edi
call qword [0x1402ca008]
mov ebx, eax
jmp 0x14013b1e6
int3
int3
int3
lea rcx, [rsp + 0x48]
mov rdx, rbx
call qword [0x1402ca008]
jmp 0x14013b4b0
int3
int3
int3
int3
mov rsi, qword [0x1402b77d8]
jmp 0x14013b1a4