Function at 0x7cc450
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov esi, edx
mov ebp, ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [ecx]
call fcn.007d8f60
test eax, eax
je 0x7cc857
mov ecx, ebp
mov edi, eax
call fcn.007ebd10
test eax, eax
je 0x7cc85f
mov edx, fcn.007a56c0
mov ebx, eax
movzx ecx, byte [str.__Neb]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
or al, 4
add al, 4
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7cc59d
mov al, byte [str.__Neb]
cmp edx, 1
mov ah, 1
seta cl
or cl, 4
add cl, 4
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [str.__Neb], ah
jne 0x7cc4ae
mov ecx, fcn.007a56c0
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
or dl, 4
add dl, 4
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7cc518
cmp ecx, 1
movzx edx, byte [str.__Neb]
seta al
or al, 4
add al, 4
and al, 7
movzx eax, al
bt edx, eax
jae 0x7cc4f8
jmp 0x7cc59d
cmp ecx, 1
movzx ecx, byte [str.__Neb]
seta al
or al, 4
add al, 4
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7cc576
mov eax, fcn.007a56c0
xor ecx, ecx
mov dl, 1
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbb0518]
seta cl
or ecx, 0x21791bdc
add ecx, 0x804
xor eax, ecx
mov dword [0xbb0518], eax
not eax
imul eax, ecx
and cl, 7
shl dl, cl
xor dword [0xbb051c], eax
or byte [str.__Neb], dl
mov eax, fcn.007a56c0
imul eax, eax
and eax, 3
cmp eax, 1
mov al, 0xfe
seta cl
or cl, 4
add cl, 4
and cl, 7
xor cl, 7
rol al, cl
and byte [str.__Neb], al
mov edx, fcn.007f4560
xor eax, eax
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
movzx ecx, byte [0xbb0533]
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7cc701
mov al, byte [0xbb0533]
mov dword [esp], ebx
xor ebx, ebx
cmp edx, 3
mov ah, 1
sete bl
mov ecx, ebx
not ecx
lea ecx, [ecx + ebx*2]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb0533], ah
jne 0x7cc5d4
mov ecx, fcn.007f4560
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
mov ebx, edx
not ebx
lea edx, [ebx + edx*2]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7cc64c
mov ebx, dword [esp]
xor eax, eax
cmp ecx, 3
sete al
mov edx, eax
not edx
lea eax, [edx + eax*2]
movzx edx, byte [0xbb0533]
and al, 7
movzx eax, al
bt edx, eax
jae 0x7cc627
jmp 0x7cc701
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb0533]
mov ebx, dword [esp]
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7cc6d7
mov eax, fcn.007f4560
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 0x5e01f4cf
lea ecx, [eax + ecx*2 + 0x1040]
mov eax, dword [0xbb0524]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb0524], eax
not eax
imul edx, eax
mov eax, dword [0xbb0528]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb0528], eax
or ebx, edx
not eax
mov dl, 1
imul eax, ebx
mov ebx, dword [esp]
shl dl, cl
xor dword [0xbb052c], eax
or byte [0xbb0533], dl
mov eax, fcn.007f4560
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
not eax
lea ecx, [eax + ecx*2]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb0533], al
mov edx, 0x785dd0
xor eax, eax
and edx, 1
inc edx
mov ecx, edx
xor ecx, 0x785dd0
movzx ecx, byte [0xbb0543]
sete al
bt ecx, eax
jb 0x7cc824
mov al, byte [0xbb0543]
mov ecx, edx
mov ah, 1
xor ecx, 0x785dd0
sete cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb0543], ah
jne 0x7cc72c
mov ecx, 0x785dd0
movzx eax, al
and ecx, 1
inc ecx
mov edx, ecx
xor edx, 0x785dd0
sete dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7cc78a
mov edx, ecx
xor eax, eax
xor edx, 0x785dd0
movzx edx, byte [0xbb0543]
sete al
bt edx, eax
jae 0x7cc76c
jmp 0x7cc824
xor eax, eax
xor ecx, 0x785dd0
movzx ecx, byte [0xbb0543]
sete al
bt ecx, eax
jb 0x7cc806
mov edx, 0x785dd0
mov eax, dword [0xbb0534]
xor ecx, ecx
mov dword [esp], ebx
and edx, 1
inc edx
xor edx, 0x785dd0
sete cl
mov edx, eax
xor edx, ecx
or ecx, 0x203e1a78
xor eax, ecx
xor edx, 0xdfc1e587
mov dword [0xbb0534], eax
imul edx, ecx
and cl, 1
mov eax, dword [0xbb0538]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb0538], eax
or ebx, edx
not eax
mov dl, 1
imul eax, ebx
mov ebx, dword [esp]
shl dl, cl
xor dword [0xbb053c], eax
or byte [0xbb0543], dl
mov eax, 0x785dd0
and eax, 1
inc eax
xor eax, 0x785dd0
mov al, 0xfe
sete cl
xor cl, 7
rol al, cl
and byte [0xbb0543], al
mov ecx, ebp
mov edx, 0x20
push 0
push edi
push dword [esi*4 + 0xb47f08]
call fcn.007f4a50
add esp, 0xc
test eax, eax
jne 0x7cc85f
mov ecx, ebx
xor edx, edx
push 0xfffffffffffffff9
push edi
push 0
push 0
push esi
call fcn.007ebd50
add esp, 0x18
jmp 0x7cc85a
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp]
mov edx, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00774f10