Function at 0x526a15
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0xf0]
mov edx, dword [edi + 0x16ac]
mov eax, ecx
shl eax, 2
mov ebx, ecx
sar ebx, 4
mov dword [ebp + 0x60], eax
lea esi, [eax + edx]
mov eax, ebx
shl eax, 4
test ebx, ebx
mov dword [ebp], edi
mov dword [ebp + 0x64], ebx
je 0x5270d8
and dword [edi + 0x17ec], 0
and dword [ebp + 0x50], 0
and dword [ebp + 0x48], 0
add eax, 0xfffffffe
cmp eax, 2
jle 0x526abf
add esi, 4
lea edi, [edx + 2]
add eax, 0xfffffffe
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x5c]
movzx eax, byte [eax]
movzx edi, byte [esi - 4]
mov ebx, eax
sub ebx, edi
movzx edi, byte [esi]
sub eax, edi
mov edi, dword [ebp + 0x5c]
dec ebx
xor ebx, eax
sar ebx, 0xf
and ebx, 1
add dword [ebp + 0x50], ebx
mov al, 0xc0
cmp al, byte [edi]
sbb eax, eax
neg eax
cmp byte [edi], 0x40
sbb edi, edi
neg edi
add edi, dword [ebp + 0x48]
add edi, eax
inc esi
inc dword [ebp + 0x5c]
dec dword [ebp + 0x58]
mov dword [ebp + 0x48], edi
jne 0x526a7a
mov ebx, dword [ebp + 0x64]
mov eax, ebx
shl eax, 2
cmp dword [ebp + 0x48], eax
jle 0x5270d8
imul ebx, ebx, 5
cmp dword [ebp + 0x50], ebx
jge 0x5270d8
xor eax, eax
lea edi, [ebp + 4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp + 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp + 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ecx + edx + 8]
mov dword [ebp + 0x38], eax
lea eax, [ecx + ecx]
mov dword [ebp + 0x70], eax
add eax, edx
add eax, 8
mov dword [ebp - 8], eax
mov eax, ecx
imul eax, eax, 7
mov esi, ecx
imul esi, esi, 3
add eax, edx
lea ebx, [esi + edx]
mov edx, dword [ebp]
add eax, 8
mov dword [ebp + 0x4c], eax
mov eax, dword [edx + 0x17e8]
cmp eax, 3
lea edi, [ebx + 8]
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x44], edi
jne 0x526d3b
cmp dword [ebp + 0x64], 0
jle 0x526ff2
mov eax, ebx
sub eax, ecx
mov ecx, dword [ebp + 0x60]
mov dword [ebp + 0x58], eax
mov eax, ebx
sub eax, dword [ebp + 0x70]
mov dword [ebp + 0x3c], eax
mov eax, ebx
sub eax, esi
add eax, 8
add ecx, ebx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x64]
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x70], ecx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x4c]
mov dword [ebp + 0x6c], eax
sub dword [ebp + 0x6c], edi
sub edx, edi
mov dword [ebp + 0x34], edx
mov edx, eax
mov eax, dword [ebp + 0x3c]
sub eax, edi
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x38]
sub eax, edi
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x58]
sub eax, edi
sub edx, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp + 0x68], ebx
sub dword [ebp + 0x68], edi
sub ecx, edi
add edx, 0xfffffff8
sub eax, edi
mov esi, edi
mov dword [ebp + 0x50], ecx
mov dword [ebp + 0x5c], edx
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x54], 8
jmp 0x526bbe
mov ecx, dword [ebp + 0x50]
movzx ebx, byte [esi]
mov eax, dword [ebp + 0x68]
movzx edi, byte [eax + esi]
movzx ecx, byte [ecx + esi]
lea eax, [ebx + edi]
add dword [ebp + 0x10], eax
mov edx, edi
imul edx, edi
add edx, dword [ebp + 0x20]
mov eax, ebx
imul eax, ebx
add edx, eax
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x20], edx
movzx edx, byte [eax + esi]
mov eax, edi
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp + 0x74], eax
mov eax, ebx
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x74]
add eax, ecx
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x5c]
movzx ecx, byte [eax + esi]
mov eax, dword [ebp + 0x6c]
movzx eax, byte [eax + esi]
mov dword [ebp + 0x74], eax
add eax, ecx
add dword [ebp + 4], eax
mov eax, dword [ebp + 0x74]
imul eax, eax
mov edx, ecx
imul edx, ecx
add edx, dword [ebp + 0x14]
add edx, eax
mov eax, dword [ebp + 0x6c]
movzx eax, byte [eax + esi]
sub eax, ebx
mov dword [ebp + 0x14], edx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp + 0x74], eax
mov eax, ecx
mov ecx, dword [ebp + 0x74]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
add eax, dword [ebp + 0x24]
add eax, ecx
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x60]
movzx ecx, byte [eax + esi]
mov eax, dword [ebp + 0x64]
movzx eax, byte [eax + esi]
mov dword [ebp + 0x74], eax
add eax, ecx
add dword [ebp + 8], eax
mov eax, dword [ebp + 0x74]
imul eax, eax
mov edx, ecx
imul edx, ecx
add edx, dword [ebp + 0x18]
add edx, eax
mov eax, dword [ebp + 0x64]
movzx eax, byte [eax + esi]
sub eax, ebx
mov dword [ebp + 0x18], edx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp + 0x74], eax
mov eax, ecx
mov ecx, dword [ebp + 0x74]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
add eax, dword [ebp + 0x28]
add eax, ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ecx + esi]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + esi]
mov edx, eax
imul edx, eax
add edx, dword [ebp + 0x1c]
mov dword [ebp + 0x74], ecx
add ecx, eax
add dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 0x74]
mov eax, dword [ebp - 0x10]
imul ecx, ecx
movzx eax, byte [eax + esi]
sub eax, ebx
add edx, ecx
mov dword [ebp + 0x1c], edx
cdq
mov ecx, eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + esi]
sub eax, edi
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
add eax, dword [ebp + 0x2c]
add eax, ecx
inc esi
dec dword [ebp + 0x54]
mov dword [ebp + 0x2c], eax
jne 0x526bbb
mov ebx, dword [ebp + 0x48]
mov eax, dword [ebp + 0x40]
mov edi, dword [ebp + 0x44]
push 0x10
pop ecx
add dword [ebp + 0x38], ecx
add dword [ebp - 8], ecx
add dword [ebp - 4], ecx
add dword [ebp + 0x3c], ecx
add dword [ebp + 0x58], ecx
add dword [ebp + 0x4c], ecx
add ebx, ecx
add eax, ecx
add edi, ecx
dec dword [ebp + 0x70]
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], edi
jne 0x526b6a
jmp 0x526fef
cmp eax, 2
mov ecx, dword [ebp + 0x64]
jne 0x526ed6
test ecx, ecx
jle 0x526ff2
mov edx, dword [ebp + 0x60]
mov eax, ebx
sub eax, dword [ebp + 0x70]
mov dword [ebp + 0x40], ecx
mov dword [ebp + 0x3c], eax
mov eax, ebx
sub eax, esi
add eax, 8
add edx, ebx
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x58], edx
mov ecx, dword [ebp + 0x4c]
sub ecx, edi
mov dword [ebp + 0x50], ecx
mov ecx, dword [ebp + 0x58]
sub ecx, edi
mov dword [ebp + 0x6c], eax
sub dword [ebp + 0x6c], edi
mov dword [ebp + 0x34], ecx
mov ecx, eax
mov eax, dword [ebp + 0x3c]
sub eax, edi
sub ecx, edi
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x68], ebx
sub dword [ebp + 0x68], edi
add ecx, 0xfffffff8
sub eax, edi
mov esi, edi
mov dword [ebp + 0x5c], ecx
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x70], 8
movzx ecx, byte [esi]
mov eax, dword [ebp + 0x68]
movzx ebx, byte [esi + eax]
lea eax, [ecx + ebx]
add dword [ebp + 0x10], eax
mov eax, ecx
imul eax, ecx
mov edx, ebx
imul edx, ebx
add edx, dword [ebp + 0x20]
add edx, eax
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x20], edx
movzx edx, byte [esi + eax]
mov eax, ebx
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp + 0x54], eax
mov edx, dword [ebp + 0x50]
movzx edx, byte [esi + edx]
mov eax, ecx
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x54]
add eax, ecx
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x5c]
movzx ecx, byte [esi + eax]
mov eax, dword [ebp + 0x6c]
movzx eax, byte [esi + eax]
mov dword [ebp + 0x74], eax
add eax, ecx
add dword [ebp + 4], eax
mov eax, dword [ebp + 0x74]
imul eax, eax
mov edx, ecx
imul edx, ecx
add edx, dword [ebp + 0x14]
add edx, eax
mov eax, dword [ebp + 0x6c]
movzx eax, byte [esi + eax]
mov dword [ebp + 0x14], edx
movzx edx, byte [esi]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp + 0x54], eax
mov eax, ecx
mov ecx, dword [ebp + 0x54]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
add eax, dword [ebp + 0x24]
add eax, ecx
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x60]
movzx ecx, byte [esi + eax]
mov eax, dword [ebp + 0x64]
movzx eax, byte [esi + eax]
mov dword [ebp + 0x74], eax
add eax, ecx
add dword [ebp + 8], eax
mov eax, dword [ebp + 0x74]
mov edx, ecx
imul eax, eax
imul edx, ecx
add edx, dword [ebp + 0x18]
add edx, eax
mov eax, dword [ebp + 0x64]
movzx eax, byte [esi + eax]
mov dword [ebp + 0x18], edx
movzx edx, byte [esi]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp + 0x54], eax
mov eax, ecx
mov ecx, dword [ebp + 0x54]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
add eax, dword [ebp + 0x28]
add eax, ecx
inc esi
dec dword [ebp + 0x70]
mov dword [ebp + 0x28], eax
jne 0x526dab
mov ebx, dword [ebp + 0x48]
mov eax, dword [ebp + 0x44]
push 0x10
pop ecx
add dword [ebp + 0x38], ecx
add dword [ebp + 0x58], ecx
add dword [ebp + 0x3c], ecx
add dword [ebp + 0x4c], ecx
add ebx, ecx
add eax, ecx
add edi, ecx
dec dword [ebp + 0x40]
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x44], eax
jne 0x526d6c
jmp 0x526fef
test ecx, ecx
jle 0x526ff2
mov edx, dword [ebp + 0x60]
mov eax, ebx
sub eax, esi
add eax, 8
add edx, ebx
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x60], edx
mov dword [ebp + 0x40], ecx
mov ecx, dword [ebp + 0x4c]
sub ecx, edi
mov dword [ebp + 0x50], ecx
mov ecx, dword [ebp + 0x60]
sub ecx, edi
mov dword [ebp + 0x34], ecx
mov ecx, eax
sub ecx, edi
mov dword [ebp + 0x68], ebx
sub dword [ebp + 0x68], edi
add ecx, 0xfffffff8
mov dword [ebp + 0x6c], eax
sub dword [ebp + 0x6c], edi
mov esi, edi
mov dword [ebp + 0x5c], ecx
mov dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x68]
movzx eax, byte [esi + eax]
movzx ecx, byte [esi]
add ecx, eax
add dword [ebp + 0x10], ecx
movzx ecx, byte [esi]
mov edx, ecx
imul edx, ecx
mov ecx, eax
imul ecx, eax
add ecx, dword [ebp + 0x20]
add ecx, edx
mov dword [ebp + 0x20], ecx
mov ecx, dword [ebp + 0x34]
movzx ecx, byte [esi + ecx]
sub eax, ecx
cdq
mov ecx, eax
mov eax, dword [ebp + 0x50]
xor ecx, edx
sub ecx, edx
movzx edx, byte [esi + eax]
movzx eax, byte [esi]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add eax, dword [ebp + 0x30]
add eax, ecx
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x5c]
movzx ecx, byte [esi + eax]
mov eax, dword [ebp + 0x6c]
movzx eax, byte [esi + eax]
mov dword [ebp + 0x74], eax
add eax, ecx
add dword [ebp + 4], eax
mov eax, dword [ebp + 0x74]
imul eax, eax
mov edx, ecx
imul edx, ecx
add edx, dword [ebp + 0x14]
add edx, eax
mov eax, dword [ebp + 0x6c]
movzx eax, byte [esi + eax]
mov dword [ebp + 0x14], edx
movzx edx, byte [esi]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp + 0x54], eax
mov eax, ecx
mov ecx, dword [ebp + 0x68]
movzx ecx, byte [esi + ecx]
sub eax, ecx
mov ecx, dword [ebp + 0x54]
cdq
xor eax, edx
sub eax, edx
add eax, dword [ebp + 0x24]
add eax, ecx
inc esi
dec dword [ebp + 0x70]
mov dword [ebp + 0x24], eax
jne 0x526f22
mov eax, dword [ebp + 0x44]
push 0x10
pop ecx
add dword [ebp + 0x60], ecx
add dword [ebp + 0x4c], ecx
add eax, ecx
add ebx, ecx
add edi, ecx
dec dword [ebp + 0x40]
mov dword [ebp + 0x44], eax
jne 0x526ef3
mov edx, dword [ebp]
mov eax, dword [edx + 0xb0]
shl eax, 4
test eax, eax
mov dword [ebp + 0x70], eax
fild dword [ebp + 0x70]
jge 0x52700b
fadd dword [0x4042fc]
fadd dword [0x405cec]
mov ecx, dword [ebp + 0x30]
cmp dword [ebp + 0x24], ecx
fdivr dword [0x404314]
fild dword [ebp + 4]
fmul st(1)
fild dword [ebp + 0x14]
fmul st(2)
fld st(1)
fmul st(2)
fsubp st(1)
fstp dword [ebp - 0x20]
fstp st(0)
fild dword [ebp + 8]
fmul st(1)
fild dword [ebp + 0x18]
fmul st(2)
fld st(1)
fmul st(2)
fsubp st(1)
fstp dword [ebp - 0x1c]
fstp st(0)
fild dword [ebp + 0x10]
fmul st(1)
fild dword [ebp + 0x20]
fmul st(2)
fld st(1)
fmul st(2)
fsubp st(1)
fstp st(2)
fstp st(0)
fld dword [case.default.0x405cf4]
fld st(1)
fmul dword [0x405ce4]
fmul st(1)
fstp dword [ebp + 0x70]
fld st(1)
fmul dword [0x405ce0]
fmul st(1)
fstp st(2)
fstp st(0)
jg 0x527097
fld dword [ebp - 0x20]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x527097
fld dword [ebp - 0x20]
fcomp dword [ebp + 0x70]
fnstsw ax
test ah, 0x41
jne 0x5270d6
xor eax, eax
inc eax
cmp dword [edx + 0x17e8], eax
mov dword [edx + 0x17ec], eax
jle 0x5270d6
cmp dword [ebp + 0x28], ecx
jg 0x5270c8
fld dword [ebp - 0x1c]
fcompp
fnstsw ax
test ah, 5
jnp 0x5270ca
fld dword [ebp - 0x1c]
fcomp dword [ebp + 0x70]
fnstsw ax
test ah, 0x41
jne 0x5270d8
jmp 0x5270ca
fstp st(0)
mov dword [edx + 0x17ec], 2
jmp 0x5270d8
fstp st(0)
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret