Function at 0x522080
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0xc]
movsx ebx, byte [edx + 0xb]
test ebx, ebx
jns 0x52209c
mov ebx, dword [edx + 4]
mov edx, dword [edx]
test ebx, ebx
js 0x522407
sete al
test edx, edx
setne cl
or cl, al
je 0x522407
mov eax, ebx
mov dword [ebp - 0x20], edx
mov ecx, edx
mov edx, ebx
cmp ebx, 4
jb switch.0x005220f6
mov edx, ebx
mov ecx, dword [ebp - 0x20]
mov eax, ebx
nop dword [eax]
imul esi, dword [ecx], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x5220d0
jmp dword [edx*4 + 0x6ec608]
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov edi, eax
shr edi, 0xf
xor edi, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 4]
test edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edi
je 0x5223fc
mov ecx, edx
shr ecx, 1
and ecx, 0x55555555
mov eax, edx
sub eax, ecx
mov ecx, eax
and ecx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, ecx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
imul esi, ecx, 0x1010101
shr esi, 0x18
cmp esi, 1
jbe 0x5223ee
cmp edi, edx
mov ecx, edx
mov edx, edi
jb 0x522186
mov eax, edi
xor edx, edx
div ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
test eax, eax
mov dword [ebp - 0x10], edx
je 0x5221cd
mov edi, dword [eax]
test edi, edi
je 0x5221cd
lea eax, [ecx - 1]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 4]
cmp eax, dword [ebp - 0x18]
je 0x5222de
cmp esi, 1
jbe 0x5223d0
cmp eax, ecx
jb 0x5221c0
xor edx, edx
div ecx
mov eax, edx
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x5221cd
mov edi, dword [edi]
test edi, edi
jne 0x5221a1
mov dword [esp], 0x30
call fcn.0054fbd9
test eax, eax
mov ebx, dword [ebp - 0x1c]
je 0x522407
mov edi, eax
mov eax, dword [ebp + 0x14]
xor esi, esi
mov dword [edi], esi
mov ecx, dword [ebp - 0x18]
mov dword [edi + 4], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov dword [edi + 0x10], ecx
movsd xmm0, qword [eax]
movsd qword [edi + 8], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], esi
mov dword [edi + 0x14], esi
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov ecx, edi
add ecx, 0x20
mov dword [esp + 4], ecx
mov dword [esp], ecx
call fcn.005167c0
sub esp, 8
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], esi
mov eax, dword [ebx + 0xc]
inc eax
movq xmm2, qword [0x6d7910]
movd xmm0, eax
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [ebx + 0x10]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x52233a
movd xmm3, esi
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x52233a
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx]
mov eax, dword [ecx + edx*4]
test eax, eax
jne 0x5222d8
mov eax, dword [ebx + 8]
mov dword [edi], eax
lea eax, [ebx + 8]
mov dword [ebx + 8], edi
mov dword [ecx + edx*4], eax
mov eax, dword [edi]
test eax, eax
je 0x5222c1
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x14]
lea ecx, [edx - 1]
test edx, ecx
je 0x5223d8
cmp eax, edx
jb 0x5222ba
mov ecx, edx
xor edx, edx
div ecx
mov eax, edx
shl eax, 2
add eax, dword [ebx]
mov dword [eax], edi
inc dword [ebx + 0xc]
mov cl, 1
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], cl
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov ecx, dword [eax]
mov dword [edi], ecx
jmp 0x5222bf
movsx eax, byte [edi + 0x13]
mov ecx, eax
test eax, eax
jns 0x5222eb
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
mov ecx, dword [ebp - 0x14]
jne 0x5221c7
test al, al
js 0x5222ff
lea eax, [edi + 8]
jmp 0x522302
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00551eed
test eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
jne 0x5221c7
xor ecx, ecx
jmp 0x5222c6
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
jmp case.0x5220f6.2
xor edx, edx
inc edx
jmp 0x522382
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.00580d70
fstp dword [ebp - 0x2c]
movss xmm0, dword [ebp - 0x2c]
cvttss2si ecx, xmm0
mov edx, ecx
sar edx, 0x1f
subss xmm0, dword [0x6d7918]
cvttss2si eax, xmm0
and eax, edx
or eax, ecx
lea ecx, [esi + esi]
cmp esi, 3
jb 0x522335
lea edx, [esi - 1]
test esi, edx
mov edx, 0
setne dl
or edx, ecx
cmp edx, eax
cmovbe edx, eax
cmp edx, 1
je 0x5223df
lea eax, [edx - 1]
test edx, eax
je 0x52239f
mov dword [esp], edx
call fcn.004f32c0
mov edx, eax
mov esi, dword [ebx + 4]
cmp edx, esi
jbe 0x522410
mov dword [esp], edx
mov ecx, ebx
call fcn.00512680
sub esp, 4
mov ecx, dword [ebx + 4]
lea edx, [ecx - 1]
test ecx, edx
mov dword [ebp - 0x14], ecx
je 0x5223e6
mov eax, dword [ebp - 0x18]
cmp eax, ecx
jb 0x522409
xor edx, edx
div ecx
jmp 0x522280
and eax, dword [ebp - 0x24]
jmp 0x5221c3
and eax, ecx
jmp 0x5222ba
mov edx, 2
jmp 0x52239f
and edx, dword [ebp - 0x18]
jmp 0x522280
lea eax, [edx - 1]
and eax, edi
mov ecx, edx
mov edx, eax
jmp 0x522186
xor eax, eax
dec eax
mov dword [ebp - 0x10], eax
jmp 0x5221cd
ud2
mov edx, eax
jmp 0x522280
jae 0x5223b3
mov dword [ebp - 0x10], edx
movss xmm0, dword [ebx + 0xc]
orpd xmm0, xmmword [0x6d7900]
subsd xmm0, qword [0x6d7910]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [ebx + 0x10]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.00580d70
fstp dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x28]
cvttss2si eax, xmm0
mov ecx, eax
subss xmm0, dword [0x6d7918]
cvttss2si edx, xmm0
sar ecx, 0x1f
and edx, ecx
or edx, eax
cmp esi, 3
jb 0x5224ba
mov ecx, esi
shr ecx, 1
and ecx, 0x55555555
mov eax, esi
sub eax, ecx
mov ecx, eax
and ecx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, ecx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
imul eax, ecx, 0x1010101
shr eax, 0x18
cmp eax, 1
ja 0x5224ba
lea eax, [edx - 1]
bsr ecx, eax
xor ecx, 0x1f
neg cl
xor eax, eax
inc eax
shl eax, cl
cmp edx, 2
cmovb eax, edx
jmp 0x5224c2
mov dword [esp], edx
call fcn.004f32c0
mov edx, dword [ebp - 0x10]
cmp edx, eax
cmovbe edx, eax
cmp edx, esi
mov ebx, dword [ebp - 0x1c]
jb 0x5223a6
jmp 0x5223b3