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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [ebp + 0xc]
movzx ebx, byte [esi + 0xb]
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x14], edx
test bl, bl
mov dword [ebp - 0x24], ebx
lea ebx, [esi + ebx]
lea edx, [eax + edx]
cmovs ebx, edx
cmovs esi, eax
sub ebx, esi
cmp ebx, 4
jb 0x435493
mov dword [ebp - 0x10], ecx
mov edx, ebx
mov edi, esi
mov ecx, ebx
mov eax, ebx
mov dword [ebp - 0x18], esi
nop word cs:[eax + eax]
nop dword [eax]
imul esi, dword [edi], 0x5bd1e995
imul eax, eax, 0x5bd1e995
add edx, 0xfffffffc
add edi, 4
mov ebx, esi
shr ebx, 0x18
xor ebx, esi
imul esi, ebx, 0x5bd1e995
xor eax, esi
cmp edx, 3
ja 0x4353c0
mov ebx, ecx
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
add ebx, 0xfffffffc
mov esi, ebx
and esi, 0xfffffffc
lea edx, [esi + edi + 4]
sub ebx, esi
mov esi, edi
cmp ebx, 1
je 0x43541f
cmp ebx, 2
je 0x435416
cmp ebx, 3
jne 0x43542a
movzx edi, byte [edx + 2]
shl edi, 0x10
xor eax, edi
movzx edi, byte [edx + 1]
shl edi, 8
xor eax, edi
movzx edx, byte [edx]
xor edx, eax
imul eax, edx, 0x5bd1e995
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x435596
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov edx, ebx
mov edi, eax
shr edi, 0xf
xor edi, eax
mov eax, ebx
shr eax, 1
and eax, 0x55555555
sub edx, eax
mov eax, edx
shr edx, 2
and eax, 0x33333333
and edx, 0x33333333
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
mov dword [ebp - 0x18], eax
jbe 0x4354a5
cmp edi, ebx
mov edx, edi
jb 0x4354aa
mov eax, edi
xor edx, edx
div ebx
jmp 0x4354aa
mov eax, ebx
mov edx, esi
cmp ebx, 1
jne 0x435403
jmp 0x43541f
lea edx, [ebx - 1]
and edx, edi
mov eax, dword [ecx]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x435596
mov dword [ebp - 0x1c], ebx
mov ebx, dword [eax]
mov ecx, 0
test ebx, ebx
je 0x435598
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x14]
test cl, cl
lea eax, [eax - 1]
cmovns edx, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], edx
jmp 0x435508
and eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jne 0x435596
mov ebx, dword [ebx]
test ebx, ebx
je 0x435596
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x435560
movzx eax, byte [ebx + 0x13]
test al, al
mov ecx, eax
jns 0x43551c
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x14]
jne 0x4354fe
lea ecx, [ebx + 8]
test al, al
mov edx, dword [ecx]
cmovs ecx, edx
js 0x435578
cmp dword [ebp - 0x14], 0
je 0x435592
cmp byte [esi], dl
jne 0x4354fe
dec eax
xor ecx, ecx
nop word [eax + eax]
cmp eax, ecx
je 0x435592
movzx edx, byte [ebx + ecx + 9]
cmp dl, byte [esi + ecx + 1]
lea ecx, [ecx + 1]
je 0x435540
jmp 0x4354fe
cmp dword [ebp - 0x18], 1
jbe 0x4354f0
mov ecx, dword [ebp - 0x1c]
cmp eax, ecx
jb 0x4354f3
xor edx, edx
div ecx
mov eax, edx
jmp 0x4354f3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x435592
push eax
push esi
push ecx
call fcn.004e924d
add esp, 0xc
test eax, eax
jne 0x4354fe
mov ecx, ebx
jmp 0x435598
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8