Function at 0x66c43b
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x4b21c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov eax, ecx
mov esi, 0x400000
mov dword [ebp - 0xc0], eax
push edi
mov edi, edx
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe4], ebx
cmp dword [ebp + 0x14], ebx
je 0x66c4c4
push dword [ebp + 8]
sub eax, esi
lea ecx, [ebp - 0xec]
push eax
call fcn.0066bae2
mov edx, dword [0x4b21d8]
sub esp, 0x14
mov eax, dword [0x4b21dc]
sub edx, esi
mov eax, edi
lea esi, [ebp - 0xec]
sub eax, dword [ebp - 0xc0]
push 5
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call fcn.0066ccfd
mov edi, dword [ebp - 0xbc]
mov eax, dword [ebp + 8]
test eax, eax
je 0x66c88b
mov esi, dword [ebp + 0xc]
mov ecx, eax
and ecx, 7
not esi
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xd0], esi
jne 0x66c4ee
mov edx, ebx
jmp 0x66c712
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
movzx ecx, ax
mov dword [ebp - 0x20], eax
mov edx, ecx
xor edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
shr eax, 0x10
imul edx, eax
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0xc]
shr eax, 0xf
mov dword [ebp - 0x1c], ebx
xor edx, eax
mov dword [ebp - 0x14], ebx
xor edx, esi
mov dword [ebp - 0xc], ebx
mov esi, dword [ebp + 0x18]
mov edi, edx
mov dword [ebp - 0x24], ebx
mov eax, edx
shr eax, 8
movzx ebx, bx
sub edi, ebx
mov dword [ebp - 0x10], esi
imul edi, ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40], esi
sub edi, eax
mov dword [ebp - 0x48], esi
xor edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
mov ecx, edi
sub ecx, esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], eax
shr eax, 0x10
sub ecx, eax
mov dword [ebp - 0xc8], eax
xor ecx, edx
mov edx, dword [ebp + 0x1c]
xor esi, ecx
mov dword [ebp - 0x3c], edx
ror esi, 0xb
mov eax, ecx
imul esi, ebx
ror eax, 0x13
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x54], edx
xor esi, eax
xor esi, edi
mov edi, dword [ebp + 0x18]
add edx, esi
mov dword [ebp - 0x50], edi
ror edx, 0x1e
mov eax, esi
imul edx, dword [ebp - 0xac]
ror eax, 0x11
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x68], edi
sub edx, eax
mov eax, dword [ebp + 0x1c]
xor edx, ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x64], eax
mov ecx, edx
ror ecx, 0xc
movzx eax, di
mov edi, dword [ebp - 0xc8]
sub ecx, eax
mov eax, dword [ebp + 0x18]
imul ecx, edi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x78], eax
xor ecx, esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x74], esi
mov esi, eax
sub esi, ecx
mov eax, ecx
ror esi, 0xf
imul esi, edi
ror eax, 2
sub esi, eax
mov eax, dword [ebp + 0x1c]
xor esi, edx
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x88], edx
movzx edx, dx
xor edx, esi
mov dword [ebp - 0x84], eax
rol edx, 4
mov eax, esi
imul edx, ebx
mov ebx, dword [ebp + 0x18]
shr eax, 0xb
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x98], ebx
add edx, eax
mov dword [ebp - 0xa0], ebx
mov eax, dword [ebp + 0x1c]
xor edx, ecx
mov dword [ebp - 0x8c], eax
mov ecx, edx
mov dword [ebp - 0x94], eax
mov eax, edx
xor eax, edi
ror ecx, 0xb
imul eax, dword [ebp - 0xac]
mov dword [ebp - 0xa8], ebx
add ecx, eax
movzx eax, bx
xor ecx, esi
lea ebx, [ebp - 0xd8]
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0xb8], ecx
sub ecx, eax
xor ecx, edx
mov dword [ebp - 0x9c], esi
xor ecx, esi
mov dword [ebp - 0xa4], esi
mov esi, dword [ebp - 0xc0]
xor edx, edx
mov dword [ebp - 0xb4], ecx
sub ebx, esi
mov ecx, dword [ebp - 0xc4]
mov edi, ecx
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xd4], edx
mov al, byte [esi]
mov byte [ebx + esi], al
inc esi
sub edi, 1
jne 0x66c6a0
mov eax, dword [ebp - 0xd8]
lea esi, [ebp - 0xb8]
xor dword [ebp - 0xb8], eax
lea esi, [esi + ecx]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd4]
xor dword [ebp - 0xb4], eax
mov dword [ebp + 0xc], eax
push 8
pop eax
sub eax, ecx
je 0x66c6e4
mov byte [esi], dl
inc esi
sub eax, 1
jne 0x66c6dc
mov edi, dword [ebp - 0xbc]
lea edx, [ebp - 0xb8]
mov ebx, edi
mov eax, edx
mov esi, ecx
sub ebx, eax
mov al, byte [edx]
mov byte [ebx + edx], al
inc edx
sub esi, 1
jne 0x66c6f8
mov edx, dword [ebp - 0xb4]
mov ebx, dword [ebp - 0xb8]
mov eax, dword [ebp + 8]
lea esi, [ecx + edi]
mov dword [ebp - 0xac], esi
mov esi, eax
shr esi, 3
mov dword [ebp - 0xc8], esi
test esi, esi
je 0x66c885
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
movzx esi, ax
shr eax, 0x10
mov dword [ebp - 0xd4], eax
mov eax, edi
shr eax, 0x10
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0xac]
sub ecx, esi
add ecx, dword [ebp - 0xc0]
mov dword [ebp - 0x1c], eax
movzx eax, di
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xc4], ecx
mov ecx, dword [ecx + esi + 4]
xor ecx, edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
xor edx, ecx
movzx eax, ax
imul edx, eax
mov eax, ecx
shr eax, 0xf
xor edx, eax
mov eax, dword [ebp - 0xc4]
xor edx, dword [eax + esi]
xor edx, ebx
mov esi, edx
mov eax, edx
sub esi, dword [ebp - 0x14]
imul esi, dword [ebp - 0xc]
shr eax, 8
sub esi, eax
mov eax, dword [ebp - 0xd4]
xor esi, ecx
movzx ebx, ax
mov ecx, esi
sub ecx, edi
sub ecx, ebx
xor ecx, edx
mov edx, dword [ebp + 0x1c]
mov edi, ecx
mov eax, ecx
xor edi, dword [ebp + 0x18]
ror edi, 0xb
imul edi, dword [ebp - 0x14]
ror eax, 0x13
xor edi, eax
xor edi, esi
mov esi, dword [ebp - 0x1c]
movzx eax, si
lea edx, [edx + edi]
ror edx, 0x1e
imul edx, eax
mov eax, edi
ror eax, 0x11
sub edx, eax
xor edx, ecx
mov ecx, dword [ebp - 0xc]
mov esi, edx
ror esi, 0xc
sub esi, ecx
imul esi, ebx
xor esi, edi
mov edi, dword [ebp + 0x18]
sub edi, esi
mov eax, esi
ror edi, 0xf
imul edi, ebx
ror eax, 2
sub edi, eax
xor edi, edx
xor ecx, edi
mov eax, edi
rol ecx, 4
imul ecx, dword [ebp - 0x14]
shr eax, 0xb
add ecx, eax
xor ecx, esi
mov esi, dword [ebp - 0x1c]
xor ebx, ecx
movzx eax, si
imul ebx, eax
mov edx, ecx
ror edx, 0xb
add edx, ebx
mov ebx, edx
mov dword [ebp - 0xb4], edx
xor ebx, edi
mov edx, ebx
xor ebx, dword [ebp - 0xd0]
sub edx, dword [ebp - 0xc]
xor edx, dword [ebp + 0x1c]
xor edx, ecx
xor edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xc4]
mov edi, dword [ebp + 0x18]
mov eax, dword [ecx + esi]
mov dword [ebp - 0xd0], eax
mov eax, dword [ecx + esi + 4]
mov dword [esi], ebx
mov dword [esi + 4], edx
add esi, 8
sub dword [ebp - 0xc8], 1
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xac], esi
jne 0x66c765
mov edi, dword [ebp - 0xbc]
mov eax, dword [ebp + 8]
mov bl, byte [edi + eax - 1]
jmp 0x66c891
mov bl, byte [ebp - 0xc9]
cmp dword [ebp + 0x14], 0
je 0x66c8d0
mov esi, dword [0x4b21d8]
sub esp, 0x14
sub edi, dword [ebp - 0xc0]
mov edx, 0x400000
mov eax, dword [0x4b21dc]
sub edx, esi
mov dword [ebp - 0xbc], edi
lea esi, [ebp - 0xec]
push 5
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xbc]
call fcn.0066ccfd
cmp bl, byte [ebp + 0x10]
je 0x66c8da
call fcn.0066bb4f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006762f8
mov esp, ebp
pop ebp
ret 0x18