Function at 0x1400a7650
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], xmm10
movapd xmmword [rsp + 0x110], xmm9
movapd xmmword [rsp + 0x100], xmm8
movdqa xmmword [rsp + 0xf0], xmm7
movaps xmmword [rsp + 0xe0], xmm6
mov rsi, rcx
mov rax, qword [0x140145040]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov rbx, qword [rcx + 8]
mov r14, qword [rcx + 0x10]
xorpd xmm0, xmm0
lea rdi, [rsp + 0x90]
movupd xmmword [rdi + 0x34], xmm0
movupd xmmword [rdi + 0x28], xmm0
movupd xmmword [rdi + 0x18], xmm0
movupd xmmword [rdi + 8], xmm0
movupd xmmword [rdi - 8], xmm0
movapd xmm6, xmmword [0x140123670]
movupd xmmword [rdi - 0x18], xmm6
test r14, r14
je 0x1400a7723
lea eax, [r14*8]
mov rcx, r14
shr rcx, 0x1d
mov dword [rsp + 0x8c], ecx
mov dword [rsp + 0x88], eax
cmp r14, 0x40
jae 0x1400a80ee
mov r8, r14
mov dword [rsp + 0xd0], r8d
mov rcx, rdi
mov rdx, rbx
call fcn.1400eabe0
mov eax, dword [rsp + 0xd0]
lea rcx, [rax + 1]
mov ebp, dword [rsp + 0x88]
mov r14d, dword [rsp + 0x8c]
mov byte [rsp + rax + 0x90], 0x80
cmp rax, 0x38
jae 0x1400a795e
cmp rcx, 0x38
je 0x1400a7768
mov r8d, 0x38
sub r8, rcx
add rcx, rdi
xor edx, edx
call fcn.1400eb280
lea rbx, [rsp + 0x78]
mov dword [rbx + 0x50], ebp
mov dword [rbx + 0x54], r14d
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
call fcn.140046400
mov rbx, qword [rbx]
mov r15, qword [0x140157890]
test r15, r15
je 0x1400a79b5
mov ebp, dword [r15 + 0x50]
movabs r12, 0xaaaaaaaaaaaaaaaa
mov r13d, 0xaaaaaaab
mov qword [rsp + 0x78], r12
mov edx, dword [r15 + 0x6c]
mov eax, dword [r15 + 0x68]
mov rcx, qword [r15 + 0x60]
cmp eax, 0x30
je 0x1400a816b
lea r10d, [rax + 0x10]
cmp r10d, 0x50
jb 0x1400a79b5
mov r9d, eax
mov r8d, r9d
and r8d, 7
jne 0x1400a79b5
mov r8d, dword [rcx + 0x14]
cmp r8d, r10d
jb 0x1400a79b5
mov rcx, qword [rcx + 8]
mov r10d, dword [rcx + r9 + 4]
cmp r10d, 0xc8799269
jne 0x1400a79b5
add rcx, r9
mov r9d, dword [rcx]
cmp r9d, 0x10
jb 0x1400a79b5
mov r9d, dword [rcx]
add r9d, eax
jb 0x1400a79b5
cmp r9d, r8d
ja 0x1400a79b5
test rcx, rcx
je 0x1400a79b5
mov r8d, dword [rcx + 0xc]
cmp r8d, 0x30
je 0x1400a79b5
mov rcx, qword [r15 + 0x60]
lea r9d, [r8 + 0x10]
cmp r9d, 0x50
jb 0x1400a82df
mov r10d, r8d
and r10d, 7
jne 0x1400a82df
mov r10d, dword [rcx + 0x14]
cmp r10d, r9d
jb 0x1400a82df
mov r9, qword [rcx + 8]
mov r11d, dword [r9 + r8 + 4]
cmp r11d, 0xc8799269
jne 0x1400a82df
add r9, r8
mov r11d, dword [r9]
cmp r11d, 0x10
jb 0x1400a82df
mov r11d, dword [r9]
add r11d, r8d
setb r14b
test r9, r9
je 0x1400a82df
test r14b, r14b
jne 0x1400a82df
cmp r11d, r10d
ja 0x1400a82df
lock cmpxchg dword [r15 + 0x68], r8d
jne 0x1400a77b9
mov eax, dword [r9 + 8]
mov rcx, qword [r15 + 0x60]
mov r9, qword [rcx + 8]
mov r9d, dword [r9 + 0x28]
mov r10d, dword [rcx + 0x14]
cmp r10d, r9d
cmovb r9d, r10d
imul r9, r13
shr r9, 0x24
cmp edx, r9d
ja 0x1400a82df
lock inc dword [r15 + 0x6c]
cmp eax, 0xf1645913
jne 0x1400a77b1
cmp r8d, ebp
je 0x1400a77b1
mov rcx, qword [r15 + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140012f70
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400a79b5
xor r14d, r14d
mov qword [rsp + 0x78], r14
call fcn.140079210
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x78], r14
test rcx, rcx
je 0x1400a77ac
jmp 0x1400a8368
mov r8d, 0x3f
sub r8, rax
xor edx, edx
call fcn.1400eb280
jmp 0x1400a7974
cmp eax, 0x3f
je 0x1400a7974
add rcx, rdi
cmp eax, 0x3c
jne 0x1400a794c
mov byte [rcx + 2], 0
mov word [rcx], 0
lea rcx, [rsp + 0x78]
mov r8d, 1
mov rdx, rdi
call fcn.140046400
xor ecx, ecx
jmp 0x1400a7755
cmp rax, r8
jb 0x1400a799b
xor edx, edx
div r8
mov rax, rdx
cmp rax, rcx
jne 0x1400a7ae9
mov r9, qword [r9]
test r9, r9
jne 0x1400a7ace
jmp 0x1400a7ae9
mov r14, qword [0x1401579d8]
cmp r14, 1
jbe 0x1400a8205
mov rax, qword [0x140147c20]
and rax, r14
cmp rax, qword [0x140147c08]
jne 0x1400a79e1
mov rcx, r14
call fcn.140073220
test r14, r14
je 0x1400a832e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400a815d
mov r15, qword [0x1401579e8]
test r15, r15
je 0x1400a7c36
mov rax, qword [0x1401579d8]
cmp rax, 1
jbe 0x1400a8237
mov r8, qword [r15 + 8]
test r8, r8
je 0x1400a7c36
bswap rbx
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 r10, 0x101010101010101
imul r10, rax
shr r10, 0x38
cmp r10, 1
jbe 0x1400a81db
mov rcx, rbx
cmp rbx, r8
jb 0x1400a7aa5
mov rax, rbx
xor edx, edx
div r8
mov rcx, rdx
mov rax, qword [r15]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x1400a7c36
mov r9, qword [rax]
test r9, r9
je 0x1400a7c36
cmp r10d, 2
jb 0x1400a8178
xor r15d, r15d
mov rax, qword [r9 + 8]
cmp rbx, rax
jne 0x1400a798e
cmp qword [r9 + 0x10], rbx
jne 0x1400a79a4
mov r15, qword [r9 + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [0x140147c20]
and rax, r14
cmp rax, qword [0x140147c08]
jne 0x1400a7b0d
mov rcx, r14
call fcn.1400736b0
lea r12, [rsi + 8]
test r15, r15
je 0x1400a7c72
mov edi, dword [rsi + 0x18]
mov rax, qword [r15]
mov rax, qword [rax + 0x18]
xor ecx, ecx
lea rdx, [0x1400b2ee0]
cmp rax, rdx
jne 0x1400a7c07
cmp edi, ecx
jne 0x1400a82fc
mov r9, qword [rsi + 0x28]
test r9, r9
je 0x1400a7bb5
mov edx, dword [rsi + 0x1c]
mov r8d, dword [rsi + 0x20]
mov rax, qword [r15]
mov rax, qword [rax + 0x20]
lea rcx, [0x14005a7a0]
cmp rax, rcx
jne 0x1400a82eb
mov rax, qword [r15 + 0x18]
mov rcx, qword [rax + 0x20]
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 0x1400a82fc
cmp r9, 1
je 0x1400a8334
cmp r10, 1
jbe 0x1400a8331
cmp dword [rax + 4], edx
jne 0x1400a82fc
mov eax, dword [rax + rcx - 8]
cmp eax, r8d
jne 0x1400a82fc
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1400b7310
mov rax, r15
movaps xmm6, xmmword [rsp + 0xe0]
movaps xmm7, xmmword [rsp + 0xf0]
movaps xmm8, xmmword [rsp + 0x100]
movaps xmm9, xmmword [rsp + 0x110]
movaps xmm10, 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, [0x1400b2ef0]
cmp rax, rdx
je 0x1400a7b36
mov ecx, 2
lea rdx, [0x14005aa40]
cmp rax, rdx
je 0x1400a7b36
jmp 0x1400a81f5
xor r15d, r15d
jmp 0x1400a7ae9
cmp eax, 0x3f
je 0x1400a7c58
add rcx, rdi
cmp eax, 0x3c
jne 0x1400a811b
mov byte [rcx + 2], 0
mov word [rcx], 0
lea rcx, [rsp + 0x78]
mov r8d, 1
mov rdx, rdi
call fcn.140046400
xor ecx, ecx
jmp 0x1400a7d25
mov rbx, qword [rsi + 8]
mov r14, qword [rsi + 0x10]
xorpd xmm0, xmm0
movupd xmmword [rsp + 0xc4], xmm0
movupd xmmword [rsp + 0xb8], xmm0
movupd xmmword [rsp + 0xa8], xmm0
movupd xmmword [rsp + 0x98], xmm0
movupd xmmword [rsp + 0x88], xmm0
movupd xmmword [rsp + 0x78], xmm6
test r14, r14
je 0x1400a7cf3
lea eax, [r14*8]
mov rcx, r14
shr rcx, 0x1d
mov dword [rsp + 0x8c], ecx
mov dword [rsp + 0x88], eax
cmp r14, 0x40
jae 0x1400a8130
mov r8, r14
mov dword [rsp + 0xd0], r8d
mov rcx, rdi
mov rdx, rbx
call fcn.1400eabe0
mov eax, dword [rsp + 0xd0]
lea rcx, [rax + 1]
mov ebp, dword [rsp + 0x88]
mov r14d, dword [rsp + 0x8c]
mov byte [rsp + rax + 0x90], 0x80
cmp rax, 0x38
jae 0x1400a7c3e
cmp rcx, 0x38
je 0x1400a7d38
mov r8d, 0x38
sub r8, rcx
add rcx, rdi
xor edx, edx
call fcn.1400eb280
lea rbx, [rsp + 0x78]
mov dword [rbx + 0x50], ebp
mov dword [rbx + 0x54], r14d
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
call fcn.140046400
mov ecx, dword [rbx]
bswap ecx
call fcn.14009da30
test al, al
je 0x1400a831e
mov rax, qword [rsi]
mov rax, qword [rax]
lea rcx, [0x140034ae0]
cmp rax, rcx
jne 0x1400a7de0
mov ecx, 0x20
call fcn.1400b4d4c
mov rdi, rax
mov r15, qword [rsi + 0x28]
xorpd xmm0, xmm0
movupd xmmword [rax], xmm0
mov qword [rax + 0x10], 0
inc r15
je 0x1400a7e5a
mov rax, r15
shr rax, 0x3e
jne 0x1400a8354
lea r14, [r15*4]
mov rcx, r14
call fcn.1400b4d4c
mov rbx, rax
mov qword [rdi], rax
lea r13, [rax + r15*4]
mov qword [rdi + 0x10], r13
mov rcx, rax
xor edx, edx
mov r8, r14
call fcn.1400eb280
mov qword [rdi + 8], r13
jmp 0x1400a7e5f
lea rcx, [fcn.14007c990]
cmp rax, rcx
jne 0x1400a7dfc
mov rcx, rsi
call fcn.14007c990
mov rdi, rax
jmp 0x1400a8011
lea rcx, [0x1401063e0]
cmp rax, rcx
jne 0x1400a81e7
mov ecx, 0x20
call fcn.1400b4d4c
mov rdi, rax
mov ecx, 0x10
call fcn.1400b4d4c
mov qword [rdi], rax
lea rcx, [rax + 0x10]
mov qword [rdi + 0x10], rcx
xor edx, edx
mov dword [rax], edx
mov qword [rdi + 8], rcx
mov dword [rdi + 0x1c], edx
movabs rcx, 0x200000001
mov qword [rax + 4], rcx
mov dword [rax + 0xc], 0x7fffffff
mov dword [rdi + 0x18], 0x3eb2a456
jmp 0x1400a8011
xor ebx, ebx
xor r13d, r13d
mov qword [rdi + 0x18], 0
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [rsi + 0x20]
call fcn.1400e8840
mov r14, r13
sub r14, rbx
cmp r14, 4
jbe 0x1400a8344
mov r15d, dword [rsi + 0x1c]
mov dword [rbx + 4], r15d
sar r14, 2
lea rax, [r14 - 1]
cmp rax, 3
jb 0x1400a7f8b
movapd xmm6, xmm0
add r14, 0xfffffffffffffffd
mov r13d, 2
lea rbx, [rsp + 0x78]
movdqa xmm7, xmmword [0x140121580]
movapd xmm8, xmmword [0x140121590]
movapd xmm9, xmmword [0x14011b4c0]
movapd xmm10, xmmword [0x140123680]
nop word cs:[rax + rax]
xorps xmm0, xmm0
cvtsi2sd xmm0, r15d
call fcn.1400e8840
movsd qword [rsp + 0x78], xmm0
mov rcx, rbx
call fcn.140073210
mov rbp, qword [rdi]
mov rax, qword [rdi + 8]
sub rax, rbp
sar rax, 2
cmp rax, r13
jbe 0x1400a832b
movsd xmm1, qword [rsp + 0x78]
movapd xmm0, xmm6
subsd xmm0, xmm1
movq xmm2, r14
punpckldq xmm2, xmm7
subpd xmm2, xmm8
movapd xmm3, xmm2
unpckhpd xmm3, xmm2
addsd xmm3, xmm2
divsd xmm0, xmm3
addsd xmm0, xmm1
call fcn.1400e8d70
movapd xmm1, xmm0
andpd xmm1, xmm9
orpd xmm1, xmm10
addsd xmm1, xmm0
xorps xmm0, xmm0
roundsd xmm0, xmm1, 0xb
cvttsd2si eax, xmm0
cmp r15d, eax
lea ecx, [r15 + 1]
cmovl ecx, eax
mov dword [rbp + r13*4], ecx
inc r13
mov r15d, ecx
dec r14
jne 0x1400a7ee0
mov rbx, qword [rdi]
mov r13, qword [rdi + 8]
cmp r13, rbx
je 0x1400a8347
mov dword [r13 - 4], 0x7fffffff
mov r8, qword [rdi]
mov rax, qword [rdi + 8]
mov rdx, rax
sub rdx, r8
je 0x1400a834a
js 0x1400a8351
mov rcx, rdx
shr rcx, 2
test dl, 1
jne 0x1400a82bd
mov rdx, r8
lea r9, [rax - 1]
cmp r9, r8
je 0x1400a800e
lea r8, [0x14012a4b0]
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 0x1400a7fe0
mov dword [rdi + 0x18], ecx
mov rcx, rdi
call fcn.14007b5a0
mov rbx, rax
cmp qword [rsi + 0x28], 0
je 0x1400a8269
mov dword [rsp + 0x74], 0
mov rdi, qword [0x140157890]
test rdi, rdi
je 0x1400a81ac
mov eax, dword [rsi + 0x30]
mov ecx, dword [rsi + 0x1c]
mov edx, dword [rsi + 0x20]
movupd xmm0, xmmword [r12]
lea r9, [rsp + 0x60]
movapd xmmword [r9], xmm0
mov r8d, dword [rsi + 0x18]
lea r10, [rsp + 0x74]
mov qword [rsp + 0x40], r10
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
lea r14, [rsp + 0x78]
mov rcx, rdi
mov rdx, r14
call fcn.14007a410
mov r14, qword [r14]
test r14, r14
je 0x1400a81ac
mov rax, qword [rsi]
mov rax, qword [rax + 0x10]
lea rcx, [method.std::__Cr::basic_streambuf_wchar_t__struct_std::__Cr::char_traits_wchar_t__.virtual_8]
cmp rax, rcx
jne 0x1400a80d1
mov rcx, r14
call fcn.140079210
mov r15, rax
mov edx, dword [rsp + 0x74]
test edx, edx
je 0x1400a7b1a
cmp r15, r14
sete r8b
mov rcx, rdi
call fcn.14009db20
jmp 0x1400a7b1a
lea rcx, [section..text]
cmp rax, rcx
jne 0x1400a8357
mov rcx, rsi
mov rdx, r14
call section..text
jmp 0x1400a80a6
mov r8, r14
shr r8, 6
lea rcx, [rsp + 0x78]
mov rdx, rbx
call fcn.140046400
mov r8, r14
and r8, 0x3f
je 0x1400a7723
and r14, 0xffffffffffffffc0
add rbx, r14
jmp 0x1400a7710
mov r8d, 0x3f
sub r8, rax
xor edx, edx
call fcn.1400eb280
jmp 0x1400a7c58
mov r8, r14
shr r8, 6
lea rcx, [rsp + 0x78]
mov rdx, rbx
call fcn.140046400
mov r8, r14
and r8, 0x3f
je 0x1400a7cf3
and r14, 0xffffffffffffffc0
add rbx, r14
jmp 0x1400a7ce0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400a79fb
mov rcx, qword [rcx + 8]
add rcx, 0x30
jmp 0x1400a782c
dec r8
xor r15d, r15d
mov rax, qword [r9 + 8]
cmp rbx, rax
jne 0x1400a8193
cmp qword [r9 + 0x10], rbx
je 0x1400a7ae5
jmp 0x1400a819f
and rax, r8
cmp rax, rcx
jne 0x1400a7ae9
mov r9, qword [r9]
test r9, r9
jne 0x1400a817e
jmp 0x1400a7ae9
and byte [rsi + 0x30], 0xbf
mov rax, qword [rsi]
mov rax, qword [rax + 8]
lea r14, [rsp + 0x78]
mov rcx, rsi
mov rdx, r14
mov r8, rbx
call qword [0x14013a9a8]
mov r14, qword [r14]
mov eax, dword [rsi + 0x30]
lock or dword [r14 + 0x10], eax
jmp 0x1400a8093
lea rcx, [r8 - 1]
and rcx, rbx
jmp 0x1400a7aa5
mov rcx, rsi
call qword [0x14013a9a8]
jmp 0x1400a7df4
mov rcx, r15
call qword [0x14013a9a8]
mov ecx, eax
jmp 0x1400a7b36
lea rcx, [0x1401579d8]
call fcn.140022bc0
test al, al
je 0x1400a8384
mov qword [0x1401579e0], 0
lea r14, [0x1401579e0]
mov qword [0x1401579d8], r14
jmp 0x1400a79c6
lea rcx, [0x1401579d8]
call fcn.140022bc0
test al, al
je 0x1400a8390
mov qword [0x1401579e0], 0
lea rax, [0x1401579e0]
mov qword [0x1401579d8], rax
jmp 0x1400a7a1c
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
sar rax, 2
lea rcx, [rax - 1]
mov qword [rsi + 0x28], rcx
mov rcx, qword [rbx]
mov rdx, qword [rbx + 8]
sub rdx, rcx
cmp rdx, 4
jbe 0x1400a837e
mov ecx, dword [rcx + 4]
mov dword [rsi + 0x1c], ecx
lea rdx, [rax - 2]
mov rcx, qword [rbx]
mov r8, qword [rbx + 8]
sub r8, rcx
sar r8, 2
cmp r8, rdx
jbe 0x1400a8381
mov eax, dword [rcx + rax*4 - 8]
mov dword [rsi + 0x20], eax
jmp 0x1400a8027
movzx edx, byte [r8]
movzx r9d, cl
xor r9d, edx
lea rdx, [0x14012a4b0]
shr ecx, 8
xor ecx, dword [rdx + r9*4]
lea rdx, [r8 + 1]
jmp 0x1400a7fc8
mov dl, 1
call fcn.1400ec5e0
jmp 0x1400a79b5
mov rcx, r15
call qword [0x14013a9a8]
test al, al
jne 0x1400a7bb5
movupd xmm0, xmmword [r12]
lea rcx, [rsp + 0x50]
movapd xmmword [rcx], xmm0
call fcn.14009e010
lea rcx, str.Histogram.MismatchedConstructionArguments
mov edx, eax
call fcn.140003860
call fcn.1400eb610
mov r15, rax
jmp 0x1400a7bb5
int3
int3
int3
mov eax, 0xffffffff
cmp edx, 0xffffffff
je 0x1400a7bac
jmp 0x1400a82fc
int3
int3
xor ecx, ecx
jmp 0x1400a800e
int3
int3
mov rcx, rsi
mov rdx, r14
call qword [0x14013a9a8]
jmp 0x1400a80a6
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x14013a9a8]
jmp 0x1400a77ac
int3
int3
mov r14, qword [0x1401579d8]
jmp 0x1400a79c6
mov rax, qword [0x1401579d8]
jmp 0x1400a7a1c