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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [ecx + 0xb]
test bl, bl
jns 0x51be9c
mov ebx, dword [ecx + 4]
mov ecx, dword [ecx]
mov eax, ebx
mov dword [ebp - 0x1c], ecx
mov edx, ebx
cmp ebx, 4
jb 0x51bed5
mov edx, ebx
mov ecx, dword [ebp - 0x1c]
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 0x51beaf
cmp edx, 2
je 0x51c034
cmp edx, 1
je 0x51c03d
cmp edx, 3
je 0x51c02b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 4]
test esi, esi
je 0x51c062
mov ecx, esi
shr ecx, 1
and ecx, 0x55555555
mov eax, esi
sub eax, ecx
mov ecx, 0x33333333
mov edx, eax
and edx, ecx
shr eax, 2
and eax, ecx
add eax, edx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
imul eax, ecx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x28], eax
cmp eax, 1
jbe 0x51c04d
mov ecx, dword [ebp - 0x14]
mov edi, ecx
cmp ecx, esi
jb 0x51bf66
mov eax, ecx
xor edx, edx
div esi
mov edi, edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x51c065
mov edx, dword [eax]
test edx, edx
je 0x51c065
lea eax, [esi - 1]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 4]
cmp eax, ecx
mov dword [ebp - 0x10], edx
je 0x51bfaf
cmp dword [ebp - 0x28], 1
jbe 0x51c05a
cmp eax, esi
jb 0x51bfa4
xor edx, edx
div esi
mov eax, edx
mov edx, dword [ebp - 0x10]
cmp eax, edi
jne 0x51c065
mov dword [ebp - 0x24], esi
movzx eax, byte [edx + 0x13]
mov ecx, eax
test al, al
jns 0x51bfbf
mov ecx, dword [edx + 0xc]
cmp ecx, ebx
jne 0x51c00c
mov ecx, dword [ebp - 0x10]
add ecx, 8
test al, al
jns 0x51bfcf
mov ecx, dword [ecx]
js 0x51bff7
xor edx, edx
test eax, eax
je 0x51c021
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + edx + 8]
mov esi, edi
mov edi, ebx
mov ebx, dword [ebp - 0x1c]
cmp cl, byte [ebx + edx]
mov ebx, edi
mov edi, esi
jne 0x51c00c
inc edx
xor ecx, ecx
cmp eax, edx
jne 0x51bfd7
jmp 0x51c023
test ebx, ebx
je 0x51c021
push ebx
push dword [ebp - 0x1c]
push ecx
call fcn.0066ff2d
add esp, 0xc
test eax, eax
je 0x51c021
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
test edx, edx
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
jne 0x51bf86
jmp 0x51c065
xor ecx, ecx
mov edx, dword [ebp - 0x10]
jmp 0x51c0fe
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
jmp 0x51bef0
lea edi, [esi - 1]
mov ecx, dword [ebp - 0x14]
and edi, ecx
jmp 0x51bf66
and eax, dword [ebp - 0x20]
jmp 0x51bfa7
xor edi, edi
dec edi
push 0x18
call fcn.0066d870
add esp, 4
mov ecx, eax
add ecx, 8
mov ebx, dword [ebp - 0x18]
je 0x51c216
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp byte [eax + 0xb], 0
jns 0x51c1ef
push dword [eax + 4]
push dword [eax]
call fcn.006309f0
xor eax, eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [edx + 4], ecx
mov dword [edx], eax
mov eax, dword [ebx + 0xc]
inc eax
movq xmm2, qword [0x7050c0]
movd xmm0, eax
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [ebx + 0x10]
test esi, esi
je 0x51c146
movd xmm3, esi
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x51c146
mov ecx, dword [ebx]
mov eax, dword [ecx + edi*4]
test eax, eax
je 0x51c110
mov ecx, dword [eax]
mov dword [edx], ecx
mov dword [eax], edx
inc dword [ebx + 0xc]
mov cl, 1
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov byte [eax + 4], cl
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov eax, dword [ebx + 8]
mov dword [edx], eax
lea eax, [ebx + 8]
mov dword [ebx + 8], edx
mov dword [ecx + edi*4], eax
mov eax, dword [edx]
test eax, eax
je 0x51c0f9
mov eax, dword [eax + 4]
lea ecx, [esi - 1]
test esi, ecx
je 0x51c1e8
cmp eax, esi
jb 0x51c13c
xor edx, edx
div esi
mov eax, edx
mov edx, dword [ebp - 0x10]
shl eax, 2
add eax, dword [ebx]
jmp 0x51c0f7
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call fcn.0069a830
add esp, 8
fstp dword [ebp - 0x30]
movss xmm0, dword [ebp - 0x30]
cvttss2si eax, xmm0
mov edx, eax
sar edx, 0x1f
subss xmm0, dword [0x6f4010]
cvttss2si ecx, xmm0
and ecx, edx
or ecx, eax
lea edx, [esi + esi]
cmp esi, 3
jb 0x51c1db
lea edi, [esi - 1]
xor eax, eax
test esi, edi
setne al
or eax, edx
cmp eax, ecx
cmovbe eax, ecx
mov esi, 2
cmp eax, 1
jne 0x51c202
mov edi, dword [ebx + 4]
cmp esi, edi
jbe 0x51c231
mov ecx, ebx
push esi
call fcn.0062b5f0
mov esi, dword [ebx + 4]
lea edi, [esi - 1]
test esi, edi
mov edx, dword [ebp - 0x10]
je 0x51c1e0
mov eax, dword [ebp - 0x14]
cmp eax, esi
jb 0x51c2dc
xor edx, edx
div esi
mov edi, edx
mov edx, dword [ebp - 0x10]
jmp 0x51c0ea
xor eax, eax
inc eax
jmp 0x51c191
and edi, dword [ebp - 0x14]
jmp 0x51c0ea
and eax, ecx
jmp 0x51c13f
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
movsd xmm0, qword [eax]
movsd qword [ecx], xmm0
jmp 0x51c099
lea ecx, [eax - 1]
test eax, ecx
je 0x51c212
push eax
call fcn.0062ef70
add esp, 4
mov esi, eax
jmp 0x51c1a2
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x25
push str........._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s
call fcn.0069cc70
jae 0x51c1b5
movss xmm0, dword [ebx + 0xc]
orpd xmm0, xmmword [0x7050b0]
subsd xmm0, qword [0x7050c0]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [ebx + 0x10]
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call fcn.0069a830
add esp, 8
fstp dword [ebp - 0x2c]
movss xmm0, dword [ebp - 0x2c]
cvttss2si eax, xmm0
mov ecx, eax
subss xmm0, dword [0x6f4010]
cvttss2si edx, xmm0
sar ecx, 0x1f
and edx, ecx
or edx, eax
cmp edi, 3
jb 0x51c2e3
mov ecx, edi
shr ecx, 1
and ecx, 0x55555555
mov eax, edi
sub eax, ecx
mov ecx, 0x33333333
mov ebx, eax
and ebx, ecx
shr eax, 2
and eax, ecx
add eax, ebx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
imul eax, ecx, 0x1010101
shr eax, 0x18
cmp eax, 1
ja 0x51c2e3
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 0x51c2ec
mov edi, eax
jmp 0x51c1d3
push edx
call fcn.0062ef70
add esp, 4
cmp esi, eax
cmovbe esi, eax
cmp esi, edi
mov ebx, dword [ebp - 0x18]
jb 0x51c1ad
jmp 0x51c1b5