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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x10]
mov dword [ebp - 4], eax
jb 0x1001715e
mov esi, dword [ebx]
jmp 0x10017160
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
test eax, eax
je 0x10017184
mov ebx, eax
nop dword [eax]
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x10017170
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 0x18]
and ecx, edx
mov edx, dword [edi + 0xc]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov esi, dword [edx + ecx*4]
inc ecx
mov dword [ebp - 0xc], esi
mov esi, dword [edi + 4]
mov dword [ebp - 8], esi
lea ecx, [edx + ecx*4]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0xc], esi
jne 0x100171ad
mov ecx, esi
jmp 0x100171b1
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x100172ed
cmp dword [ebx + 0x14], 0x10
lea edx, [eax + 8]
jb 0x100171c6
mov edi, dword [ebx]
jmp 0x100171c8
mov edi, ebx
cmp dword [edx + 0x14], 0x10
lea ecx, [edx + 0x10]
jb 0x100171d3
mov edx, dword [edx]
mov ecx, dword [ecx]
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 4]
mov esi, ecx
cmp dword [ebp + 0xc], ecx
cmovb esi, dword [ebp + 0xc]
test esi, esi
je 0x10017243
sub esi, 4
jb 0x10017201
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x10017206
add edx, 4
add edi, 4
sub esi, 4
jae 0x100171f0
cmp esi, 0xfffffffc
je 0x1001723a
mov cl, byte [edx]
cmp cl, byte [edi]
jne 0x10017233
cmp esi, 0xfffffffd
je 0x1001723a
mov cl, byte [edx + 1]
cmp cl, byte [edi + 1]
jne 0x10017233
cmp esi, 0xfffffffe
je 0x1001723a
mov cl, byte [edx + 2]
cmp cl, byte [edi + 2]
jne 0x10017233
cmp esi, 0xffffffff
je 0x1001723a
mov cl, byte [edx + 3]
cmp cl, byte [edi + 3]
je 0x1001723a
sbb ecx, ecx
or ecx, 1
jmp 0x1001723c
xor ecx, ecx
test ecx, ecx
jne 0x1001724c
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
cmp edx, ecx
jb 0x1001724c
jbe 0x10017259
mov eax, dword [eax]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
jmp 0x100171a4
cmp dword [eax + 0x1c], 0x10
lea edx, [eax + 8]
lea edi, [edx + 0x10]
jb 0x10017267
mov edx, dword [edx]
cmp dword [ebx + 0x14], 0x10
jb 0x1001726f
mov ebx, dword [ebx]
mov edi, dword [edi]
cmp ecx, edi
mov esi, edi
cmovb esi, ecx
test esi, esi
je 0x100172d4
sub esi, 4
jb 0x10017292
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x10017297
add ebx, 4
add edx, 4
sub esi, 4
jae 0x10017281
cmp esi, 0xfffffffc
je 0x100172cb
mov cl, byte [ebx]
cmp cl, byte [edx]
jne 0x100172c4
cmp esi, 0xfffffffd
je 0x100172cb
mov cl, byte [ebx + 1]
cmp cl, byte [edx + 1]
jne 0x100172c4
cmp esi, 0xfffffffe
je 0x100172cb
mov cl, byte [ebx + 2]
cmp cl, byte [edx + 2]
jne 0x100172c4
cmp esi, 0xffffffff
je 0x100172cb
mov cl, byte [ebx + 3]
cmp cl, byte [edx + 3]
je 0x100172cb
sbb ecx, ecx
or ecx, 1
jmp 0x100172cd
xor ecx, ecx
test ecx, ecx
jne 0x100172da
mov ecx, dword [ebp - 4]
cmp ecx, edi
jb 0x100172da
jbe 0x100172dd
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8