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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [esp + 8], ecx
mov ebp, dword [esp + 0x30]
cmp ebp, dword [esp + 0x34]
je 0x1002230e
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
cmp eax, 7
jbe 0x10022019
mov ecx, dword [ebp + 8]
jmp 0x1002201c
lea ecx, [ebp + 8]
mov edx, dword [esp + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 4], edx
add ebx, ebx
je 0x10022041
lea esi, [ebx - 1]
mov edx, ebx
and edx, 2
cmp esi, 3
jae 0x10022048
mov edi, 0x811c9dc5
xor esi, esi
jmp 0x1002209a
mov edi, 0x811c9dc5
jmp 0x100220c3
and ebx, 0xfffffffc
mov edi, 0x811c9dc5
xor esi, esi
nop word cs:[eax + eax]
nop dword [eax]
movzx ebp, byte [ecx + esi]
xor ebp, edi
imul edi, ebp, 0x1000193
movzx ebp, byte [ecx + esi + 1]
xor ebp, edi
imul edi, ebp, 0x1000193
movzx ebp, byte [ecx + esi + 2]
xor ebp, edi
imul edi, ebp, 0x1000193
movzx ebp, byte [ecx + esi + 3]
xor ebp, edi
imul edi, ebp, 0x1000193
add esi, 4
cmp ebx, esi
jne 0x10022060
test edx, edx
mov ebp, dword [esp + 0x30]
je 0x100220c3
add ecx, esi
xor esi, esi
nop word cs:[eax + eax]
movzx ebx, byte [ecx + esi]
xor ebx, edi
imul edi, ebx, 0x1000193
add esi, 1
cmp edx, esi
jne 0x100220b0
mov ecx, dword [esp + 8]
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 4]
mov dword [esp + 0x14], edx
and edi, dword [ecx + 0x18]
lea edx, [edi + edi]
lea ecx, [edi + edi]
add ecx, 1
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 4]
mov esi, dword [ecx + edi*8]
mov dword [esp + 0x18], esi
cmp esi, ebp
setne bl
mov dword [esp], edx
mov edi, dword [ecx + edx*4 + 4]
nop dword [eax]
mov esi, dword [ebp]
cmp eax, 8
jb 0x1002213d
mov ecx, dword [ebp + 8]
lea edx, [eax + eax]
add edx, 2
cmp edx, 0x1000
jb 0x10022133
mov edx, ecx
add edx, 0xfffffffc
mov ecx, dword [ecx - 4]
sub edx, ecx
cmp edx, 0x20
jae 0x1002231a
add eax, eax
add eax, 0x25
mov edx, eax
push edx
push ecx
call fcn.100224e8
add esp, 8
push 0x28
push ebp
call fcn.100224e8
add esp, 8
mov eax, dword [esp + 8]
add dword [eax + 8], 0xffffffff
cmp ebp, edi
je 0x10022174
mov ebp, dword [esp + 0x34]
cmp esi, ebp
setne al
or al, bl
je 0x100222fb
cmp esi, ebp
je 0x10022305
mov eax, dword [esi + 0x1c]
mov ebp, esi
jmp 0x10022100
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
jne 0x10022196
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
mov dword [eax + edx*4], ecx
mov eax, ecx
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov dword [ecx + edx*4], eax
cmp esi, ebp
je 0x10022305
mov eax, dword [esi + 0x1c]
cmp eax, 7
jbe 0x100221b6
mov ecx, dword [esi + 8]
jmp 0x100221b9
lea ecx, [esi + 8]
mov ebp, dword [esi + 0x18]
add ebp, ebp
je 0x100221d9
lea edi, [ebp - 1]
mov edx, ebp
and edx, 2
mov dword [esp], edx
cmp edi, 3
jae 0x100221e0
mov edi, 0x811c9dc5
xor ebx, ebx
jmp 0x1002222a
mov edi, 0x811c9dc5
jmp 0x10022253
and ebp, 0xfffffffc
mov edi, 0x811c9dc5
xor ebx, ebx
nop word [eax + eax]
movzx edx, byte [ecx + ebx]
xor edx, edi
imul edx, edx, 0x1000193
movzx edi, byte [ecx + ebx + 1]
xor edi, edx
imul edx, edi, 0x1000193
movzx edi, byte [ecx + ebx + 2]
xor edi, edx
imul edx, edi, 0x1000193
movzx edi, byte [ecx + ebx + 3]
xor edi, edx
imul edi, edi, 0x1000193
add ebx, 4
cmp ebp, ebx
jne 0x100221f0
mov ebp, dword [esp]
test ebp, ebp
je 0x10022253
add ecx, ebx
xor ebx, ebx
nop word cs:[eax + eax]
nop
movzx edx, byte [ecx + ebx]
xor edx, edi
imul edi, edx, 0x1000193
add ebx, 1
cmp ebp, ebx
jne 0x10022240
mov ecx, dword [esp + 8]
and edi, dword [ecx + 0x18]
lea edx, [edi + edi]
lea ecx, [edi + edi]
add ecx, 1
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 4]
mov dword [esp], edx
mov ebx, dword [ecx + edx*4 + 4]
mov ebp, dword [esp + 0x34]
nop word cs:[eax + eax]
mov edi, dword [esi]
cmp eax, 8
jb 0x100222b8
mov ecx, dword [esi + 8]
lea edx, [eax + eax]
add edx, 2
cmp edx, 0x1000
jb 0x100222ae
mov edx, ecx
add edx, 0xfffffffc
mov ecx, dword [ecx - 4]
sub edx, ecx
cmp edx, 0x20
jae 0x1002231a
add eax, eax
add eax, 0x25
mov edx, eax
push edx
push ecx
call fcn.100224e8
add esp, 8
push 0x28
push esi
call fcn.100224e8
add esp, 8
mov eax, dword [esp + 8]
add dword [eax + 8], 0xffffffff
cmp esi, ebx
je 0x100222da
cmp edi, ebp
je 0x100222fb
mov eax, dword [edi + 0x1c]
mov esi, edi
jmp 0x10022280
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
mov dword [eax + edx*4], ecx
mov edx, dword [esp + 0xc]
mov dword [eax + edx*4], ecx
mov esi, edi
cmp edi, ebp
jne 0x100221a9
jmp 0x10022305
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [eax + ecx*4], ebp
mov eax, dword [esp + 0x14]
mov dword [eax], ebp
mov dword [ebp + 4], eax
mov eax, ebp
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.10031b1d
int3