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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x40
mov esi, ecx
mov ebp, edx
mov edi, eax
mov edx, esi
xor ebx, ebx
xor ebx, esi
mov ecx, ebx
mov eax, ebp
cmp esi, 4
jl 0x40c1ee
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], esi
imul esi, dword [eax], 0x5bd1e995
mov ebp, esi
shr ebp, 0x18
xor esi, ebp
imul ebp, esi, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, ebp
add eax, 4
add edx, 0xfffffffc
cmp edx, 4
jge 0x40c1c0
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
cmp edx, 3
je 0x40c1ff
cmp edx, 2
je 0x40c208
cmp edx, 1
je 0x40c211
jmp 0x40c21c
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
mov eax, ecx
shr eax, 0xd
xor ecx, eax
imul edx, ecx, 0x5bd1e995
mov eax, edx
shr eax, 0xf
xor edx, eax
mov eax, dword [esp + 0x60]
cmp eax, edx
je 0x40c53d
mov eax, edi
call fcn.004650a8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x40c258
mov eax, 0xffffffff
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, edi
call fcn.004650a8
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
push eax
push 0x847a54
push 0x8472b0
call fcn.004a1aa0
mov eax, dword [esp + 0x48]
lea eax, [eax + eax]
mov dword [esp + 0x38], eax
push eax
call fcn.004704bc
add esp, 0x10
mov dword [esp + 0x10], eax
mov eax, edi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
call fcn.00465328
mov eax, dword [esp + 0x38]
push eax
call fcn.004704bc
pop ecx
mov dword [esp + 0x1c], eax
mov eax, edi
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
call fcn.00465328
mov eax, dword [esp + 0x38]
push eax
call fcn.00403564
pop ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x40c34f
xor eax, eax
mov edi, ebp
mov ecx, dword [esp + 0x3c]
shl ecx, 0xa
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x20]
xor ebp, ebp
mov ebx, esi
mov edx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edi
mov ecx, dword [esp + 0x24]
cmp ecx, edx
jg 0x40c30f
movzx eax, byte [ebx]
mov byte [ebx], al
jmp 0x40c319
mov esi, dword [esp + 0x34]
movzx eax, byte [esi + ebp]
xor byte [ebx], al
inc ebx
inc edx
inc ebp
cmp ebp, 0x400
jl 0x40c304
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
add eax, 0x400
add edi, 0x400
cmp eax, ecx
jb 0x40c2ee
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x40c46b
xor edi, edi
xor edx, edx
mov eax, 0x400
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], esi
mov ebx, eax
mov ebp, edx
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
jg 0x40c382
mov edx, ecx
sub edx, ebp
jmp 0x40c387
mov edx, 0x400
mov ecx, dword [esp + 0x18]
lea esi, [ecx + ebp]
mov eax, esi
call fcn.0040c558
mov ecx, dword [esp + 0x10]
movzx ecx, word [ecx + edi*2]
movzx eax, ax
cmp ecx, eax
je 0x40c446
xor ecx, ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
movzx ebx, byte [ecx + esi]
movzx eax, byte [ebp + ecx]
cmp ebx, eax
je 0x40c431
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x40c547
xor edx, edx
xor eax, eax
mov edi, dword [esp + 0x18]
lea edi, [ecx + edi]
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], ebx
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
cmp eax, ebp
je 0x40c413
mov ebx, eax
shl ebx, 0xa
lea edi, [ecx + ebx]
cmp esi, edi
jle 0x40c413
mov edi, dword [esp + 0x38]
movzx ebx, byte [edi + ebx]
xor edx, ebx
movzx edx, dl
inc eax
mov ebx, dword [esp + 0x3c]
cmp eax, ebx
jb 0x40c3f6
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
xor edx, ebx
mov eax, dword [esp + 0x30]
mov byte [eax + ecx], dl
inc ecx
cmp ecx, 0x400
jl 0x40c3c2
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x34]
add ebp, 0x400
add ebx, 0x400
inc edi
mov ecx, dword [esp + 0x3c]
cmp edi, ecx
jb 0x40c374
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40c47a
push eax
call fcn.00470a4e
pop ecx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40c489
push eax
call fcn.00470a4e
pop ecx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40c498
push eax
call fcn.00470a4e
pop ecx
cmp esi, 4
jl 0x40c4c4
imul ecx, dword [ebp], 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor ecx, eax
imul edi, ecx, 0x5bd1e995
imul ebx, ebx, 0x5bd1e995
xor ebx, edi
add ebp, 4
add esi, 0xfffffffc
cmp esi, 4
jge 0x40c49d
cmp esi, 3
je 0x40c4d5
cmp esi, 2
je 0x40c4de
cmp esi, 1
je 0x40c4e7
jmp 0x40c4f3
movzx eax, byte [ebp + 2]
shl eax, 0x10
xor ebx, eax
movzx eax, byte [ebp + 1]
shl eax, 8
xor ebx, eax
movzx eax, byte [ebp]
xor ebx, eax
imul ebx, ebx, 0x5bd1e995
mov eax, ebx
shr eax, 0xd
xor ebx, eax
imul ebx, ebx, 0x5bd1e995
mov edx, ebx
shr edx, 0xf
xor ebx, edx
mov ecx, dword [esp + 0x60]
cmp ecx, ebx
je 0x40c51c
mov eax, 0xffffffff
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [esp + 0x64]
push eax
push 0x847a8c
push 0x8472b0
call fcn.004a1aa0
mov eax, 1
add esp, 0x4c
pop ebx
pop ebp
pop esi
pop edi
ret
xor eax, eax
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret
xor edx, edx
jmp 0x40c428