Function at 0x51bab0
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, 0x30
mov dword [esp + 8], ecx
mov esi, dword [ebp + 0xc]
movzx edx, byte [esi + 0xb]
test dl, dl
jns 0x51bad0
mov edx, dword [esi + 4]
mov esi, dword [esi]
mov eax, edx
mov ecx, esi
mov ebx, edx
mov dword [esp + 0x14], edx
cmp edx, 4
jb 0x51bb5c
mov eax, dword [esp + 0x14]
lea ebx, [eax - 4]
test bl, 4
jne 0x51bb0f
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 0x51bb13
mov edx, eax
mov ecx, esi
cmp ebx, 4
jb 0x51bb5c
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 0x51bb18
mov ebx, edx
cmp ebx, 1
je 0x51bb7d
cmp ebx, 2
je 0x51bb74
cmp ebx, 3
jne 0x51bb88
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 ebx, eax
shr ebx, 0xf
xor ebx, eax
mov eax, dword [esp + 8]
mov edi, dword [eax + 4]
test edi, edi
mov dword [esp + 4], edi
mov dword [esp + 0xc], ebx
je 0x51bcbf
mov eax, edi
shr eax, 1
and eax, 0x55555555
mov ecx, edi
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 + 0x28], eax
cmp eax, 1
ja 0x51bd74
lea edx, [edi - 1]
and edx, ebx
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov dword [esp + 0x10], edx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x51bcc6
mov ebx, dword [eax]
test ebx, ebx
je 0x51bcc6
mov eax, dword [esp + 4]
dec eax
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
cmp eax, dword [esp + 0xc]
je 0x51bc3d
cmp dword [esp + 0x28], 1
ja 0x51bc84
and eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x10]
jne 0x51bcc6
movzx eax, byte [ebx + 0x13]
mov ecx, eax
test al, al
jns 0x51bc4a
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [esp + 0x14]
jne 0x51bcb3
lea ecx, [ebx + 8]
mov edx, dword [ecx]
test al, al
cmovs ecx, edx
js 0x51bc94
test al, al
je 0x51bdb4
cmp byte [esi], dl
jne 0x51bcb3
dec eax
xor ecx, ecx
cmp eax, ecx
je 0x51bdb4
mov dl, byte [ebx + ecx + 9]
lea edi, [ecx + 1]
cmp dl, byte [esi + ecx + 1]
mov ecx, edi
je 0x51bc6b
jmp 0x51bcb3
mov ecx, dword [esp + 4]
cmp eax, ecx
jb 0x51bc33
xor edx, edx
div ecx
mov eax, edx
jmp 0x51bc33
mov eax, dword [esp + 0x14]
test eax, eax
je 0x51bdb4
push eax
push esi
push ecx
call fcn.004cf0db
add esp, 0xc
test eax, eax
je 0x51bdb4
mov ebx, dword [ebx]
test ebx, ebx
jne 0x51bc1f
jmp 0x51bcc6
xor eax, eax
dec eax
mov dword [esp + 0x10], eax
mov esi, dword [ebp + 0x10]
push 0x18
call fcn.004cf0a6
add esp, 4
mov ebx, eax
mov eax, dword [esi + 8]
mov dword [ebx + 0x10], eax
movsd xmm0, qword [esi]
movsd qword [ebx + 8], xmm0
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov ecx, dword [esi + 0xc]
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0xc]
mov dword [ebx + 4], ecx
mov dword [ebx], eax
mov esi, dword [esp + 8]
mov eax, dword [esi + 0xc]
inc eax
movd xmm0, eax
movq xmm2, qword [0x5792a0]
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [esi + 0x10]
mov edi, dword [esp + 4]
test edi, edi
je 0x51bdc4
movd xmm3, edi
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x51bdc4
mov edx, dword [esp + 0x10]
mov ecx, dword [esi]
mov eax, dword [ecx + edx*4]
test eax, eax
je 0x51bd89
mov ecx, dword [eax]
mov dword [ebx], ecx
mov dword [eax], ebx
inc dword [esi + 0xc]
mov cl, 1
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [eax + 4], cl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edx, ebx
cmp ebx, edi
jb 0x51bbf7
mov eax, ebx
xor edx, edx
div edi
jmp 0x51bbf7
mov eax, dword [esi + 8]
mov dword [ebx], eax
lea eax, [esi + 8]
mov dword [esi + 8], ebx
mov dword [ecx + edx*4], eax
mov eax, dword [ebx]
test eax, eax
je 0x51bd5d
mov eax, dword [eax + 4]
mov edi, dword [esp + 4]
lea ecx, [edi - 1]
test edi, ecx
jne 0x51bdb8
and eax, ecx
shl eax, 2
add eax, dword [esi]
jmp 0x51bd5b
xor ecx, ecx
jmp 0x51bd62
cmp eax, edi
jb 0x51bdad
xor edx, edx
div edi
mov eax, edx
jmp 0x51bdad
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call fcn.004e82b0
add esp, 8
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fisttp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
lea ecx, [edi + edi]
cmp edi, 3
jb 0x51be04
lea esi, [edi - 1]
xor edx, edx
test edi, esi
mov esi, dword [esp + 8]
setne dl
jmp 0x51be07
xor edx, edx
inc edx
or edx, ecx
cmp edx, eax
cmovb edx, eax
mov ecx, esi
push edx
call fcn.0051bee0
mov ecx, dword [esi + 4]
lea edx, [ecx - 1]
test ecx, edx
mov dword [esp + 4], ecx
jne 0x51be2d
and edx, dword [esp + 0xc]
jmp 0x51bd4e
mov eax, dword [esp + 0xc]
cmp eax, ecx
jae 0x51be3c
mov edx, eax
jmp 0x51bd4e
xor edx, edx
div ecx
jmp 0x51bd4e