Function at 0x580d80
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 0x580d9c
mov ebx, dword [edx + 4]
mov edx, dword [edx]
test ebx, ebx
js 0x581100
sete al
test edx, edx
setne cl
or cl, al
je 0x581100
mov eax, ebx
mov dword [ebp - 0x20], edx
mov ecx, edx
mov edx, ebx
cmp ebx, 4
jb switch.0x00580def
mov edx, ebx
mov ecx, dword [ebp - 0x20]
mov eax, ebx
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 0x580dc9
jmp dword [edx*4 + 0x799028]
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 0x5810f5
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 0x5810e7
cmp edi, edx
mov ecx, edx
mov edx, edi
jb 0x580e7f
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 0x580ec6
mov edi, dword [eax]
test edi, edi
je 0x580ec6
lea eax, [ecx - 1]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 4]
cmp eax, dword [ebp - 0x18]
je 0x580fd7
cmp esi, 1
jbe 0x5810c9
cmp eax, ecx
jb 0x580eb9
xor edx, edx
div ecx
mov eax, edx
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x580ec6
mov edi, dword [edi]
test edi, edi
jne 0x580e9a
mov dword [esp], 0x30
call fcn.005c5789
test eax, eax
mov ebx, dword [ebp - 0x1c]
je 0x581100
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.00570440
sub esp, 8
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], esi
mov eax, dword [ebx + 0xc]
inc eax
movq xmm2, qword [0x78b590]
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 0x581033
movd xmm3, esi
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x581033
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx]
mov eax, dword [ecx + edx*4]
test eax, eax
jne 0x580fd1
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 0x580fba
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x14]
lea ecx, [edx - 1]
test edx, ecx
je 0x5810d1
cmp eax, edx
jb 0x580fb3
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 0x580fb8
movsx eax, byte [edi + 0x13]
mov ecx, eax
test eax, eax
jns 0x580fe4
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
mov ecx, dword [ebp - 0x14]
jne 0x580ec0
test al, al
js 0x580ff8
lea eax, [edi + 8]
jmp 0x580ffb
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.005c7efd
test eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
jne 0x580ec0
xor ecx, ecx
jmp 0x580fbf
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
jmp case.0x580def.2
xor edx, edx
inc edx
jmp 0x58107b
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.005f8570
fstp dword [ebp - 0x2c]
movss xmm0, dword [ebp - 0x2c]
cvttss2si ecx, xmm0
mov edx, ecx
sar edx, 0x1f
subss xmm0, dword [0x78b598]
cvttss2si eax, xmm0
and eax, edx
or eax, ecx
lea ecx, [esi + esi]
cmp esi, 3
jb 0x58102e
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 0x5810d8
lea eax, [edx - 1]
test edx, eax
je 0x581098
mov dword [esp], edx
call fcn.00544ab0
mov edx, eax
mov esi, dword [ebx + 4]
cmp edx, esi
jbe 0x581109
mov dword [esp], edx
mov ecx, ebx
call fcn.0056a700
sub esp, 4
mov ecx, dword [ebx + 4]
lea edx, [ecx - 1]
test ecx, edx
mov dword [ebp - 0x14], ecx
je 0x5810df
mov eax, dword [ebp - 0x18]
cmp eax, ecx
jb 0x581102
xor edx, edx
div ecx
jmp 0x580f79
and eax, dword [ebp - 0x24]
jmp 0x580ebc
and eax, ecx
jmp 0x580fb3
mov edx, 2
jmp 0x581098
and edx, dword [ebp - 0x18]
jmp 0x580f79
lea eax, [edx - 1]
and eax, edi
mov ecx, edx
mov edx, eax
jmp 0x580e7f
xor eax, eax
dec eax
mov dword [ebp - 0x10], eax
jmp 0x580ec6
ud2
mov edx, eax
jmp 0x580f79
jae 0x5810ac
mov dword [ebp - 0x10], edx
movss xmm0, dword [ebx + 0xc]
orpd xmm0, xmmword [0x78b5a0]
subsd xmm0, qword [0x78b590]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [ebx + 0x10]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.005f8570
fstp dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x28]
cvttss2si eax, xmm0
mov ecx, eax
subss xmm0, dword [0x78b598]
cvttss2si edx, xmm0
sar ecx, 0x1f
and edx, ecx
or edx, eax
cmp esi, 3
jb 0x5811b3
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 0x5811b3
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 0x5811bb
mov dword [esp], edx
call fcn.00544ab0
mov edx, dword [ebp - 0x10]
cmp edx, eax
cmovbe edx, eax
cmp edx, esi
mov ebx, dword [ebp - 0x1c]
jb 0x58109f
jmp 0x5810ac