Function at 0x140139ee0
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
movapd xmmword [rsp + 0x110], xmm7
movapd xmmword [rsp + 0x100], xmm6
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0xf8], rax
movabs r13, 0xfffffffc00000000
mov rax, rcx
and rax, r13
cmp rax, qword [0x14029be48]
je 0x14013ab82
mov qword [rsp + 0x50], rsi
movabs rax, 0x100000002
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], 2
mov qword [rsp + 0x68], 3
mov dword [rsp + 0x70], edi
lea rax, [0x14026f700]
mov qword [rsp + 0x48], rax
test rsi, rsi
je 0x14013ab6c
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x14013a107
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rcx
test rcx, rcx
js 0x14013ab7c
je 0x140139fb8
test rax, rax
je 0x14013ab8f
lea rcx, [rsp + 0x80]
call fcn.1400f7520
mov rsi, rax
test rax, rax
je 0x14013a181
mov edi, dword [rsp + 0x58]
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov ecx, 2
lea rdx, [0x1400b9ce0]
cmp rax, rdx
je 0x140139fff
xor ecx, ecx
lea rdx, [0x1401818d0]
cmp rax, rdx
jne 0x14013a0e2
cmp edi, ecx
jne 0x14013aaaf
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x14013a081
mov edx, dword [rsp + 0x5c]
mov r8d, dword [rsp + 0x60]
mov rax, qword [rsi]
mov rax, qword [rax + 0x20]
lea rcx, [0x1401f8eb0]
cmp rax, rcx
jne 0x14013ab95
mov rax, qword [rsi + 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 0x14013aaaf
cmp r11, 2
jb 0x14013aaa1
cmp r10, 4
jbe 0x14013ab79
cmp dword [rax + 4], edx
jne 0x14013aaaf
mov eax, dword [rax + rcx*4 - 8]
cmp eax, r8d
jne 0x14013aaaf
lea rax, [0x14026f6c0]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x50]
and r13, rcx
cmp r13, qword [0x14029be48]
je 0x14013ab6f
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140186020
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, [0x1400ea100]
cmp rax, rdx
je 0x140139fff
mov rcx, rsi
call qword [0x1402c9008]
mov ecx, eax
jmp 0x140139fff
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rax
jmp 0x140139fb8
cmp eax, 0x3f
je 0x14013a134
mov r8d, 0x3f
sub r8, rax
add rcx, rsi
xor edx, edx
call fcn.140188160
lea rcx, [rsp + 0x98]
mov r8d, 1
mov rdx, rsi
call fcn.1400813c0
xor ecx, ecx
jmp 0x14013a24f
shr r8, 6
lea rcx, [rsp + 0x98]
mov rdx, rdi
call fcn.1400813c0
mov r8, rbx
and r8, 0x3f
je 0x14013a21e
and rbx, 0xffffffffffffffc0
add rdi, rbx
mov ebx, r8d
jmp 0x14013a20c
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14013abae
movzx ebx, byte [rdi + 0x17]
test bl, bl
jns 0x14013a1b2
mov rbx, qword [rdi + 8]
test rbx, rbx
js 0x14013abb4
mov rdi, qword [rdi]
je 0x14013a1b2
test rdi, rdi
je 0x14013abca
xorps xmm0, xmm0
lea rsi, [rsp + 0xb0]
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 [0x14027b770]
movupd xmmword [rsi - 0x18], xmm0
test rbx, rbx
je 0x14013a21e
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 0x14013a151
mov dword [rsp + 0xf0], ebx
mov rcx, rsi
mov rdx, rdi
call fcn.140187ab0
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 0x14013a11c
cmp rcx, 0x38
je 0x14013a262
mov r8d, 0x38
sub r8, rcx
add rcx, rsi
xor edx, edx
call fcn.140188160
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.1400813c0
mov edi, dword [rdi]
mov rsi, qword [0x1402b67d8]
cmp rsi, 1
jbe 0x14013ab34
mov rax, qword [rsi]
test al, 0x1c
jne 0x14013aa84
mov rcx, rax
or rcx, 1
add rcx, 0x100
lock cmpxchg qword [rsi], rcx
jne 0x14013aa84
mov rax, qword [0x1402b67e8]
mov bl, 1
test rax, rax
je 0x14013a2d6
mov rcx, qword [rax + 0x98]
test rcx, rcx
jne 0x14013abd4
mov rax, qword [rsi]
mov ecx, eax
and ecx, 0x15
cmp ecx, 1
jne 0x14013ab25
cmp rax, 0x200
mov rcx, rax
sbb rcx, 0
add rcx, 0xffffffffffffff00
lock cmpxchg qword [rsi], rcx
jne 0x14013ab25
test bl, bl
je 0x14013ab18
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
lea rcx, [0x140066840]
cmp rax, rcx
jne 0x14013a53d
mov ecx, 0x20
call fcn.1401833f4
mov rsi, rax
mov rdi, qword [rsp + 0x68]
mov rbx, rdi
xorpd xmm0, xmm0
movupd xmmword [rax], xmm0
mov qword [rax + 0x10], 0
inc rbx
je 0x14013a39e
mov rax, rbx
shr rax, 0x3e
jne 0x14013abb7
lea rcx, [rbx*4]
call fcn.1401833f4
mov qword [rsi], rax
mov qword [rsi + 8], rax
lea rcx, [rax + rbx*4]
mov qword [rsi + 0x10], rcx
lea rdx, [rdi*4 + 4]
test rax, rax
je 0x14013ab69
mov dword [rax], 0
add rax, 4
add rdx, 0xfffffffffffffffc
jne 0x14013a381
mov qword [rsi + 8], rcx
mov qword [rsi + 0x18], 0
mov ebx, dword [rsp + 0x5c]
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [rsp + 0x60]
call fcn.1401a5190
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
sub rcx, rax
cmp rcx, 4
jbe 0x14013abba
mov dword [rax + 4], ebx
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov r14, rax
sub r14, rcx
sar r14, 2
lea rdx, [r14 - 1]
cmp rdx, 3
jb 0x14013a4b8
movapd xmm6, xmm0
mov r15d, 3
sub r15, r14
add r14, 0xfffffffffffffffd
mov r12d, 2
lea rdi, [rsp + 0x98]
movdqa xmm7, xmmword [0x140274d70]
movapd xmm8, xmmword [0x140274d80]
xorps xmm0, xmm0
cvtsi2sd xmm0, ebx
call fcn.1401a5190
movsd qword [rsp + 0x98], xmm0
mov rcx, rdi
call fcn.1400dc900
movsd xmm1, qword [rsp + 0x98]
movq xmm2, r14
punpckldq xmm2, xmm7
subpd xmm2, xmm8
haddpd xmm2, xmm2
movapd xmm0, xmm6
subsd xmm0, xmm1
divsd xmm0, xmm2
addsd xmm0, xmm1
call fcn.1401a2be0
mov rbp, qword [rsi]
mov rax, qword [rsi + 8]
sub rax, rbp
sar rax, 2
cmp rax, r12
jbe 0x14013ab66
call fcn.1401bcffc
cvttsd2si eax, xmm0
cmp ebx, eax
lea ecx, [rbx + 1]
cmovl ecx, eax
mov dword [rbp + r12*4], ecx
lea rax, [r15 + r12]
inc rax
inc r12
dec r14
mov ebx, ecx
cmp rax, 2
jne 0x14013a41e
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
cmp rax, rcx
je 0x14013abbd
mov dword [rax - 4], 0x7fffffff
mov rcx, qword [rsi]
mov r8, qword [rsi + 8]
mov rdx, r8
sub rdx, rcx
je 0x14013abc0
mov rax, rdx
shr rax, 2
mov r9, rcx
not r9
add r9, r8
je 0x14013a6f5
mov r9, rdx
and r9, 0xfffffffffffffffe
xor r8d, r8d
mov r10d, 0xff
lea r11, [0x14027c470]
mov edi, eax
and edi, r10d
movzx ebx, byte [rcx + r8]
xor ebx, edi
shr eax, 8
xor eax, dword [r11 + rbx*4]
mov edi, eax
and edi, r10d
movzx ebx, byte [rcx + r8 + 1]
xor ebx, edi
shr eax, 8
xor eax, dword [r11 + rbx*4]
add r8, 2
cmp r9, r8
jne 0x14013a508
jmp 0x14013a6f8
lea rcx, [0x1401c69a0]
cmp rax, rcx
jne 0x14013a847
mov ecx, 0x20
call fcn.1401833f4
mov rsi, rax
mov rdi, qword [rsp + 0x68]
mov rbx, rdi
xorpd xmm0, xmm0
movupd xmmword [rax], xmm0
mov qword [rax + 0x10], 0
inc rbx
je 0x14013abf2
mov rax, rbx
shr rax, 0x3e
jne 0x14013abec
lea rcx, [rbx*4]
call fcn.1401833f4
mov qword [rsi], rax
mov qword [rsi + 8], rax
lea r8, [rax + rbx*4]
mov qword [rsi + 0x10], r8
lea rcx, [rdi*4 + 4]
xor edx, edx
mov r9, rax
add r9, rdx
je 0x14013ab7f
mov dword [r9], 0
add rdx, 4
cmp rcx, rdx
jne 0x14013a5ae
mov qword [rsi + 8], r8
mov qword [rsi + 0x18], 0
mov rcx, r8
sub rcx, rax
sar rcx, 2
lea rdx, [rcx - 1]
cmp rdx, 2
jb 0x14013a6a3
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [rsp + 0x5c]
cvtsi2sd xmm1, dword [rsp + 0x60]
add rcx, 0xfffffffffffffffd
movq xmm2, rcx
punpckldq xmm2, xmmword [0x140274d70]
subpd xmm2, xmmword [0x140274d80]
haddpd xmm2, xmm2
mov eax, 1
movdqa xmm3, xmmword [0x140274d70]
movapd xmm4, xmmword [0x140274d80]
movsd xmm5, qword [0x14025fa70]
mov r8, qword [rsi]
mov r9, qword [rsi + 8]
sub r9, r8
sar r9, 2
cmp r9, rax
jbe 0x14013ab92
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 0x14013a637
mov rax, qword [rsi]
mov r8, qword [rsi + 8]
cmp r8, rax
je 0x14013abef
mov dword [r8 - 4], 0x7fffffff
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
sub rcx, rax
je 0x14013abcd
mov rdx, rcx
shr rdx, 2
xor r8d, r8d
lea r9, [0x14027c470]
movzx r10d, dl
movzx r11d, byte [rax + r8]
xor r11d, r10d
shr edx, 8
xor edx, dword [r9 + r11*4]
inc r8
cmp rcx, r8
jne 0x14013a6d5
mov dword [rsi + 0x18], edx
jmp 0x14013a717
xor r8d, r8d
test dl, 1
je 0x14013a714
movzx edx, al
movzx ecx, byte [rcx + r8]
xor ecx, edx
lea rdx, [0x14027c470]
shr eax, 8
xor eax, dword [rdx + rcx*4]
mov dword [rsi + 0x18], eax
mov rcx, rsi
call fcn.1400fa2c0
mov rsi, rax
cmp qword [rsp + 0x68], 0
je 0x14013a9b2
mov dword [rsp + 0x7c], 0
mov rdi, qword [0x1402b6818]
test rdi, rdi
je 0x14013a80f
mov r9, qword [rsp + 0x50]
test r9, r9
je 0x14013abb1
mov r8d, dword [rsp + 0x58]
mov eax, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x60]
mov edx, dword [rsp + 0x70]
lea r10, [rsp + 0x7c]
mov qword [rsp + 0x40], r10
mov dword [rsp + 0x38], edx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
lea rbx, [rsp + 0x98]
mov rcx, rdi
mov rdx, rbx
call fcn.1400f92c0
mov rbx, qword [rbx]
test rbx, rbx
je 0x14013a80f
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x10]
lea rcx, [fcn.1401c6e80]
cmp rax, rcx
jne 0x14013a7db
mov rcx, rbx
call fcn.1400f7e10
mov rsi, rax
mov edx, dword [rsp + 0x7c]
test edx, edx
je 0x140139fd1
cmp rsi, rbx
sete r8b
mov rcx, rdi
call fcn.140119b50
jmp 0x140139fd1
lea rcx, [0x1401c6bb0]
cmp rax, rcx
jne 0x14013aa09
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
call qword [0x1402c9008]
cmp eax, 5
je 0x14013a7b0
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x14013a7b0
jmp 0x14013aa1c
lea r14, [rsp + 0x48]
and byte [r14 + 0x28], 0xbf
mov rax, qword [r14]
mov rax, qword [rax + 8]
lea rbx, [rsp + 0x98]
mov rcx, r14
mov rdx, rbx
mov r8, rsi
call qword [0x1402c9008]
mov rbx, qword [rbx]
mov eax, dword [r14 + 0x28]
lock or dword [rbx + 0x10], eax
jmp 0x14013a79b
lea rcx, [0x1401f92e0]
cmp rax, rcx
jne 0x14013a99f
mov ecx, 0x20
call fcn.1401833f4
mov rsi, rax
mov ecx, 0x10
call fcn.1401833f4
mov qword [rsi], rax
mov qword [rsi + 8], rax
lea rcx, [rax + 0x10]
mov qword [rsi + 0x10], rcx
test rax, rax
je 0x14013abc7
mov dword [rax], 0
cmp rax, 0xfffffffffffffffc
je 0x14013abc7
mov dword [rax + 4], 0
cmp rax, 0xfffffffffffffff8
je 0x14013abc7
mov dword [rax + 8], 0
add rax, 0xc
je 0x14013abc7
mov dword [rax], 0
mov qword [rsi + 8], rcx
mov qword [rsi + 0x18], 0
mov eax, 1
movdqa xmm0, xmmword [0x140274d70]
movapd xmm1, xmmword [0x140274d80]
movsd xmm2, qword [0x14025fa70]
mov ecx, 1
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
sar r8, 2
cmp r8, rcx
jbe 0x14013abab
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 0x14013a8ec
mov rax, qword [rsi + 8]
cmp rax, qword [rsi]
je 0x14013abfc
mov dword [rax - 4], 0x7fffffff
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
sub rcx, rax
je 0x14013abcd
mov rdx, rcx
shr rdx, 2
xor r8d, r8d
lea r9, [0x14027c470]
movzx r10d, dl
movzx r11d, byte [rax + r8]
xor r11d, r10d
shr edx, 8
xor edx, dword [r9 + r11*4]
inc r8
cmp rcx, r8
jne 0x14013a97f
jmp 0x14013a6f0
lea rcx, [rsp + 0x48]
call qword [0x1402c9008]
mov rsi, rax
jmp 0x14013a717
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
sar rax, 2
lea rcx, [rax - 1]
mov qword [rsp + 0x68], rcx
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
sub rdx, rcx
cmp rdx, 4
jbe 0x14013abff
mov ecx, dword [rcx + 4]
mov dword [rsp + 0x5c], ecx
lea rdx, [rax - 2]
mov rcx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rcx
sar r8, 2
cmp r8, rdx
jbe 0x14013ac02
mov eax, dword [rcx + rax*4 - 8]
mov dword [rsp + 0x60], eax
jmp 0x14013a72e
lea rcx, [rsp + 0x48]
mov rdx, rbx
call qword [0x1402c9008]
jmp 0x14013a7b0
mov rsi, qword [r8 + 8]
test rsi, rsi
je 0x14013a7b0
lea r14, [rbx + 0x28]
xor ebp, ebp
lea r15, [rsp + 0x98]
lea r12, [rsp + 0x90]
add r8, rbp
mov qword [rsp + 0x90], r8
mov rcx, r14
mov rdx, r15
mov r9, r12
call fcn.140071060
mov rcx, qword [rsp + 0x98]
add rcx, 0x28
mov rdx, rsi
call fcn.140173f80
mov r8, qword [rsp + 0x78]
mov rsi, qword [r8 + rbp + 0x18]
add rbp, 0x10
test rsi, rsi
jne 0x14013aa3f
jmp 0x14013a7b0
lea rdx, [0x140273dd0]
mov rcx, rsi
xor r8d, r8d
xor r9d, r9d
call fcn.1401c4d86
jmp 0x14013a2b8
int3
mov eax, 0xffffffff
cmp edx, 0xffffffff
je 0x14013a078
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14013aa9e
movzx ecx, byte [rax + 0x17]
test cl, cl
jns 0x14013aaed
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa0], rax
test rax, rax
js 0x14013ac05
je 0x14013aafd
test rcx, rcx
jne 0x14013aafd
jmp 0x14013ac08
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rcx
lea rcx, [rsp + 0x98]
call fcn.140149690
lea rcx, str.Histogram.MismatchedConstructionArguments
mov edx, eax
call fcn.1400189e0
call fcn.1401c1a90
mov rsi, rax
jmp 0x14013a081
mov rcx, rsi
xor edx, edx
call fcn.1401c44ca
jmp 0x14013a306
lea rcx, [0x1402b67d8]
call fcn.1400211b0
test al, al
je 0x14013ac0b
mov qword [0x1402b67e0], 0
lea rsi, [0x1402b67e0]
mov qword [0x1402b67d8], rsi
jmp 0x14013a294
int3
int3
int3
call fcn.1400dca60
jmp 0x14013a0a2
int3
int3
int3
mov rcx, rsi
call fcn.1400dc910
jmp 0x140139f43
int3
int3
mov rcx, rsi
call qword [0x1402c9008]
test al, al
jne 0x14013a081
jmp 0x14013aaaf
int3
int3
int3
int3
int3
int3
int3
xor eax, eax
jmp 0x14013a714
int3
int3
xor edx, edx
jmp 0x14013a6f0
bswap edi
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov edx, edi
call qword [0x1402c9008]
mov ebx, eax
jmp 0x14013a2d6
int3
int3
xor eax, eax
xor r8d, r8d
jmp 0x14013a5ce
int3
int3
int3
int3
int3
mov rsi, qword [0x1402b67d8]
jmp 0x14013a294