Function at 0x140048600
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 [0x140166028]
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.140049430
mov rdi, rax
test rax, rax
je 0x14004876a
mov esi, dword [r12 + 0x10]
mov rax, qword [rdi]
mov rdx, qword [rax + 0x18]
xor eax, eax
lea rcx, [fcn.1400571b0]
cmp rdx, rcx
jne 0x140048bd5
cmp esi, eax
jne 0x140049157
mov r9d, dword [r12 + 0x1c]
test r9d, r9d
je 0x140048721
mov edx, dword [r12 + 0x14]
mov r8d, dword [r12 + 0x18]
mov rax, qword [rdi]
mov rbp, qword [rax + 0x20]
lea rax, [0x140109520]
cmp rbp, rax
jne 0x14004921b
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 0x140049157
sar rbp, 2
lea rcx, [rbp - 1]
cmp rcx, 1
jbe 0x140049149
cmp dword [rax + 4], edx
jne 0x140049157
mov eax, dword [rax + rbp*4 - 8]
cmp eax, r8d
jne 0x140049157
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14007ed30
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 0x14004877e
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
movaps xmm8, xmmword [0x14011b490]
lea rdi, [rsp + 0x70]
movaps xmmword [rdi], xmm8
mov r8, rdi
call fcn.140048130
mov ecx, dword [rdi]
bswap ecx
call fcn.140049300
mov ebx, eax
mov rdi, qword [r12 + 8]
movzx edx, byte [rdi + 0x17]
mov rcx, rdi
test dl, dl
jns 0x1400487b9
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.140048130
mov r15, qword [rbp]
mov rbp, qword [0x14016ca68]
cmp rbp, 1
jbe 0x1400490a3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004913c
mov rax, qword [0x14016ca68]
cmp rax, 1
jbe 0x1400490e0
mov rax, qword [0x14016ca78]
test rax, rax
je 0x14004911e
mov rcx, qword [rax + 0x98]
test rcx, rcx
jne 0x14004922d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test bl, bl
je 0x140049196
mov rax, qword [r12]
mov rax, qword [rax]
lea rcx, [0x1400e73e0]
cmp rax, rcx
jne 0x140048ddd
mov ecx, 0x20
call fcn.14007c0a8
mov r15, rax
mov esi, dword [r12 + 0x1c]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
inc esi
je 0x1400488c4
lea rbx, [rsi*4]
mov rcx, rbx
call fcn.14007c0a8
mov qword [r15], rax
lea rsi, [rax + rsi*4]
mov qword [r15 + 0x10], rsi
test rbx, rbx
je 0x140049062
mov rcx, rax
xor edx, edx
mov r8, rbx
call fcn.140081440
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.1400954b0
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 0x1400489bc
movapd xmm6, xmm0
add rbp, 0xfffffffffffffffd
mov edi, 8
lea rbx, [rsp + 0x70]
movdqa xmm9, xmmword [0x1401190a0]
movapd xmm7, xmmword [0x1401190b0]
nop word cs:[rax + rax]
nop
mov qword [rsp + 0x70], 0xffffffffffffffff
xorps xmm0, xmm0
cvtsi2sd xmm0, esi
call fcn.1400954b0
movsd qword [rsp + 0x70], xmm0
mov rcx, rbx
call fcn.1400427f0
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.140093fa0
call fcn.1400a7248
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 0x140048930
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 0x14004925f
mov rax, r8
shr rax, 2
mov rcx, rsi
not rcx
add rcx, rdx
jne 0x140048c09
xor ebp, ebp
test r8b, 1
je 0x140048a0a
movzx ecx, al
movzx edx, byte [rsi + rbp]
xor edx, ecx
lea rcx, [0x14011ff10]
shr eax, 8
xor eax, dword [rcx + rdx*4]
mov dword [r15 + 0x18], eax
mov rcx, r15
call fcn.140051c10
mov r14, rax
cmp dword [r12 + 0x1c], 0
je 0x140049072
and byte [r12 + 0x20], 0xbf
mov rax, qword [r12]
mov rax, qword [rax + 8]
lea rcx, [0x1400e7550]
cmp rax, rcx
jne 0x140048c4d
mov ecx, 0x28
call fcn.14007c0a8
mov rdi, rax
mov rcx, qword [r12 + 8]
call fcn.140049750
mov rbp, rax
mov qword [rdi + 8], rax
mov dword [rdi + 0x10], 0
lea rax, [0x14011aef0]
mov qword [rdi], rax
xorpd xmm6, xmm6
movupd xmmword [rdi + 0x18], xmm6
test rbp, rbp
je 0x140049266
mov rcx, rbp
call fcn.1400985b0
lea rbx, [rsp + 0x70]
movaps xmmword [rbx], xmm8
mov rcx, rbp
mov rdx, rax
mov r8, rbx
call fcn.140048130
mov rbx, qword [rbx]
bswap rbx
mov ecx, 0x38
call fcn.14007c0a8
mov rbp, rax
mov ecx, 0x18
call fcn.14007c0a8
movupd xmmword [rax], xmm6
xor esi, esi
mov qword [rax + 0x10], rsi
mov rcx, rbp
mov rdx, rbx
mov r8, rax
call fcn.1400520b0
lea r13, [0x14011ab48]
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 0x14004926d
lea rbx, [rdi + 0x18]
lea r15, str.p_a_
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 0x140049270
mov rax, qword [rbp + 8]
mov rbx, qword [rax]
mov ecx, 0x38
call fcn.14007c0a8
mov rbp, rax
mov ecx, 0x18
call fcn.14007c0a8
movupd xmmword [rax], xmm6
xor esi, esi
mov qword [rax + 0x10], rsi
mov rcx, rbp
mov rdx, rbx
mov r8, rax
call fcn.1400520b0
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 0x140049282
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 0x140049285
mov eax, dword [r12 + 0x20]
lock or dword [rdi + 0x10], eax
mov rax, qword [r12]
mov rax, qword [rax + 0x10]
lea rcx, [fcn.1400b86d0]
cmp rax, rcx
jne 0x140048f22
mov rcx, rdi
call fcn.1400038d0
mov rdi, rax
jmp 0x140048683
mov eax, 1
lea rcx, [0x14007b940]
cmp rdx, rcx
je 0x1400486a1
mov eax, 2
lea rcx, [0x1400346a0]
cmp rdx, rcx
je 0x1400486a1
mov rcx, rdi
call rdx
jmp 0x1400486a1
mov rdx, r8
and rdx, 0xfffffffffffffffe
xor ebp, ebp
lea rdi, [0x14011ff10]
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 0x140048c20
jmp 0x1400489ee
lea rcx, [0x1400e7790]
cmp rax, rcx
jne 0x14004904a
mov ecx, 0x40
call fcn.14007c0a8
mov rdi, rax
mov rcx, qword [r12 + 8]
call fcn.140049750
mov rbp, rax
mov qword [rdi + 8], rax
mov dword [rdi + 0x10], 0
lea rax, [0x14011aef0]
mov qword [rdi], rax
xorpd xmm6, xmm6
movupd xmmword [rdi + 0x18], xmm6
test rbp, rbp
je 0x140049294
mov rcx, rbp
call fcn.1400985b0
lea rbx, [rsp + 0x70]
movaps xmmword [rbx], xmm8
mov rcx, rbp
mov rdx, rax
mov r8, rbx
call fcn.140048130
mov rbx, qword [rbx]
bswap rbx
mov ecx, 0x38
call fcn.14007c0a8
mov rbp, rax
mov ecx, 0x18
call fcn.14007c0a8
movupd xmmword [rax], xmm6
xor esi, esi
mov qword [rax + 0x10], rsi
mov rcx, rbp
mov rdx, rbx
mov r8, rax
call fcn.1400520b0
lea r15, [0x14011ab48]
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 0x14004929b
lea rbx, [rdi + 0x18]
lea r13, str.p_a_
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 0x14004929e
mov rax, qword [rbp + 8]
mov rbx, qword [rax]
mov ecx, 0x38
call fcn.14007c0a8
mov rbp, rax
mov ecx, 0x18
call fcn.14007c0a8
movupd xmmword [rax], xmm6
xor esi, esi
mov qword [rax + 0x10], rsi
mov rcx, rbp
mov rdx, rbx
mov r8, rax
call fcn.1400520b0
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 0x1400492b0
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 0x1400492b3
lea rax, [0x14011afb0]
mov qword [rdi], rax
mov rax, rdi
add rax, 0x30
movupd xmmword [rdi + 0x30], xmm6
mov qword [rdi + 0x28], rax
jmp 0x140048ba4
lea rcx, [0x1400e7650]
cmp rax, rcx
jne 0x14004903d
mov ecx, 0x20
call fcn.14007c0a8
mov r15, rax
mov esi, dword [r12 + 0x1c]
xorpd xmm0, xmm0
movupd xmmword [rax], xmm0
mov qword [rax + 0x10], 0
inc esi
je 0x140049212
lea r14, [rsi*4]
mov rcx, r14
call fcn.14007c0a8
mov rbp, rax
mov qword [r15], rax
lea rbx, [rax + rsi*4]
mov qword [r15 + 0x10], rbx
test r14, r14
je 0x14004906a
mov rcx, rbp
xor edx, edx
mov r8, r14
call fcn.140081440
mov qword [r15 + 8], rbx
mov qword [r15 + 0x18], 0
sub rbx, rbp
sar rbx, 2
lea rax, [rbx - 1]
cmp rax, 2
jb 0x140048fc4
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [r12 + 0x14]
cvtsi2sd xmm1, dword [r12 + 0x18]
add rbx, 0xfffffffffffffffd
movq xmm3, rbx
punpckldq xmm3, xmmword [0x1401190a0]
subpd xmm3, xmmword [0x1401190b0]
movapd xmm2, xmm3
unpckhpd xmm2, xmm3
addsd xmm2, xmm3
xor eax, eax
movdqa xmm3, xmmword [0x1401190a0]
movapd xmm4, xmmword [0x1401190b0]
movsd xmm9, qword [0x14010e110]
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 0x140048fb3
mov rbp, qword [r15]
add rax, 1
jmp 0x140048ec0
lea rcx, [0x1400e78b0]
cmp rax, rcx
jne 0x1400492c2
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
lea rcx, [0x14007b940]
cmp rax, rcx
jne 0x1400492cf
mov r8, qword [r12 + 0x28]
test r8, r8
je 0x140048bc5
mov rbx, qword [r8 + 8]
test rbx, rbx
je 0x140048bc5
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.1400e6c70
mov rcx, qword [rsp + 0x70]
add rcx, 0x28
mov rdx, rbx
call fcn.14004a72c
mov r8, qword [r12 + 0x28]
mov rbx, qword [r8 + rsi + 0x18]
add rsi, 0x10
test rbx, rbx
jne 0x140048f74
jmp 0x140048bc5
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 0x14004925f
mov rax, r8
shr rax, 2
mov rcx, rsi
not rcx
add rcx, rdx
je 0x1400489ec
mov rdx, r8
and rdx, 0xfffffffffffffffe
xor ebp, ebp
lea rdi, [0x14011ff10]
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 0x140049010
jmp 0x1400489ee
mov rcx, r12
call rax
mov r15, rax
jmp 0x140048a0e
lea rdi, [rsp + 0x70]
mov rcx, r12
mov rdx, rdi
mov r8, r14
call rax
mov rdi, qword [rdi]
jmp 0x140048ba4
mov rsi, rax
jmp 0x1400488c0
mov rbx, rbp
jmp 0x140048e4b
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 0x140048a25
lea rcx, [0x14016ca68]
call fcn.14004b9f0
test al, al
je 0x1400492e2
lea rbp, [0x14016ca70]
mov rcx, rbp
call fcn.14005b7f0
lea rcx, [0x14016ca68]
mov rdx, rbp
xor r8d, r8d
mov r9, rcx
call fcn.14004b960
jmp 0x140048801
lea rcx, [0x14016ca68]
call fcn.14004b9f0
test al, al
je 0x1400492ee
lea rcx, [0x14016ca70]
call fcn.14005b7f0
lea rcx, [0x14016ca68]
lea rdx, [0x14016ca70]
xor r8d, r8d
mov r9, rcx
call fcn.14004b960
jmp 0x140048823
mov ecx, 0xa8
call fcn.14007c0a8
mov rcx, rax
call fcn.1400ae720
mov rax, qword [0x14016ca78]
jmp 0x140048833
mov rcx, rbp
call fcn.1400428d0
jmp 0x140048812
mov eax, 0xffffffff
cmp edx, 0xffffffff
je 0x140048718
mov rcx, qword [r12 + 8]
movzx edx, byte [rcx + 0x17]
test dl, dl
jns 0x14004916b
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
movapd xmm0, xmmword [0x14011b490]
lea rsi, [rsp + 0x70]
movapd xmmword [rsi], xmm0
mov r8, rsi
call fcn.140048130
mov rdx, qword [rsi]
bswap rdx
lea rcx, str.Histogram.MismatchedConstructionArguments
call fcn.140068930
mov eax, dword [0x14016caa0]
mov ecx, dword [0x140169930]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
lea rdi, [0x14016ca88]
cmp eax, dword [rcx + 4]
jle 0x140048721
lea rcx, [0x14016caa0]
call fcn.14007c144
cmp dword [0x14016caa0], 0xffffffff
jne 0x140048721
lea rax, str.dummy_histogram
mov qword [0x14016ca90], rax
mov dword [0x14016ca98], 0
lea rax, [0x14011b288]
mov qword [0x14016ca88], rax
lea rcx, [0x14016caa0]
call fcn.14007c0e4
jmp 0x140048721
xor ebp, ebp
xor ebx, ebx
jmp 0x140048e4f
mov rcx, rdi
call rbp
test al, al
jne 0x140048721
jmp 0x140049157
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.1400e6ad0
jmp 0x140048843
xor eax, eax
jmp 0x140048a0a
xor eax, eax
jmp 0x140048a8c
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rbp, qword [rbx]
jmp 0x140048b2b
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x140048ba4
xor eax, eax
jmp 0x140048ca6
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rbp, qword [rbx]
jmp 0x140048d45
int3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x140048dbe
mov rcx, r12
mov rdx, rdi
call rax
jmp 0x140048bc5
mov rcx, rdi
call rax
cmp eax, 5
je 0x140048bc5
jmp 0x140048f49
mov rbp, qword [0x14016ca68]
jmp 0x140048801
mov rax, qword [0x14016ca68]
jmp 0x140048823