Function at 0x10066770
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.100c8250
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov ecx, dword [eax + 4]
lea ebx, [ebx - 1]
shr ebx, 0x1f
mov edx, dword [ebp + 4]
dec ebx
xor ecx, edx
mov dword [esp + 0x24], ebx
and ecx, ebx
xor edx, ecx
mov dword [ebp + 4], edx
xor dword [eax + 4], ecx
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
xor ecx, edx
movd xmm0, ebx
and ecx, ebx
pshufd xmm4, xmm0, 0
xor edx, ecx
mov dword [ebp + 0xc], edx
xor dword [eax + 0xc], ecx
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
xor ecx, edx
and ecx, ebx
and ecx, 4
xor edx, ecx
mov dword [ebp + 0x10], edx
xor dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x30]
lea edx, [ecx - 1]
mov dword [esp + 0x28], edx
cmp edx, 9
ja case.default.0x100667e7
jmp dword [edx*4 + 0x100669f0]
mov ebx, 0xa
lea esi, [ecx - 0xa]
cmp ecx, ebx
jle 0x100668eb
cmp esi, 4
jb 0x100668c7
mov edi, dword [eax]
mov edx, dword [ebp]
mov dword [esp + 0x1c], edx
lea ecx, [edi + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
lea ecx, [edi + ecx*4]
mov dword [esp + 0x10], ecx
lea ecx, [edx + 0x28]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
lea edx, [edx + ecx*4]
lea ecx, [edi + 0x28]
mov dword [esp + 0x28], edx
cmp ecx, edx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
ja 0x10066849
cmp edx, dword [esp + 0x18]
jae 0x100668c7
cmp dword [esp + 0x14], eax
ja 0x10066853
cmp edx, eax
jae 0x100668c7
cmp dword [esp + 0x14], ebp
ja 0x1006685d
cmp edx, ebp
jae 0x100668c7
mov edx, dword [esp + 0x18]
cmp edx, eax
ja 0x1006686b
cmp dword [esp + 0x28], eax
jae 0x100668c7
cmp edx, ebp
ja 0x10066875
cmp dword [esp + 0x28], ebp
jae 0x100668c7
and esi, 0x80000003
jns 0x10066882
dec esi
or esi, 0xfffffffc
inc esi
mov eax, dword [esp + 0x1c]
mov edx, ecx
sub edx, esi
nop word [eax + eax]
movups xmm3, xmmword [edi + ebx*4]
movups xmm2, xmmword [eax + ebx*4]
movaps xmm1, xmm3
pxor xmm1, xmm2
pand xmm1, xmm4
movaps xmm0, xmm1
pxor xmm1, xmm3
pxor xmm0, xmm2
movups xmmword [eax + ebx*4], xmm0
movups xmmword [edi + ebx*4], xmm1
add ebx, 4
mov esi, ebx
cmp ebx, edx
jl 0x10066890
mov eax, dword [esp + 0x2c]
cmp esi, ecx
jge 0x100668eb
mov ecx, dword [ebp]
mov edx, dword [ecx + ebx*4]
lea esi, [ecx + ebx*4]
mov ecx, dword [eax]
mov edi, dword [ecx + ebx*4]
xor edi, edx
and edi, dword [esp + 0x24]
xor edx, edi
mov dword [esi], edx
mov ecx, dword [eax]
xor dword [ecx + ebx*4], edi
inc ebx
cmp ebx, dword [esp + 0x30]
jl 0x100668c7
mov ebx, dword [esp + 0x24]
mov ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 0x24]
mov edx, dword [edi + 0x24]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 0x24], edx
mov ecx, dword [eax]
xor dword [ecx + 0x24], esi
mov ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 0x20]
mov edx, dword [edi + 0x20]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 0x20], edx
mov ecx, dword [eax]
xor dword [ecx + 0x20], esi
mov ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 0x1c]
mov edx, dword [edi + 0x1c]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 0x1c], edx
mov ecx, dword [eax]
xor dword [ecx + 0x1c], esi
mov ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 0x18]
mov edx, dword [edi + 0x18]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 0x18], edx
mov ecx, dword [eax]
xor dword [ecx + 0x18], esi
mov ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 0x14]
mov edx, dword [edi + 0x14]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 0x14], edx
mov ecx, dword [eax]
xor dword [ecx + 0x14], esi
mov ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 0x10]
mov edx, dword [edi + 0x10]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 0x10], edx
mov ecx, dword [eax]
xor dword [ecx + 0x10], esi
mov ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 0xc]
mov edx, dword [edi + 0xc]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 0xc], edx
mov ecx, dword [eax]
xor dword [ecx + 0xc], esi
mov ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 8]
mov edx, dword [edi + 8]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 8], edx
mov ecx, dword [eax]
xor dword [ecx + 8], esi
mov ecx, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ecx + 4]
mov edx, dword [edi + 4]
xor esi, edx
and esi, ebx
xor edx, esi
mov dword [edi + 4], edx
mov ecx, dword [eax]
xor dword [ecx + 4], esi
mov esi, dword [ebp]
mov ecx, dword [eax]
pop edi
mov edx, dword [esi]
mov ecx, dword [ecx]
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [esi], edx
mov eax, dword [eax]
pop esi
pop ebp
pop ebx
xor dword [eax], ecx
add esp, 0x10
ret