Function at 0x10017a50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [ecx]
mov esi, edx
xor eax, 2
or eax, dword [ecx + 4]
jne 0x10017b2a
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov edi, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov ebx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ecx
xor eax, 0x6e657261
xor ebx, 0x70736575
mov dword [esp + 0x30], ebx
mov ebx, edx
xor edx, 0x6c796765
xor ebx, 0x736f6d65
mov dword [esp + 0x34], ebx
mov ebx, edi
mov dword [esp + 0x3c], edx
mov edx, ecx
xor edi, 0x79746573
xor ecx, 0x74656462
mov dword [esp + 0x38], eax
xor ebx, 0x6e646f6d
xor edx, 0x646f7261
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
cmp byte [esi], 1
jne 0x10017b74
lea edi, [esp + 0x20]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 1
mov ecx, edi
push 4
call fcn.10017fe0
add esp, 4
mov edx, dword [esi + 4]
mov ecx, edi
push dword [esi + 8]
jmp 0x10017ba0
cmp byte [esi], 1
jne 0x10017d61
mov edi, dword [esi + 8]
test edi, edi
je 0x10017d72
mov esi, dword [esi + 4]
mov ebx, 0xad2aca77
mov eax, 0x47985764
nop dword [eax + eax]
movzx ecx, byte [esi]
mov edx, 0x1b3
imul ebx, ebx, 0x1b3
inc esi
xor ecx, eax
mov eax, ecx
shl ecx, 8
mul edx
add ecx, edx
add ebx, ecx
dec edi
jne 0x10017b50
jmp 0x10017d76
lea edi, [esp + 0x20]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov ecx, edi
push 4
call fcn.10017fe0
add esp, 4
movzx eax, byte [esi + 1]
lea edx, [esp + 0x10]
mov ecx, edi
mov dword [esp + 0x10], eax
push 4
call fcn.10017fe0
add esp, 4
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
shl edx, 0x18
xor esi, edi
mov dword [esp + 0x18], edi
mov edi, eax
or edx, dword [esp + 0x54]
mov dword [esp + 0x1c], edx
xor ecx, edx
mov edx, dword [esp + 0x30]
add edx, eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x44]
adc ebx, edx
shld edi, edx, 0xd
shld edx, eax, 0xd
mov eax, dword [esp + 0x38]
mov dword [esp + 4], ebx
xor edx, ebx
mov ebx, dword [esp + 0xc]
xor edi, ebx
add eax, esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
adc eax, ecx
mov dword [esp + 0x14], eax
mov eax, esi
shrd esi, ecx, 0x10
shld eax, ecx, 0x10
xor esi, dword [esp + 0x14]
xor eax, dword [esp + 8]
add dword [esp + 4], eax
mov ecx, eax
adc ebx, esi
shld ecx, esi, 0x15
shrd eax, esi, 0xb
mov esi, edi
xor eax, ebx
xor ecx, dword [esp + 4]
add dword [esp + 8], edi
adc dword [esp + 0x14], edx
shld esi, edx, 0x11
shrd edi, edx, 0xf
mov edx, ebx
mov ebx, dword [esp + 0x18]
xor esi, dword [esp + 8]
xor edx, dword [esp + 0x1c]
xor dword [esp + 4], ebx
mov ebx, dword [esp + 0x14]
xor edi, ebx
xor ebx, 0xff
add dword [esp + 4], esi
adc edx, edi
mov dword [esp + 0xc], edx
mov edx, esi
shrd esi, edi, 0x13
shld edx, edi, 0xd
xor esi, dword [esp + 0xc]
mov edi, ecx
xor edx, dword [esp + 4]
add ebx, ecx
adc dword [esp + 8], eax
shld edi, eax, 0x10
shrd ecx, eax, 0x10
xor edi, ebx
xor ecx, dword [esp + 8]
add dword [esp + 0xc], edi
mov eax, edi
adc dword [esp + 4], ecx
shld eax, ecx, 0x15
shrd edi, ecx, 0xb
mov ecx, edx
xor edi, dword [esp + 4]
xor eax, dword [esp + 0xc]
add ebx, edx
adc dword [esp + 8], esi
shld ecx, esi, 0x11
shrd edx, esi, 0xf
xor ecx, ebx
xor edx, dword [esp + 8]
add dword [esp + 0xc], ecx
mov esi, ecx
adc dword [esp + 4], edx
shld esi, edx, 0xd
shrd ecx, edx, 0x13
mov edx, eax
xor ecx, dword [esp + 4]
xor esi, dword [esp + 0xc]
add dword [esp + 8], eax
adc ebx, edi
shld edx, edi, 0x10
shrd eax, edi, 0x10
xor edx, dword [esp + 8]
xor eax, ebx
add dword [esp + 4], edx
mov edi, edx
adc dword [esp + 0xc], eax
shld edi, eax, 0x15
shrd edx, eax, 0xb
mov eax, esi
xor edx, dword [esp + 0xc]
xor edi, dword [esp + 4]
add dword [esp + 8], esi
adc ebx, ecx
shld eax, ecx, 0x11
shrd esi, ecx, 0xf
xor eax, dword [esp + 8]
xor esi, ebx
add dword [esp + 4], eax
mov ecx, eax
adc dword [esp + 0xc], esi
shld ecx, esi, 0xd
shrd eax, esi, 0x13
mov esi, dword [esp + 8]
xor ecx, dword [esp + 4]
xor eax, dword [esp + 0xc]
add ebx, edi
adc esi, edx
shrd edi, edx, 0x10
xor edi, esi
shr edi, 0xb
add ebx, ecx
adc esi, eax
shr eax, 0xf
xor eax, edi
xor eax, esi
xor eax, ebx
jmp 0x10017d76
movzx eax, byte [esi + 1]
xor eax, 0x13f5
imul eax, eax, 0xffffbc91
jmp 0x10017d76
mov ax, 0x5764
and eax, 0x7fff
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret