Function at 0x66c8ed
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x4b21c4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov dword [ebp - 0xb0], edx
mov eax, ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc8], eax
push esi
push edi
test edx, edx
je 0x66ccea
mov al, byte [eax + edx - 1]
mov ebx, dword [ebp + 0xc]
mov esi, ebx
mov edi, dword [ebp + 0x18]
not esi
mov byte [ecx], al
mov ecx, edx
and ecx, 7
mov dword [ebp - 0xcc], ecx
jne 0x66c951
and dword [ebp - 0xd0], 0
and dword [ebp - 0xb4], 0
jmp 0x66cb7a
mov eax, dword [ebp + 0x14]
movzx ecx, ax
mov dword [ebp - 0x14], eax
mov edx, ecx
mov dword [ebp - 0x1c], eax
xor edx, ebx
shr eax, 0x10
imul edx, eax
mov dword [ebp - 0xb4], eax
mov eax, ebx
shr eax, 0xf
movzx ebx, di
mov dword [ebp - 0x10], edi
xor edx, eax
mov dword [ebp - 0x18], edi
xor edx, esi
mov dword [ebp - 0x20], edi
mov esi, dword [ebp + 0x14]
mov eax, edx
mov dword [ebp - 0x28], edi
mov edi, edx
sub edi, ebx
shr eax, 8
imul edi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], esi
sub edi, eax
mov dword [ebp - 0x44], esi
xor edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
mov ecx, edi
sub ecx, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
shr eax, 0x10
sub ecx, eax
mov dword [ebp - 0x4c], esi
xor ecx, edx
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp + 0x18]
xor esi, ecx
ror esi, 0xb
mov eax, ecx
imul esi, ebx
ror eax, 0x13
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x50], edx
xor esi, eax
mov dword [ebp - 0x58], edx
xor esi, edi
mov edi, dword [ebp + 0x14]
add edx, esi
mov dword [ebp - 0x54], edi
ror edx, 0x1e
mov eax, esi
imul edx, dword [ebp - 0xb4]
ror eax, 0x11
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x6c], edi
sub edx, eax
mov eax, dword [ebp + 0x18]
xor edx, ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x68], eax
mov ecx, edx
ror ecx, 0xc
movzx eax, di
sub ecx, eax
mov eax, edi
imul ecx, dword [ebp - 0xc0]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], eax
xor ecx, esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x78], esi
mov esi, eax
sub esi, ecx
and dword [ebp - 0xc4], 0
ror esi, 0xf
mov eax, ecx
imul esi, dword [ebp - 0xc0]
ror eax, 2
sub esi, eax
mov eax, edi
xor esi, edx
mov dword [ebp - 0x84], eax
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x88], edx
mov edx, esi
movzx eax, di
xor edx, eax
mov eax, esi
rol edx, 4
imul edx, ebx
mov ebx, edi
mov edi, dword [ebp + 0x18]
shr eax, 0xb
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x9c], ebx
add edx, eax
mov dword [ebp - 0xa4], ebx
mov eax, dword [ebp + 0x18]
xor edx, ecx
mov dword [ebp - 0x90], eax
mov ecx, edx
mov dword [ebp - 0x98], eax
mov eax, edx
xor eax, dword [ebp - 0xc0]
imul eax, dword [ebp - 0xb4]
and dword [ebp - 0xc0], 0
ror ecx, 0xb
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa0], edi
add ecx, eax
mov dword [ebp - 0xa8], edi
xor ecx, esi
movzx eax, bx
mov dword [ebp - 0xbc], ecx
lea ebx, [ebp - 0xc4]
sub ecx, eax
xor ecx, edx
mov edx, dword [ebp - 0xc8]
xor ecx, edi
sub ebx, edx
mov dword [ebp - 0xb8], ecx
mov ecx, dword [ebp - 0xcc]
mov esi, ecx
mov al, byte [edx]
mov byte [ebx + edx], al
inc edx
sub esi, 1
jne 0x66cb06
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0xbc]
xor dword [ebp - 0xbc], eax
lea edx, [edx + ecx]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xc0]
xor dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
push 8
pop eax
sub eax, ecx
je 0x66cb4e
mov byte [edx], 0
inc edx
sub eax, 1
jne 0x66cb45
mov ebx, dword [ebp - 0xb0]
lea edx, [ebp - 0xbc]
mov eax, edx
mov esi, ecx
sub ebx, eax
mov al, byte [edx]
mov byte [ebx + edx], al
inc edx
sub esi, 1
jne 0x66cb60
mov ebx, dword [ebp - 0xb8]
mov esi, dword [ebp - 0xbc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xb0]
shr edx, 3
add eax, ecx
mov dword [ebp - 0xc0], eax
mov dword [ebp + 8], edx
test edx, edx
je 0x66ccea
mov eax, edi
shr eax, 0x10
mov dword [ebp - 0xb8], eax
movzx eax, di
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x14]
movzx edx, ax
shr eax, 0x10
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xc0]
sub ecx, eax
add edx, ecx
mov dword [ebp - 0xc8], edx
mov ecx, dword [edx + eax]
mov edx, dword [edx + eax + 4]
xor ecx, esi
mov eax, ecx
sub eax, dword [ebp - 0x10]
xor edx, eax
mov eax, dword [ebp - 0xb8]
xor edx, edi
xor edx, ebx
movzx ebx, ax
mov eax, dword [ebp - 0xcc]
mov edi, edx
movzx esi, ax
mov eax, edx
xor eax, ebx
ror edi, 0xb
imul eax, esi
mov esi, dword [ebp - 0x10]
add edi, eax
xor edi, ecx
mov ecx, dword [ebp + 0x14]
xor esi, edi
mov eax, edi
rol esi, 4
imul esi, dword [ebp - 0xb0]
shr eax, 0xb
add esi, eax
xor esi, edx
sub ecx, esi
mov eax, esi
ror ecx, 0xf
imul ecx, ebx
ror eax, 2
sub ecx, eax
mov eax, dword [ebp - 0xcc]
xor ecx, edi
movzx edi, ax
mov edx, ecx
ror edx, 0xc
sub edx, dword [ebp - 0x10]
imul edx, ebx
xor edx, esi
mov esi, dword [ebp + 0x18]
add esi, edx
mov eax, edx
ror esi, 0x1e
imul esi, edi
ror eax, 0x11
sub esi, eax
xor esi, ecx
mov ecx, dword [ebp + 0x14]
xor ecx, esi
mov eax, esi
ror ecx, 0xb
imul ecx, dword [ebp - 0xb0]
ror eax, 0x13
xor ecx, eax
xor ecx, edx
mov edx, ecx
sub edx, dword [ebp + 0x14]
sub edx, ebx
xor edx, esi
mov esi, dword [ebp - 0x10]
mov ebx, edx
mov eax, edx
sub ebx, dword [ebp - 0xb0]
imul ebx, esi
shr eax, 8
sub ebx, eax
xor ebx, ecx
xor esi, ebx
mov eax, ebx
imul esi, edi
shr eax, 0xf
xor esi, eax
mov eax, dword [ebp - 0xc0]
xor esi, edx
mov edx, dword [ebp - 0xc8]
xor esi, dword [ebp - 0xd0]
xor ebx, dword [ebp - 0xb4]
mov ecx, dword [edx + eax]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xd0], ecx
mov ecx, dword [edx + eax + 4]
mov dword [eax], esi
mov dword [eax + 4], ebx
add eax, 8
sub dword [ebp + 8], 1
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xc0], eax
jne 0x66cbd2
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006762f8
mov esp, ebp
pop ebp
ret 0x14