Function at 0x679f4b
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.005a7ceb
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
call fcn.005a7ceb
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jne 0x679f8d
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004f098b
jmp 0x67a263
mov eax, dword [ebp - 8]
push eax
call fcn.006863bf
test eax, eax
jne 0x67a263
mov eax, dword [ebp - 0xc]
call fcn.0054c1fb
and eax, 0xff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
call fcn.0054c1ff
and eax, 0xff
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
call fcn.0054c203
and eax, 0xff
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
call fcn.0054c1fb
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
call fcn.0054c1ff
and eax, 0xff
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
call fcn.0054c203
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 0x67a027
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 0x67a03d
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 0x67a047
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 0x67a167
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.0054c1df
push eax
call fcn.00685e0d
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.006861fd
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00685e1f
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.00686443
inc dword [ebp - 0x40]
dec dword [ebp - 0x50]
jne 0x67a0eb
mov cl, byte [ebp - 0x30]
mov dl, byte [ebp - 0x2c]
mov al, byte [ebp - 0x28]
call fcn.0054c1df
push eax
call fcn.00685e0d
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.006861fd
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00685e1f
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.00686443
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 0x67a263
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.0054c1df
push eax
call fcn.00685e0d
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.006861fd
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00685e1f
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.00686443
inc dword [ebp - 0x40]
dec dword [ebp - 0x50]
jne 0x67a1e7
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8