Function at 0x51da30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ecx
push edi
mov edi, dword [eax + 0x10]
mov dword [esp + 0x10], edi
cmp ecx, 0x10
jb 0x51da5c
mov esi, dword [eax]
jmp 0x51da5e
mov esi, eax
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x51da81
nop dword [eax]
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x51da70
mov eax, dword [ebx + 0x18]
lea esi, [ebx + 4]
mov edi, dword [esi]
and eax, edx
lea edx, [eax*8]
mov dword [esp + 0x1c], esi
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + edx]
mov dword [esp + 0x18], ecx
cmp edi, ecx
je 0x51db67
mov edi, dword [eax + edx + 4]
mov edi, dword [edi]
cmp edi, ecx
je 0x51db67
nop word [eax + eax]
mov edi, dword [edi + 4]
cmp dword [edi + 0x1c], 0x10
lea eax, [edi + 8]
mov ebx, dword [eax + 0x10]
jb 0x51dad1
mov eax, dword [eax]
cmp dword [esp + 0x14], 0x10
jb 0x51dadf
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
jmp 0x51dae2
mov esi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, ebx
cmp ecx, ebx
cmovb edx, ecx
test edx, edx
je 0x51db4a
sub edx, 4
jb 0x51db07
mov ecx, dword [esi]
cmp ecx, dword [eax]
jne 0x51db0c
add esi, 4
add eax, 4
sub edx, 4
jae 0x51daf6
cmp edx, 0xfffffffc
je 0x51db40
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x51db39
cmp edx, 0xfffffffd
je 0x51db40
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x51db39
cmp edx, 0xfffffffe
je 0x51db40
mov cl, byte [esi + 2]
cmp cl, byte [eax + 2]
jne 0x51db39
cmp edx, 0xffffffff
je 0x51db40
mov cl, byte [esi + 3]
cmp cl, byte [eax + 3]
je 0x51db40
sbb eax, eax
or eax, 1
jmp 0x51db42
xor eax, eax
test eax, eax
jne 0x51db59
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jb 0x51db59
xor eax, eax
cmp ecx, ebx
setne al
test eax, eax
je 0x51dbac
cmp edi, dword [esp + 0x18]
jne 0x51dac0
mov ebx, dword [esp + 0x20]
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
cmp edi, eax
je 0x51db91
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], esi
mov ecx, dword [eax + 4]
mov edx, dword [edi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov dword [esi + 4], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x24]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x51dbcf
mov dword [ecx], esi
mov eax, dword [ebx + 0xc]
mov dword [eax + edx + 4], esi
jmp 0x51dbf1
push dword [ebp + 0x10]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
call fcn.0051dcb0
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, edi
jne 0x51dbd7
mov dword [ecx], esi
jmp 0x51dbf1
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, esi
je 0x51dbf1
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.0051dc10
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc