Function at 0x83e6e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov edx, fcn.00788ea0
xor eax, eax
movzx esi, byte [0xbbd1fb]
not edx
and edx, 1
mov ecx, edx
add ecx, fcn.00788ea0
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jb 0x83e8b7
mov al, byte [0xbbd1fb]
mov esi, edx
xor ecx, ecx
mov ah, 1
add esi, fcn.00788ea0
sete cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2 + 4]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbd1fb], ah
jne 0x83e71b
mov ecx, fcn.00788ea0
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov esi, ecx
add esi, fcn.00788ea0
sete dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2 + 4]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x83e7a1
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbbd1fb]
add edx, fcn.00788ea0
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jae 0x83e776
jmp 0x83e8b7
xor eax, eax
add ecx, fcn.00788ea0
movzx edx, byte [0xbbd1fb]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x83e88b
mov ecx, fcn.00788ea0
xor eax, eax
not ecx
and ecx, 1
add ecx, fcn.00788ea0
sete al
mov ecx, eax
not ecx
and ecx, 0xb
lea ecx, [eax + ecx*2 - 0x567a00ac]
mov eax, dword [0xbbd1e0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbbd1e0], eax
not eax
imul edx, eax
mov eax, dword [0xbbd1e4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbd1e4], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbbd1e8]
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbbd1e8], edx
or eax, esi
not edx
mov ebx, dword [0xbbd1ec]
imul edx, eax
lea esi, [edx*8]
xor ebx, edx
shr edx, 0x1c
mov dword [0xbbd1ec], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbbd1f0]
mov esi, ebx
shl esi, 4
xor edx, ebx
shr ebx, 0x1b
mov dword [0xbbd1f0], edx
or ebx, esi
not edx
imul edx, ebx
xor dword [0xbbd1f4], edx
mov dl, 1
shl dl, cl
or byte [0xbbd1fb], dl
mov eax, fcn.00788ea0
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.00788ea0
sete cl
mov eax, ecx
not eax
lea ecx, [ecx + eax*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbbd1fb], al
mov edx, 0x791730
movzx ecx, byte [0xbbd21b]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x83ea34
mov al, byte [0xbbd21b]
cmp edx, 3
mov ah, 1
sete cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbd21b], ah
jne 0x83e8e2
mov ecx, 0x791730
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x83e93c
cmp ecx, 3
movzx edx, byte [0xbbd21b]
sete al
or al, 4
movzx eax, al
bt edx, eax
jae 0x83e920
jmp 0x83ea34
cmp ecx, 3
movzx edx, byte [0xbbd21b]
sete al
or al, 4
movzx eax, al
bt edx, eax
jb 0x83ea13
mov eax, 0x791730
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
mov eax, dword [0xbbd200]
sete cl
or ecx, 0xa5f57a88
add ecx, 0x22c
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbbd200], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbbd204]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbd204], eax
or esi, edx
not eax
mov edx, dword [0xbbd208]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbbd208], edx
or esi, eax
not edx
mov eax, dword [0xbbd20c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbbd20c], eax
or esi, edx
not eax
mov edx, dword [0xbbd210]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbbd210], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbbd214], edx
mov dl, 1
shl dl, cl
or byte [0xbbd21b], dl
mov eax, 0x791730
imul eax, eax
and eax, 3
cmp eax, 3
mov al, 0xfe
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbbd21b], al
mov edx, fcn.0066e960
movzx ecx, byte [0xbbd237]
not edx
and edx, 1
mov eax, edx
add eax, fcn.0066e960
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x83ebb3
mov al, byte [0xbbd237]
mov ecx, edx
mov ah, 1
add ecx, fcn.0066e960
sete cl
not cl
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbd237], ah
jne 0x83ea64
mov ecx, fcn.0066e960
movzx eax, al
not ecx
and ecx, 1
mov edx, ecx
add edx, fcn.0066e960
sete dl
not dl
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x83ead1
mov eax, ecx
movzx edx, byte [0xbbd237]
add eax, fcn.0066e960
sete al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x83eaaf
jmp 0x83ebb3
add ecx, fcn.0066e960
movzx ecx, byte [0xbbd237]
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x83eb8f
mov eax, fcn.0066e960
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.0066e960
mov eax, dword [0xbbd220]
sete cl
xor ecx, 0xd60b400b
or ecx, 0xfc0
xor eax, ecx
and cl, 3
mov dword [0xbbd220], eax
not eax
mov edx, dword [str.pXj]
imul eax, eax, 0xd60b4fcb
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [str.pXj], edx
or esi, eax
not edx
mov eax, dword [0xbbd228]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbbd228], eax
or esi, edx
not eax
mov edx, dword [0xbbd22c]
imul eax, esi
lea esi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbbd22c], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
shl al, cl
xor dword [0xbbd230], edx
or byte [0xbbd237], al
mov eax, fcn.0066e960
not eax
and eax, 1
add eax, fcn.0066e960
mov al, 0xfe
sete cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbbd237], al
mov ecx, 0xbbd160
mov edx, 3
pop esi
pop ebx
jmp 0x83ee20