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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov dword [esp + 0xc], ecx
mov esi, dword [ebp + 0xc]
movzx edx, byte [esi + 0xb]
test dl, dl
jns 0x4fff10
mov edx, dword [esi + 4]
mov esi, dword [esi]
mov eax, edx
mov ecx, esi
mov ebx, edx
mov dword [esp + 0x10], edx
cmp edx, 4
jb 0x4fff9c
mov eax, dword [esp + 0x10]
lea ebx, [eax - 4]
test bl, 4
jne 0x4fff4f
mov edx, eax
imul eax, dword [esi], 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
imul eax, edx, 0x5bd1e995
xor eax, ecx
lea ecx, [esi + 4]
mov edx, ebx
jmp 0x4fff53
mov edx, eax
mov ecx, esi
cmp ebx, 4
jb 0x4fff9c
imul edi, dword [ecx], 0x5bd1e995
mov ebx, edi
shr ebx, 0x18
xor ebx, edi
imul edi, ebx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
imul edi, dword [ecx + 4], 0x5bd1e995
mov ebx, edi
shr ebx, 0x18
xor ebx, edi
imul edi, ebx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
add ecx, 8
add edx, 0xfffffff8
cmp edx, 3
ja 0x4fff58
mov ebx, edx
cmp ebx, 1
je 0x4fffbd
cmp ebx, 2
je 0x4fffb4
cmp ebx, 3
jne 0x4fffc8
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
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 [esp + 0xc]
mov ebx, dword [eax + 4]
test ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
je 0x500104
mov eax, ebx
shr eax, 1
and eax, 0x55555555
mov ecx, ebx
sub ecx, eax
mov eax, 0x33333333
mov edx, ecx
and edx, eax
shr ecx, 2
and ecx, eax
add ecx, edx
mov eax, ecx
shr eax, 4
add eax, ecx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
mov dword [esp + 0x38], eax
cmp eax, 1
ja 0x5001ea
lea edx, [ebx - 1]
and edx, edi
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x1c], edx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x50010b
mov ebx, dword [eax]
test ebx, ebx
je 0x50010b
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 4]
cmp eax, dword [esp + 0x18]
je 0x50007d
cmp dword [esp + 0x38], 1
ja 0x5000c4
and eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x1c]
jne 0x50010b
movzx eax, byte [ebx + 0x13]
mov ecx, eax
test al, al
jns 0x50008a
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [esp + 0x10]
jne 0x5000f8
lea ecx, [ebx + 8]
mov edx, dword [ecx]
test al, al
cmovs ecx, edx
js 0x5000d4
test al, al
je 0x5002aa
cmp byte [esi], dl
jne 0x5000f8
dec eax
xor ecx, ecx
cmp eax, ecx
je 0x5002aa
mov dl, byte [ebx + ecx + 9]
lea edi, [ecx + 1]
cmp dl, byte [esi + ecx + 1]
mov ecx, edi
je 0x5000ab
jmp 0x5000f8
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jb 0x500073
xor edx, edx
div ecx
mov eax, edx
jmp 0x500073
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5002aa
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ecx
call fcn.004cf0db
test eax, eax
je 0x5002aa
mov ebx, dword [ebx]
test ebx, ebx
jne 0x50005f
jmp 0x50010b
xor eax, eax
dec eax
mov dword [esp + 0x1c], eax
mov esi, dword [ebp + 0x10]
mov dword [esp], 0x14
call fcn.004cf0a6
mov ebx, eax
lea ecx, [eax + 8]
mov dword [esp], esi
call section..text
sub esp, 4
mov eax, dword [esp + 0x18]
mov dword [ebx + 4], eax
mov dword [ebx], 0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0xc]
inc eax
movq xmm2, qword [0x5792a0]
movd xmm0, eax
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [ecx + 0x10]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x5001b4
movd xmm3, esi
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x5001b4
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx + edx*4]
test eax, eax
je 0x500201
mov ecx, dword [eax]
mov dword [ebx], ecx
mov dword [eax], ebx
mov eax, dword [esp + 0xc]
inc dword [eax + 0xc]
mov al, 1
mov dword [esi], ebx
mov byte [esi + 4], al
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.004e82b0
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fisttp qword [esp + 0x28]
mov ecx, dword [esp + 0x28]
lea edx, [esi + esi]
cmp esi, 3
jb 0x50023b
mov edi, esi
dec esi
xor eax, eax
test edi, esi
setne al
jmp 0x50023e
mov edx, edi
cmp edi, ebx
jb 0x500037
mov eax, edi
xor edx, edx
div dword [esp + 0x14]
jmp 0x500037
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 8]
mov dword [ebx], eax
lea eax, [edi + 8]
mov dword [edi + 8], ebx
mov dword [ecx + edx*4], eax
mov eax, dword [ebx]
test eax, eax
je 0x50019a
mov eax, dword [eax + 4]
mov edi, dword [esp + 0x14]
lea ecx, [edi - 1]
test edi, ecx
jne 0x5002bd
and eax, ecx
shl eax, 2
mov ecx, dword [esp + 0xc]
add eax, dword [ecx]
jmp 0x500198
xor eax, eax
inc eax
or eax, edx
cmp eax, ecx
cmovb eax, ecx
mov edi, 2
cmp eax, 1
je 0x500260
lea ecx, [eax - 1]
test eax, ecx
je 0x50025e
mov dword [esp], eax
call fcn.004b87f0
mov edi, eax
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 4]
cmp edi, esi
jbe 0x5002d0
mov dword [esp], edi
mov ecx, dword [esp + 0xc]
call fcn.004fd870
sub esp, 4
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
lea edx, [ecx - 1]
test ecx, edx
mov dword [esp + 0x14], ecx
jne 0x500298
and edx, dword [esp + 0x18]
mov esi, dword [ebp + 8]
jmp 0x500187
mov eax, dword [esp + 0x18]
cmp eax, ecx
mov esi, dword [ebp + 8]
jae 0x5002b4
mov edx, eax
jmp 0x500187
xor eax, eax
mov esi, dword [ebp + 8]
jmp 0x5001a3
xor edx, edx
div ecx
jmp 0x500187
cmp eax, edi
jb 0x50022d
xor edx, edx
div edi
mov eax, edx
jmp 0x50022d
jae 0x50027a
mov eax, dword [esp + 0xc]
movss xmm0, dword [eax + 0xc]
orpd xmm0, xmmword [0x579290]
subsd xmm0, qword [0x5792a0]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [eax + 0x10]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.004e82b0
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fisttp qword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
cmp esi, 3
jb 0x50036e
mov ecx, esi
shr ecx, 1
and ecx, 0x55555555
mov edx, esi
sub edx, ecx
mov ecx, 0x33333333
mov eax, edx
and eax, ecx
shr edx, 2
and edx, ecx
add edx, eax
mov eax, edx
shr eax, 4
add eax, edx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
cmp eax, 1
ja 0x50036e
cmp dword [esp + 0x10], 2
jb 0x50037e
mov eax, dword [esp + 0x10]
dec eax
bsr ecx, eax
xor ecx, 0x1f
neg cl
xor eax, eax
inc eax
shl eax, cl
jmp 0x50037a
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call fcn.004b87f0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp edi, eax
cmovb edi, eax
cmp edi, esi
jae 0x50027a
jmp 0x50026b