Function at 0x66dcd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ba8d0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1ab4
call fcn.00790c80
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1c]
push 0
mov byte [ebp - 0x24], 0
call fcn.004353e0
mov byte [ebp - 4], 2
cmp dword [esi + 0x10], 0
je 0x66dd88
push esi
lea ecx, [ebp - 0x78]
call fcn.0043f7c0
push 1
sub esp, 0x28
mov byte [ebp - 4], 3
mov eax, esp
lea ecx, [ebp - 0x34]
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.0043d0c0
mov cl, byte [ebp - 0x24]
add esp, 0x34
mov al, byte [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x24], al
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x34], cl
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], edx
call fcn.00434940
mov byte [ebp - 4], 4
jmp 0x66de17
lea eax, [ebp - 0x1ac4]
mov byte [ebp - 0x6d], 0
push eax
lea ecx, [ebp - 0x6d]
call fcn.00661b60
mov edi, eax
xor edx, edx
mov ecx, dword [edi]
lea esi, [edi + 4]
test ecx, ecx
je 0x66ddb8
mov al, dl
lea ecx, [esi + edx]
sub al, 0x57
inc edx
xor byte [ecx], al
mov ecx, dword [edi]
cmp edx, ecx
jb 0x66dda8
mov byte [ecx + esi], 0
lea ecx, [ebp - 0x78]
push esi
call fcn.0066e020
push 1
sub esp, 0x28
mov byte [ebp - 4], 5
mov eax, esp
lea ecx, [ebp - 0x34]
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.0043d0c0
mov cl, byte [ebp - 0x24]
add esp, 0x34
mov al, byte [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x24], al
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x34], cl
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], edx
call fcn.00434940
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x74]
test edi, edi
je 0x66de3f
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x66de3f
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x66de3f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x34], xmm0
call fcn.00442070
lea eax, [ebp - 0x64]
push eax
movups xmmword [ebp - 0x64], xmm0
call fcn.00441ff0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x34]
call fcn.00441f20
test al, al
je 0x66df9c
lea ecx, [ebp - 0x34]
call fcn.0045bcc0
mov edi, eax
mov dword [ebp - 0x78], 0xc9c6cbc7
xor eax, eax
mov byte [ebp - 0x74], 0xad
mov ecx, 4
mov word [ebp - 0x73], ax
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 0x71], al
lea ecx, [eax - 0x57]
xor byte [ebp + eax - 0x78], cl
inc eax
mov ecx, dword [ebp - 0x7c]
cmp eax, ecx
jb 0x66dea0
lea eax, [ebp - 0x78]
mov byte [ebp + ecx - 0x78], 0
push eax
mov ecx, edi
call fcn.0045c640
lea ecx, [ebp - 0x54]
push ecx
mov ecx, eax
call fcn.0045c6e0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 0x10
mov ecx, esi
cmovae eax, dword [ebp - 0x54]
cmp dword [esi + 0x14], 0x10
jb 0x66dee3
mov ecx, dword [esi]
push dword [ebp - 0x44]
push eax
push dword [esi + 0x10]
push ecx
call fcn.0040ffd0
add esp, 0x10
test al, al
je 0x66df62
movaps xmm0, xmmword [0x7e52b0]
mov eax, 0xc
mov dword [ebp - 0x94], eax
xor edx, edx
movups xmmword [ebp - 0x90], xmm0
mov al, dl
sub al, 0x57
xor byte [ebp + edx - 0x90], al
inc edx
mov eax, dword [ebp - 0x94]
cmp edx, eax
jb 0x66df12
mov byte [ebp + eax - 0x90], 0
mov ecx, edi
lea eax, [ebp - 0x90]
push eax
call fcn.0045c640
cmp byte [eax], 4
jne 0x66dfc8
mov al, byte [eax + 8]
lea ecx, [ebp - 0x54]
mov byte [ebp - 0x6d], al
call fcn.00407a10
lea ecx, [ebp - 0x24]
call fcn.00434940
mov al, byte [ebp - 0x6d]
jmp 0x66dfa6
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.00407a10
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
sub eax, 1
je 0x66df8f
sub eax, 1
je 0x66df86
inc dword [ebp - 0x28]
jmp 0x66de66
add dword [ebp - 0x2c], 0x10
jmp 0x66de66
lea ecx, [ebp - 0x30]
call fcn.004284e0
jmp 0x66de66
lea ecx, [ebp - 0x24]
call fcn.00434940
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret
mov ecx, eax
call fcn.00435660
push eax
lea ecx, [ebp - 0x6c]
call fcn.00406b50
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 8
push str.type_must_be_boolean__but_is
push eax
call fcn.0041ef20
add esp, 0xc
push eax
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 9
push 0x12e
push eax
call fcn.0042f470
add esp, 0xc
lea eax, [ebp - 0xb0]
push 0x826ab8
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3