Function at 0x10017a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor edx, edx
mov ebx, ecx
push edi
mov edi, 0x32f54a96
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0x10], edx
jbe 0x10017ac0
nop word [eax + eax]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + edx*2]
inc edx
imul ecx, eax, 0xc5
imul eax, edi, 0x34c3
shr edi, 2
add ecx, eax
xor edi, ecx
cmp edx, dword [ebp + 0x10]
jb 0x10017aa0
mov ecx, dword [ebx + 4]
mov eax, 1
shl eax, cl
mov edx, 2
dec eax
mov dword [ebp - 0xc], 1
and edi, eax
mov dword [ebp - 0x14], eax
and edi, 0x3fffffff
mov dword [ebp - 0x18], edi
nop word [eax + eax]
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 8], 0
test eax, eax
je 0x10017b2e
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10450898
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x10017b2e
mov esi, dword [ebp + 0x10]
lea ecx, [esi + esi]
push ecx
push dword [ebp + 0xc]
push eax
call fcn.10425d60
add esp, 0xc
xor edx, edx
xor ebx, ebx
mov dword [ebp - 4], edx
test esi, esi
je 0x10017b70
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10450898
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10017b6d
lea ecx, [esi + esi]
mov dword [ebp - 4], esi
push ecx
push dword [ebp - 8]
push ebx
call fcn.10425d60
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, edi
shl ecx, 4
mov eax, dword [eax]
add eax, ecx
mov ecx, dword [eax]
test cl, 3
jne 0x10017b9a
test ebx, ebx
je 0x10017b90
push ebx
call fcn.10450877
add esp, 4
mov esi, 1
jmp 0x10017c21
test cl, 1
je 0x10017c0f
cmp edx, dword [eax + 8]
jne 0x10017c0f
lea esi, [edx + edx]
mov ecx, ebx
mov edx, dword [eax + 4]
sub esi, 4
jb 0x10017bc2
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10017bc7
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10017bb1
cmp esi, 0xfffffffc
je 0x10017bf8
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10017bf4
cmp esi, 0xfffffffd
je 0x10017bf8
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10017bf4
cmp esi, 0xfffffffe
je 0x10017bf8
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10017bf4
cmp esi, 0xffffffff
je 0x10017bf8
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x10017bf8
xor al, al
jmp 0x10017bfa
mov al, 1
test al, al
je 0x10017c0f
test ebx, ebx
je 0x10017c0b
push ebx
call fcn.10450877
add esp, 4
xor esi, esi
jmp 0x10017c21
test ebx, ebx
je 0x10017c1c
push ebx
call fcn.10450877
add esp, 4
mov esi, 2
mov eax, dword [ebp - 8]
test eax, eax
je 0x10017c31
push eax
call fcn.10450877
add esp, 4
cmp esi, 2
jne 0x10017c79
mov ecx, dword [ebp - 0xc]
mov edx, esi
add edi, ecx
inc ecx
and edi, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
cmp edi, dword [ebp - 0x18]
jne 0x10017af0
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x10]
lea eax, [ecx + 1]
mov dword [ebx + 0x10], eax
cmp ecx, 4
jbe 0x10017c75
mov ecx, ebx
call fcn.10017ed0
test al, al
jne 0x10017c6e
or ebx, 0xffffffff
jmp 0x10017c81
mov dword [ebx + 0x10], 0
xor ebx, ebx
jmp 0x10017c81
or ebx, 0xffffffff
test esi, esi
cmove ebx, edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10017c91
push eax
call fcn.10450877
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc