Function at 0x140047420
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 [0x14017e028]
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.140048250
mov rdi, rax
test rax, rax
je 0x14004758a
mov esi, dword [r12 + 0x10]
mov rax, qword [rdi]
mov rdx, qword [rax + 0x18]
xor eax, eax
lea rcx, [fcn.1400531f0]
cmp rdx, rcx
jne 0x1400479f5
cmp esi, eax
jne 0x140047f77
mov r9d, dword [r12 + 0x1c]
test r9d, r9d
je 0x140047541
mov edx, dword [r12 + 0x14]
mov r8d, dword [r12 + 0x18]
mov rax, qword [rdi]
mov rbp, qword [rax + 0x20]
lea rax, [0x14014ab70]
cmp rbp, rax
jne 0x14004803b
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 0x140047f77
sar rbp, 2
lea rcx, [rbp - 1]
cmp rcx, 1
jbe 0x140047f69
cmp dword [rax + 4], edx
jne 0x140047f77
mov eax, dword [rax + rbp*4 - 8]
cmp eax, r8d
jne 0x140047f77
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14008fec0
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 0x14004759e
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
movaps xmm8, xmmword [0x14015c320]
lea rdi, [rsp + 0x70]
movaps xmmword [rdi], xmm8
mov r8, rdi
call fcn.140046b40
mov ecx, dword [rdi]
bswap ecx
call fcn.140048120
mov ebx, eax
mov rdi, qword [r12 + 8]
movzx edx, byte [rdi + 0x17]
mov rcx, rdi
test dl, dl
jns 0x1400475d9
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.140046b40
mov r15, qword [rbp]
mov rbp, qword [0x140189d28]
cmp rbp, 1
jbe 0x140047ec3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140047f5c
mov rax, qword [0x140189d28]
cmp rax, 1
jbe 0x140047f00
mov rax, qword [0x140189d38]
test rax, rax
je 0x140047f3e
mov rcx, qword [rax + 0x98]
test rcx, rcx
jne 0x14004804d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test bl, bl
je 0x140047fb6
mov rax, qword [r12]
mov rax, qword [rax]
lea rcx, [0x14011c1a0]
cmp rax, rcx
jne 0x140047bfd
mov ecx, 0x20
call fcn.14008d2b8
mov r15, rax
mov esi, dword [r12 + 0x1c]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
inc esi
je 0x1400476e4
lea rbx, [rsi*4]
mov rcx, rbx
call fcn.14008d2b8
mov qword [r15], rax
lea rsi, [rax + rsi*4]
mov qword [r15 + 0x10], rsi
test rbx, rbx
je 0x140047e82
mov rcx, rax
xor edx, edx
mov r8, rbx
call fcn.1400924f0
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.1400a4fc0
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 0x1400477dc
movapd xmm6, xmm0
add rbp, 0xfffffffffffffffd
mov edi, 8
lea rbx, [rsp + 0x70]
movdqa xmm9, xmmword [0x140159b60]
movapd xmm7, xmmword [0x140159b70]
nop word cs:[rax + rax]
nop
mov qword [rsp + 0x70], 0xffffffffffffffff
xorps xmm0, xmm0
cvtsi2sd xmm0, esi
call fcn.1400a4fc0
movsd qword [rsp + 0x70], xmm0
mov rcx, rbx
call fcn.140041550
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.1400a41b0
call fcn.1400b8cc8
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 0x140047750
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 0x14004807f
mov rax, r8
shr rax, 2
mov rcx, rsi
not rcx
add rcx, rdx
jne 0x140047a29
xor ebp, ebp
test r8b, 1
je 0x14004782a
movzx ecx, al
movzx edx, byte [rsi + rbp]
xor edx, ecx
lea rcx, [0x1401702b0]
shr eax, 8
xor eax, dword [rcx + rdx*4]
mov dword [r15 + 0x18], eax
mov rcx, r15
call fcn.14004dcf0
mov r14, rax
cmp dword [r12 + 0x1c], 0
je 0x140047e92
and byte [r12 + 0x20], 0xbf
mov rax, qword [r12]
mov rax, qword [rax + 8]
lea rcx, [0x14011c310]
cmp rax, rcx
jne 0x140047a6d
mov ecx, 0x28
call fcn.14008d2b8
mov rdi, rax
mov rcx, qword [r12 + 8]
call fcn.140048570
mov rbp, rax
mov qword [rdi + 8], rax
mov dword [rdi + 0x10], 0
lea rax, [0x14015b7a8]
mov qword [rdi], rax
xorpd xmm6, xmm6
movupd xmmword [rdi + 0x18], xmm6
test rbp, rbp
je 0x140048086
mov rcx, rbp
call fcn.1400a63a0
lea rbx, [rsp + 0x70]
movaps xmmword [rbx], xmm8
mov rcx, rbp
mov rdx, rax
mov r8, rbx
call fcn.140046b40
mov rbx, qword [rbx]
bswap rbx
mov ecx, 0x38
call fcn.14008d2b8
mov rbp, rax
mov ecx, 0x18
call fcn.14008d2b8
movupd xmmword [rax], xmm6
xor esi, esi
mov qword [rax + 0x10], rsi
mov rcx, rbp
mov rdx, rbx
mov r8, rax
call fcn.14004e190
lea r13, [0x14015bf18]
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 0x14004808d
lea rbx, [rdi + 0x18]
lea r15, fcn.140089a70
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 0x140048090
mov rax, qword [rbp + 8]
mov rbx, qword [rax]
mov ecx, 0x38
call fcn.14008d2b8
mov rbp, rax
mov ecx, 0x18
call fcn.14008d2b8
movupd xmmword [rax], xmm6
xor esi, esi
mov qword [rax + 0x10], rsi
mov rcx, rbp
mov rdx, rbx
mov r8, rax
call fcn.14004e190
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 0x1400480a2
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 0x1400480a5
mov eax, dword [r12 + 0x20]
lock or dword [rdi + 0x10], eax
mov rax, qword [r12]
mov rax, qword [rax + 0x10]
lea rcx, [fcn.1400c3680]
cmp rax, rcx
jne 0x140047d42
mov rcx, rdi
call fcn.1400038d0
mov rdi, rax
jmp 0x1400474a3
mov eax, 1
lea rcx, [0x14008cff0]
cmp rdx, rcx
je 0x1400474c1
mov eax, 2
lea rcx, [0x140034080]
cmp rdx, rcx
je 0x1400474c1
mov rcx, rdi
call rdx
jmp 0x1400474c1
mov rdx, r8
and rdx, 0xfffffffffffffffe
xor ebp, ebp
lea rdi, [0x1401702b0]
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 0x140047a40
jmp 0x14004780e
lea rcx, [0x14011c550]
cmp rax, rcx
jne 0x140047e6a
mov ecx, 0x40
call fcn.14008d2b8
mov rdi, rax
mov rcx, qword [r12 + 8]
call fcn.140048570
mov rbp, rax
mov qword [rdi + 8], rax
mov dword [rdi + 0x10], 0
lea rax, [0x14015b7a8]
mov qword [rdi], rax
xorpd xmm6, xmm6
movupd xmmword [rdi + 0x18], xmm6
test rbp, rbp
je 0x1400480b4
mov rcx, rbp
call fcn.1400a63a0
lea rbx, [rsp + 0x70]
movaps xmmword [rbx], xmm8
mov rcx, rbp
mov rdx, rax
mov r8, rbx
call fcn.140046b40
mov rbx, qword [rbx]
bswap rbx
mov ecx, 0x38
call fcn.14008d2b8
mov rbp, rax
mov ecx, 0x18
call fcn.14008d2b8
movupd xmmword [rax], xmm6
xor esi, esi
mov qword [rax + 0x10], rsi
mov rcx, rbp
mov rdx, rbx
mov r8, rax
call fcn.14004e190
lea r15, [0x14015bf18]
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 0x1400480bb
lea rbx, [rdi + 0x18]
lea r13, fcn.140089a70
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 0x1400480be
mov rax, qword [rbp + 8]
mov rbx, qword [rax]
mov ecx, 0x38
call fcn.14008d2b8
mov rbp, rax
mov ecx, 0x18
call fcn.14008d2b8
movupd xmmword [rax], xmm6
xor esi, esi
mov qword [rax + 0x10], rsi
mov rcx, rbp
mov rdx, rbx
mov r8, rax
call fcn.14004e190
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 0x1400480d0
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 0x1400480d3
lea rax, [0x14015b868]
mov qword [rdi], rax
mov rax, rdi
add rax, 0x30
movupd xmmword [rdi + 0x30], xmm6
mov qword [rdi + 0x28], rax
jmp 0x1400479c4
lea rcx, [0x14011c410]
cmp rax, rcx
jne 0x140047e5d
mov ecx, 0x20
call fcn.14008d2b8
mov r15, rax
mov esi, dword [r12 + 0x1c]
xorpd xmm0, xmm0
movupd xmmword [rax], xmm0
mov qword [rax + 0x10], 0
inc esi
je 0x140048032
lea r14, [rsi*4]
mov rcx, r14
call fcn.14008d2b8
mov rbp, rax
mov qword [r15], rax
lea rbx, [rax + rsi*4]
mov qword [r15 + 0x10], rbx
test r14, r14
je 0x140047e8a
mov rcx, rbp
xor edx, edx
mov r8, r14
call fcn.1400924f0
mov qword [r15 + 8], rbx
mov qword [r15 + 0x18], 0
sub rbx, rbp
sar rbx, 2
lea rax, [rbx - 1]
cmp rax, 2
jb 0x140047de4
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [r12 + 0x14]
cvtsi2sd xmm1, dword [r12 + 0x18]
add rbx, 0xfffffffffffffffd
movq xmm3, rbx
punpckldq xmm3, xmmword [0x140159b60]
subpd xmm3, xmmword [0x140159b70]
movapd xmm2, xmm3
unpckhpd xmm2, xmm3
addsd xmm2, xmm3
xor eax, eax
movdqa xmm3, xmmword [0x140159b60]
movapd xmm4, xmmword [0x140159b70]
movsd xmm9, qword [0x1401508c0]
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 0x140047dd3
mov rbp, qword [r15]
add rax, 1
jmp 0x140047ce0
lea rcx, [0x14011c670]
cmp rax, rcx
jne 0x1400480e2
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
lea rcx, [0x14008cff0]
cmp rax, rcx
jne 0x1400480ef
mov r8, qword [r12 + 0x28]
test r8, r8
je 0x1400479e5
mov rbx, qword [r8 + 8]
test rbx, rbx
je 0x1400479e5
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.14011ba60
mov rcx, qword [rsp + 0x70]
add rcx, 0x28
mov rdx, rbx
call fcn.14004a7ac
mov r8, qword [r12 + 0x28]
mov rbx, qword [r8 + rsi + 0x18]
add rsi, 0x10
test rbx, rbx
jne 0x140047d94
jmp 0x1400479e5
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 0x14004807f
mov rax, r8
shr rax, 2
mov rcx, rsi
not rcx
add rcx, rdx
je 0x14004780c
mov rdx, r8
and rdx, 0xfffffffffffffffe
xor ebp, ebp
lea rdi, [0x1401702b0]
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 0x140047e30
jmp 0x14004780e
mov rcx, r12
call rax
mov r15, rax
jmp 0x14004782e
lea rdi, [rsp + 0x70]
mov rcx, r12
mov rdx, rdi
mov r8, r14
call rax
mov rdi, qword [rdi]
jmp 0x1400479c4
mov rsi, rax
jmp 0x1400476e0
mov rbx, rbp
jmp 0x140047c6b
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 0x140047845
lea rcx, [0x140189d28]
call fcn.140055e00
test al, al
je 0x140048102
lea rbp, [0x140189d30]
mov rcx, rbp
call fcn.140057e40
lea rcx, [0x140189d28]
mov rdx, rbp
xor r8d, r8d
mov r9, rcx
call fcn.140055de0
jmp 0x140047621
lea rcx, [0x140189d28]
call fcn.140055e00
test al, al
je 0x14004810e
lea rcx, [0x140189d30]
call fcn.140057e40
lea rcx, [0x140189d28]
lea rdx, [0x140189d30]
xor r8d, r8d
mov r9, rcx
call fcn.140055de0
jmp 0x140047643
mov ecx, 0xa8
call fcn.14008d2b8
mov rcx, rax
call fcn.1400bd060
mov rax, qword [0x140189d38]
jmp 0x140047653
mov rcx, rbp
call fcn.140041630
jmp 0x140047632
mov eax, 0xffffffff
cmp edx, 0xffffffff
je 0x140047538
mov rcx, qword [r12 + 8]
movzx edx, byte [rcx + 0x17]
test dl, dl
jns 0x140047f8b
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
movapd xmm0, xmmword [0x14015c320]
lea rsi, [rsp + 0x70]
movapd xmmword [rsi], xmm0
mov r8, rsi
call fcn.140046b40
mov rdx, qword [rsi]
bswap rdx
lea rcx, str.Histogram.MismatchedConstructionArguments
call fcn.140068750
mov eax, dword [0x140189d60]
mov ecx, dword [0x140181920]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
lea rdi, [0x140189d48]
cmp eax, dword [rcx + 4]
jle 0x140047541
lea rcx, [0x140189d60]
call fcn.14008d354
cmp dword [0x140189d60], 0xffffffff
jne 0x140047541
lea rax, str.dummy_histogram
mov qword [0x140189d50], rax
mov dword [0x140189d58], 0
lea rax, [0x14015bbe0]
mov qword [0x140189d48], rax
lea rcx, [0x140189d60]
call fcn.14008d2f4
jmp 0x140047541
xor ebp, ebp
xor ebx, ebx
jmp 0x140047c6f
mov rcx, rdi
call rbp
test al, al
jne 0x140047541
jmp 0x140047f77
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.14011b8c0
jmp 0x140047663
xor eax, eax
jmp 0x14004782a
xor eax, eax
jmp 0x1400478ac
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rbp, qword [rbx]
jmp 0x14004794b
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x1400479c4
xor eax, eax
jmp 0x140047ac6
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rbp, qword [rbx]
jmp 0x140047b65
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x140047bde
mov rcx, r12
mov rdx, rdi
call rax
jmp 0x1400479e5
mov rcx, rdi
call rax
cmp eax, 5
je 0x1400479e5
jmp 0x140047d69
mov rbp, qword [0x140189d28]
jmp 0x140047621
mov rax, qword [0x140189d28]
jmp 0x140047643