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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, dword [esp + 0x48]
movzx eax, byte [esi]
test al, 1
je 0x4be3fa
mov eax, dword [esi + 4]
mov esi, dword [esi + 8]
jmp 0x4be3fd
inc esi
shr eax, 1
mov edi, eax
mov ebx, esi
mov edx, eax
mov dword [esp + 0x1c], eax
cmp eax, 4
jb 0x4be492
mov eax, dword [esp + 0x1c]
lea edx, [eax - 4]
test dl, 4
jne 0x4be445
mov edi, eax
imul eax, dword [esi], 0x5bd1e995
mov ebx, eax
shr ebx, 0x18
xor ebx, eax
imul ebx, ebx, 0x5bd1e995
imul eax, edi, 0x5bd1e995
xor eax, ebx
lea ebx, [esi + 4]
mov edi, edx
cmp edx, 4
jae 0x4be44e
jmp 0x4be492
mov edi, eax
mov ebx, esi
cmp edx, 4
jb 0x4be492
mov edx, edi
imul edi, dword [ebx], 0x5bd1e995
mov ebp, edi
shr ebp, 0x18
xor ebp, edi
imul edi, ebp, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
imul edi, dword [ebx + 4], 0x5bd1e995
mov ebp, edi
shr ebp, 0x18
xor ebp, edi
imul edi, ebp, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
add ebx, 8
add edx, 0xfffffff8
cmp edx, 3
ja 0x4be450
cmp edx, 1
mov dword [esp + 0x28], esi
mov edi, ecx
je 0x4be4b9
cmp edx, 2
je 0x4be4b0
cmp edx, 3
jne 0x4be4c4
movzx edx, byte [ebx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ebx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ebx]
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 esi, dword [edi + 4]
test esi, esi
mov ebp, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
je 0x4be531
mov eax, esi
shr eax, 1
and eax, 0x55555555
mov ecx, esi
sub ecx, eax
mov eax, ecx
and eax, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, eax
mov eax, ecx
shr eax, 4
add eax, ecx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
mov dword [esp + 0x24], eax
cmp eax, 1
ja 0x4be53e
lea edx, [esi - 1]
and edx, ebx
jmp 0x4be550
mov dword [esp + 0x14], 0
jmp 0x4be636
mov edx, ebx
cmp ebx, esi
jb 0x4be550
mov eax, ebx
xor edx, edx
div dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov eax, dword [ebp]
mov dword [esp + 0x14], edx
mov eax, dword [eax + edx*4]
test eax, eax
mov esi, dword [esp + 0x28]
je 0x4be636
mov edi, dword [eax]
test edi, edi
je 0x4be636
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x20], eax
jmp 0x4be592
mov edi, dword [edi]
test edi, edi
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
je 0x4be636
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x4be5c4
mov ebx, ebp
cmp dword [esp + 0x24], 1
ja 0x4be5b0
and eax, dword [esp + 0x20]
jmp 0x4be5be
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jb 0x4be5be
xor edx, edx
div ecx
mov eax, edx
cmp eax, dword [esp + 0x14]
jne 0x4be638
movzx edx, byte [edi + 8]
mov ecx, edx
shr ecx, 1
test dl, 1
mov ebx, dword [edi + 0xc]
mov eax, ebx
cmove eax, ecx
cmp eax, dword [esp + 0x1c]
jne 0x4be580
test dl, 1
jne 0x4be610
xor eax, eax
cmp dl, 2
jb 0x4be861
nop dword [eax]
movzx edx, byte [edi + eax + 9]
cmp dl, byte [esi + eax]
jne 0x4be580
inc eax
cmp ecx, eax
jne 0x4be5f0
jmp 0x4be62f
test ebx, ebx
je 0x4be62f
mov eax, dword [edi + 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jne 0x4be580
xor eax, eax
jmp 0x4be861
mov ebx, ebp
mov esi, dword [esp + 0x4c]
mov dword [esp], 0x14
call fcn.00420210
mov edi, eax
lea ecx, [eax + 8]
mov dword [esp], esi
call fcn.00423570
sub esp, 4
mov eax, dword [esp + 0xc]
mov dword [edi + 4], eax
mov dword [edi], 0
mov eax, dword [ebx + 0xc]
inc eax
movq xmm2, qword [0x58a750]
movd xmm0, eax
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [ebx + 0x10]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4be6b3
movd xmm3, esi
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x4be6b3
mov edx, dword [esp + 0x14]
jmp 0x4be818
lea eax, [esi + esi]
mov ebx, 1
cmp esi, 3
jb 0x4be6ca
lea ecx, [esi - 1]
xor ebx, ebx
test esi, ecx
setne bl
or ebx, eax
divss xmm0, xmm1
movss dword [esp], xmm0
call fcn.0053370c
fstp dword [esp + 0x30]
movss xmm0, dword [esp + 0x30]
cvttss2si ecx, xmm0
mov edx, ecx
sar edx, 0x1f
subss xmm0, dword [0x58a758]
cvttss2si eax, xmm0
and eax, edx
or eax, ecx
cmp ebx, eax
cmova eax, ebx
mov ebp, 2
cmp eax, 1
mov ebx, dword [esp + 0x18]
je 0x4be721
lea ecx, [eax - 1]
test eax, ecx
je 0x4be71f
mov dword [esp], eax
call fcn.00533740
mov ebp, eax
mov esi, dword [ebx + 4]
cmp ebp, esi
jbe 0x4be73a
mov dword [esp], ebp
mov ecx, ebx
call fcn.004be870
sub esp, 4
jmp 0x4be7f8
jae 0x4be7f8
movss xmm0, dword [ebx + 0xc]
orpd xmm0, xmmword [0x58a760]
subsd xmm0, qword [0x58a750]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [ebx + 0x10]
movss dword [esp], xmm0
call fcn.0053370c
fstp dword [esp + 0x2c]
movss xmm0, dword [esp + 0x2c]
cvttss2si eax, xmm0
mov ecx, eax
subss xmm0, dword [0x58a758]
cvttss2si edx, xmm0
sar ecx, 0x1f
and edx, ecx
or edx, eax
cmp esi, 3
jb 0x4be7e3
mov eax, esi
shr eax, 1
and eax, 0x55555555
mov ecx, esi
sub ecx, eax
mov eax, ecx
and eax, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, eax
mov eax, ecx
shr eax, 4
add eax, ecx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
cmp eax, 1
ja 0x4be7e3
lea eax, [edx - 1]
bsr ecx, eax
xor ecx, 0x1f
neg cl
mov eax, 1
shl eax, cl
cmp edx, 2
cmovb eax, edx
jmp 0x4be7eb
mov dword [esp], edx
call fcn.00533740
cmp ebp, eax
cmovbe ebp, eax
cmp ebp, esi
jb 0x4be728
mov esi, dword [ebx + 4]
lea edx, [esi - 1]
test esi, edx
jne 0x4be808
and edx, dword [esp + 0xc]
jmp 0x4be818
mov eax, dword [esp + 0xc]
cmp eax, esi
jae 0x4be814
mov edx, eax
jmp 0x4be818
xor edx, edx
div esi
mov ecx, dword [ebx]
mov eax, dword [ecx + edx*4]
test eax, eax
je 0x4be827
mov ecx, dword [eax]
mov dword [edi], ecx
jmp 0x4be85a
mov ebp, esi
lea eax, [ebx + 8]
mov esi, dword [eax]
mov dword [edi], esi
mov dword [eax], edi
mov dword [ecx + edx*4], eax
mov eax, dword [edi]
test eax, eax
je 0x4be85c
mov eax, dword [eax + 4]
lea ecx, [ebp - 1]
test ebp, ecx
jne 0x4be849
and eax, ecx
jmp 0x4be855
mov esi, ebp
cmp eax, ebp
jb 0x4be855
xor edx, edx
div esi
mov eax, edx
shl eax, 2
add eax, dword [ebx]
mov dword [eax], edi
inc dword [ebx + 0xc]
mov al, 1
movzx edx, al
mov eax, edi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret 8