Function at 0x140080180
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
movdqa xmmword [rsp + 0x110], xmm7
movapd xmmword [rsp + 0x100], xmm6
mov rdi, r9
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x14013b040]
xor rax, rsp
mov qword [rsp + 0xf8], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x60], xmm0
cmp edx, r8d
setle bpl
jg 0x140080b0d
mov eax, ebx
mov ebx, edx
test ebx, ebx
jle 0x14008092e
cmp eax, 0x7fffffff
je 0x140080b14
mov r14d, eax
cmp rdi, 0x3eb
jae 0x140080a96
cmp r14d, ebx
je 0x140080b52
cmp rdi, 3
jb 0x140080b32
mov eax, r14d
sub eax, ebx
add eax, 2
cdqe
cmp rdi, rax
setbe al
test bpl, al
je 0x140080b32
mov eax, dword [rsp + 0x1a0]
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x30], xmm0
lea rcx, [0x14011b338]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], eax
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
xorps xmm0, xmm0
lea rsi, [rsp + 0xa8]
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 [0x140127a80]
movupd xmmword [rsi - 0x18], xmm0
test rbx, rbx
je 0x1400802da
lea eax, [rbx*8]
mov rcx, rbx
shr rcx, 0x1d
mov dword [rsp + 0xa4], ecx
mov dword [rsp + 0xa0], eax
mov r8, rbx
cmp rbx, 0x40
jae 0x1400805e7
mov dword [rsp + 0xe8], ebx
mov rcx, rsi
mov rdx, rdi
call fcn.1400d07c0
mov eax, dword [rsp + 0xe8]
lea rcx, [rax + 1]
mov ebx, dword [rsp + 0xa0]
mov ebp, dword [rsp + 0xa4]
mov byte [rsp + rax + 0xa8], 0x80
cmp rax, 0x38
jae 0x140080590
cmp rcx, 0x38
je 0x14008031e
mov r8d, 0x38
sub r8, rcx
add rcx, rsi
xor edx, edx
call fcn.1400d0e60
lea rdi, [rsp + 0x90]
mov dword [rdi + 0x50], ebx
mov dword [rdi + 0x54], ebp
mov r8d, 1
mov rcx, rdi
mov rdx, rsi
call fcn.140046fc0
mov rsi, qword [rdi]
mov rdi, qword [0x14014ccb0]
cmp rdi, 1
jbe 0x140080998
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140080920
lea r12, [rsp + 0x30]
mov rbx, qword [0x14014ccc0]
test rbx, rbx
je 0x140080617
mov rax, qword [0x14014ccb0]
cmp rax, 1
jbe 0x1400809ca
mov r8, qword [rbx + 8]
test r8, r8
je 0x140080617
bswap rsi
mov rax, r8
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, r8
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x140080946
mov rcx, rsi
cmp rsi, r8
jb 0x140080411
mov rax, rsi
xor edx, edx
div r8
mov rcx, rdx
mov rax, qword [rbx]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x140080617
mov r10, qword [rax]
test r10, r10
je 0x140080617
mov rax, qword [r10 + 8]
cmp rsi, rax
jne 0x140080568
cmp qword [r10 + 0x10], rsi
jne 0x140080588
mov rsi, qword [r10 + 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rsi, rsi
je 0x140080620
mov edi, dword [rsp + 0x40]
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
xor ecx, ecx
lea rdx, [fcn.14009c530]
cmp rax, rdx
jne 0x140080539
cmp edi, ecx
jne 0x140080a64
mov r9, qword [rsp + 0x50]
test r9, r9
je 0x1400804f9
mov edx, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x48]
mov rax, qword [rsi]
mov rax, qword [rax + 0x20]
lea rcx, [0x140055850]
cmp rax, rcx
jne 0x140080a53
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov r10, rcx
sar r10, 2
lea r11, [r10 - 1]
cmp r11, r9
jne 0x140080a64
cmp r11, 2
jb 0x140080b5d
cmp r10, 1
jbe 0x140080b1f
cmp dword [rax + 4], edx
jne 0x140080a64
mov eax, dword [rax + rcx - 8]
cmp eax, r8d
jne 0x140080a64
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.14009f1f0
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, [0x140063dc0]
cmp rax, rdx
je 0x140080477
mov ecx, 2
lea rdx, [0x1400558c0]
cmp rax, rdx
je 0x140080477
jmp 0x140080988
cmp r9d, 1
jbe 0x140080952
cmp rax, r8
jb 0x14008057f
xor edx, edx
div r8
mov rax, rdx
cmp rax, rcx
jne 0x140080617
mov r10, qword [r10]
jmp 0x140080424
cmp eax, 0x3f
je 0x1400805a7
add rcx, rsi
cmp rax, 0x3c
jne 0x1400805c4
mov byte [rcx + 2], 0
mov word [rcx], 0
lea rcx, [rsp + 0x90]
mov r8d, 1
mov rdx, rsi
call fcn.140046fc0
xor ecx, ecx
jmp 0x14008030b
cmp eax, 0x3a
je 0x1400805db
mov r8d, 0x3f
sub r8, rax
xor edx, edx
call fcn.1400d0e60
jmp 0x1400805a7
mov byte [rcx + 4], 0
mov dword [rcx], 0
jmp 0x1400805a7
shr r8, 6
lea rcx, [rsp + 0x90]
mov rdx, rdi
call fcn.140046fc0
mov r8, rbx
and r8, 0x3f
je 0x1400802da
and rbx, 0xffffffffffffffc0
add rdi, rbx
mov ebx, r8d
jmp 0x1400802c8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movupd xmm0, xmmword [r12]
lea rcx, [rsp + 0x80]
movapd xmmword [rcx], xmm0
call fcn.140063f20
mov ecx, eax
call fcn.140063e70
test al, al
je 0x140080a89
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
lea rcx, [0x1400ee400]
cmp rax, rcx
jne 0x14008087c
mov ecx, 0x20
call fcn.14009d274
mov rsi, rax
mov rdx, qword [rsp + 0x50]
inc rdx
mov rcx, rax
call fcn.140063dd0
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [rsp + 0x48]
call fcn.1400ce310
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
sub rcx, rax
cmp rcx, 4
jbe 0x140080afa
mov r14d, dword [rsp + 0x44]
mov dword [rax + 4], r14d
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rbx, rax
sub rbx, rcx
sar rbx, 2
lea rdx, [rbx - 1]
cmp rdx, 3
jb 0x14008078b
movapd xmm6, xmm0
add rbx, 0xfffffffffffffffd
mov r15d, 2
lea rdi, [rsp + 0x90]
movq xmm7, qword [0x14011d8d0]
movapd xmm8, xmmword [0x14011d8e0]
nop dword [rax]
xorps xmm0, xmm0
cvtsi2sd xmm0, r14d
call fcn.1400ce310
movsd qword [rsp + 0x90], xmm0
mov rcx, rdi
call fcn.1400572d0
mov r13, qword [rsi]
mov rax, qword [rsi + 8]
sub rax, r13
sar rax, 2
cmp rax, r15
jbe 0x140080afa
movsd xmm1, qword [rsp + 0x90]
movapd xmm0, xmm6
subsd xmm0, xmm1
movq xmm2, rbx
punpckldq xmm2, xmm7
subpd xmm2, xmm8
movapd xmm3, xmm2
unpckhpd xmm3, xmm2
addsd xmm3, xmm2
divsd xmm0, xmm3
addsd xmm0, xmm1
call fcn.1400ce840
call fcn.1400cec38
cvttsd2si eax, xmm0
cmp r14d, eax
lea ecx, [r14 + 1]
cmovl ecx, eax
mov dword [r13 + r15*4], ecx
inc r15
mov r14d, ecx
dec rbx
jne 0x1400806f0
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
cmp rax, rcx
je 0x140080afa
mov dword [rax - 4], 0x7fffffff
mov r8, qword [rsi]
mov rax, qword [rsi + 8]
mov rcx, rax
sub rcx, r8
je 0x140080b70
js 0x140080b77
test cl, 1
jne 0x14008095e
shr rcx, 2
mov rdx, r8
lea r9, [rax - 1]
cmp r9, r8
je 0x14008080e
lea r8, [0x14012a148]
nop word cs:[rax + rax]
movzx r9d, cl
movzx r10d, byte [rdx]
xor r10d, r9d
shr ecx, 8
xor ecx, dword [r8 + r10*4]
movzx r9d, cl
movzx r10d, byte [rdx + 1]
xor r10d, r9d
shr ecx, 8
xor ecx, dword [r8 + r10*4]
add rdx, 2
cmp rdx, rax
jne 0x1400807e0
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140064270
cmp qword [rsp + 0x50], 0
je 0x1400809fc
lea rdi, [rsp + 0x28]
and byte [rdi + 0x30], 0xbf
mov rcx, qword [rdi]
mov r9, qword [rcx + 8]
lea rsi, [rsp + 0x90]
mov rcx, rdi
mov rdx, rsi
mov r8, rax
mov rax, r9
call qword [0x14012fc00]
mov rsi, qword [rsi]
mov eax, dword [rdi + 0x30]
lock or dword [rsi + 0x10], eax
mov rax, qword [rdi]
mov rax, qword [rax + 0x10]
lea rcx, [fcn.1400d3150]
cmp rax, rcx
jne 0x1400808ba
mov rcx, rsi
call fcn.1400648b0
mov rsi, rax
jmp 0x14008045a
lea rcx, [0x1400ee610]
cmp rax, rcx
jne 0x1400808ee
mov ecx, 0x20
call fcn.14009d274
mov rsi, rax
mov rdx, qword [rsp + 0x50]
inc rdx
mov rcx, rax
call fcn.140063dd0
mov ecx, dword [rsp + 0x44]
mov edx, dword [rsp + 0x48]
mov r8, rsi
call fcn.1400640a0
jmp 0x140080811
lea rcx, [0x1400ee650]
cmp rax, rcx
jne 0x140080b7a
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
call qword [0x14012fc00]
cmp eax, 5
je 0x14008086c
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x14008086c
jmp 0x140080b8d
lea rcx, [0x1400d2d90]
cmp rax, rcx
jne 0x140080975
mov ecx, 0x20
call fcn.14009d274
mov rsi, rax
mov edx, 4
mov rcx, rax
call fcn.140063dd0
mov ecx, 1
mov edx, 2
jmp 0x1400808ad
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140080362
mov ebx, 1
mov r14d, 1
test eax, eax
jg 0x1400801eb
jmp 0x1400801f9
lea rcx, [r8 - 1]
and rcx, rsi
jmp 0x140080411
lea rdx, [r8 - 1]
and rax, rdx
jmp 0x14008057f
movzx ecx, byte [r8]
lea rdx, [0x14012a148]
mov ecx, dword [rdx + rcx*4]
lea rdx, [r8 + 1]
jmp 0x1400807c4
lea rcx, [rsp + 0x28]
call qword [0x14012fc00]
mov rsi, rax
jmp 0x140080811
mov rcx, rsi
call qword [0x14012fc00]
mov ecx, eax
jmp 0x140080477
lea rcx, [0x14014ccb0]
call fcn.140002500
test al, al
je 0x140080bf3
mov qword [0x14014ccb8], 0
lea rdi, [0x14014ccb8]
mov qword [0x14014ccb0], rdi
jmp 0x140080351
lea rcx, [0x14014ccb0]
call fcn.140002500
test al, al
je 0x140080bff
mov qword [0x14014ccb8], 0
lea rax, [0x14014ccb8]
mov qword [0x14014ccb0], rax
jmp 0x140080388
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
sar rcx, 2
lea rdx, [rcx - 1]
mov qword [rsp + 0x50], rdx
mov rdx, qword [rax]
mov r8, qword [rax + 8]
sub r8, rdx
cmp r8, 4
jbe 0x140080b1f
mov edx, dword [rdx + 4]
mov dword [rsp + 0x44], edx
lea r8, [rcx - 2]
mov rdx, qword [rax]
mov r9, qword [rax + 8]
sub r9, rdx
sar r9, 2
cmp r9, r8
jbe 0x140080b1f
mov ecx, dword [rdx + rcx*4 - 8]
mov dword [rsp + 0x48], ecx
jmp 0x140080825
mov rcx, rsi
call qword [0x14012fc00]
test al, al
jne 0x1400804f9
movupd xmm0, xmmword [r12]
lea rcx, [rsp + 0x90]
movapd xmmword [rcx], xmm0
call fcn.14007ff70
lea rcx, [0x140127a98]
mov edx, eax
call fcn.1400654c0
call fcn.1400d1400
mov rsi, rax
jmp 0x1400804f9
movups xmm0, xmmword [rsi]
lea rcx, [rsp + 0x90]
movaps xmmword [rcx], xmm0
call fcn.14007ff70
lea rcx, str.Histogram.TooManyBuckets.1000
mov edx, eax
call fcn.1400654c0
lea rax, str.Blink.UseCounter
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov qword [rdx + 8], 0x10
movaps xmm0, xmmword [rsp + 0x60]
lea rcx, [rsp + 0x80]
movaps xmmword [rcx], xmm0
xor r8d, r8d
call fcn.1400653e0
test al, al
jne 0x140080206
mov edi, 0x66
xor ebp, ebp
jmp 0x140080206
lea rcx, [0x14011c264]
lea rdx, str....._third_partylibc_srcinclude_vector:1411:_assertion___n___size___failed:_vector___index_out_of_bounds_n
call fcn.1400d1300
mov eax, edx
jmp 0x1400801e3
mov r14d, 0x7ffffffe
jmp 0x1400801f9
lea rcx, [0x14011c264]
lea rdx, str....._third_partylibc_srcinclude_vector:1418:_assertion___n___size___failed:_vector___index_out_of_bounds_n
call fcn.1400d1300
movapd xmm0, xmmword [rsp + 0x60]
lea rcx, [rsp + 0x70]
movapd xmmword [rcx], xmm0
call fcn.14007ff70
lea rcx, str.Histogram.BadConstructionArguments
jmp 0x140080a82
lea r14d, [rbx + 1]
xor ebp, ebp
jmp 0x14008020f
mov eax, 0xffffffff
cmp edx, 0xffffffff
je 0x1400804f0
jmp 0x140080a64
xor ecx, ecx
jmp 0x14008080e
int3
lea rcx, [rsp + 0x28]
mov rdx, rsi
call qword [0x14012fc00]
jmp 0x14008086c
mov rdi, qword [r8 + 8]
test rdi, rdi
je 0x14008086c
lea rbx, [rsi + 0x28]
mov r13d, 0x10
lea r14, [rsp + 0x90]
lea r15, [rsp + 0x70]
mov qword [rsp + 0x70], r8
mov rcx, rbx
mov rdx, r14
mov r9, r15
call fcn.1400ee710
mov rcx, qword [rsp + 0x90]
add rcx, 0x28
mov rdx, rdi
call fcn.1400938c0
mov r8, qword [rsp + 0x60]
mov rdi, qword [r8 + r13 + 8]
add r8, r13
add r13, 0x10
test rdi, rdi
jne 0x140080bb1
jmp 0x14008086c
mov rdi, qword [0x14014ccb0]
jmp 0x140080351
mov rax, qword [0x14014ccb0]
jmp 0x140080388