Function at 0x8031e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
lea eax, [ecx - 0x85]
cmp eax, 2
ja 0x8035dc
mov esi, 0x7b92c0
mov ebp, ecx
movzx ecx, byte [0xbb1437]
not esi
and esi, 1
mov eax, esi
add eax, 0x7b92c0
sete al
xor al, 5
add al, 0xc4
and al, 7
movzx eax, al
bt ecx, eax
jb 0x803343
mov al, byte [0xbb1437]
mov ecx, esi
mov ah, 1
add ecx, 0x7b92c0
sete cl
xor cl, 5
add cl, 0xc4
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb1437], ah
jne 0x803227
mov ecx, 0x7b92c0
not ecx
and ecx, 1
mov esi, ecx
add esi, 0x7b92c0
movzx esi, al
sete ah
xor ah, 5
add ah, 0xc4
and ah, 7
xor ah, 7
movzx eax, ah
bt esi, eax
jae 0x80329e
mov eax, ecx
movzx esi, byte [0xbb1437]
add eax, 0x7b92c0
sete al
xor al, 5
add al, 0xc4
and al, 7
movzx eax, al
bt esi, eax
jae 0x80327a
jmp 0x803343
add ecx, 0x7b92c0
movzx ecx, byte [0xbb1437]
sete al
xor al, 5
add al, 0xc4
and al, 7
movzx eax, al
bt ecx, eax
jb 0x80331b
mov eax, 0x7b92c0
xor ecx, ecx
mov dl, 1
not eax
and eax, 1
add eax, 0x7b92c0
mov eax, dword [0xbb1428]
sete cl
xor ecx, 0x35d50915
add ecx, 0x1c4
xor eax, ecx
mov dword [0xbb1428], eax
not eax
mov esi, dword [0xbb142c]
imul eax, ecx
and cl, 7
shl dl, cl
lea edi, [eax + eax]
xor esi, eax
shr eax, 0x1e
mov dword [0xbb142c], esi
or eax, edi
not esi
imul esi, eax
xor dword [0xbb1430], esi
or byte [0xbb1437], dl
mov eax, 0x7b92c0
not eax
and eax, 1
add eax, 0x7b92c0
mov al, 0xfe
sete cl
xor cl, 5
add cl, 0xc4
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb1437], al
mov esi, fcn.007bce30
xor eax, eax
movzx edx, byte [0xbb1447]
not esi
and esi, 1
mov ecx, esi
add ecx, fcn.007bce30
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x8034ae
mov al, byte [0xbb1447]
mov edi, esi
xor ecx, ecx
mov ah, 1
add edi, fcn.007bce30
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb1447], ah
jne 0x803378
mov ecx, fcn.007bce30
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov esi, ecx
add esi, fcn.007bce30
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x8033f6
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbb1447]
add edx, fcn.007bce30
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
bt esi, eax
jae 0x8033cf
jmp 0x8034ae
xor eax, eax
add ecx, fcn.007bce30
movzx edx, byte [0xbb1447]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x803484
mov ecx, fcn.007bce30
xor eax, eax
mov esi, dword [0xbb1438]
not ecx
and ecx, 1
add ecx, fcn.007bce30
sete al
mov ecx, eax
not ecx
and ecx, 0x421
lea ecx, [eax + ecx*2 - 0x622c3426]
xor esi, ecx
mov edx, ecx
mov dword [0xbb1438], esi
shr edx, 0x1f
not esi
mov edi, dword [0xbb143c]
or edx, ecx
and cl, 7
imul edx, esi
lea esi, [edx + edx]
xor edi, edx
shr edx, 0x1e
mov dword [0xbb143c], edi
or esi, edx
not edi
mov dl, 1
imul edi, esi
shl dl, cl
xor dword [0xbb1440], edi
or byte [0xbb1447], dl
mov eax, fcn.007bce30
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.007bce30
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb1447], al
mov esi, fcn.007f0b50
movzx ecx, byte [0xbb1453]
imul esi, esi
and esi, 3
cmp esi, 1
seta al
not al
add al, 0xb0
and al, 7
movzx eax, al
bt ecx, eax
jb 0x8035d0
mov al, byte [0xbb1453]
cmp esi, 1
mov dl, 1
seta cl
not cl
add cl, 0xb0
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb1453], dl
jne 0x8034dd
mov ecx, fcn.007f0b50
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
not dl
add dl, 0xb0
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x803545
cmp ecx, 1
movzx edx, byte [0xbb1453]
seta al
not al
add al, 0xb0
and al, 7
movzx eax, al
bt edx, eax
jae 0x803525
jmp 0x8035d0
cmp ecx, 1
movzx ecx, byte [0xbb1453]
seta al
not al
add al, 0xb0
and al, 7
movzx eax, al
bt ecx, eax
jb 0x8035aa
mov eax, fcn.007f0b50
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbb1448]
seta cl
xor ecx, 0xb2133507
add ecx, 0x1b0
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb1448], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbb144c], edx
mov dl, 1
shl dl, cl
or byte [0xbb1453], dl
mov eax, fcn.007f0b50
imul eax, eax
and eax, 3
cmp eax, 1
mov al, 0xfe
seta cl
not cl
add cl, 0xb0
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb1453], al
mov eax, dword [ebp*4 + 0xb48500]
jmp 0x803712
mov edx, fcn.007ba200
xor eax, eax
movzx esi, byte [0xbb145f]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt esi, eax
jb 0x80370d
mov al, byte [0xbb145f]
xor ecx, ecx
cmp edx, 3
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb145f], ah
jne 0x80360d
mov ecx, fcn.007ba200
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x80367d
xor eax, eax
cmp ecx, 3
movzx esi, byte [0xbb145f]
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
bt esi, eax
jae 0x80365b
jmp 0x80370d
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb145f]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x8036e4
mov ecx, fcn.007ba200
xor eax, eax
mov esi, dword [0xbb1454]
mov dl, 1
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete al
mov ecx, eax
not ecx
and ecx, 0x405
lea ecx, [eax + ecx*2 + 0xe6f73ba]
xor esi, ecx
mov dword [0xbb1454], esi
not esi
imul esi, ecx
and cl, 7
shl dl, cl
xor dword [0xbb1458], esi
or byte [0xbb145f], dl
mov eax, fcn.007ba200
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb145f], al
mov eax, 0xbb1454
pop esi
pop edi
pop ebx
pop ebp
ret