Function at 0x10017570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor edx, edx
mov ebx, ecx
mov esi, 0x32f54a96
mov dword [ebp - 0x10], ebx
push edi
cmp dword [ebp + 0x10], edx
jbe 0x100175b0
nop word [eax + eax]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + edx*2]
inc edx
imul ecx, eax, 0xc5
imul eax, esi, 0x34c3
shr esi, 2
add ecx, eax
xor esi, ecx
cmp edx, dword [ebp + 0x10]
jb 0x10017590
mov ecx, dword [ebx + 4]
mov eax, 1
shl eax, cl
mov edx, 2
dec eax
mov dword [ebp - 0xc], 1
and esi, eax
mov dword [ebp - 0x18], eax
and esi, 0x3fffffff
mov dword [ebp - 0x1c], esi
nop word [eax + eax]
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 8], 0
test eax, eax
je 0x1001761e
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 0x1001761e
mov edi, dword [ebp + 0x10]
lea ecx, [edi + edi]
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 edi, edi
je 0x10017660
xor ecx, ecx
mov eax, edi
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 0x1001765d
lea ecx, [edi + edi]
mov dword [ebp - 4], edi
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, esi
shl ecx, 4
mov eax, dword [eax]
add eax, ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
test cl, 2
jne 0x10017716
cmp edx, dword [eax + 8]
jne 0x10017716
lea edi, [edx + edx]
mov ecx, ebx
mov edx, dword [eax + 4]
sub edi, 4
jb 0x100176a4
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100176a9
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10017693
cmp edi, 0xfffffffc
je 0x100176da
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100176d6
cmp edi, 0xfffffffd
je 0x100176da
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100176d6
cmp edi, 0xfffffffe
je 0x100176da
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100176d6
cmp edi, 0xffffffff
je 0x100176da
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x100176da
xor al, al
jmp 0x100176dc
mov al, 1
test al, al
je 0x10017716
test byte [ebp - 4], 1
je 0x10017702
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ecx + 0xc], eax
test ebx, ebx
je 0x100176fe
push ebx
call fcn.10450877
add esp, 4
xor edi, edi
jmp 0x10017728
test ebx, ebx
je 0x1001770f
push ebx
call fcn.10450877
add esp, 4
mov edi, 1
jmp 0x10017728
test ebx, ebx
je 0x10017723
push ebx
call fcn.10450877
add esp, 4
mov edi, 2
mov eax, dword [ebp - 8]
test eax, eax
je 0x10017738
push eax
call fcn.10450877
add esp, 4
cmp edi, 2
jne 0x10017780
mov ecx, dword [ebp - 0xc]
mov edx, edi
add esi, ecx
inc ecx
and esi, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
cmp esi, dword [ebp - 0x1c]
jne 0x100175e0
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x10]
lea eax, [ecx + 1]
mov dword [ebx + 0x10], eax
cmp ecx, 4
jbe 0x1001777c
mov ecx, ebx
call fcn.10017ed0
test al, al
jne 0x10017775
or ebx, 0xffffffff
jmp 0x10017788
mov dword [ebx + 0x10], 0
xor ebx, ebx
jmp 0x10017788
or ebx, 0xffffffff
test edi, edi
cmove ebx, esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10017798
push eax
call fcn.10450877
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc