Function at 0x40c198
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 0x40c1ea
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 0x40c1bc
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
cmp edx, 3
je 0x40c1fb
cmp edx, 2
je 0x40c204
cmp edx, 1
je 0x40c20d
jmp 0x40c218
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 0x40c539
mov eax, edi
call fcn.00464d50
mov dword [esp + 0x38], eax
test eax, eax
jne 0x40c254
mov eax, 0xffffffff
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, edi
call fcn.00464d50
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
push eax
push 0x83aa54
push 0x83a2b0
call fcn.0046d5d8
mov eax, dword [esp + 0x48]
lea eax, [eax + eax]
mov dword [esp + 0x38], eax
push eax
call fcn.0046f65c
add esp, 0x10
mov dword [esp + 0x10], eax
mov eax, edi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
call fcn.00464fd0
mov eax, dword [esp + 0x38]
push eax
call fcn.0046f65c
pop ecx
mov dword [esp + 0x1c], eax
mov eax, edi
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
call fcn.00464fd0
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 0x40c34b
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 0x40c30b
movzx eax, byte [ebx]
mov byte [ebx], al
jmp 0x40c315
mov esi, dword [esp + 0x34]
movzx eax, byte [esi + ebp]
xor byte [ebx], al
inc ebx
inc edx
inc ebp
cmp ebp, 0x400
jl 0x40c300
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 0x40c2ea
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x40c467
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 0x40c37e
mov edx, ecx
sub edx, ebp
jmp 0x40c383
mov edx, 0x400
mov ecx, dword [esp + 0x18]
lea esi, [ecx + ebp]
mov eax, esi
call fcn.0040c554
mov ecx, dword [esp + 0x10]
movzx ecx, word [ecx + edi*2]
movzx eax, ax
cmp ecx, eax
je 0x40c442
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 0x40c42d
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x40c543
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 0x40c40f
mov ebx, eax
shl ebx, 0xa
lea edi, [ecx + ebx]
cmp esi, edi
jle 0x40c40f
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 0x40c3f2
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 0x40c3be
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 0x40c370
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40c476
push eax
call fcn.0046fbee
pop ecx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40c485
push eax
call fcn.0046fbee
pop ecx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40c494
push eax
call fcn.0046fbee
pop ecx
cmp esi, 4
jl 0x40c4c0
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 0x40c499
cmp esi, 3
je 0x40c4d1
cmp esi, 2
je 0x40c4da
cmp esi, 1
je 0x40c4e3
jmp 0x40c4ef
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 0x40c518
mov eax, 0xffffffff
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [esp + 0x64]
push eax
push 0x83aa8c
push 0x83a2b0
call fcn.0046d5d8
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 0x40c424