Function at 0x1006699a
Capabilities:
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x48], ebx
lea ebx, [ebp + 4]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], edi
mov esi, dword [ebx + 4]
push esi
sub ebx, 4
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], esi
mov eax, 0xfdc5cb01
mov edi, dword [esi]
mov edx, 0x10000000
mov esi, dword [esi + 0xc]
mov eax, 0xfffffff
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
pop ecx
pop ecx
mov ecx, dword [0x1001256c]
shr edi, 1
and esi, eax
and edi, eax
mov eax, edx
add esi, edx
sub eax, ecx
mov dword [ebp - 0x18], eax
jne 0x10066a4e
and dword [ebp - 4], 0
test edi, edi
jbe 0x10066c4f
mov ebx, 0x3ecdcc82
mov eax, dword [ebp - 4]
mov ecx, 0xc132337e
movzx eax, byte [eax + esi]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mul ecx
add eax, edx
mov ecx, eax
imul ecx, ecx, 0x6a83
rol ecx, 0xe
ror eax, 0xe
xor ecx, eax
imul ecx, ecx, 0xc132337e
ror ecx, 3
add dword [ebp - 0x24], ecx
inc dword [ebp - 4]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 4], edi
jb 0x10066a0a
jmp 0x10066c4c
mov ecx, esi
sub ecx, edx
mov edx, ecx
and edx, 0xfffff000
mov dword [ebp - 4], edx
lea eax, [esi + edi]
mov edx, ecx
sub edx, dword [ebp - 4]
add ecx, edi
mov edi, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1000003c]
and edi, 0xfffff000
sub ecx, edi
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 0x100000a0]
mov dword [ebp - 0x38], edi
mov edi, dword [eax + 0x100000a4]
add ecx, 0x10000000
add edi, ecx
jmp 0x10066a9f
mov eax, dword [ebp - 4]
cmp dword [ecx], eax
jae 0x10066aa3
add ecx, dword [ecx + 4]
cmp ecx, edi
jne 0x10066a95
and dword [ebp - 0x28], 0
cmp ecx, edi
je 0x10066ade
mov eax, dword [ebp - 4]
cmp dword [ecx], eax
jne 0x10066ade
mov eax, dword [ecx + 4]
sub eax, 8
shr eax, 1
je 0x10066ade
lea ebx, [ecx + 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
movzx ebx, word [ebx]
and ebx, 0xfff
cmp ebx, edx
jae 0x10066ade
inc dword [ebp - 0x28]
add dword [ebp - 4], 2
cmp dword [ebp - 0x28], eax
jne 0x10066ac2
mov ebx, 0x3ecdcc82
cmp ecx, edi
je 0x10066c06
mov eax, dword [ebp - 0x38]
cmp dword [ecx], eax
ja 0x10066c06
mov eax, dword [ecx + 4]
lea edx, [eax - 8]
mov eax, dword [ebp - 0x28]
shr edx, 1
cmp eax, edx
jne 0x10066b21
add ecx, dword [ecx + 4]
cmp ecx, edi
je 0x10066c06
mov eax, dword [ebp - 0x38]
cmp dword [ecx], eax
ja 0x10066c06
and dword [ebp - 0x28], 0
jmp 0x10066af6
mov edx, dword [ebp - 0x38]
cmp dword [ecx], edx
jne 0x10066b3b
movzx eax, word [ecx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x34]
jae 0x10066c06
mov edx, 0xf000
mov eax, dword [ebp - 0x28]
inc dword [ebp - 0x28]
test word [ecx + eax*2 + 8], dx
je 0x10066ae3
movzx eax, word [ecx + eax*2 + 8]
mov edx, dword [ecx]
and dword [ebp - 4], 0
and eax, 0xfff
lea eax, [eax + edx + 0x10000000]
mov dword [ebp - 8], eax
sub dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
je 0x10066bb6
mov edx, 0xc132337e
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mul edx
add eax, edx
mov edx, eax
imul edx, edx, 0x6a83
rol edx, 0xe
ror eax, 0xe
xor edx, eax
imul edx, edx, 0xc132337e
ror edx, 3
mov eax, edx
add dword [ebp - 0x24], eax
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], edx
cmp eax, dword [ebp - 8]
jb 0x10066b6f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
xor esi, esi
movzx eax, byte [ebp + esi - 8]
sub eax, ebx
mov edx, 0xc132337e
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mul edx
add eax, edx
mov edx, eax
imul edx, edx, 0x6a83
rol edx, 0xe
ror eax, 0xe
xor edx, eax
imul edx, edx, 0xc132337e
ror edx, 3
add dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
inc esi
cmp esi, 4
jb 0x10066bc0
mov esi, dword [ebp - 0x10]
add esi, 4
jmp 0x10066ae3
xor edi, edi
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x1c], eax
je 0x10066c4c
mov ecx, 0xc132337e
movzx eax, byte [edi + esi]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mul ecx
add eax, edx
mov ecx, eax
imul ecx, ecx, 0x6a83
rol ecx, 0xe
ror eax, 0xe
xor ecx, eax
imul ecx, ecx, 0xc132337e
ror ecx, 3
add dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x10066c12
mov ebx, dword [ebp - 0xc]
add dword [ebx + 8], 0x10
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
and ecx, 0xfffffff
mov eax, dword [ecx + 0x10000000]
xor eax, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x10000004]
xor ecx, dword [ebp - 0x20]
or eax, ecx
je 0x10066d24
call fcn.100c1c5f
mov edx, 0xfffff000
lea ecx, [ebx + 0xc]
and ecx, 0xfffffffc
lea esi, [ecx + 0xfff]
and eax, edx
mov dword [ebp - 0x1c], eax
and esi, edx
mov edx, 0xffff
mov dword [ebx + 8], 0x100f1b6e
xor eax, eax
mov edi, dword [0x1012ee38]
imul edi, edi, 0x343fd
add edi, 0x269ec3
mov dword [0x1012ee38], edi
shr edi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, edi
test edx, edx
jne 0x10066ca4
mov edi, 0xffff
div edi
inc edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x1c], 0
jmp 0x10066ced
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
add ecx, 4
cmp ecx, esi
jb 0x10066ce5
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], 0x100f1b6e
mov ecx, dword [ebp - 0x44]
mov edx, ecx
mov eax, dword [eax + 4]
and eax, 0xfffffff
shl edx, 0x10
mov dword [ebp - 0x40], ecx
add eax, 0x10000000
xor edx, dword [eax]
xor edx, dword [0x10120a6c]
xor edx, ecx
and dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], edx
mov eax, 0x328fdd98
mov ecx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov esp, ebp
pop ebp
popfd
ret