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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x120
mov ebx, ecx
mov edi, edx
mov ebp, eax
movsx esi, byte [edi]
test esi, esi
je 0x40d268
xor esi, esi
mov edx, edi
movsx eax, byte [edx]
mov ecx, edx
mov edx, ebp
mov ebp, esi
mov esi, ecx
cmp eax, 0x2f
je 0x40d506
movzx eax, al
movzx eax, byte [eax + 0x5bc4a0]
inc eax
movsx eax, al
add ebp, eax
lea esi, [edi + ebp]
movsx eax, byte [esi]
test eax, eax
jne 0x40d243
mov ebp, edx
test ebp, ebp
je 0x40d53e
inc dword [0x841ea4]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x40d288
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x40d280
xor ecx, ecx
xor ecx, eax
mov esi, edi
cmp eax, 4
jl 0x40d2c7
mov dword [esp + 0x114], ebx
imul edx, dword [esi], 0x5bd1e995
mov ebx, edx
shr ebx, 0x18
xor edx, ebx
imul ebx, edx, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, ebx
add esi, 4
add eax, 0xfffffffc
cmp eax, 4
jge 0x40d29a
mov ebx, dword [esp + 0x114]
cmp eax, 3
je 0x40d2d8
cmp eax, 2
je 0x40d2e1
cmp eax, 1
je 0x40d2ea
jmp 0x40d2f5
movzx eax, byte [esi + 2]
shl eax, 0x10
xor ecx, eax
movzx eax, byte [esi + 1]
shl eax, 8
xor ecx, eax
movzx esi, byte [esi]
xor ecx, esi
imul ecx, ecx, 0x5bd1e995
mov esi, ecx
shr esi, 0xd
xor ecx, esi
imul ecx, ecx, 0x5bd1e995
mov esi, ecx
shr esi, 0xf
xor ecx, esi
and ecx, 0x7fffffff
movsx ebx, bl
test ebx, ebx
jne 0x40d3ef
mov esi, dword [ebp + 0x30]
mov ebx, esi
test esi, esi
jle 0x40d48d
mov eax, ecx
shr eax, 0x18
mov ebx, dword [ebp + 0x28]
movzx ebx, word [ebx + eax*2]
mov esi, dword [ebp + 0x2c]
movzx esi, word [esi + eax*2]
add esi, ebx
test ebx, ebx
jg 0x40d487
cmp ebx, esi
jge 0x40d480
mov edx, dword [0x841ea0]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x118], ecx
mov dword [esp + 0x114], esi
mov dword [esp + 0x10c], ebp
mov dword [esp + 0x11c], edi
mov ecx, eax
mov ebp, edx
inc ebp
mov dword [0x841ea0], ebp
mov esi, dword [esp + 0x118]
cmp esi, dword [ecx + ebx*4]
jne 0x40d3d9
mov esi, dword [esp + 0x10c]
mov esi, dword [esi + 0x24]
mov esi, dword [esi + ebx*4]
mov dword [esp + 0x110], esi
mov edi, dword [esp + 0x11c]
mov esi, dword [esi + 0x14]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x40d3c6
or dl, dl
je 0x40d3c2
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x40d3c6
add edi, 2
add esi, 2
or dl, dl
jne 0x40d3a6
xor eax, eax
jmp 0x40d3cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d46d
inc dword [0x841e9c]
inc ebx
mov esi, dword [esp + 0x114]
cmp ebx, esi
jl 0x40d375
xor ebp, ebp
cmp ebx, esi
jne 0x40d460
xor ebp, ebp
jmp 0x40d460
cmp ebx, 1
je 0x40d494
mov ebp, dword [ebp]
test ebp, ebp
je 0x40d460
mov ebx, dword [0x841ea0]
mov dword [esp + 0x11c], edi
inc ebx
mov dword [0x841ea0], ebx
mov edx, dword [ebp + 0x1c]
and edx, 0x7fffffff
cmp edx, ecx
jne 0x40d459
mov edi, dword [ebp + 0x14]
mov esi, dword [esp + 0x11c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x40d44a
or dl, dl
je 0x40d446
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x40d44a
add edi, 2
add esi, 2
or dl, dl
jne 0x40d42a
xor eax, eax
jmp 0x40d44f
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d460
inc dword [0x841e9c]
mov ebp, dword [ebp + 0xc]
test ebp, ebp
jne 0x40d40c
mov eax, ebp
add esp, 0x120
pop ebx
pop ebp
pop esi
pop edi
ret
mov ebp, dword [esp + 0x110]
mov esi, dword [esp + 0x114]
jmp 0x40d3e7
xor ebp, ebp
jmp 0x40d3e7
dec ebx
jmp 0x40d344
xor ebp, ebp
jmp 0x40d3e7
mov ebp, dword [ebp]
add ecx, 0x80000000
test ebp, ebp
je 0x40d460
mov eax, dword [0x841ea0]
mov dword [esp + 0x11c], edi
mov ebx, ebp
mov ebp, eax
inc ebp
mov dword [0x841ea0], ebp
cmp ecx, dword [ebx + 0x1c]
jne 0x40d4f6
mov edi, dword [ebx + 0x14]
mov esi, dword [esp + 0x11c]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x40d4e7
or dl, dl
je 0x40d4e3
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x40d4e7
add edi, 2
add esi, 2
or dl, dl
jne 0x40d4c7
xor eax, eax
jmp 0x40d4ec
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d4ff
inc dword [0x841e9c]
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x40d4b1
jmp 0x40d54b
mov ebp, ebx
jmp 0x40d460
mov eax, edx
mov edx, edi
mov ecx, ebp
call fcn.0040d560
mov edx, eax
test edx, edx
je 0x40d521
lea edi, [esi + 1]
xor ebp, ebp
jmp 0x40d25c
mov esi, ebp
mov ebp, edx
lea eax, [esp + 0xc]
push esi
push edi
push eax
call fcn.0046e2b8
add esp, 0xc
mov byte [esp + esi + 0xc], 0
jmp 0x40d268
xor eax, eax
add esp, 0x120
pop ebx
pop ebp
pop esi
pop edi
ret
mov ebp, ebx
jmp 0x40d460