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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57600f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x5d6024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebx + 0xc]
add eax, 0x14
mov edi, dword [ebx + 8]
mov dword [ebp - 0x7c], ecx
mov ecx, edi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51c033
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x5c]
call fcn.00407c60
mov dword [ebp - 4], 0
lea esi, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
mov edx, 0x811c9dc5
mov eax, dword [ebp - 0x4c]
cmovae esi, dword [ebp - 0x5c]
xor ecx, ecx
add eax, eax
je 0x51c084
mov edi, eax
nop
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x51c070
mov edi, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x5c]
push edx
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0040ad70
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0x68]
test esi, esi
je 0x51c0a7
mov eax, dword [eax + 4]
mov dword [ebp - 0x70], eax
jmp 0x51c0ad
mov esi, dword [eax + 4]
mov dword [ebp - 0x70], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00407f30
cmp esi, dword [ebp - 0x70]
jne 0x51c46a
cmp byte [ebx + 0x10], 0
jne 0x51c11c
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51c0d0
sub ecx, edx
mov esi, edi
sar ecx, 1
lea eax, [edi + ecx*2]
mov dword [ebp - 0x70], eax
cmp esi, eax
je 0x51c11c
nop dword [eax + eax]
movzx edi, word [esi]
push edi
call fcn.0052a0a5
add esp, 4
test eax, eax
je 0x51c111
push edi
call fcn.0052a10d
add esp, 4
test eax, eax
je 0x51c46a
add esi, 2
cmp esi, dword [ebp - 0x70]
jne 0x51c0f0
mov edi, dword [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x7c]
test edx, edx
jne 0x51c1fc
mov eax, dword [ebp - 0x6c]
mov ecx, edi
mov esi, dword [eax + 4]
mov eax, dword [esi]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
lea edx, [ecx + 2]
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51c180
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00407c60
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call dword [ebp - 0x7c]
mov esi, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
cmp eax, esi
je 0x51c1e2
mov ecx, eax
call fcn.00407f30
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00407f30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00407f30
jmp 0x51c21a
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51c201
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00407c60
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.0051b7e0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
mov ecx, dword [eax + 0x10]
cmovae edx, dword [ebp - 0x44]
cmp dword [eax + 0x14], 8
jb 0x51c241
mov eax, dword [eax]
cmp ecx, dword [ebp - 0x34]
jne 0x51c259
push ecx
mov ecx, eax
call fcn.00407330
add esp, 4
mov byte [ebp - 0x5d], 0
test eax, eax
je 0x51c25d
mov byte [ebp - 0x5d], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00407f30
cmp byte [ebp - 0x5d], 0
je 0x51c3fb
mov ecx, edi
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51c2a0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00407c60
mov byte [ebp - 4], 5
cmp dword [ebp - 0x34], 0
jne 0x51c2d2
mov eax, 0x59b750
mov ecx, 3
jmp 0x51c3be
push 2
push 0x591320
lea ecx, [ebp - 0x2c]
call fcn.00408620
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x34]
cmovae ecx, dword [ebp - 0x44]
mov dword [ebp - 0x80], ecx
mov byte [ebp - 4], 7
xor edx, edx
push eax
push ecx
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], dx
call fcn.00407c60
push 2
push 0x591318
push 1
push 0x586e64
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x64], 4
call fcn.00488ce0
mov esi, 4
add esp, 0x10
mov dword [ebp - 0x64], esi
and esi, 0xfffffffb
mov dword [ebp - 0x64], esi
mov dword [ebp - 4], 6
or esi, 2
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x64], esi
call fcn.00407f30
movups xmm0, xmmword [ebp - 0x5c]
xor eax, eax
and esi, 0xfffffffd
mov word [ebp - 0x5c], ax
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.00407f30
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00408620
mov eax, 0x586e64
mov ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408620
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx + 0xc]
lea esi, [ecx + 8]
cmp eax, dword [ecx + 0x10]
lea ecx, [ebp - 0x2c]
push ecx
je 0x51c3e7
mov ecx, eax
call fcn.00406c50
add dword [esi + 4], 0x18
jmp 0x51c3ef
push eax
mov ecx, esi
call fcn.00406e00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00407f30
mov ecx, edi
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51c422
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00407c60
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004feb20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00407f30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00407f30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052223b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc