Function at 0x80ea40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
lea eax, [ecx - 0x85]
cmp eax, 2
ja 0x80ee3c
mov esi, 0x7c4bc0
mov ebp, ecx
movzx ecx, byte [0xbb8d97]
not esi
and esi, 1
mov eax, esi
add eax, 0x7c4bc0
sete al
xor al, 5
add al, 0xc4
and al, 7
movzx eax, al
bt ecx, eax
jb 0x80eba3
mov al, byte [0xbb8d97]
mov ecx, esi
mov ah, 1
add ecx, 0x7c4bc0
sete cl
xor cl, 5
add cl, 0xc4
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb8d97], ah
jne 0x80ea87
mov ecx, 0x7c4bc0
not ecx
and ecx, 1
mov esi, ecx
add esi, 0x7c4bc0
movzx esi, al
sete ah
xor ah, 5
add ah, 0xc4
and ah, 7
xor ah, 7
movzx eax, ah
bt esi, eax
jae 0x80eafe
mov eax, ecx
movzx esi, byte [0xbb8d97]
add eax, 0x7c4bc0
sete al
xor al, 5
add al, 0xc4
and al, 7
movzx eax, al
bt esi, eax
jae 0x80eada
jmp 0x80eba3
add ecx, 0x7c4bc0
movzx ecx, byte [0xbb8d97]
sete al
xor al, 5
add al, 0xc4
and al, 7
movzx eax, al
bt ecx, eax
jb 0x80eb7b
mov eax, 0x7c4bc0
xor ecx, ecx
mov dl, 1
not eax
and eax, 1
add eax, 0x7c4bc0
mov eax, dword [0xbb8d88]
sete cl
xor ecx, 0x35d50915
add ecx, 0x1c4
xor eax, ecx
mov dword [0xbb8d88], eax
not eax
mov esi, dword [0xbb8d8c]
imul eax, ecx
and cl, 7
shl dl, cl
lea edi, [eax + eax]
xor esi, eax
shr eax, 0x1e
mov dword [0xbb8d8c], esi
or eax, edi
not esi
imul esi, eax
xor dword [0xbb8d90], esi
or byte [0xbb8d97], dl
mov eax, 0x7c4bc0
not eax
and eax, 1
add eax, 0x7c4bc0
mov al, 0xfe
sete cl
xor cl, 5
add cl, 0xc4
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb8d97], al
mov esi, fcn.007c8730
xor eax, eax
movzx edx, byte [0xbb8da7]
not esi
and esi, 1
mov ecx, esi
add ecx, fcn.007c8730
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x80ed0e
mov al, byte [0xbb8da7]
mov edi, esi
xor ecx, ecx
mov ah, 1
add edi, fcn.007c8730
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 [0xbb8da7], ah
jne 0x80ebd8
mov ecx, fcn.007c8730
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov esi, ecx
add esi, fcn.007c8730
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x80ec56
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbb8da7]
add edx, fcn.007c8730
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
bt esi, eax
jae 0x80ec2f
jmp 0x80ed0e
xor eax, eax
add ecx, fcn.007c8730
movzx edx, byte [0xbb8da7]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x80ece4
mov ecx, fcn.007c8730
xor eax, eax
mov esi, dword [0xbb8d98]
not ecx
and ecx, 1
add ecx, fcn.007c8730
sete al
mov ecx, eax
not ecx
and ecx, 0x421
lea ecx, [eax + ecx*2 - 0x622c3426]
xor esi, ecx
mov edx, ecx
mov dword [0xbb8d98], esi
shr edx, 0x1f
not esi
mov edi, dword [0xbb8d9c]
or edx, ecx
and cl, 7
imul edx, esi
lea esi, [edx + edx]
xor edi, edx
shr edx, 0x1e
mov dword [0xbb8d9c], edi
or esi, edx
not edi
mov dl, 1
imul edi, esi
shl dl, cl
xor dword [0xbb8da0], edi
or byte [0xbb8da7], dl
mov eax, fcn.007c8730
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.007c8730
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 [0xbb8da7], al
mov esi, fcn.007fc3d0
movzx ecx, byte [0xbb8db3]
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 0x80ee30
mov al, byte [0xbb8db3]
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 [0xbb8db3], dl
jne 0x80ed3d
mov ecx, fcn.007fc3d0
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 0x80eda5
cmp ecx, 1
movzx edx, byte [0xbb8db3]
seta al
not al
add al, 0xb0
and al, 7
movzx eax, al
bt edx, eax
jae 0x80ed85
jmp 0x80ee30
cmp ecx, 1
movzx ecx, byte [0xbb8db3]
seta al
not al
add al, 0xb0
and al, 7
movzx eax, al
bt ecx, eax
jb 0x80ee0a
mov eax, fcn.007fc3d0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbb8da8]
seta cl
xor ecx, 0xb2133507
add ecx, 0x1b0
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb8da8], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbb8dac], edx
mov dl, 1
shl dl, cl
or byte [0xbb8db3], dl
mov eax, fcn.007fc3d0
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 [0xbb8db3], al
mov eax, dword [ebp*4 + 0xb50b60]
jmp 0x80ef72
mov edx, fcn.007c5b00
xor eax, eax
movzx esi, byte [0xbb8dbf]
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 0x80ef6d
mov al, byte [0xbb8dbf]
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 [0xbb8dbf], ah
jne 0x80ee6d
mov ecx, fcn.007c5b00
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 0x80eedd
xor eax, eax
cmp ecx, 3
movzx esi, byte [0xbb8dbf]
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
bt esi, eax
jae 0x80eebb
jmp 0x80ef6d
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb8dbf]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x80ef44
mov ecx, fcn.007c5b00
xor eax, eax
mov esi, dword [0xbb8db4]
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 [0xbb8db4], esi
not esi
imul esi, ecx
and cl, 7
shl dl, cl
xor dword [0xbb8db8], esi
or byte [0xbb8dbf], dl
mov eax, fcn.007c5b00
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 [0xbb8dbf], al
mov eax, 0xbb8db4
pop esi
pop edi
pop ebx
pop ebp
ret