Function at 0x82f820
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, edx
mov eax, fcn.007967c0
mov edx, 3
mov ebp, ecx
movzx ecx, byte [0xbb4183]
sub edx, eax
mov eax, edx
xor eax, fcn.007967c0
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x82f98d
mov al, byte [0xbb4183]
mov ecx, edx
mov ah, 1
xor ecx, fcn.007967c0
sete cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb4183], ah
jne 0x82f85b
mov edx, fcn.007967c0
mov ecx, 3
movzx eax, al
sub ecx, edx
mov edx, ecx
xor edx, fcn.007967c0
sete dl
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x82f8c4
mov eax, ecx
movzx edx, byte [0xbb4183]
xor eax, fcn.007967c0
sete al
or al, 4
movzx eax, al
bt edx, eax
jae 0x82f8a4
jmp 0x82f98d
xor ecx, fcn.007967c0
movzx ecx, byte [0xbb4183]
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x82f968
mov eax, fcn.007967c0
mov edx, 3
xor ecx, ecx
sub edx, eax
mov eax, dword [0xbb4170]
xor edx, fcn.007967c0
sete cl
or ecx, 0x87631360
add ecx, 0x1104
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb4170], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb4174]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb4174], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb4178]
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb4178], edx
or eax, ebx
not edx
imul edx, eax
xor dword [0xbb417c], edx
mov dl, 1
shl dl, cl
or byte [0xbb4183], dl
mov eax, fcn.007967c0
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, fcn.007967c0
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb4183], al
mov edx, fcn.0079b650
xor eax, eax
mov ebx, dword [esp + 0x1c]
not edx
and edx, 1
mov ecx, edx
add ecx, fcn.0079b650
movzx ecx, byte [0xbb4233]
sete al
bt ecx, eax
jb 0x82fabc
mov al, byte [0xbb4233]
mov ecx, edx
mov ah, 1
add ecx, fcn.0079b650
sete cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb4233], ah
jne 0x82f9bd
mov ecx, fcn.0079b650
movzx eax, al
not ecx
and ecx, 1
mov edx, ecx
add edx, fcn.0079b650
sete dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x82fa1c
mov edx, ecx
xor eax, eax
add edx, fcn.0079b650
movzx edx, byte [0xbb4233]
sete al
bt edx, eax
jae 0x82f9fe
jmp 0x82fabc
xor edx, edx
add ecx, fcn.0079b650
movzx ecx, byte [0xbb4233]
sete dl
or edx, 0xb8776b40
add edx, 0x158
mov eax, edx
and al, 7
movzx eax, al
bt ecx, eax
jb 0x82fa9d
mov dword [esp + 4], ebp
mov ebp, 0xbb4190
xor eax, eax
mov dword [esp], edi
mov esi, dword [ebp]
mov ecx, eax
mov edi, edx
inc eax
shl edi, cl
and cl, 0x1f
xor cl, 0x1f
xor esi, edx
shr edx, cl
mov dword [ebp], esi
or edx, edi
not esi
add ebp, 4
imul edx, esi
cmp eax, 0x28
jne 0x82fa54
mov eax, fcn.0079b650
not eax
and eax, 1
add eax, fcn.0079b650
mov al, 1
sete cl
shl al, cl
or byte [0xbb4233], al
mov ebp, dword [esp + 4]
mov edi, dword [esp]
mov eax, fcn.0079b650
not eax
and eax, 1
add eax, fcn.0079b650
mov al, 0xfe
sete cl
xor cl, 7
rol al, cl
and byte [0xbb4233], al
push ebx
push edi
push 0xbb4170
push edi
push 0xbb4190
push ebp
call fcn.007f6930
add esp, 0x18
test ebx, ebx
jne 0x82fde5
mov eax, fcn.007a0ae0
mov edx, 3
movzx esi, byte [0xbb4253]
sub edx, eax
xor eax, eax
mov ecx, edx
xor ecx, fcn.007a0ae0
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt esi, eax
jb 0x82fc77
mov al, byte [0xbb4253]
mov esi, edx
xor ecx, ecx
mov ah, 1
xor esi, fcn.007a0ae0
sete cl
mov ebx, ecx
not ebx
lea ecx, [ebx + ecx*2]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb4253], ah
jne 0x82fb14
mov edx, fcn.007a0ae0
mov ecx, 3
movzx eax, al
sub ecx, edx
xor edx, edx
mov esi, ecx
xor esi, fcn.007a0ae0
sete dl
mov ebx, edx
not ebx
lea edx, [ebx + edx*2]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x82fb99
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbb4253]
xor edx, fcn.007a0ae0
sete al
mov edx, eax
not edx
lea eax, [edx + eax*2]
and al, 7
movzx eax, al
bt esi, eax
jae 0x82fb6f
jmp 0x82fc77
xor eax, eax
xor ecx, fcn.007a0ae0
movzx edx, byte [0xbb4253]
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x82fc49
mov eax, fcn.007a0ae0
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007a0ae0
sete al
mov ecx, eax
xor ecx, 0xb467c2f7
lea ecx, [ecx + eax*2 + 0x1210]
mov eax, dword [0xbb4240]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb4240], eax
not eax
imul edx, eax
mov eax, dword [0xbb4244]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb4244], eax
or esi, edx
not eax
mov edx, dword [0xbb4248]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb4248], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
shl al, cl
xor dword [0xbb424c], edx
or byte [0xbb4253], al
mov eax, fcn.007a0ae0
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007a0ae0
sete al
mov ecx, eax
not ecx
lea ecx, [ecx + eax*2]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb4253], al
mov edx, fcn.0079d920
xor eax, eax
movzx esi, byte [0xbb42ff]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt esi, eax
jb 0x82fdcf
mov al, byte [0xbb42ff]
xor ecx, ecx
cmp edx, 3
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ebx + ecx*2]
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb42ff], ah
jne 0x82fcac
mov ecx, fcn.0079d920
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, [ebx + edx*2]
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x82fd24
xor eax, eax
cmp ecx, 3
movzx esi, byte [0xbb42ff]
sete al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
or al, 4
movzx eax, al
bt esi, eax
jae 0x82fcfe
jmp 0x82fdcf
xor eax, eax
cmp ecx, 3
movzx esi, byte [0xbb42ff]
sete al
mov ecx, eax
xor ecx, 0x2fed5f19
lea edx, [ecx + eax*2 + 4]
mov eax, edx
and al, 7
movzx eax, al
bt esi, eax
jb 0x82fda4
mov ebx, 0xbb4260
xor eax, eax
mov dword [esp], edi
mov esi, dword [ebx]
mov ecx, eax
mov edi, edx
inc eax
shl edi, cl
and cl, 0x1f
xor cl, 0x1f
xor esi, edx
shr edx, cl
mov dword [ebx], esi
or edx, edi
not esi
add ebx, 4
imul edx, esi
cmp eax, 0x27
jne 0x82fd55
mov eax, fcn.0079d920
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [eax + ecx*2]
mov al, 1
or cl, 4
shl al, cl
or byte [0xbb42ff], al
mov edi, dword [esp]
mov eax, fcn.0079d920
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [eax + ecx*2]
mov al, 0xfe
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb42ff], al
push edi
push 0xbb4240
push 0xbb4260
push ebp
call fcn.007f6930
add esp, 0x18
jmp 0x82fde8
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret