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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [esp + 4], ecx
mov esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x34]
je 0x10017453
mov ebp, dword [esi + 0x18]
cmp dword [esi + 0x1c], 7
jbe 0x1001745a
mov eax, dword [esi + 8]
jmp 0x1001745d
mov eax, esi
jmp 0x100176d7
lea eax, [esi + 8]
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 0xc]
mov dword [esp], ecx
add ebp, ebp
je 0x10017481
lea edx, [ebp - 1]
mov ecx, ebp
and ecx, 2
cmp edx, 3
jae 0x10017488
mov edx, 0x811c9dc5
xor ebx, ebx
jmp 0x100174da
mov edx, 0x811c9dc5
jmp 0x10017503
and ebp, 0xfffffffc
mov edx, 0x811c9dc5
xor ebx, ebx
nop word cs:[eax + eax]
nop dword [eax]
movzx edi, byte [eax + ebx]
xor edi, edx
imul edx, edi, 0x1000193
movzx edi, byte [eax + ebx + 1]
xor edi, edx
imul edx, edi, 0x1000193
movzx edi, byte [eax + ebx + 2]
xor edi, edx
imul edx, edi, 0x1000193
movzx edi, byte [eax + ebx + 3]
xor edi, edx
imul edx, edi, 0x1000193
add ebx, 4
cmp ebp, ebx
jne 0x100174a0
test ecx, ecx
je 0x10017503
add eax, ebx
xor edi, edi
nop word cs:[eax + eax]
nop dword [eax]
movzx ebx, byte [eax + edi]
xor ebx, edx
imul edx, ebx, 0x1000193
add edi, 1
cmp ecx, edi
jne 0x100174f0
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], ecx
and edx, dword [eax + 0x18]
lea ecx, [edx + edx]
lea eax, [edx + edx]
add eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [esp]
mov edx, dword [eax + edx*8]
mov dword [esp + 0x14], edx
cmp edx, esi
setne bl
mov dword [esp + 8], ecx
mov edi, dword [eax + ecx*4 + 4]
nop dword [eax]
mov ebp, esi
mov esi, dword [esi]
lea ecx, [ebp + 8]
call fcn.10015d40
push 0x50
push ebp
call fcn.100224e8
add esp, 8
mov eax, dword [esp + 4]
add dword [eax + 8], 0xffffffff
cmp ebp, edi
je 0x1001757d
mov eax, dword [esp + 0x34]
cmp esi, eax
setne cl
or cl, bl
je 0x100176bc
cmp esi, eax
jne 0x10017540
jmp 0x100176ce
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
jne 0x1001759f
mov ecx, dword [esp]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 8]
mov dword [ecx + edi*4], edx
mov ecx, edx
mov edx, dword [esp]
mov edi, dword [esp + 0x18]
mov dword [edx + edi*4], ecx
cmp esi, eax
je 0x100176ce
cmp dword [esi + 0x1c], 7
jbe 0x100175bc
mov eax, dword [esi + 8]
jmp 0x100175bf
lea eax, [esi + 8]
mov ecx, dword [esi + 0x18]
add ecx, ecx
je 0x100175dc
lea edx, [ecx - 1]
mov ebp, ecx
and ebp, 2
cmp edx, 3
jae 0x100175e3
mov edx, 0x811c9dc5
xor ebx, ebx
jmp 0x1001762a
mov edx, 0x811c9dc5
jmp 0x10017653
and ecx, 0xfffffffc
mov edx, 0x811c9dc5
xor ebx, ebx
nop dword [eax]
movzx edi, byte [eax + ebx]
xor edi, edx
imul edx, edi, 0x1000193
movzx edi, byte [eax + ebx + 1]
xor edi, edx
imul edx, edi, 0x1000193
movzx edi, byte [eax + ebx + 2]
xor edi, edx
imul edx, edi, 0x1000193
movzx edi, byte [eax + ebx + 3]
xor edi, edx
imul edx, edi, 0x1000193
add ebx, 4
cmp ecx, ebx
jne 0x100175f0
test ebp, ebp
je 0x10017653
add eax, ebx
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax]
movzx edi, byte [eax + ecx]
xor edi, edx
imul edx, edi, 0x1000193
add ecx, 1
cmp ebp, ecx
jne 0x10017640
mov eax, dword [esp + 4]
and edx, dword [eax + 0x18]
lea edi, [edx + edx]
lea eax, [edx + edx]
add eax, 1
mov dword [esp + 8], eax
mov eax, dword [esp]
mov ebx, dword [eax + edi*4 + 4]
nop
mov ebp, esi
mov esi, dword [esi]
lea ecx, [ebp + 8]
call fcn.10015d40
push 0x50
push ebp
call fcn.100224e8
add esp, 8
mov eax, dword [esp + 4]
add dword [eax + 8], 0xffffffff
cmp ebp, ebx
je 0x1001769d
mov eax, dword [esp + 0x34]
cmp esi, eax
jne 0x10017670
jmp 0x100176c8
mov eax, dword [esp]
mov ecx, dword [esp + 0xc]
mov dword [eax + edi*4], ecx
mov edx, dword [esp + 8]
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x34]
cmp esi, eax
jne 0x100175b1
jmp 0x100176ce
mov ecx, dword [esp]
mov edx, dword [esp + 8]
mov dword [ecx + edx*4], eax
jmp 0x100176ce
mov ecx, dword [esp]
mov dword [ecx + edi*4], eax
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [eax + 4], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8