Function at 0x82fdf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov edi, 0x8317d0
mov esi, ecx
xor eax, eax
mov ebp, edx
movzx edx, byte [0xbb471b]
not edi
and edi, 1
mov ecx, edi
add ecx, 0x8317d0
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x82ff4d
mov al, byte [0xbb471b]
mov ebx, edi
xor ecx, ecx
mov ah, 1
add ebx, 0x8317d0
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 [0xbb471b], ah
jne 0x82fe30
mov ecx, 0x8317d0
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov edi, ecx
add edi, 0x8317d0
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 0x82feb3
mov edx, ecx
xor eax, eax
movzx edi, byte [0xbb471b]
add edx, 0x8317d0
sete al
mov edx, eax
not edx
lea eax, [edx + eax*2]
and al, 7
movzx eax, al
bt edi, eax
jae 0x82fe89
jmp 0x82ff4d
xor eax, eax
add ecx, 0x8317d0
movzx edx, byte [0xbb471b]
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x82ff22
mov eax, 0x8317d0
xor ecx, ecx
mov edi, dword [0xbb4710]
not eax
and eax, 1
add eax, 0x8317d0
sete cl
mov eax, ecx
xor eax, 0x405ec65f
lea ecx, [eax + ecx*2 + 0x40]
mov edx, ecx
xor edi, ecx
shr edx, 0x1f
mov dword [0xbb4710], edi
not edi
or edx, ecx
and cl, 7
imul edx, edi
xor dword [0xbb4714], edx
mov dl, 1
shl dl, cl
or byte [0xbb471b], dl
mov eax, 0x8317d0
xor ecx, ecx
not eax
and eax, 1
add eax, 0x8317d0
sete cl
mov eax, ecx
not eax
lea ecx, [eax + ecx*2]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb471b], al
mov edi, fcn.009822ec
xor eax, eax
movzx edx, byte [0xbb4733]
not edi
and edi, 1
mov ecx, edi
add ecx, fcn.009822ec
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x8300be
mov al, byte [0xbb4733]
mov edx, edi
xor ecx, ecx
add edx, fcn.009822ec
sete cl
mov edx, ecx
xor edx, 3
lea ecx, [edx + ecx*2]
mov dl, 1
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb4733], dl
jne 0x82ff81
mov ecx, fcn.009822ec
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov edi, ecx
add edi, fcn.009822ec
sete dl
mov ebx, edx
xor ebx, 3
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x82fffc
mov edx, ecx
xor eax, eax
movzx edi, byte [0xbb4733]
add edx, fcn.009822ec
sete al
mov edx, eax
xor edx, 3
lea eax, [edx + eax*2]
bt edi, eax
jae 0x82ffd6
jmp 0x8300be
xor eax, eax
add ecx, fcn.009822ec
movzx edx, byte [0xbb4733]
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x830095
mov eax, fcn.009822ec
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.009822ec
sete cl
mov eax, ecx
xor eax, 0x3b3097bb
lea ecx, [eax + ecx*2]
mov eax, dword [0xbb4720]
xor eax, ecx
mov dword [0xbb4720], eax
not eax
mov edx, dword [0xbb4724]
imul eax, ecx
and cl, 7
lea edi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb4724], edx
or edi, eax
not edx
mov eax, dword [0xbb4728]
imul edx, edi
lea edi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb4728], eax
or edi, edx
not eax
mov dl, 1
imul eax, edi
shl dl, cl
xor dword [0xbb472c], eax
or byte [0xbb4733], dl
mov eax, fcn.009822ec
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.009822ec
sete cl
mov eax, ecx
xor eax, 3
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb4733], al
mov eax, dword [ebp + 0xc]
mov ecx, 0xbb4710
mov edi, 0xbb4720
test eax, eax
cmove ecx, eax
cmp dword [ebp + 0x38], 0
cmove edi, ecx
test edi, edi
jne 0x8300e2
xor eax, eax
jmp 0x83031b
mov ebx, fcn.007d8f10
xor eax, eax
movzx edx, byte [0xbb4767]
and ebx, 1
inc ebx
mov ecx, ebx
xor ecx, fcn.007d8f10
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x830304
mov al, byte [0xbb4767]
mov edx, ebx
xor ecx, ecx
xor edx, fcn.007d8f10
sete cl
mov edx, ecx
not edx
lea ecx, [ecx + edx*2 + 4]
mov dl, 1
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb4767], dl
jne 0x83011a
mov ecx, fcn.007d8f10
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov ebx, ecx
xor ebx, fcn.007d8f10
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 0x83019f
mov edx, ecx
xor eax, eax
movzx ebx, byte [0xbb4767]
xor edx, fcn.007d8f10
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2 + 4]
and al, 7
movzx eax, al
bt ebx, eax
jae 0x830174
jmp 0x830304
xor eax, eax
xor ecx, fcn.007d8f10
movzx edx, byte [0xbb4767]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x8302d9
mov ecx, fcn.007d8f10
xor eax, eax
and ecx, 1
inc ecx
xor ecx, fcn.007d8f10
sete al
mov ecx, eax
not ecx
and ecx, 0x2b
lea ecx, [eax + ecx*2 - 0x30aa152c]
mov eax, dword [0xbb4740]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb4740], eax
not eax
imul edx, eax
mov eax, dword [0xbb4744]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb4744], eax
or ebx, edx
not eax
mov edx, dword [0xbb4748]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb4748], edx
or ebx, eax
not edx
mov eax, dword [0xbb474c]
imul edx, ebx
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb474c], eax
or ebx, edx
not eax
mov edx, dword [0xbb4750]
imul eax, ebx
mov ebx, eax
shl ebx, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb4750], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb4754]
mov ebx, edx
shl ebx, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbb4754], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb4758]
mov ebx, eax
shl ebx, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbb4758], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb475c]
mov ebx, edx
shl ebx, 7
xor eax, edx
shr edx, 0x18
mov dword [0xbb475c], eax
or edx, ebx
not eax
imul eax, edx
mov dl, 1
xor dword [0xbb4760], eax
shl dl, cl
or byte [0xbb4767], dl
mov eax, fcn.007d8f10
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.007d8f10
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 [0xbb4767], al
push dword [ebp]
push edi
push 0xbb4740
push esi
call fcn.00782570
add esp, 0x10
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret