Function at 0x66e993
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [reloc.MSVCRT.dll___dllonexit]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
add ebx, 0xa
and ebx, reloc.OLEAUT32.dll_VariantInit
push edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0
jns 0x66e9d6
dec ebx
or ebx, 0xfffffff8
inc ebx
je 0x66e9e1
mov eax, 8
sub eax, ebx
mov ebx, eax
call fcn.0066e553
and al, 0xf8
or al, bl
push ebx
mov byte [ebp - 0xc], al
inc ebx
call fcn.0066e553
and eax, 0xff
push eax
lea ecx, [ebp - 0xb]
push ecx
call fcn.0065ef13
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, esi
add esp, 0xc
neg eax
mov edi, esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
mov edi, edi
cmp ebx, 8
jge 0x66ea38
call fcn.0066e553
inc dword [ebp - 0x1c]
mov byte [ebp + ebx - 0xc], al
inc ebx
cmp ebx, 8
jne 0x66eaaf
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
xor ecx, ecx
lea edx, [ebp + edx - 0x14]
sub esi, eax
cmp dword [ebp - 0x24], 0
lea eax, [ebp + ecx - 0xc]
je 0x66ea5a
lea ebx, [edx + esi]
mov bl, byte [ebx + eax]
jmp 0x66ea5d
mov bl, byte [esi + eax]
xor byte [eax], bl
inc ecx
cmp ecx, 8
jl 0x66ea48
mov ecx, dword [ebp - 0x2c]
push edi
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.0066e613
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov eax, edi
lea edx, [ebp + ecx - 0x14]
mov esi, 8
mov bl, byte [edx + eax]
xor byte [eax], bl
inc eax
dec esi
jne 0x66ea84
mov edx, dword [ebp - 0xc]
add dword [ebp - 0x20], 8
mov dword [ebp - 0x28], ecx
sub ecx, 8
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
xor ebx, ebx
mov esi, edi
mov dword [ebp - 0x10], edx
mov edi, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x1c], 2
jle 0x66ea23
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
jle 0x66eb77
mov eax, edi
neg eax
mov edx, esi
mov dword [ebp - 0x28], eax
neg edx
cmp ebx, 8
jge 0x66eaed
mov eax, dword [ebp - 0x18]
mov cl, byte [eax]
dec dword [ebp + 0xc]
mov byte [ebp + ebx - 0xc], cl
inc eax
inc ebx
mov dword [ebp - 0x18], eax
cmp ebx, 8
jne 0x66eb6d
lea eax, [ebp - 0xc]
xor ecx, ecx
lea edx, [ebp + edx - 0x14]
sub esi, eax
jmp 0x66eb03
cmp dword [ebp - 0x24], 0
lea eax, [ebp + ecx - 0xc]
je 0x66eb15
lea ebx, [edx + esi]
mov bl, byte [ebx + eax]
jmp 0x66eb18
mov bl, byte [esi + eax]
xor byte [eax], bl
inc ecx
cmp ecx, 8
jl 0x66eb03
mov ecx, dword [ebp - 0x2c]
push edi
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.0066e613
mov ecx, dword [ebp - 0x28]
add esp, 0xc
mov eax, edi
lea edx, [ebp + ecx - 0x14]
mov esi, 8
lea esp, [esp]
mov bl, byte [edx + eax]
xor byte [eax], bl
inc eax
dec esi
jne 0x66eb43
mov edx, dword [ebp - 0xc]
add dword [ebp - 0x20], 8
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov edx, ecx
sub ecx, 8
xor ebx, ebx
mov esi, edi
mov edi, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ebx
cmp dword [ebp + 0xc], 0
jg 0x66ead4
mov eax, edi
neg eax
mov edx, esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], eax
neg edx
cmp ebx, 8
jge 0x66eb9a
inc dword [ebp - 0x1c]
mov byte [ebp + ebx - 0xc], 0
inc ebx
cmp ebx, 8
jne 0x66ec0d
lea eax, [ebp - 0xc]
xor ecx, ecx
lea edx, [ebp + edx - 0x14]
sub esi, eax
cmp dword [ebp - 0x24], 0
lea eax, [ebp + ecx - 0xc]
je 0x66ebb9
lea ebx, [edx + esi]
mov bl, byte [ebx + eax]
jmp 0x66ebbc
mov bl, byte [esi + eax]
xor byte [eax], bl
inc ecx
cmp ecx, 8
jl 0x66eba7
mov ecx, dword [ebp - 0x2c]
push edi
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.0066e613
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov eax, edi
lea edx, [ebp + ecx - 0x14]
mov esi, 8
mov bl, byte [edx + eax]
xor byte [eax], bl
inc eax
dec esi
jne 0x66ebe3
mov edx, dword [ebp - 0xc]
add dword [ebp - 0x20], 8
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov edx, ecx
sub ecx, 8
xor ebx, ebx
mov esi, edi
mov edi, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x1c], 7
jle 0x66eb89
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006571e6
mov esp, ebp
pop ebp
ret