Function at 0x14003b780
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], xmm9
movaps xmmword [rsp + 0xb0], xmm8
movapd xmmword [rsp + 0xa0], xmm7
movapd xmmword [rsp + 0x90], xmm6
mov r12, rcx
mov rax, qword [0x1400ff028]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, qword [rcx + 8]
movzx ecx, byte [rax + 0x17]
test cl, cl
mov rdx, qword [rax]
cmovns rdx, rax
mov qword [rsp + 0x58], rdx
cmovs rcx, qword [rax + 8]
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x58]
call fcn.14003c5b0
mov rdi, rax
test rax, rax
je 0x14003b8ea
mov esi, dword [r12 + 0x10]
mov rax, qword [rdi]
mov rdx, qword [rax + 0x18]
xor eax, eax
lea rcx, [fcn.14004b270]
cmp rdx, rcx
jne 0x14003bd55
cmp esi, eax
jne 0x14003c2d7
mov r9d, dword [r12 + 0x1c]
test r9d, r9d
je 0x14003b8a1
mov edx, dword [r12 + 0x14]
mov r8d, dword [r12 + 0x18]
mov rax, qword [rdi]
mov rbp, qword [rax + 0x20]
lea rax, [0x1400d82a0]
cmp rbp, rax
jne 0x14003c39b
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx]
mov rbp, qword [rcx + 8]
sub rbp, rax
mov rcx, rbp
shr rcx, 2
add ecx, 0xffffffff
cmp ecx, r9d
jne 0x14003c2d7
sar rbp, 2
lea rcx, [rbp - 1]
cmp rcx, 1
jbe 0x14003c2c9
cmp dword [rax + 4], edx
jne 0x14003c2d7
mov eax, dword [rax + rbp*4 - 8]
cmp eax, r8d
jne 0x14003c2d7
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140069b80
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0xa0]
movaps xmm8, xmmword [rsp + 0xb0]
movaps xmm9, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [r12 + 8]
movzx edx, byte [rcx + 0x17]
test dl, dl
jns 0x14003b8fe
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
movaps xmm8, xmmword [0x1400e8af0]
lea rdi, [rsp + 0x70]
movaps xmmword [rdi], xmm8
mov r8, rdi
call fcn.14003b2b0
mov ecx, dword [rdi]
bswap ecx
call fcn.14003c480
mov ebx, eax
mov rdi, qword [r12 + 8]
movzx edx, byte [rdi + 0x17]
mov rcx, rdi
test dl, dl
jns 0x14003b939
mov rcx, qword [rdi]
mov rdx, qword [rdi + 8]
mov r13d, dword [r12 + 0x20]
mov esi, dword [r12 + 0x10]
mov r14d, dword [r12 + 0x18]
mov eax, dword [r12 + 0x14]
mov dword [rsp + 0x50], eax
mov eax, dword [r12 + 0x1c]
mov dword [rsp + 0x54], eax
lea rbp, [rsp + 0x70]
movaps xmmword [rbp], xmm8
mov r8, rbp
call fcn.14003b2b0
mov r15, qword [rbp]
mov rbp, qword [0x140109bb0]
cmp rbp, 1
jbe 0x14003c223
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14003c2bc
mov rax, qword [0x140109bb0]
cmp rax, 1
jbe 0x14003c260
mov rax, qword [0x140109bc0]
test rax, rax
je 0x14003c29e
mov rcx, qword [rax + 0x98]
test rcx, rcx
jne 0x14003c3ad
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test bl, bl
je 0x14003c316
mov rax, qword [r12]
mov rax, qword [rax]
lea rcx, [0x1400c9260]
cmp rax, rcx
jne 0x14003bf5d
mov ecx, 0x20
call fcn.140067648
mov r15, rax
mov esi, dword [r12 + 0x1c]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
inc esi
je 0x14003ba44
lea rbx, [rsi*4]
mov rcx, rbx
call fcn.140067648
mov qword [r15], rax
lea rsi, [rax + rsi*4]
mov qword [r15 + 0x10], rsi
test rbx, rbx
je 0x14003c1e2
mov rcx, rax
xor edx, edx
mov r8, rbx
call fcn.14006c1b0
mov qword [r15 + 8], rsi
mov qword [r15 + 0x18], 0
mov esi, dword [r12 + 0x14]
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [r12 + 0x18]
call fcn.14007cce0
mov rax, qword [r15]
mov dword [rax + 4], esi
mov rax, qword [r15]
mov rbp, qword [r15 + 8]
sub rbp, rax
sar rbp, 2
lea rcx, [rbp - 1]
cmp rcx, 3
jb 0x14003bb3c
movapd xmm6, xmm0
add rbp, 0xfffffffffffffffd
mov edi, 8
lea rbx, [rsp + 0x70]
movdqa xmm9, xmmword [0x1400e6ab0]
movapd xmm7, xmmword [0x1400e6ac0]
nop word cs:[rax + rax]
nop
mov qword [rsp + 0x70], 0xffffffffffffffff
xorps xmm0, xmm0
cvtsi2sd xmm0, esi
call fcn.14007cce0
movsd qword [rsp + 0x70], xmm0
mov rcx, rbx
call fcn.140035e40
movsd xmm1, qword [rsp + 0x70]
movapd xmm0, xmm6
subsd xmm0, xmm1
movq xmm2, rbp
punpckldq xmm2, xmm9
subpd xmm2, xmm7
movapd xmm3, xmm2
unpckhpd xmm3, xmm2
addsd xmm3, xmm2
divsd xmm0, xmm3
addsd xmm0, xmm1
call fcn.14007c0c0
call fcn.140090c98
cvttsd2si eax, xmm0
cmp esi, eax
lea ecx, [rsi + 1]
cmovl ecx, eax
mov rax, qword [r15]
mov dword [rax + rdi], ecx
add rdi, 4
mov esi, ecx
add rbp, 0xffffffffffffffff
jne 0x14003bab0
mov rax, qword [r15]
mov rcx, qword [r15 + 8]
sub rcx, rax
sar rcx, 2
dec rcx
mov dword [rax + rcx*4], 0x7fffffff
mov rsi, qword [r15]
mov rdx, qword [r15 + 8]
mov r8, rdx
sub r8, rsi
je 0x14003c3df
mov rax, r8
shr rax, 2
mov rcx, rsi
not rcx
add rcx, rdx
jne 0x14003bd89
xor ebp, ebp
test r8b, 1
je 0x14003bb8a
movzx ecx, al
movzx edx, byte [rsi + rbp]
xor edx, ecx
lea rcx, [0x1400f3600]
shr eax, 8
xor eax, dword [rcx + rdx*4]
mov dword [r15 + 0x18], eax
mov rcx, r15
call fcn.140043440
mov r14, rax
cmp dword [r12 + 0x1c], 0
je 0x14003c1f2
and byte [r12 + 0x20], 0xbf
mov rax, qword [r12]
mov rax, qword [rax + 8]
lea rcx, [0x1400c93d0]
cmp rax, rcx
jne 0x14003bdcd
mov ecx, 0x28
call fcn.140067648
mov rdi, rax
mov rcx, qword [r12 + 8]
call fcn.14003c8d0
mov rbp, rax
mov qword [rdi + 8], rax
mov dword [rdi + 0x10], 0
lea rax, [0x1400e80d8]
mov qword [rdi], rax
xorpd xmm6, xmm6
movupd xmmword [rdi + 0x18], xmm6
test rbp, rbp
je 0x14003c3e6
mov rcx, rbp
call fcn.14007e0c0
lea rbx, [rsp + 0x70]
movaps xmmword [rbx], xmm8
mov rcx, rbp
mov rdx, rax
mov r8, rbx
call fcn.14003b2b0
mov rbx, qword [rbx]
bswap rbx
mov ecx, 0x38
call fcn.140067648
mov rbp, rax
mov ecx, 0x18
call fcn.140067648
movupd xmmword [rax], xmm6
xor esi, esi
mov qword [rax + 0x10], rsi
mov rcx, rbp
mov rdx, rbx
mov r8, rax
call fcn.1400438e0
lea r13, [0x1400e8848]
mov qword [rbp], r13
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], r14
mov rax, qword [r14 + 8]
sub rax, qword [r14]
cmp rax, 4
je 0x14003c3ed
lea rbx, [rdi + 0x18]
lea r15, fcn.140064030
mov qword [rbp], r15
xorpd xmm6, xmm6
movupd xmmword [rbp + 0x20], xmm6
mov qword [rbp + 0x30], 0
mov rcx, qword [rbx]
mov qword [rbx], rbp
test rcx, rcx
jne 0x14003c3f0
mov rax, qword [rbp + 8]
mov rbx, qword [rax]
mov ecx, 0x38
call fcn.140067648
mov rbp, rax
mov ecx, 0x18
call fcn.140067648
movupd xmmword [rax], xmm6
xor esi, esi
mov qword [rax + 0x10], rsi
mov rcx, rbp
mov rdx, rbx
mov r8, rax
call fcn.1400438e0
mov qword [rbp], r13
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], r14
mov rax, qword [r14 + 8]
sub rax, qword [r14]
cmp rax, 4
je 0x14003c402
mov qword [rbp], r15
xorpd xmm0, xmm0
movupd xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rdi + 0x20], rbp
test rcx, rcx
jne 0x14003c405
mov eax, dword [r12 + 0x20]
lock or dword [rdi + 0x10], eax
mov rax, qword [r12]
mov rax, qword [rax + 0x10]
lea rcx, [fcn.14009bd40]
cmp rax, rcx
jne 0x14003c0a2
mov rcx, rdi
call fcn.1400039c0
mov rdi, rax
jmp 0x14003b803
mov eax, 1
lea rcx, [0x1400673c0]
cmp rdx, rcx
je 0x14003b821
mov eax, 2
lea rcx, [0x1400289e0]
cmp rdx, rcx
je 0x14003b821
mov rcx, rdi
call rdx
jmp 0x14003b821
mov rdx, r8
and rdx, 0xfffffffffffffffe
xor ebp, ebp
lea rdi, [0x1400f3600]
nop dword [rax]
movzx ecx, al
movzx ebx, byte [rsi + rbp]
xor ebx, ecx
shr eax, 8
xor eax, dword [rdi + rbx*4]
movzx ecx, al
movzx ebx, byte [rsi + rbp + 1]
xor ebx, ecx
shr eax, 8
xor eax, dword [rdi + rbx*4]
add rbp, 2
cmp rdx, rbp
jne 0x14003bda0
jmp 0x14003bb6e
lea rcx, [0x1400c9610]
cmp rax, rcx
jne 0x14003c1ca
mov ecx, 0x40
call fcn.140067648
mov rdi, rax
mov rcx, qword [r12 + 8]
call fcn.14003c8d0
mov rbp, rax
mov qword [rdi + 8], rax
mov dword [rdi + 0x10], 0
lea rax, [0x1400e80d8]
mov qword [rdi], rax
xorpd xmm6, xmm6
movupd xmmword [rdi + 0x18], xmm6
test rbp, rbp
je 0x14003c414
mov rcx, rbp
call fcn.14007e0c0
lea rbx, [rsp + 0x70]
movaps xmmword [rbx], xmm8
mov rcx, rbp
mov rdx, rax
mov r8, rbx
call fcn.14003b2b0
mov rbx, qword [rbx]
bswap rbx
mov ecx, 0x38
call fcn.140067648
mov rbp, rax
mov ecx, 0x18
call fcn.140067648
movupd xmmword [rax], xmm6
xor esi, esi
mov qword [rax + 0x10], rsi
mov rcx, rbp
mov rdx, rbx
mov r8, rax
call fcn.1400438e0
lea r15, [0x1400e8848]
mov qword [rbp], r15
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], r14
mov rax, qword [r14 + 8]
sub rax, qword [r14]
cmp rax, 4
je 0x14003c41b
lea rbx, [rdi + 0x18]
lea r13, fcn.140064030
mov qword [rbp], r13
xorpd xmm6, xmm6
movupd xmmword [rbp + 0x20], xmm6
mov qword [rbp + 0x30], 0
mov rcx, qword [rbx]
mov qword [rbx], rbp
test rcx, rcx
jne 0x14003c41e
mov rax, qword [rbp + 8]
mov rbx, qword [rax]
mov ecx, 0x38
call fcn.140067648
mov rbp, rax
mov ecx, 0x18
call fcn.140067648
movupd xmmword [rax], xmm6
xor esi, esi
mov qword [rax + 0x10], rsi
mov rcx, rbp
mov rdx, rbx
mov r8, rax
call fcn.1400438e0
mov qword [rbp], r15
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], r14
mov rax, qword [r14 + 8]
sub rax, qword [r14]
cmp rax, 4
je 0x14003c430
mov qword [rbp], r13
xorpd xmm6, xmm6
movupd xmmword [rbp + 0x20], xmm6
mov qword [rbp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rdi + 0x20], rbp
test rcx, rcx
jne 0x14003c433
lea rax, [0x1400e8198]
mov qword [rdi], rax
mov rax, rdi
add rax, 0x30
movupd xmmword [rdi + 0x30], xmm6
mov qword [rdi + 0x28], rax
jmp 0x14003bd24
lea rcx, [0x1400c94d0]
cmp rax, rcx
jne 0x14003c1bd
mov ecx, 0x20
call fcn.140067648
mov r15, rax
mov esi, dword [r12 + 0x1c]
xorpd xmm0, xmm0
movupd xmmword [rax], xmm0
mov qword [rax + 0x10], 0
inc esi
je 0x14003c392
lea r14, [rsi*4]
mov rcx, r14
call fcn.140067648
mov rbp, rax
mov qword [r15], rax
lea rbx, [rax + rsi*4]
mov qword [r15 + 0x10], rbx
test r14, r14
je 0x14003c1ea
mov rcx, rbp
xor edx, edx
mov r8, r14
call fcn.14006c1b0
mov qword [r15 + 8], rbx
mov qword [r15 + 0x18], 0
sub rbx, rbp
sar rbx, 2
lea rax, [rbx - 1]
cmp rax, 2
jb 0x14003c144
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [r12 + 0x14]
cvtsi2sd xmm1, dword [r12 + 0x18]
add rbx, 0xfffffffffffffffd
movq xmm3, rbx
punpckldq xmm3, xmmword [0x1400e6ab0]
subpd xmm3, xmmword [0x1400e6ac0]
movapd xmm2, xmm3
unpckhpd xmm2, xmm3
addsd xmm2, xmm3
xor eax, eax
movdqa xmm3, xmmword [0x1400e6ab0]
movapd xmm4, xmmword [0x1400e6ac0]
movsd xmm9, qword [0x1400dd810]
nop dword [rax]
movq xmm6, rbx
punpckldq xmm6, xmm3
subpd xmm6, xmm4
movapd xmm7, xmm6
unpckhpd xmm7, xmm6
addsd xmm7, xmm6
mulsd xmm7, xmm0
movq xmm5, rax
punpckldq xmm5, xmm3
subpd xmm5, xmm4
movapd xmm6, xmm5
unpckhpd xmm6, xmm5
addsd xmm6, xmm5
mulsd xmm6, xmm1
addsd xmm6, xmm7
divsd xmm6, xmm2
addsd xmm6, xmm9
cvttsd2si ecx, xmm6
mov dword [rbp + rax*4 + 4], ecx
sub rbx, 1
jb 0x14003c133
mov rbp, qword [r15]
add rax, 1
jmp 0x14003c040
lea rcx, [0x1400c9730]
cmp rax, rcx
jne 0x14003c442
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
lea rcx, [0x1400673c0]
cmp rax, rcx
jne 0x14003c44f
mov r8, qword [r12 + 0x28]
test r8, r8
je 0x14003bd45
mov rbx, qword [r8 + 8]
test rbx, rbx
je 0x14003bd45
lea rbp, [rdi + 0x28]
xor esi, esi
lea r14, [rsp + 0x70]
lea r15, [rsp + 0x68]
add r8, rsi
mov qword [rsp + 0x68], r8
mov rcx, rbp
mov rdx, r14
mov r9, r15
call fcn.1400c8af0
mov rcx, qword [rsp + 0x70]
add rcx, 0x28
mov rdx, rbx
call fcn.14003cd8e
mov r8, qword [r12 + 0x28]
mov rbx, qword [r8 + rsi + 0x18]
add rsi, 0x10
test rbx, rbx
jne 0x14003c0f4
jmp 0x14003bd45
mov rbp, qword [r15]
mov rax, qword [r15 + 8]
sub rax, rbp
sar rax, 2
dec rax
mov dword [rbp + rax*4], 0x7fffffff
mov rsi, qword [r15]
mov rdx, qword [r15 + 8]
mov r8, rdx
sub r8, rsi
je 0x14003c3df
mov rax, r8
shr rax, 2
mov rcx, rsi
not rcx
add rcx, rdx
je 0x14003bb6c
mov rdx, r8
and rdx, 0xfffffffffffffffe
xor ebp, ebp
lea rdi, [0x1400f3600]
nop word cs:[rax + rax]
nop
movzx ecx, al
movzx ebx, byte [rsi + rbp]
xor ebx, ecx
shr eax, 8
xor eax, dword [rdi + rbx*4]
movzx ecx, al
movzx ebx, byte [rsi + rbp + 1]
xor ebx, ecx
shr eax, 8
xor eax, dword [rdi + rbx*4]
add rbp, 2
cmp rdx, rbp
jne 0x14003c190
jmp 0x14003bb6e
mov rcx, r12
call rax
mov r15, rax
jmp 0x14003bb8e
lea rdi, [rsp + 0x70]
mov rcx, r12
mov rdx, rdi
mov r8, r14
call rax
mov rdi, qword [rdi]
jmp 0x14003bd24
mov rsi, rax
jmp 0x14003ba40
mov rbx, rbp
jmp 0x14003bfcb
mov rax, qword [r14 + 8]
sub rax, qword [r14]
shr rax, 2
lea ecx, [rax - 1]
mov dword [r12 + 0x1c], ecx
mov rcx, qword [r14]
mov ecx, dword [rcx + 4]
mov dword [r12 + 0x14], ecx
add eax, 0xfffffffe
mov rcx, qword [r14]
mov eax, dword [rcx + rax*4]
mov dword [r12 + 0x18], eax
jmp 0x14003bba5
lea rcx, [0x140109bb0]
call fcn.140047cb0
test al, al
je 0x14003c462
lea rbp, [0x140109bb8]
mov rcx, rbp
call fcn.14004ae00
lea rcx, [0x140109bb0]
mov rdx, rbp
xor r8d, r8d
mov r9, rcx
call fcn.140047c20
jmp 0x14003b981
lea rcx, [0x140109bb0]
call fcn.140047cb0
test al, al
je 0x14003c46e
lea rcx, [0x140109bb8]
call fcn.14004ae00
lea rcx, [0x140109bb0]
lea rdx, [0x140109bb8]
xor r8d, r8d
mov r9, rcx
call fcn.140047c20
jmp 0x14003b9a3
mov ecx, 0xa8
call fcn.140067648
mov rcx, rax
call fcn.1400950b0
mov rax, qword [0x140109bc0]
jmp 0x14003b9b3
mov rcx, rbp
call fcn.140035f20
jmp 0x14003b992
mov eax, 0xffffffff
cmp edx, 0xffffffff
je 0x14003b898
mov rcx, qword [r12 + 8]
movzx edx, byte [rcx + 0x17]
test dl, dl
jns 0x14003c2eb
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
movapd xmm0, xmmword [0x1400e8af0]
lea rsi, [rsp + 0x70]
movapd xmmword [rsi], xmm0
mov r8, rsi
call fcn.14003b2b0
mov rdx, qword [rsi]
bswap rdx
lea rcx, str.Histogram.MismatchedConstructionArguments
call fcn.140057770
mov eax, dword [0x140109be8]
mov ecx, dword [0x1401025d8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
lea rdi, [0x140109bd0]
cmp eax, dword [rcx + 4]
jle 0x14003b8a1
lea rcx, [0x140109be8]
call fcn.1400676e4
cmp dword [0x140109be8], 0xffffffff
jne 0x14003b8a1
lea rax, str.dummy_histogram
mov qword [0x140109bd8], rax
mov dword [0x140109be0], 0
lea rax, [0x1400e8510]
mov qword [0x140109bd0], rax
lea rcx, [0x140109be8]
call fcn.140067684
jmp 0x14003b8a1
xor ebp, ebp
xor ebx, ebx
jmp 0x14003bfcf
mov rcx, rdi
call rbp
test al, al
jne 0x14003b8a1
jmp 0x14003c2d7
bswap r15
mov byte [rsp + 0x40], bl
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r14d
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
mov rdx, r15
mov r8, rdi
mov r9d, dword [rsp + 0x54]
call fcn.1400c8950
jmp 0x14003b9c3
xor eax, eax
jmp 0x14003bb8a
xor eax, eax
jmp 0x14003bc0c
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rbp, qword [rbx]
jmp 0x14003bcab
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x14003bd24
xor eax, eax
jmp 0x14003be26
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rbp, qword [rbx]
jmp 0x14003bec5
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x14003bf3e
mov rcx, r12
mov rdx, rdi
call rax
jmp 0x14003bd45
mov rcx, rdi
call rax
cmp eax, 5
je 0x14003bd45
jmp 0x14003c0c9
mov rbp, qword [0x140109bb0]
jmp 0x14003b981
mov rax, qword [0x140109bb0]
jmp 0x14003b9a3