Function at 0x7cc190
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edi, fcn.0078e050
xor eax, eax
mov ebp, edx
movzx edx, byte [0xbb050b]
mov esi, ecx
imul edi, edi
and edi, 3
cmp edi, 2
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7cc2e3
mov al, byte [0xbb050b]
xor ecx, ecx
cmp edi, 2
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 3
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb050b], ah
jne 0x7cc1c9
mov ecx, fcn.0078e050
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
mov ebx, edx
xor ebx, 3
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7cc236
xor eax, eax
cmp ecx, 2
movzx edi, byte [0xbb050b]
sete al
mov edx, eax
xor edx, 3
lea eax, [edx + eax*2]
bt edi, eax
jae 0x7cc215
jmp 0x7cc2e3
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbb050b]
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7cc2bb
mov eax, fcn.0078e050
xor ecx, ecx
mov edi, dword [0xbb04fc]
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 0x8bfea863
lea ecx, [eax + ecx*2 + 0xe10]
xor edi, ecx
mov edx, ecx
mov dword [0xbb04fc], edi
shr edx, 0x1f
not edi
mov ebx, dword [0xbb0500]
or edx, ecx
and cl, 7
imul edx, edi
lea edi, [edx + edx]
xor ebx, edx
shr edx, 0x1e
mov dword [0xbb0500], ebx
or edi, edx
not ebx
mov dl, 1
imul ebx, edi
shl dl, cl
xor dword [0xbb0504], ebx
or byte [0xbb050b], dl
mov eax, fcn.0078e050
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 3
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb050b], al
mov edi, fcn.0079aa70
mov eax, fcn.0079aa70
movzx ecx, byte [0xbb0517]
and edi, 1
xor edi, eax
xor eax, eax
cmp edi, 0xffffffff
setne al
bt ecx, eax
jb 0x7cc3e8
mov al, byte [0xbb0517]
cmp edi, 0xffffffff
mov dl, 1
setne cl
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb0517], dl
jne 0x7cc30f
mov ecx, fcn.0079aa70
mov edx, fcn.0079aa70
movzx eax, al
and ecx, 1
xor ecx, edx
cmp ecx, 0xffffffff
setne dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7cc364
movzx edx, byte [0xbb0517]
xor eax, eax
cmp ecx, 0xffffffff
setne al
bt edx, eax
jae 0x7cc34b
jmp 0x7cc3e8
movzx edx, byte [0xbb0517]
xor eax, eax
cmp ecx, 0xffffffff
setne al
bt edx, eax
jb 0x7cc3c6
mov edx, fcn.0079aa70
mov eax, fcn.0079aa70
xor ecx, ecx
and edx, 1
xor edx, eax
mov eax, dword [0xbb050c]
cmp edx, 0xffffffff
sete cl
xor ecx, 0x6e5b6149
add ecx, 0x900
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb050c], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbb0510], edx
mov dl, 1
shl dl, cl
or byte [0xbb0517], dl
mov ecx, fcn.0079aa70
mov eax, fcn.0079aa70
and ecx, 1
xor ecx, eax
mov al, 0xfe
cmp ecx, 0xffffffff
setne cl
xor cl, 7
rol al, cl
and byte [0xbb0517], al
xor ebx, ebx
cmp ebp, 0xc
mov eax, 0xbb04fc
mov edi, 0xbb050c
mov ecx, esi
mov edx, 0x16
sete byte [esp + 3]
cmove edi, eax
push 0
push 0
push edi
call fcn.007f4a50
add esp, 0xc
test eax, eax
jne 0x7cc43c
mov ecx, esi
call fcn.007ebd10
test eax, eax
je 0x7cc43c
mov cl, byte [esp + 3]
mov edx, 1
mov bl, cl
mov ecx, eax
push ebx
push 1
call fcn.007c57e0
add esp, 0xc
jmp 0x7cc43f
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret