Function at 0x140059450
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, 0x148
movapd xmmword [rsp + 0x130], xmm9
movdqa xmmword [rsp + 0x120], xmm8
movaps xmmword [rsp + 0x110], xmm7
movapd xmmword [rsp + 0x100], xmm6
mov rdi, r9
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x140140040]
xor rax, rsp
mov qword [rsp + 0xf8], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x60], xmm0
mov bpl, 1
cmp edx, r8d
jg 0x14005a1ef
mov eax, ebx
mov ebx, edx
test ebx, ebx
jle 0x140059d4e
cmp eax, 0x7fffffff
je 0x14005a1af
mov r12d, eax
cmp rdi, 0x3eb
jae 0x140059e9f
cmp r12d, ebx
je 0x14005a1f8
cmp rdi, 3
jb 0x14005a1ba
test bpl, bpl
je 0x14005a1ba
mov eax, r12d
sub eax, ebx
add eax, 2
cdqe
cmp rdi, rax
ja 0x14005a1ba
mov eax, dword [rsp + 0x1b0]
movupd xmm0, xmmword [rsi]
movupd xmmword [rsp + 0x30], xmm0
lea rcx, [0x140120bc8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], eax
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
xorpd xmm0, xmm0
lea rsi, [rsp + 0xb0]
movupd xmmword [rsi + 0x34], xmm0
movupd xmmword [rsi + 0x28], xmm0
movupd xmmword [rsi + 0x18], xmm0
movupd xmmword [rsi + 8], xmm0
movupd xmmword [rsi - 8], xmm0
movaps xmm7, xmmword [0x14012d400]
movups xmmword [rsi - 0x18], xmm7
test rbx, rbx
je 0x1400595bb
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 0x1400598ba
mov dword [rsp + 0xf0], ebx
mov rcx, rsi
mov rdx, rdi
call fcn.1400d60b0
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 0x140059887
cmp rcx, 0x38
je 0x1400595ff
mov r8d, 0x38
sub r8, rcx
add rcx, rsi
xor edx, edx
call fcn.1400d6750
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.140048880
mov rdi, qword [rdi]
mov rbx, qword [0x140151d20]
cmp rbx, 1
jbe 0x140059d95
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140059d34
mov r14, qword [0x140151d30]
test r14, r14
je 0x140059921
mov rax, qword [0x140151d20]
cmp rax, 1
jbe 0x140059dc7
mov r8, qword [r14 + 8]
test r8, r8
je 0x140059921
bswap rdi
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 0x140059d42
mov rcx, rdi
cmp rdi, r8
jb 0x1400596ed
mov rax, rdi
xor edx, edx
div r8
mov rcx, rdx
mov rax, qword [r14]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x140059921
mov r10, qword [rax]
test r10, r10
je 0x140059921
mov rax, qword [r10 + 8]
cmp rdi, rax
jne 0x14005984d
cmp qword [r10 + 0x10], rdi
jne 0x14005986d
mov rdi, qword [r10 + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rdi, rdi
je 0x14005992a
mov ebx, dword [rsp + 0x40]
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
xor ecx, ecx
lea rdx, [fcn.140005330]
cmp rax, rdx
jne 0x14005981e
cmp ebx, ecx
jne 0x14005a056
mov r9, qword [rsp + 0x50]
test r9, r9
je 0x1400597d5
mov edx, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x48]
mov rax, qword [rdi]
mov rax, qword [rax + 0x20]
lea rcx, [0x1400570f0]
cmp rax, rcx
jne 0x14005a203
mov rax, qword [rdi + 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 0x14005a056
cmp r11, 2
jb 0x14005a019
cmp r10, 1
jbe 0x14005a1dc
cmp dword [rax + 4], edx
jne 0x14005a056
mov eax, dword [rax + rcx - 8]
cmp eax, r8d
jne 0x14005a056
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1400a4d90
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x100]
movaps xmm7, xmmword [rsp + 0x110]
movaps xmm8, xmmword [rsp + 0x120]
movaps xmm9, xmmword [rsp + 0x130]
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 1
lea rdx, [method.std::__Cr::codecvt_char__char__struct__Mbstatet_.virtual_40]
cmp rax, rdx
je 0x140059753
mov ecx, 2
lea rdx, [0x140057160]
cmp rax, rdx
je 0x140059753
jmp 0x140059d85
cmp r9d, 1
jbe 0x140059d66
cmp rax, r8
jb 0x140059864
xor edx, edx
div r8
mov rax, rdx
cmp rax, rcx
jne 0x140059921
mov r10, qword [r10]
jmp 0x140059700
mov r8d, 0x3f
sub r8, rax
xor edx, edx
call fcn.1400d6750
jmp 0x14005989d
cmp eax, 0x3f
je 0x14005989d
add rcx, rsi
cmp eax, 0x3c
jne 0x140059875
mov byte [rcx + 2], 0
mov word [rcx], 0
lea rcx, [rsp + 0x98]
mov r8d, 1
mov rdx, rsi
call fcn.140048880
xor ecx, ecx
jmp 0x1400595ec
shr r8, 6
lea rcx, [rsp + 0x98]
mov rdx, rdi
call fcn.140048880
mov r8, rbx
and r8, 0x3f
je 0x1400595bb
and rbx, 0xffffffffffffffc0
add rdi, rbx
mov ebx, r8d
jmp 0x1400595a9
cmp eax, 0x3f
je 0x140059904
add rcx, rsi
cmp eax, 0x3c
jne 0x140059cef
mov byte [rcx + 2], 0
mov word [rcx], 0
lea rcx, [rsp + 0x98]
mov r8d, 1
mov rdx, rsi
call fcn.140048880
xor ecx, ecx
jmp 0x1400599de
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
xorpd xmm0, xmm0
movupd xmmword [rsp + 0xe4], xmm0
movupd xmmword [rsp + 0xd8], xmm0
movupd xmmword [rsp + 0xc8], xmm0
movupd xmmword [rsp + 0xb8], xmm0
movupd xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0x98], xmm7
test rbx, rbx
je 0x1400599ad
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 0x140059d04
mov dword [rsp + 0xf0], ebx
mov rcx, rsi
mov rdx, rdi
call fcn.1400d60b0
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 0x1400598ea
cmp rcx, 0x38
je 0x1400599f1
mov r8d, 0x38
sub r8, rcx
add rcx, rsi
xor edx, edx
call fcn.1400d6750
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.140048880
mov ecx, dword [rdi]
bswap ecx
call fcn.14005a300
test al, al
je 0x14005a14a
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
lea rcx, [0x1400f36e0]
cmp rax, rcx
jne 0x140059c7b
mov ecx, 0x20
call fcn.1400a2d04
mov rdi, rax
mov rdx, qword [rsp + 0x50]
inc rdx
mov rcx, rax
call fcn.14005a260
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [rsp + 0x48]
call fcn.1400d3c00
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
sub rcx, rax
cmp rcx, 4
jbe 0x14005a19c
mov r15d, dword [rsp + 0x44]
mov dword [rax + 4], r15d
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov r14, rax
sub r14, rcx
sar r14, 2
lea rdx, [r14 - 1]
cmp rdx, 3
jb 0x140059b6c
movapd xmm6, xmm0
add r14, 0xfffffffffffffffd
mov r12d, 2
lea rbx, [rsp + 0x98]
movq xmm8, qword [0x140123450]
movapd xmm9, xmmword [0x140123460]
nop dword [rax + rax]
xorps xmm0, xmm0
cvtsi2sd xmm0, r15d
call fcn.1400d3c00
movsd qword [rsp + 0x98], xmm0
mov rcx, rbx
call fcn.140058b40
mov r13, qword [rdi]
mov rax, qword [rdi + 8]
sub rax, r13
sar rax, 2
cmp rax, r12
jbe 0x14005a19c
movsd xmm1, qword [rsp + 0x98]
movapd xmm0, xmm6
subsd xmm0, xmm1
movq xmm2, r14
punpckldq xmm2, xmm8
subpd xmm2, xmm9
movapd xmm3, xmm2
unpckhpd xmm3, xmm2
addsd xmm3, xmm2
divsd xmm0, xmm3
addsd xmm0, xmm1
call fcn.1400d4130
call fcn.1400d4528
cvttsd2si eax, xmm0
cmp r15d, eax
lea ecx, [r15 + 1]
cmovl ecx, eax
mov dword [r13 + r12*4], ecx
inc r12
mov r15d, ecx
dec r14
jne 0x140059ad0
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
cmp rax, rcx
je 0x14005a19c
mov dword [rax - 4], 0x7fffffff
mov r8, qword [rdi]
mov rax, qword [rdi + 8]
mov rdx, rax
sub rdx, r8
je 0x14005a219
js 0x14005a220
mov rcx, rdx
shr rcx, 2
test dl, 1
jne 0x140059df9
mov rdx, r8
lea r9, [rax - 1]
cmp r9, r8
je 0x140059bee
lea r8, [0x14012ed70]
nop dword [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 0x140059bc0
mov dword [rdi + 0x18], ecx
mov rcx, rdi
call fcn.140082540
cmp qword [rsp + 0x50], 0
je 0x140059e1b
lea rbx, [rsp + 0x28]
and byte [rbx + 0x30], 0xbf
mov rcx, qword [rbx]
mov r9, qword [rcx + 8]
lea rdi, [rsp + 0x98]
mov rcx, rbx
mov rdx, rdi
mov r8, rax
mov rax, r9
call qword [0x140134870]
mov rdi, qword [rdi]
mov eax, dword [rbx + 0x30]
lock or dword [rdi + 0x10], eax
mov rax, qword [rbx]
mov rax, qword [rax + 0x10]
lea rcx, [fcn.1400d83e0]
cmp rax, rcx
jne 0x140059c5c
mov rcx, rdi
call fcn.14005a590
mov rdi, rax
jmp 0x140059736
lea rcx, [fcn.1400017d0]
cmp rax, rcx
jne 0x14005a223
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.1400017d0
jmp 0x140059c4c
lea rcx, [0x1400f38f0]
cmp rax, rcx
jne 0x140059cb9
mov ecx, 0x20
call fcn.1400a2d04
mov rdi, rax
mov rdx, qword [rsp + 0x50]
inc rdx
mov rcx, rax
call fcn.14005a260
mov ecx, dword [rsp + 0x44]
mov edx, dword [rsp + 0x48]
mov r8, rdi
call fcn.14005a3b0
jmp 0x140059bf1
lea rcx, [0x1400f3a10]
cmp rax, rcx
jne 0x140059d72
mov ecx, 0x20
call fcn.1400a2d04
mov rdi, rax
mov edx, 4
mov rcx, rax
call fcn.14005a260
mov ecx, 1
mov edx, 2
jmp 0x140059cac
mov r8d, 0x3f
sub r8, rax
xor edx, edx
call fcn.1400d6750
jmp 0x140059904
shr r8, 6
lea rcx, [rsp + 0x98]
mov rdx, rdi
call fcn.140048880
mov r8, rbx
and r8, 0x3f
je 0x1400599ad
and rbx, 0xffffffffffffffc0
add rdi, rbx
mov ebx, r8d
jmp 0x14005999b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140059643
lea rcx, [r8 - 1]
and rcx, rdi
jmp 0x1400596ed
mov ebx, 1
mov r12d, 1
test eax, eax
jg 0x1400594c3
jmp 0x1400594d1
lea rdx, [r8 - 1]
and rax, rdx
jmp 0x140059864
lea rcx, [rsp + 0x28]
call qword [0x140134870]
mov rdi, rax
jmp 0x140059bf1
mov rcx, rdi
call qword [0x140134870]
mov ecx, eax
jmp 0x140059753
lea rcx, [0x140151d20]
call fcn.140002d50
test al, al
je 0x14005a236
mov qword [0x140151d28], 0
lea rbx, [0x140151d28]
mov qword [0x140151d20], rbx
jmp 0x140059632
lea rcx, [0x140151d20]
call fcn.140002d50
test al, al
je 0x14005a242
mov qword [0x140151d28], 0
lea rax, [0x140151d28]
mov qword [0x140151d20], rax
jmp 0x140059664
movzx edx, byte [r8]
movzx r9d, cl
xor r9d, edx
lea rdx, [0x14012ed70]
shr ecx, 8
xor ecx, dword [rdx + r9*4]
lea rdx, [r8 + 1]
jmp 0x140059ba8
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 0x14005a1dc
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 0x14005a1dc
mov ecx, dword [rdx + rcx*4 - 8]
mov dword [rsp + 0x48], ecx
jmp 0x140059c05
shr r8, 6
lea rcx, [rsp + 0x98]
mov rdx, r15
call fcn.140048880
mov r8, r13
and r8, 0x3f
je 0x140059f18
and r13, 0xffffffffffffffc0
add r15, r13
mov r13d, r8d
jmp 0x140059f05
mov r15, qword [rsi]
mov r13, qword [rsi + 8]
xorps xmm0, xmm0
lea r14, [rsp + 0xb0]
movups xmmword [r14 + 0x34], xmm0
movups xmmword [r14 + 0x28], xmm0
movups xmmword [r14 + 0x18], xmm0
movups xmmword [r14 + 8], xmm0
movups xmmword [r14 - 8], xmm0
movaps xmm0, xmmword [0x14012d400]
movups xmmword [r14 - 0x18], xmm0
test r13, r13
je 0x140059f18
lea eax, [r13*8]
mov rcx, r13
shr rcx, 0x1d
mov dword [rsp + 0xac], ecx
mov dword [rsp + 0xa8], eax
mov r8, r13
cmp r13, 0x40
jae 0x140059e72
mov dword [rsp + 0xf0], r13d
mov rcx, r14
mov rdx, r15
call fcn.1400d60b0
mov eax, dword [rsp + 0xf0]
lea rcx, [rax + 1]
mov r13d, dword [rsp + 0xa8]
mov edx, dword [rsp + 0xac]
mov dword [rsp + 0x24], edx
mov byte [rsp + rax + 0xb0], 0x80
cmp rax, 0x38
jae 0x140059fd4
cmp rcx, 0x38
je 0x140059f61
mov r8d, 0x38
sub r8, rcx
add rcx, r14
xor edx, edx
call fcn.1400d6750
lea r15, [rsp + 0x98]
mov dword [r15 + 0x50], r13d
mov eax, dword [rsp + 0x24]
mov dword [r15 + 0x54], eax
mov r8d, 1
mov rcx, r15
mov rdx, r14
call fcn.140048880
mov rdx, qword [r15]
bswap rdx
lea rcx, str.Histogram.TooManyBuckets.1000
call fcn.14005c4c0
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.14005c3e0
test al, al
jne 0x1400594de
jmp 0x14005a24e
cmp eax, 0x3f
je 0x140059fea
add rcx, r14
cmp eax, 0x3c
jne 0x14005a007
mov byte [rcx + 2], 0
mov word [rcx], 0
lea rcx, [rsp + 0x98]
mov r8d, 1
mov rdx, r14
call fcn.140048880
xor ecx, ecx
jmp 0x140059f4e
mov r8d, 0x3f
sub r8, rax
xor edx, edx
call fcn.1400d6750
jmp 0x140059fea
mov eax, 0xffffffff
cmp edx, 0xffffffff
je 0x1400597cc
jmp 0x14005a056
shr r8, 6
lea rcx, [rsp + 0x98]
mov rdx, rdi
call fcn.140048880
mov r8, rbx
and r8, 0x3f
je 0x14005a0d9
and rbx, 0xffffffffffffffc0
add rdi, rbx
mov ebx, r8d
jmp 0x14005a0c7
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
xorpd xmm0, xmm0
movupd xmmword [rsp + 0xe4], xmm0
movupd xmmword [rsp + 0xd8], xmm0
movupd xmmword [rsp + 0xc8], xmm0
movupd xmmword [rsp + 0xb8], xmm0
movupd xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0x98], xmm7
test rbx, rbx
je 0x14005a0d9
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 0x14005a029
mov dword [rsp + 0xf0], ebx
mov rcx, rsi
mov rdx, rdi
call fcn.1400d60b0
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 0x14005a157
cmp rcx, 0x38
je 0x14005a119
mov r8d, 0x38
sub r8, rcx
add rcx, rsi
xor edx, edx
call fcn.1400d6750
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.140048880
mov rdx, qword [rdi]
bswap rdx
lea rcx, [0x14012d418]
call fcn.14005c4c0
call fcn.1400d6be0
mov rdi, rax
jmp 0x1400597d5
cmp eax, 0x3f
je 0x14005a16d
add rcx, rsi
cmp eax, 0x3c
jne 0x14005a18a
mov byte [rcx + 2], 0
mov word [rcx], 0
lea rcx, [rsp + 0x98]
mov r8d, 1
mov rdx, rsi
call fcn.140048880
xor ecx, ecx
jmp 0x14005a106
mov r8d, 0x3f
sub r8, rax
xor edx, edx
call fcn.1400d6750
jmp 0x14005a16d
lea rcx, [0x140121d8c]
lea rdx, str....._third_partylibc_srcinclude_vector:1411:_assertion___n___size___failed:_vector___index_out_of_bounds_n
call fcn.1400d6ae0
mov r12d, 0x7ffffffe
jmp 0x1400594d1
movapd xmm0, xmmword [rsp + 0x60]
lea rcx, [rsp + 0x70]
movapd xmmword [rcx], xmm0
call fcn.140091e10
lea rcx, str.Histogram.BadConstructionArguments
mov edx, eax
jmp 0x14005a145
lea rcx, [0x140121d8c]
lea rdx, str....._third_partylibc_srcinclude_vector:1418:_assertion___n___size___failed:_vector___index_out_of_bounds_n
call fcn.1400d6ae0
xor ebp, ebp
mov eax, edx
jmp 0x1400594bb
lea r12d, [rbx + 1]
xor ebp, ebp
jmp 0x1400594e7
mov rcx, rdi
call qword [0x140134870]
test al, al
jne 0x1400597d5
jmp 0x14005a056
xor ecx, ecx
jmp 0x140059bee
int3
lea rcx, [rsp + 0x28]
mov rdx, rdi
call qword [0x140134870]
jmp 0x140059c4c
mov rbx, qword [0x140151d20]
jmp 0x140059632
mov rax, qword [0x140151d20]
jmp 0x140059664
mov edi, 0x66
xor ebp, ebp
jmp 0x1400594de