Function at 0x564480
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov ebx, ecx
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [esp + 0x90], eax
push dword [ecx + 8]
push dword [ecx + 4]
call fcn.00542500
add esp, 8
mov edi, eax
test eax, eax
mov dword [esp + 0xc], ebx
je 0x5645ca
mov esi, dword [ebx + 0xc]
mov eax, dword [edi]
mov ebx, dword [eax + 0xc]
xor eax, eax
cmp ebx, fcn.0057b630
je 0x5644d9
mov ecx, ebx
call dword [0x6445dc]
mov ecx, edi
call ebx
cmp esi, eax
jne 0x564a6b
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 0x18]
test esi, esi
je 0x564553
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov ebx, dword [eax + 0x10]
cmp ebx, 0x57b640
mov dword [esp + 4], ecx
jne 0x56456b
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, eax
mov edx, ecx
sar edx, 2
lea ebx, [edx - 1]
cmp ebx, esi
mov esi, dword [esp + 8]
jne 0x564a6b
cmp ebx, 2
jb 0x564a97
cmp edx, 1
mov edx, dword [esp + 4]
jbe 0x564a55
cmp dword [eax + 4], edx
jne 0x564a6b
mov eax, dword [eax + ecx - 8]
cmp eax, esi
jne 0x564a6b
mov ecx, dword [esp + 0x90]
xor ecx, ebp
call fcn.005810d5
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, ebx
call dword [0x6445dc]
mov ecx, edi
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
call ebx
test al, al
jne 0x564553
jmp 0x564a6b
mov byte [eax + 2], 0
mov word [eax], 0
jmp 0x5645b3
cmp ecx, 0x3f
je 0x5645b3
add eax, edi
cmp ecx, 0x3c
je 0x564589
mov edx, 0x3f
sub edx, ecx
push edx
push 0
push eax
call fcn.00582870
add esp, 0xc
lea eax, [esp + 0x30]
push 1
push edi
push eax
call fcn.004f3300
add esp, 0xc
xor eax, eax
jmp 0x564656
mov esi, dword [ebx + 4]
mov ebx, dword [ebx + 8]
xorps xmm0, xmm0
lea edi, [esp + 0x48]
movups xmmword [edi + 0x34], xmm0
movups xmmword [edi + 0x28], xmm0
movups xmmword [edi + 0x18], xmm0
movups xmmword [edi + 8], xmm0
movups xmmword [edi - 8], xmm0
movapd xmm0, xmmword [0x6354d0]
movupd xmmword [edi - 0x18], xmm0
test ebx, ebx
je 0x56462d
lea eax, [ebx*8]
mov ecx, ebx
shr ecx, 0x1d
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
cmp ebx, 0x40
jae 0x564968
mov eax, ebx
mov dword [esp + 0x88], eax
push eax
push esi
push edi
call fcn.005822f0
add esp, 0xc
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x44]
mov byte [esp + ecx + 0x48], 0x80
lea eax, [ecx + 1]
cmp eax, 0x39
jae 0x564594
cmp eax, 0x38
je 0x56466b
mov ecx, 0x38
sub ecx, eax
add eax, edi
push ecx
push 0
push eax
call fcn.00582870
add esp, 0xc
lea esi, [esp + 0x30]
mov eax, dword [esp + 4]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ebx
push 1
push edi
push esi
call fcn.004f3300
add esp, 0xc
mov esi, dword [esi]
mov ebx, dword [0x65071c]
cmp ebx, 1
jbe 0x564a26
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x564a1a
mov eax, dword [0x650724]
test eax, eax
je 0x5646b9
mov edi, dword [eax + 0x50]
test edi, edi
jne 0x564ab0
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx]
mov edi, dword [eax]
cmp edi, 0x5735c0
je 0x564798
mov ecx, edi
call dword [0x6445dc]
mov ecx, ebx
call edi
push eax
call fcn.0050d310
add esp, 4
mov edi, eax
cmp dword [ebx + 0x18], 0
je 0x5649dd
mov dword [esp + 0x30], 0
mov eax, dword [0x65b068]
mov dword [esp + 4], eax
test eax, eax
je 0x564991
lea esi, [esp + 0x2c]
mov ecx, dword [esp + 4]
lea eax, [esp + 0x30]
push eax
push dword [ebx + 0x1c]
push edi
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx + 0xc]
push esi
call fcn.0050e2a0
mov esi, dword [esi]
test esi, esi
je 0x564991
mov eax, dword [ebx]
mov edi, dword [eax + 8]
cmp edi, 0x502040
je 0x564760
cmp edi, fcn.00402610
je 0x56478e
mov ecx, edi
call dword [0x6445dc]
mov ecx, ebx
push esi
call edi
push esi
call fcn.0050d8b0
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5644bb
xor edx, edx
cmp edi, esi
sete dl
mov ecx, dword [esp + 4]
push edx
push eax
call fcn.00567ef0
jmp 0x5644bb
mov ecx, ebx
push esi
call fcn.00402610
jmp 0x564760
push 0x14
call fcn.0057dc30
add esp, 4
mov edi, eax
mov eax, dword [ebx + 0x18]
inc eax
mov ecx, edi
push eax
call fcn.0050e220
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [ebx + 0x14]
sub esp, 8
movsd qword [esp], xmm0
call fcn.005aaa00
add esp, 8
fstp qword [esp + 0x20]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, eax
cmp ecx, 4
jbe 0x564a5c
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 0x10], xmm0
mov esi, dword [ebx + 0x10]
mov dword [eax + 4], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov ebx, eax
sub ebx, ecx
sar ebx, 2
lea edx, [ebx - 1]
cmp edx, 3
mov dword [esp + 8], edi
jb 0x5648c2
add ebx, 0xfffffffd
mov edi, 2
xorps xmm0, xmm0
cvtsi2sd xmm0, esi
sub esp, 8
movsd qword [esp], xmm0
call fcn.005aaa00
add esp, 8
fstp qword [esp + 0x30]
lea eax, [esp + 0x30]
push eax
call fcn.00505000
add esp, 4
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 4], ecx
sub eax, ecx
sar eax, 2
cmp eax, edi
jbe 0x564a5c
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x10]
subsd xmm1, xmm0
movd xmm2, ebx
por xmm2, xmmword [0x62d130]
subsd xmm2, qword [0x62d140]
divsd xmm1, xmm2
addsd xmm1, xmm0
sub esp, 8
movsd qword [esp], xmm1
call fcn.005aaa50
fstp qword [esp]
call fcn.005aa9ad
add esp, 8
fstp qword [esp + 0x18]
cvttsd2si eax, qword [esp + 0x18]
cmp esi, eax
lea esi, [esi + 1]
cmovl esi, eax
mov eax, dword [esp + 4]
mov dword [eax + edi*4], esi
inc edi
dec ebx
jne 0x564812
mov edi, dword [esp + 8]
mov ecx, dword [edi]
mov eax, dword [edi + 4]
cmp eax, ecx
je 0x564a5c
mov dword [eax - 4], 0x7fffffff
mov esi, dword [edi]
mov eax, dword [edi + 4]
mov edi, eax
sub edi, esi
je 0x564aa6
js 0x564aad
mov ecx, edi
shr ecx, 2
mov edx, esi
and edi, 3
jne 0x5649bc
sub esi, eax
cmp esi, 0xfffffffc
ja 0x564958
mov esi, 0xff
movzx edi, byte [edx]
mov ebx, ecx
and ebx, esi
xor ebx, edi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x636878]
movzx edi, byte [edx + 1]
mov ebx, ecx
and ebx, esi
xor ebx, edi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x636878]
movzx edi, byte [edx + 2]
mov ebx, ecx
and ebx, esi
xor ebx, edi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x636878]
movzx edi, byte [edx + 3]
mov ebx, ecx
and ebx, esi
xor ebx, edi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x636878]
add edx, 4
cmp edx, eax
jne 0x564902
mov eax, dword [esp + 8]
mov dword [eax + 0xc], ecx
mov ebx, dword [esp + 0xc]
jmp 0x5646e0
mov eax, ebx
shr eax, 6
lea ecx, [esp + 0x30]
push eax
push esi
push ecx
call fcn.004f3300
add esp, 0xc
mov eax, ebx
and eax, 0x3f
je 0x56462d
and ebx, 0xffffffc0
add esi, ebx
jmp 0x56461b
and byte [ebx + 0x1c], 0xbf
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x6445dc]
lea eax, [esp + 0x2c]
mov ecx, ebx
push edi
mov edi, eax
push eax
call esi
mov esi, dword [edi]
mov eax, dword [ebx + 0x1c]
lock or dword [esi + 8], eax
jmp 0x56473e
movzx ebx, byte [edx]
mov dword [esp + 4], ebx
movzx ebx, cl
xor ebx, dword [esp + 4]
shr ecx, 8
xor ecx, dword [ebx*4 + 0x636878]
inc edx
dec edi
jne 0x5649bc
jmp 0x5648f6
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 2
lea ecx, [eax - 1]
mov dword [ebx + 0x18], ecx
mov ecx, dword [edi]
mov edx, dword [edi + 4]
sub edx, ecx
cmp edx, 4
jbe 0x564a55
mov ecx, dword [ecx + 4]
mov dword [ebx + 0x10], ecx
lea edx, [eax - 2]
mov ecx, dword [edi]
mov esi, dword [edi + 4]
sub esi, ecx
sar esi, 2
cmp esi, edx
jbe 0x564a55
mov eax, dword [ecx + eax*4 - 8]
mov dword [ebx + 0x14], eax
jmp 0x5646f5
push ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x5646a5
push 0x65071c
call fcn.0040bbb0
add esp, 4
test al, al
je 0x564afa
mov dword [0x650720], 0
mov ebx, 0x650720
mov dword [0x65071c], ebx
jmp 0x564696
push str....._third_partylibc_srcinclude_vector:1418:_assertion___n___size___failed:_vector___index_out_of_bounds_n
jmp 0x564a61
push str....._third_partylibc_srcinclude_vector:1411:_assertion___n___size___failed:_vector___index_out_of_bounds_n
push 0x62a183
call fcn.005aacb0
mov eax, dword [esp + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call fcn.00540c00
add esp, 8
push eax
push str.Histogram.MismatchedConstructionArguments
call fcn.00510d30
add esp, 8
call fcn.005e9340
mov edi, eax
jmp 0x564553
cmp dword [esp + 4], 0xffffffff
jne 0x564a6b
xor eax, eax
dec eax
jmp 0x56454b
xor ecx, ecx
jmp 0x564958
int3
bswap esi
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [esp + 4], ecx
call dword [0x6445dc]
mov ecx, edi
push esi
call dword [esp + 8]
mov byte [esp + 4], al
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [esp + 4], 0
jne 0x5646c0
call fcn.005e9340
mov esi, eax
mov ecx, dword [esp + 0x90]
xor ecx, ebp
call fcn.005810d5
mov eax, esi
jmp 0x564563
mov ebx, dword [0x65071c]
jmp 0x564696