Function at 0x14005cfe0
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, 0xe8
movapd xmmword [rsp + 0xd0], xmm9
movapd xmmword [rsp + 0xc0], xmm8
movaps xmmword [rsp + 0xb0], xmm7
movapd xmmword [rsp + 0xa0], xmm6
mov rdi, r9
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x14013a028]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov bpl, 1
cmp edx, r8d
jg 0x14005dabd
mov eax, ebx
mov ebx, edx
test ebx, ebx
jle 0x14005d7e9
cmp eax, 0x7fffffff
je 0x14005daac
mov r12d, eax
mov r14, qword [rsi]
mov r15, qword [rsi + 8]
cmp rdi, 0x3eb
jae 0x14005d960
cmp r12d, ebx
je 0x14005dac6
cmp rdi, 3
jb 0x14005dae4
test bpl, bpl
je 0x14005dae4
mov eax, r12d
sub eax, ebx
add eax, 2
cdqe
cmp rdi, rax
ja 0x14005dae4
mov eax, dword [rsp + 0x150]
movupd xmm0, xmmword [rsi]
movupd xmmword [rsp + 0x48], xmm0
lea rcx, [0x14011bbe8]
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x5c], ebx
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], eax
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
movaps xmm7, xmmword [0x140119af0]
movaps xmmword [rsp + 0x80], xmm7
lea r8, [rsp + 0x80]
call fcn.140061770
mov rsi, qword [rsp + 0x80]
mov rdi, qword [0x14014bcd0]
cmp rdi, 1
jbe 0x14005d82f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005d7c3
mov rbx, qword [0x14014bce0]
test rbx, rbx
je 0x14005d34e
mov rax, qword [0x14014bcd0]
cmp rax, 1
jbe 0x14005d861
mov r8, qword [rbx + 8]
test r8, r8
je 0x14005d34e
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 0x14005d7d1
mov rcx, rsi
cmp rsi, r8
jb 0x14005d1ca
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 0x14005d34e
mov r10, qword [rax]
test r10, r10
je 0x14005d34e
mov rax, qword [r10 + 8]
cmp rsi, rax
jne 0x14005d32a
cmp qword [r10 + 0x10], rsi
jne 0x14005d346
mov rsi, qword [r10 + 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rsi, rsi
je 0x14005d357
mov edi, dword [rsp + 0x58]
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
xor ecx, ecx
lea rdx, [fcn.1400a49e0]
cmp rax, rdx
jne 0x14005d2fb
cmp edi, ecx
jne 0x14005da2d
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x14005d2b2
mov edx, dword [rsp + 0x5c]
mov r8d, dword [rsp + 0x60]
mov rax, qword [rsi]
mov rax, qword [rax + 0x20]
lea rcx, [0x140050890]
cmp rax, rcx
jne 0x14005da1c
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 0x14005da2d
cmp r11, 2
jb 0x14005dad1
cmp r10, 1
jbe 0x14005dab7
cmp dword [rax + 4], edx
jne 0x14005da2d
mov eax, dword [rax + rcx - 8]
cmp eax, r8d
jne 0x14005da2d
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400a77a0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xa0]
movaps xmm7, xmmword [rsp + 0xb0]
movaps xmm8, xmmword [rsp + 0xc0]
movaps xmm9, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 1
lea rdx, [0x14007ce30]
cmp rax, rdx
je 0x14005d230
mov ecx, 2
lea rdx, [0x1400508e0]
cmp rax, rdx
je 0x14005d230
jmp 0x14005d81f
cmp r9d, 1
jbe 0x14005d7dd
cmp rax, r8
jb 0x14005d341
xor edx, edx
div r8
mov rax, rdx
cmp rax, rcx
jne 0x14005d34e
mov r10, qword [r10]
jmp 0x14005d1dd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
lea rsi, [rsp + 0x80]
movaps xmmword [rsi], xmm7
mov r8, rsi
call fcn.140061770
mov esi, dword [rsi]
mov rdi, qword [0x14014bcd0]
cmp rdi, 1
jbe 0x14005d92e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005d811
mov rax, qword [0x14014bce0]
test rax, rax
je 0x14005d3b4
mov rcx, qword [rax + 0xa0]
test rcx, rcx
jne 0x14005db2d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
lea rcx, [0x1400f4020]
cmp rax, rcx
jne 0x14005d63d
mov ecx, 0x20
call fcn.1400a5638
mov rsi, rax
mov rdx, qword [rsp + 0x68]
inc rdx
mov rcx, rax
call fcn.14007cd90
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [rsp + 0x60]
call fcn.1400d6320
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
sub rcx, rax
cmp rcx, 4
jbe 0x14005db1e
mov r14d, dword [rsp + 0x5c]
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 0x14005d50b
movapd xmm6, xmm0
add rbx, 0xfffffffffffffffd
mov r15d, 2
lea rdi, [rsp + 0x80]
movq xmm8, qword [0x14011dd90]
movapd xmm9, xmmword [0x14011dda0]
nop word cs:[rax + rax]
xorps xmm0, xmm0
cvtsi2sd xmm0, r14d
call fcn.1400d6320
movsd qword [rsp + 0x80], xmm0
mov rcx, rdi
call fcn.14005de30
mov r12, qword [rsi]
mov rax, qword [rsi + 8]
sub rax, r12
sar rax, 2
cmp rax, r15
jbe 0x14005daa9
movsd xmm1, qword [rsp + 0x80]
movapd xmm0, xmm6
subsd xmm0, xmm1
movq xmm2, rbx
punpckldq xmm2, xmm8
subpd xmm2, xmm9
movapd xmm3, xmm2
unpckhpd xmm3, xmm2
addsd xmm3, xmm2
divsd xmm0, xmm3
addsd xmm0, xmm1
call fcn.1400d6850
call fcn.1400d62b8
cvttsd2si eax, xmm0
cmp r14d, eax
lea ecx, [r14 + 1]
cmovl ecx, eax
mov dword [r12 + r15*4], ecx
inc r15
mov r14d, ecx
dec rbx
jne 0x14005d470
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
cmp rax, rcx
je 0x14005db21
mov dword [rax - 4], 0x7fffffff
mov r8, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, rax
sub rdx, r8
je 0x14005db17
js 0x14005db24
mov rcx, rdx
shr rcx, 2
test dl, 1
jne 0x14005d8ea
mov rdx, r8
lea r9, [rax - 1]
cmp r9, r8
je 0x14005d58e
lea r8, [0x1401291c0]
nop word [rax + rax]
movzx r9d, byte [rdx]
movzx r10d, cl
xor r10d, r9d
shr ecx, 8
xor ecx, dword [r8 + r10*4]
movzx r9d, byte [rdx + 1]
movzx r10d, cl
xor r10d, r9d
shr ecx, 8
xor ecx, dword [r8 + r10*4]
add rdx, 2
cmp rdx, rax
jne 0x14005d560
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14008c170
cmp qword [rsp + 0x68], 0
je 0x14005d893
lea rdi, [rsp + 0x40]
and byte [rdi + 0x30], 0xbf
mov rcx, qword [rdi]
mov r9, qword [rcx + 8]
lea rsi, [rsp + 0x80]
mov rcx, rdi
mov rdx, rsi
mov r8, rax
mov rax, r9
call qword [0x14012eaa8]
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.1400da340]
cmp rax, rcx
jne 0x14005d5fc
mov rcx, rsi
call fcn.1400011b0
mov rsi, rax
jmp 0x14005d213
lea rcx, [fcn.1400069e0]
cmp rax, rcx
jne 0x14005db56
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.1400069e0
jmp 0x14005d5ec
lea rcx, [fcn.14007d370]
cmp rax, rcx
jne 0x14005d801
lea rcx, [rsp + 0x40]
call fcn.14007d370
mov rsi, rax
jmp 0x14005d591
lea rcx, [0x1400d9c20]
cmp rax, rcx
jne 0x14005d61b
mov ecx, 0x20
call fcn.1400a5638
mov rsi, rax
mov rdx, qword [rsp + 0x68]
inc rdx
mov rcx, rax
call fcn.14007cd90
mov r8, qword [rsi]
mov rdx, qword [rsi + 8]
mov rax, rdx
sub rax, r8
sar rax, 2
lea rcx, [rax - 1]
cmp rcx, 2
jb 0x14005d73e
cvtsi2sd xmm0, dword [rsp + 0x5c]
cvtsi2sd xmm1, dword [rsp + 0x60]
add rax, 0xfffffffffffffffd
movq xmm2, rax
punpckldq xmm2, xmmword [0x14011dd90]
subpd xmm2, xmmword [0x14011dda0]
haddpd xmm2, xmm2
mov edx, 1
movq xmm3, qword [0x14011dd90]
movapd xmm4, xmmword [0x14011dda0]
movsd xmm5, qword [0x140127c20]
mov r8, qword [rsi]
mov r9, qword [rsi + 8]
sub r9, r8
sar r9, 2
cmp r9, rdx
jbe 0x14005daba
movq xmm6, rax
punpckldq xmm6, xmm3
subpd xmm6, xmm4
haddpd xmm6, xmm6
lea r9, [rdx - 1]
movq xmm8, r9
punpckldq xmm8, xmm3
subpd xmm8, xmm4
haddpd xmm8, xmm8
mulsd xmm6, xmm0
mulsd xmm8, xmm1
addsd xmm8, xmm6
divsd xmm8, xmm2
addsd xmm8, xmm5
cvttsd2si r9d, xmm8
mov dword [r8 + rdx*4], r9d
dec rax
inc rdx
cmp rdx, rcx
jne 0x14005d6cb
mov r8, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, r8
je 0x14005db27
mov dword [rdx - 4], 0x7fffffff
mov r8, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, rax
sub rdx, r8
je 0x14005db17
js 0x14005db2a
mov rcx, rdx
shr rcx, 2
test dl, 1
jne 0x14005d90c
mov rdx, r8
lea r9, [rax - 1]
cmp r9, r8
je 0x14005d58e
lea r8, [0x1401291c0]
nop
movzx r9d, byte [rdx]
movzx r10d, cl
xor r10d, r9d
shr ecx, 8
xor ecx, dword [r8 + r10*4]
movzx r9d, byte [rdx + 1]
movzx r10d, cl
xor r10d, r9d
shr ecx, 8
xor ecx, dword [r8 + r10*4]
add rdx, 2
cmp rdx, rax
jne 0x14005d790
jmp 0x14005d58e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14005d120
lea rcx, [r8 - 1]
and rcx, rsi
jmp 0x14005d1ca
lea rdx, [r8 - 1]
and rax, rdx
jmp 0x14005d341
mov ebx, 1
mov r12d, 1
test eax, eax
jg 0x14005d04b
jmp 0x14005d059
lea rcx, [rsp + 0x40]
call qword [0x14012eaa8]
jmp 0x14005d635
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14005d398
mov rcx, rsi
call qword [0x14012eaa8]
mov ecx, eax
jmp 0x14005d230
lea rcx, [0x14014bcd0]
call fcn.140008f30
test al, al
je 0x14005db6f
mov qword [0x14014bcd8], 0
lea rdi, [0x14014bcd8]
mov qword [0x14014bcd0], rdi
jmp 0x14005d10f
lea rcx, [0x14014bcd0]
call fcn.140008f30
test al, al
je 0x14005db7b
mov qword [0x14014bcd8], 0
lea rax, [0x14014bcd8]
mov qword [0x14014bcd0], rax
jmp 0x14005d141
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
sar rcx, 2
lea rdx, [rcx - 1]
mov qword [rsp + 0x68], rdx
mov rdx, qword [rax]
mov r8, qword [rax + 8]
sub r8, rdx
cmp r8, 4
jbe 0x14005db69
mov edx, dword [rdx + 4]
mov dword [rsp + 0x5c], edx
lea r8, [rcx - 2]
mov rdx, qword [rax]
mov r9, qword [rax + 8]
sub r9, rdx
sar r9, 2
cmp r9, r8
jbe 0x14005db6c
mov ecx, dword [rdx + rcx*4 - 8]
mov dword [rsp + 0x60], ecx
jmp 0x14005d5a5
movzx edx, byte [r8]
movzx r9d, cl
xor r9d, edx
lea rdx, [0x1401291c0]
shr ecx, 8
xor ecx, dword [rdx + r9*4]
lea rdx, [r8 + 1]
jmp 0x14005d547
movzx edx, byte [r8]
movzx r9d, cl
xor r9d, edx
lea rdx, [0x1401291c0]
shr ecx, 8
xor ecx, dword [rdx + r9*4]
lea rdx, [r8 + 1]
jmp 0x14005d77a
lea rcx, [0x14014bcd0]
call fcn.140008f30
test al, al
je 0x14005db87
mov qword [0x14014bcd8], 0
lea rdi, [0x14014bcd8]
mov qword [0x14014bcd0], rdi
jmp 0x14005d387
movaps xmm0, xmmword [0x140119af0]
lea r13, [rsp + 0x40]
movaps xmmword [r13], xmm0
mov rcx, r14
mov rdx, r15
mov r8, r13
call fcn.140061770
mov rax, qword [r13]
bswap rax
mov qword [rsp + 0x28], rax
lea rdx, str.Histogram.TooManyBuckets.1000
lea r13, [rsp + 0x40]
mov rcx, r13
call fcn.1400d9180
mov rcx, r13
mov edx, 1
call fcn.14007fb10
mov r13, rax
lea rax, [rsp + 0x40]
cmp byte [rax + 0x17], 0
jns 0x14005d9c4
mov rcx, qword [rsp + 0x40]
call fcn.1400a5630
mov rax, qword [r13]
mov rax, qword [rax + 0x28]
mov rcx, r13
mov rdx, qword [rsp + 0x28]
call qword [0x14012eaa8]
lea rax, str.Blink.UseCounter
lea rdx, [rsp + 0x80]
mov qword [rdx], rax
mov qword [rdx + 8], 0x10
lea rcx, [rsp + 0x30]
mov qword [rcx], r14
mov qword [rcx + 8], r15
xor r8d, r8d
call fcn.14005dba0
test al, al
jne 0x14005d06d
mov edi, 0x66
xor ebp, ebp
jmp 0x14005d06d
mov rcx, rsi
call qword [0x14012eaa8]
test al, al
jne 0x14005d2b2
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
lea rsi, [rsp + 0x80]
movaps xmmword [rsi], xmm7
mov r8, rsi
call fcn.140061770
mov rsi, qword [rsi]
bswap rsi
lea rdx, [0x140127c28]
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.1400d9180
mov rcx, rbx
mov edx, 1
call fcn.14007fb10
mov rdi, rax
cmp byte [rbx + 0x17], 0
jns 0x14005da8a
mov rcx, qword [rsp + 0x80]
call fcn.1400a5630
mov rax, qword [rdi]
mov rax, qword [rax + 0x28]
mov rcx, rdi
mov edx, esi
call qword [0x14012eaa8]
call fcn.1400d8dd0
mov rsi, rax
jmp 0x14005d2b2
int3
mov r12d, 0x7ffffffe
jmp 0x14005d059
int3
int3
xor ebp, ebp
mov eax, edx
jmp 0x14005d043
lea r12d, [rbx + 1]
xor ebp, ebp
jmp 0x14005d076
mov eax, 0xffffffff
cmp edx, 0xffffffff
je 0x14005d2a9
jmp 0x14005da2d
movapd xmm0, xmmword [0x140119af0]
lea rsi, [rsp + 0x40]
movapd xmmword [rsi], xmm0
mov rcx, r14
mov rdx, r15
mov r8, rsi
call fcn.140061770
mov rdx, qword [rsi]
bswap rdx
lea rcx, str.Histogram.BadConstructionArguments
call fcn.140008ec0
jmp 0x14005da9c
xor ecx, ecx
jmp 0x14005d58e
int3
int3
int3
int3
int3
bswap esi
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov edx, esi
call qword [0x14012eaa8]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test bl, bl
jne 0x14005d3bd
jmp 0x14005da9c
lea rcx, [rsp + 0x40]
mov rdx, rsi
call qword [0x14012eaa8]
jmp 0x14005d5ec
int3
int3
mov rdi, qword [0x14014bcd0]
jmp 0x14005d10f
mov rax, qword [0x14014bcd0]
jmp 0x14005d141
mov rdi, qword [0x14014bcd0]
jmp 0x14005d387