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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x110
mov ebx, ecx
mov edi, edx
mov esi, eax
movsx ebp, byte [edi]
test ebp, ebp
je 0x40d366
xor ebp, ebp
mov edx, edi
movsx eax, byte [edx]
mov ecx, edx
mov edx, esi
mov esi, ecx
cmp eax, 0x2f
je 0x40d4fd
movzx eax, al
movzx eax, byte [eax + 0x5940a0]
inc eax
movsx eax, al
add ebp, eax
lea esi, [edi + ebp]
movsx eax, byte [esi]
test eax, eax
jne 0x40d341
mov esi, edx
test esi, esi
je 0x40d544
mov ebp, dword [esi]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x40d382
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x40d37a
mov ecx, eax
xor eax, eax
xor eax, ecx
mov edx, edi
cmp ecx, 4
jl 0x40d3c3
mov dword [esp + 0x10c], ebx
imul esi, dword [edx], 0x5bd1e995
mov ebx, esi
shr ebx, 0x18
xor esi, ebx
imul ebx, esi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, ebx
add edx, 4
add ecx, 0xfffffffc
cmp ecx, 4
jge 0x40d396
mov ebx, dword [esp + 0x10c]
cmp ecx, 3
je 0x40d3d4
cmp ecx, 2
je 0x40d3dd
cmp ecx, 1
je 0x40d3e6
jmp 0x40d3f1
movzx ecx, byte [edx + 2]
shl ecx, 0x10
xor eax, ecx
movzx ecx, byte [edx + 1]
shl ecx, 8
xor eax, ecx
movzx edx, byte [edx]
xor eax, edx
imul eax, eax, 0x5bd1e995
mov edx, eax
shr edx, 0xd
xor eax, edx
imul eax, eax, 0x5bd1e995
mov edx, eax
shr edx, 0xf
xor eax, edx
and eax, 0x7fffffff
movsx edx, bl
test edx, edx
jne 0x40d459
test ebp, ebp
je 0x40d4a7
mov ebx, eax
mov ecx, edi
cmp ebx, dword [ebp + 0x1c]
jne 0x40d450
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x40d447
or dl, dl
je 0x40d443
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x40d447
add edi, 2
add esi, 2
or dl, dl
jne 0x40d427
xor eax, eax
jmp 0x40d44c
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d4a7
mov ebp, dword [ebp + 0xc]
test ebp, ebp
jne 0x40d41d
jmp 0x40d4a7
cmp edx, 1
je 0x40d4b4
test ebp, ebp
je 0x40d4a7
mov ebx, eax
mov ecx, edi
mov eax, dword [ebp + 0x1c]
and eax, 0x7fffffff
cmp eax, ebx
jne 0x40d4a0
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x40d497
or dl, dl
je 0x40d493
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x40d497
add edi, 2
add esi, 2
or dl, dl
jne 0x40d477
xor eax, eax
jmp 0x40d49c
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d4a7
mov ebp, dword [ebp + 0xc]
test ebp, ebp
jne 0x40d466
mov eax, ebp
add esp, 0x110
pop ebx
pop ebp
pop esi
pop edi
ret
add eax, 0x80000000
test ebp, ebp
je 0x40d4a7
mov ebx, eax
mov ecx, edi
cmp ebx, dword [ebp + 0x1c]
jne 0x40d4f4
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x40d4eb
or dl, dl
je 0x40d4e7
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x40d4eb
add edi, 2
add esi, 2
or dl, dl
jne 0x40d4cb
xor eax, eax
jmp 0x40d4f0
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d4a7
mov ebp, dword [ebp + 0xc]
test ebp, ebp
jne 0x40d4c1
jmp 0x40d4a7
mov eax, edx
mov edx, edi
mov ecx, ebp
call fcn.0040d560
mov edx, eax
test edx, edx
je 0x40d518
lea edi, [esi + 1]
xor ebp, ebp
jmp 0x40d35a
mov esi, edx
lea eax, [esp + 0xc]
push ebp
push edi
push eax
call fcn.0045ca50
mov byte [esp + ebp + 0x18], 0
lea ebp, [esp + 0x18]
push ebp
push 1
push 0x18786
call fcn.0045c5e8
add esp, 0x18
jmp 0x40d366
xor eax, eax
add esp, 0x110
pop ebx
pop ebp
pop esi
pop edi
ret