Function at 0x971ff0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov edx, fcn.00965b00
mov esi, fcn.00965b00
movzx ecx, byte [0xbd0ec7]
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 0x972145
mov al, byte [0xbd0ec7]
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 [0xbd0ec7], ah
jne 0x972028
mov ecx, fcn.00965b00
mov edx, fcn.00965b00
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 0x972098
mov eax, ecx
movzx esi, byte [0xbd0ec7]
add eax, edx
sete al
not al
add al, 0x20
and al, 7
movzx eax, al
bt esi, eax
jae 0x972077
jmp 0x972145
add ecx, edx
movzx ecx, byte [0xbd0ec7]
sete al
not al
add al, 0x20
and al, 7
movzx eax, al
bt ecx, eax
jb 0x97211b
mov eax, fcn.00965b00
mov edx, fcn.00965b00
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
mov eax, dword [0xbd0eb8]
sete cl
xor ecx, 0xb7acce67
add ecx, 0x220
xor eax, ecx
mov edx, ecx
mov dword [0xbd0eb8], eax
shr edx, 0x1f
not eax
mov edi, dword [0xbd0ebc]
or edx, ecx
and cl, 7
imul edx, eax
lea esi, [edx + edx]
xor edi, edx
shr edx, 0x1e
mov dword [0xbd0ebc], edi
or esi, edx
not edi
mov dl, 1
imul edi, esi
shl dl, cl
xor dword [0xbd0ec0], edi
or byte [0xbd0ec7], dl
mov eax, fcn.00965b00
mov ecx, fcn.00965b00
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 [0xbd0ec7], al
mov esi, fcn.0096cd00
xor eax, eax
movzx edx, byte [0xbd0ed7]
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 0x972293
mov al, byte [0xbd0ed7]
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 [0xbd0ed7], ah
jne 0x972179
mov ecx, fcn.0096cd00
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 0x9721e6
xor eax, eax
cmp ecx, 3
movzx esi, byte [0xbd0ed7]
sete al
mov edx, eax
xor edx, 3
lea eax, [edx + eax*2]
bt esi, eax
jae 0x9721c5
jmp 0x972293
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbd0ed7]
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x97226b
mov eax, fcn.0096cd00
xor ecx, ecx
mov esi, dword [0xbd0ec8]
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 [0xbd0ec8], esi
shr edx, 0x1f
not esi
mov ebx, dword [0xbd0ecc]
or edx, ecx
and cl, 7
imul edx, esi
lea esi, [edx + edx]
xor ebx, edx
shr edx, 0x1e
mov dword [0xbd0ecc], ebx
or esi, edx
not ebx
mov dl, 1
imul ebx, esi
shl dl, cl
xor dword [0xbd0ed0], ebx
or byte [0xbd0ed7], dl
mov eax, fcn.0096cd00
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 [0xbd0ed7], al
xor eax, eax
cmp edi, 3
mov ecx, 0xb6b424
cmovne ecx, eax
mov eax, 0xb6b418
cmp edi, 4
cmovne eax, ecx
pop esi
pop edi
pop ebx
ret