Function at 0x663a94
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00591834
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
call fcn.00591834
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jne 0x663ad6
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004da4d4
jmp 0x663dac
mov eax, dword [ebp - 8]
push eax
call fcn.0066ff08
test eax, eax
jne 0x663dac
mov eax, dword [ebp - 0xc]
call fcn.00535d44
and eax, 0xff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
call fcn.00535d48
and eax, 0xff
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
call fcn.00535d4c
and eax, 0xff
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
call fcn.00535d44
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
call fcn.00535d48
and eax, 0xff
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
call fcn.00535d4c
and eax, 0xff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov esi, eax
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp byte [ebp + 8], 0
je 0x663b70
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
sub eax, dword [edx]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x58], eax
jmp 0x663b86
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
sub eax, dword [edx + 4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
sar eax, 1
jns 0x663b90
adc eax, 0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x10]
imul dword [0x6a8528]
mov ecx, 0x28
cdq
idiv ecx
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
imul dword [0x6a8528]
mov ecx, 0x28
cdq
idiv ecx
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x18]
imul dword [0x6a8528]
mov ecx, 0x28
cdq
idiv ecx
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x10]
imul dword [ebp - 0x44]
cdq
idiv dword [ebp - 0x48]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x14]
imul dword [ebp - 0x44]
cdq
idiv dword [ebp - 0x48]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x18]
imul dword [ebp - 0x44]
cdq
idiv dword [ebp - 0x48]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
dec dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
dec eax
test eax, eax
jl 0x663cb0
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x18]
imul dword [ebp - 0x40]
cdq
idiv dword [ebp - 0x44]
mov ecx, eax
add cl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x14]
imul dword [ebp - 0x40]
cdq
idiv dword [ebp - 0x44]
add al, byte [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x10]
imul dword [ebp - 0x40]
cdq
idiv dword [ebp - 0x44]
add al, byte [ebp - 0x10]
pop edx
call fcn.00535d28
push eax
call fcn.0066f956
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0066fd46
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0066f968
mov al, byte [ebp + 8]
xor al, 1
and eax, 0x7f
push eax
xor eax, eax
mov al, byte [ebp + 8]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0066ff8c
inc dword [ebp - 0x40]
dec dword [ebp - 0x50]
jne 0x663c34
mov cl, byte [ebp - 0x30]
mov dl, byte [ebp - 0x2c]
mov al, byte [ebp - 0x28]
call fcn.00535d28
push eax
call fcn.0066f956
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0066fd46
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0066f968
mov al, byte [ebp + 8]
xor al, 1
and eax, 0x7f
push eax
xor eax, eax
mov al, byte [ebp + 8]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0066ff8c
mov eax, dword [ebp - 0x28]
add eax, eax
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
add eax, eax
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
add eax, eax
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x48]
inc eax
mov edx, dword [ebp - 0x44]
sub edx, eax
jl 0x663dac
inc edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x30]
imul dword [ebp - 0x40]
cdq
idiv dword [ebp - 0x44]
mov ecx, eax
add cl, byte [ebp - 0x30]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x2c]
imul dword [ebp - 0x40]
cdq
idiv dword [ebp - 0x44]
add al, byte [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x28]
imul dword [ebp - 0x40]
cdq
idiv dword [ebp - 0x44]
add al, byte [ebp - 0x28]
pop edx
call fcn.00535d28
push eax
call fcn.0066f956
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0066fd46
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0066f968
mov al, byte [ebp + 8]
xor al, 1
and eax, 0x7f
push eax
xor eax, eax
mov al, byte [ebp + 8]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0066ff8c
inc dword [ebp - 0x40]
dec dword [ebp - 0x50]
jne 0x663d30
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8