Function at 0x140077310
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, 0xd8
movapd xmmword [rsp + 0xc0], xmm8
movapd xmmword [rsp + 0xb0], xmm7
movapd xmmword [rsp + 0xa0], xmm6
mov rax, qword [0x140135028]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rcx + 8]
test rax, rax
je 0x140077ff8
mov rsi, rcx
movzx ecx, byte [rax + 0x17]
test cl, cl
jns 0x1400774b9
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
test rax, rax
js 0x140077ffe
je 0x140077392
test rcx, rcx
je 0x140078017
lea rcx, [rsp + 0x20]
call fcn.14006a830
mov rdi, rax
test rax, rax
je 0x140077527
mov ebx, dword [rsi + 0x10]
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
mov ecx, 2
lea rdx, [0x140055c70]
cmp rax, rdx
je 0x1400773d5
xor ecx, ecx
lea rdx, [fcn.14009ae40]
cmp rax, rdx
jne 0x140077494
cmp ebx, ecx
jne 0x140077e31
mov r9, qword [rsi + 0x20]
test r9, r9
je 0x140077454
mov edx, dword [rsi + 0x14]
mov r8d, dword [rsi + 0x18]
mov rax, qword [rdi]
mov rax, qword [rax + 0x20]
lea rcx, [0x1400f42a0]
cmp rax, rcx
jne 0x14007801d
mov rax, qword [rdi + 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 0x140077e31
cmp r11, 2
jb 0x140078004
cmp r10, 4
jbe 0x140077ffb
cmp dword [rax + 4], edx
jne 0x140077e31
mov eax, dword [rax + rcx*4 - 8]
cmp eax, r8d
jne 0x140077e31
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14009d810
mov rax, rdi
movaps xmm6, xmmword [rsp + 0xa0]
movaps xmm7, xmmword [rsp + 0xb0]
movaps xmm8, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 1
lea rdx, [0x140062890]
cmp rax, rdx
je 0x1400773d5
mov rcx, rdi
call qword [0x140159008]
mov ecx, eax
jmp 0x1400773d5
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
jmp 0x140077392
cmp eax, 0x3f
je 0x1400774e0
mov r8d, 0x3f
sub r8, rax
add rcx, rdi
xor edx, edx
call fcn.14009f950
lea rcx, [rsp + 0x38]
mov r8d, 1
mov rdx, rdi
call fcn.1400437c0
xor ecx, ecx
jmp 0x1400775e7
shr r8, 6
lea rcx, [rsp + 0x38]
mov rdx, rbx
call fcn.1400437c0
mov r8, r14
and r8, 0x3f
je 0x1400775be
and r14, 0xffffffffffffffc0
add rbx, r14
mov r14d, r8d
jmp 0x1400775ab
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x140078036
movzx r14d, byte [rbx + 0x17]
test r14b, r14b
jns 0x140077559
mov r14, qword [rbx + 8]
test r14, r14
js 0x140078039
mov rbx, qword [rbx]
je 0x140077559
test rbx, rbx
je 0x140078048
xorps xmm0, xmm0
lea rdi, [rsp + 0x50]
movups xmmword [rdi + 0x34], xmm0
movups xmmword [rdi + 0x28], xmm0
movups xmmword [rdi + 0x18], xmm0
movups xmmword [rdi + 8], xmm0
movups xmmword [rdi - 8], xmm0
movapd xmm0, xmmword [0x1401224d0]
movupd xmmword [rdi - 0x18], xmm0
test r14, r14
je 0x1400775be
lea eax, [r14*8]
mov rcx, r14
shr rcx, 0x1d
mov dword [rsp + 0x4c], ecx
mov dword [rsp + 0x48], eax
mov r8, r14
cmp r14, 0x40
jae 0x1400774fa
mov dword [rsp + 0x90], r14d
mov rcx, rdi
mov rdx, rbx
call fcn.14009f2a0
mov eax, dword [rsp + 0x90]
lea rcx, [rax + 1]
mov ebp, dword [rsp + 0x48]
mov r14d, dword [rsp + 0x4c]
mov byte [rsp + rax + 0x50], 0x80
cmp rax, 0x38
jae 0x1400774c8
cmp rcx, 0x38
je 0x1400775fa
mov r8d, 0x38
sub r8, rcx
add rcx, rdi
xor edx, edx
call fcn.14009f950
lea rbx, [rsp + 0x38]
mov dword [rbx + 0x50], ebp
mov dword [rbx + 0x54], r14d
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
call fcn.1400437c0
mov ebx, dword [rbx]
mov rdi, qword [0x14014d970]
cmp rdi, 1
jbe 0x140077fb6
mov rax, qword [rdi]
test al, 0x1c
jne 0x140077de7
mov rcx, rax
or rcx, 1
add rcx, 0x100
lock cmpxchg qword [rdi], rcx
jne 0x140077de7
mov rax, qword [0x14014d980]
mov bpl, 1
test rax, rax
je 0x14007766d
mov rcx, qword [rax + 0x98]
test rcx, rcx
jne 0x14007804b
mov rax, qword [rdi]
mov ecx, eax
and ecx, 0x15
cmp ecx, 1
jne 0x140077fa7
cmp rax, 0x200
mov rcx, rax
sbb rcx, 0
add rcx, 0xffffffffffffff00
lock cmpxchg qword [rdi], rcx
jne 0x140077fa7
test bpl, bpl
je 0x140077f68
mov rax, qword [rsi]
mov rax, qword [rax]
lea rcx, [0x1400347e0]
cmp rax, rcx
jne 0x1400778e5
mov ecx, 0x20
call fcn.14009b6c4
mov rdi, rax
mov rbx, qword [rsi + 0x20]
mov r14, rbx
xorpd xmm0, xmm0
movupd xmmword [rax], xmm0
mov qword [rax + 0x10], 0
inc r14
je 0x14007773d
mov rax, r14
shr rax, 0x3e
jne 0x140078045
lea rcx, [r14*4]
call fcn.14009b6c4
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea rcx, [rax + r14*4]
mov qword [rdi + 0x10], rcx
lea rdx, [rbx*4 + 4]
nop word cs:[rax + rax]
test rax, rax
je 0x140077ff5
mov dword [rax], 0
add rax, 4
add rdx, 0xfffffffffffffffc
jne 0x140077720
mov qword [rdi + 8], rcx
mov qword [rdi + 0x18], 0
mov r14d, dword [rsi + 0x14]
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [rsi + 0x18]
call fcn.1400b75d0
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
sub rcx, rax
cmp rcx, 4
jbe 0x14007803f
mov dword [rax + 4], r14d
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov r15, rax
sub r15, rcx
sar r15, 2
lea rdx, [r15 - 1]
cmp rdx, 3
jb 0x140077860
movapd xmm6, xmm0
mov r12d, 3
sub r12, r15
add r15, 0xfffffffffffffffd
mov r13d, 2
lea rbx, [rsp + 0x38]
movdqa xmm7, xmmword [0x14011d5d0]
movapd xmm8, xmmword [0x14011d5e0]
nop word [rax + rax]
xorps xmm0, xmm0
cvtsi2sd xmm0, r14d
call fcn.1400b75d0
movsd qword [rsp + 0x38], xmm0
mov rcx, rbx
call fcn.14005e780
movsd xmm1, qword [rsp + 0x38]
movapd xmm0, xmm6
subsd xmm0, xmm1
movq xmm2, r15
punpckldq xmm2, xmm7
subpd xmm2, xmm8
movapd xmm3, xmm2
unpckhpd xmm3, xmm2
addsd xmm3, xmm2
divsd xmm0, xmm3
addsd xmm0, xmm1
call fcn.1400b5ed0
mov rbp, qword [rdi]
mov rax, qword [rdi + 8]
sub rax, rbp
sar rax, 2
cmp rax, r13
jbe 0x140077ff2
call fcn.1400ccfb8
cvttsd2si eax, xmm0
cmp r14d, eax
lea ecx, [r14 + 1]
cmovl ecx, eax
mov dword [rbp + r13*4], ecx
lea rax, [r12 + r13]
inc rax
inc r13
dec r15
mov r14d, ecx
cmp rax, 2
jne 0x1400777c0
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
cmp rax, rcx
je 0x140078042
mov dword [rax - 4], 0x7fffffff
mov rcx, qword [rdi]
mov r8, qword [rdi + 8]
mov rdx, r8
sub rdx, rcx
je 0x140077d73
mov rax, rdx
shr rax, 2
mov r9, rcx
not r9
add r9, r8
je 0x140077ac9
mov r9, rdx
and r9, 0xfffffffffffffffe
xor r8d, r8d
lea r10, [0x140126870]
nop word [rax + rax]
movzx r11d, al
movzx ebx, byte [rcx + r8]
xor ebx, r11d
shr eax, 8
xor eax, dword [r10 + rbx*4]
movzx r11d, al
movzx ebx, byte [rcx + r8 + 1]
xor ebx, r11d
shr eax, 8
xor eax, dword [r10 + rbx*4]
add r8, 2
cmp r9, r8
jne 0x1400778b0
jmp 0x140077acc
lea rcx, [0x1400cfde0]
cmp rax, rcx
jne 0x140077b80
mov ecx, 0x20
call fcn.14009b6c4
mov rdi, rax
mov rbx, qword [rsi + 0x20]
mov r14, rbx
xorpd xmm0, xmm0
movupd xmmword [rax], xmm0
mov qword [rax + 0x10], 0
inc r14
je 0x140077fe8
mov rax, r14
shr rax, 0x3e
jne 0x140078066
lea rcx, [r14*4]
call fcn.14009b6c4
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea r8, [rax + r14*4]
mov qword [rdi + 0x10], r8
lea rcx, [rbx*4 + 4]
xor edx, edx
mov r9, rax
add r9, rdx
je 0x140078001
mov dword [r9], 0
add rdx, 4
cmp rcx, rdx
jne 0x140077955
mov qword [rdi + 8], r8
mov qword [rdi + 0x18], 0
mov rcx, r8
sub rcx, rax
sar rcx, 2
lea rdx, [rcx - 1]
cmp rdx, 2
jb 0x140077a48
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [rsi + 0x14]
cvtsi2sd xmm1, dword [rsi + 0x18]
add rcx, 0xfffffffffffffffd
movq xmm2, rcx
punpckldq xmm2, xmmword [0x14011d5d0]
subpd xmm2, xmmword [0x14011d5e0]
haddpd xmm2, xmm2
mov eax, 1
movdqa xmm3, xmmword [0x14011d5d0]
movapd xmm4, xmmword [0x14011d5e0]
movsd xmm5, qword [0x1401103d0]
mov r8, qword [rdi]
mov r9, qword [rdi + 8]
sub r9, r8
sar r9, 2
cmp r9, rax
jbe 0x14007801a
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 0x1400779dc
mov rax, qword [rdi]
mov r8, qword [rdi + 8]
cmp r8, rax
je 0x140078063
mov dword [r8 - 4], 0x7fffffff
mov rcx, qword [rdi]
mov r8, qword [rdi + 8]
mov rdx, r8
sub rdx, rcx
je 0x140077d73
mov rax, rdx
shr rax, 2
mov r9, rcx
not r9
add r9, r8
je 0x140077ac9
mov r9, rdx
and r9, 0xfffffffffffffffe
xor r8d, r8d
mov r10d, 0xff
lea r11, [0x140126870]
mov ebx, eax
and ebx, r10d
movzx r14d, byte [rcx + r8]
xor r14d, ebx
shr eax, 8
xor eax, dword [r11 + r14*4]
mov ebx, eax
and ebx, r10d
movzx r14d, byte [rcx + r8 + 1]
xor r14d, ebx
shr eax, 8
xor eax, dword [r11 + r14*4]
add r8, 2
cmp r9, r8
jne 0x140077a95
jmp 0x140077acc
xor r8d, r8d
test dl, 1
je 0x140077ae8
movzx edx, al
movzx ecx, byte [rcx + r8]
xor ecx, edx
lea rdx, [0x140126870]
shr eax, 8
xor eax, dword [rdx + rcx*4]
mov dword [rdi + 0x18], eax
mov rcx, rdi
call fcn.140081e20
cmp qword [rsi + 0x20], 0
je 0x140077d1f
and byte [rsi + 0x28], 0xbf
mov rcx, qword [rsi]
mov r9, qword [rcx + 8]
lea rdi, [rsp + 0x38]
mov rcx, rsi
mov rdx, rdi
mov r8, rax
mov rax, r9
call qword [0x140159008]
mov rdi, qword [rdi]
mov eax, dword [rsi + 0x28]
lock or dword [rdi + 0x10], eax
mov rax, qword [rsi]
mov rax, qword [rax + 0x10]
lea rcx, [fcn.1400cfcf0]
cmp rax, rcx
jne 0x140077b4d
mov rcx, rdi
call fcn.14006af30
mov rdi, rax
jmp 0x1400773a8
lea rcx, [0x1400cffa0]
cmp rax, rcx
jne 0x140077d7a
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
mov rcx, rdi
call qword [0x140159008]
cmp eax, 5
je 0x140077b3d
mov r8, qword [rsi + 0x30]
test r8, r8
je 0x140077b3d
jmp 0x140077d8b
lea rcx, [0x1400f46d0]
cmp rax, rcx
jne 0x140077d0e
mov ecx, 0x20
call fcn.14009b6c4
mov rdi, rax
mov ecx, 0x10
call fcn.14009b6c4
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea rcx, [rax + 0x10]
mov qword [rdi + 0x10], rcx
test rax, rax
je 0x14007803c
mov dword [rax], 0
cmp rax, 0xfffffffffffffffc
je 0x14007803c
mov dword [rax + 4], 0
cmp rax, 0xfffffffffffffff8
je 0x14007803c
mov dword [rax + 8], 0
add rax, 0xc
je 0x14007803c
mov dword [rax], 0
mov qword [rdi + 8], rcx
mov qword [rdi + 0x18], 0
mov eax, 1
movdqa xmm0, xmmword [0x14011d5d0]
movapd xmm1, xmmword [0x14011d5e0]
movsd xmm2, qword [0x1401103d0]
mov ecx, 1
mov rdx, qword [rdi]
mov r8, qword [rdi + 8]
sub r8, rdx
sar r8, 2
cmp r8, rcx
jbe 0x140078033
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 0x140077c25
mov rax, qword [rdi + 8]
cmp rax, qword [rdi]
je 0x140078069
mov dword [rax - 4], 0x7fffffff
mov rcx, qword [rdi]
mov r8, qword [rdi + 8]
mov rdx, r8
sub rdx, rcx
je 0x140077d73
mov rax, rdx
shr rax, 2
mov r9, rcx
not r9
add r9, r8
je 0x140077ac9
mov r9, rdx
and r9, 0xfffffffffffffffe
xor r8d, r8d
mov r10d, 0xff
lea r11, [0x140126870]
mov ebx, eax
and ebx, r10d
movzx r14d, byte [rcx + r8]
xor r14d, ebx
shr eax, 8
xor eax, dword [r11 + r14*4]
mov ebx, eax
and ebx, r10d
movzx r14d, byte [rcx + r8 + 1]
xor r14d, ebx
shr eax, 8
xor eax, dword [r11 + r14*4]
add r8, 2
cmp r9, r8
jne 0x140077cd7
jmp 0x140077acc
mov rcx, rsi
call qword [0x140159008]
mov rdi, rax
jmp 0x140077aeb
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
sar rcx, 2
lea rdx, [rcx - 1]
mov qword [rsi + 0x20], rdx
mov rdx, qword [rax]
mov r8, qword [rax + 8]
sub r8, rdx
cmp r8, 4
jbe 0x14007806c
mov edx, dword [rdx + 4]
mov dword [rsi + 0x14], edx
lea r8, [rcx - 2]
mov rdx, qword [rax]
mov r9, qword [rax + 8]
sub r9, rdx
sar r9, 2
cmp r9, r8
jbe 0x14007806f
mov ecx, dword [rdx + rcx*4 - 8]
mov dword [rsi + 0x18], ecx
jmp 0x140077afe
xor eax, eax
jmp 0x140077ae8
mov rcx, rsi
mov rdx, rdi
call qword [0x140159008]
jmp 0x140077b3d
mov rbx, qword [r8 + 8]
test rbx, rbx
je 0x140077b3d
lea r14, [rdi + 0x28]
xor r13d, r13d
lea r15, [rsp + 0x38]
lea r12, [rsp + 0x30]
add r8, r13
mov qword [rsp + 0x30], r8
mov rcx, r14
mov rdx, r15
mov r9, r12
call fcn.140036700
mov rcx, qword [rsp + 0x38]
add rcx, 0x28
mov rdx, rbx
call fcn.1400965e0
mov r8, qword [rsi + 0x30]
mov rbx, qword [r8 + r13 + 0x18]
add r13, 0x10
test rbx, rbx
jne 0x140077da9
jmp 0x140077b3d
lea rdx, [0x14011c640]
mov rcx, rdi
xor r8d, r8d
xor r9d, r9d
call fcn.1400cf1f2
jmp 0x14007764e
int3
shr r8, 6
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.1400437c0
mov r8, rbx
and r8, 0x3f
je 0x140077ec6
and rbx, 0xffffffffffffffc0
add rdi, rbx
mov ebx, r8d
jmp 0x140077eb4
mov rdi, qword [rsi + 8]
test rdi, rdi
je 0x140077e01
movzx ebx, byte [rdi + 0x17]
test bl, bl
jns 0x140077e5d
mov rbx, qword [rdi + 8]
test rbx, rbx
js 0x140078072
mov rdi, qword [rdi]
je 0x140077e5d
test rdi, rdi
je 0x140078075
xorpd xmm0, xmm0
lea rsi, [rsp + 0x50]
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
movapd xmm0, xmmword [0x1401224d0]
movupd xmmword [rsi - 0x18], xmm0
test rbx, rbx
je 0x140077ec6
lea eax, [rbx*8]
mov rcx, rbx
shr rcx, 0x1d
mov dword [rsp + 0x4c], ecx
mov dword [rsp + 0x48], eax
mov r8, rbx
cmp rbx, 0x40
jae 0x140077e04
mov dword [rsp + 0x90], ebx
mov rcx, rsi
mov rdx, rdi
call fcn.14009f2a0
mov eax, dword [rsp + 0x90]
lea rcx, [rax + 1]
mov ebx, dword [rsp + 0x48]
mov ebp, dword [rsp + 0x4c]
mov byte [rsi + rax], 0x80
cmp rax, 0x38
jae 0x140077f75
cmp rcx, 0x38
je 0x140077f00
mov r8d, 0x38
sub r8, rcx
add rcx, rsi
xor edx, edx
call fcn.14009f950
lea rdi, [rsp + 0x38]
mov dword [rdi + 0x50], ebx
mov dword [rdi + 0x54], ebp
mov r8d, 1
mov rcx, rdi
mov rdx, rsi
call fcn.1400437c0
mov rsi, qword [rdi]
bswap rsi
lea rdx, str.Histogram.MismatchedConstructionArguments
lea rbx, [rsp + 0x38]
mov rcx, rbx
call fcn.1400cd460
mov rcx, rbx
mov edx, 1
call fcn.140004ab0
mov rdi, rax
cmp byte [rbx + 0x17], 0
jns 0x140077f56
mov rcx, qword [rsp + 0x38]
call fcn.14009b57c
mov rax, qword [rdi]
mov rax, qword [rax + 0x28]
mov rcx, rdi
mov edx, esi
call qword [0x140159008]
call fcn.1400cd620
mov rdi, rax
jmp 0x140077454
cmp eax, 0x3f
je 0x140077f8d
mov r8d, 0x3f
sub r8, rax
add rcx, rsi
xor edx, edx
call fcn.14009f950
lea rcx, [rsp + 0x38]
mov r8d, 1
mov rdx, rsi
call fcn.1400437c0
xor ecx, ecx
jmp 0x140077eed
mov rcx, rdi
xor edx, edx
call fcn.1400ce91a
jmp 0x14007769d
lea rcx, [0x14014d970]
call fcn.14008a2d0
test al, al
je 0x140078078
mov qword [0x14014d978], 0
lea rdi, [0x14014d978]
mov qword [0x14014d970], rdi
jmp 0x14007762a
xor eax, eax
xor r8d, r8d
jmp 0x140077975
int3
int3
int3
int3
int3
int3
mov eax, 0xffffffff
cmp edx, 0xffffffff
je 0x14007744b
jmp 0x140077e31
int3
int3
mov rcx, rdi
call qword [0x140159008]
test al, al
jne 0x140077454
jmp 0x140077e31
int3
int3
int3
int3
int3
int3
int3
int3
bswap ebx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov edx, ebx
call qword [0x140159008]
mov ebp, eax
jmp 0x14007766d
int3
int3
int3
int3
int3
int3
int3
mov rdi, qword [0x14014d970]
jmp 0x14007762a