Function at 0x968480
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov edx, fcn.0095bfb0
mov esi, fcn.0095bfb0
movzx ecx, byte [0xbc95c7]
or edx, 2
xor esi, 2
mov eax, edx
add eax, esi
sete al
not al
add al, 0x20
and al, 7
movzx eax, al
bt ecx, eax
jb 0x9685d5
mov al, byte [0xbc95c7]
mov ecx, edx
mov ah, 1
add ecx, esi
sete cl
not cl
add cl, 0x20
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbc95c7], ah
jne 0x9684b8
mov ecx, fcn.0095bfb0
mov edx, fcn.0095bfb0
or ecx, 2
xor edx, 2
mov esi, ecx
add esi, edx
sete ah
not ah
add ah, 0x20
and ah, 7
xor ah, 7
movzx esi, ah
movzx eax, al
bt eax, esi
jae 0x968528
mov eax, ecx
movzx esi, byte [0xbc95c7]
add eax, edx
sete al
not al
add al, 0x20
and al, 7
movzx eax, al
bt esi, eax
jae 0x968507
jmp 0x9685d5
add ecx, edx
movzx ecx, byte [0xbc95c7]
sete al
not al
add al, 0x20
and al, 7
movzx eax, al
bt ecx, eax
jb 0x9685ab
mov eax, fcn.0095bfb0
mov edx, fcn.0095bfb0
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
mov eax, dword [0xbc95b8]
sete cl
xor ecx, 0xb7acce67
add ecx, 0x220
xor eax, ecx
mov edx, ecx
mov dword [0xbc95b8], eax
shr edx, 0x1f
not eax
mov edi, dword [0xbc95bc]
or edx, ecx
and cl, 7
imul edx, eax
lea esi, [edx + edx]
xor edi, edx
shr edx, 0x1e
mov dword [0xbc95bc], edi
or esi, edx
not edi
mov dl, 1
imul edi, esi
shl dl, cl
xor dword [0xbc95c0], edi
or byte [0xbc95c7], dl
mov eax, fcn.0095bfb0
mov ecx, fcn.0095bfb0
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
sete cl
not cl
add cl, 0x20
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbc95c7], al
mov esi, fcn.009631b0
xor eax, eax
movzx edx, byte [0xbc95d7]
mov edi, dword [esp + 0x10]
imul esi, esi
and esi, 3
cmp esi, 3
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x968723
mov al, byte [0xbc95d7]
xor ecx, ecx
cmp esi, 3
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 [0xbc95d7], ah
jne 0x968609
mov ecx, fcn.009631b0
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
mov ebx, edx
xor ebx, 3
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x968676
xor eax, eax
cmp ecx, 3
movzx esi, byte [0xbc95d7]
sete al
mov edx, eax
xor edx, 3
lea eax, [edx + eax*2]
bt esi, eax
jae 0x968655
jmp 0x968723
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbc95d7]
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x9686fb
mov eax, fcn.009631b0
xor ecx, ecx
mov esi, dword [0xbc95c8]
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 0x7e878a93
lea ecx, [eax + ecx*2 + 0xa00]
xor esi, ecx
mov edx, ecx
mov dword [0xbc95c8], esi
shr edx, 0x1f
not esi
mov ebx, dword [0xbc95cc]
or edx, ecx
and cl, 7
imul edx, esi
lea esi, [edx + edx]
xor ebx, edx
shr edx, 0x1e
mov dword [0xbc95cc], ebx
or esi, edx
not ebx
mov dl, 1
imul ebx, esi
shl dl, cl
xor dword [0xbc95d0], ebx
or byte [0xbc95d7], dl
mov eax, fcn.009631b0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 3
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbc95d7], al
xor eax, eax
cmp edi, 3
mov ecx, 0xb62dc4
cmovne ecx, eax
mov eax, 0xb62db8
cmp edi, 4
cmovne eax, ecx
pop esi
pop edi
pop ebx
ret