Function at 0x82f410
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov edi, edx
mov edx, fcn.00826f30
mov esi, ecx
xor eax, eax
movzx ebx, byte [0xbb4133]
and edx, 1
inc edx
mov ecx, edx
xor ecx, fcn.00826f30
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x82f591
mov al, byte [0xbb4133]
mov ebx, edx
xor ecx, ecx
mov ah, 1
xor ebx, fcn.00826f30
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 6]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb4133], ah
jne 0x82f451
mov ecx, fcn.00826f30
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov ebx, ecx
xor ebx, fcn.00826f30
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 6]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x82f4d9
mov edx, ecx
xor eax, eax
movzx ebx, byte [0xbb4133]
xor edx, fcn.00826f30
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 6]
and al, 7
movzx eax, al
bt ebx, eax
jae 0x82f4ad
jmp 0x82f591
xor eax, eax
xor ecx, fcn.00826f30
movzx edx, byte [0xbb4133]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x82f565
mov eax, fcn.00826f30
xor ecx, ecx
mov ebx, dword [0xbb4124]
and eax, 1
inc eax
xor eax, fcn.00826f30
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 - 0x7b7c708a]
xor ebx, ecx
mov edx, ecx
mov dword [0xbb4124], ebx
shr edx, 0x1f
not ebx
mov ebp, dword [0xbb4128]
or edx, ecx
and cl, 7
imul edx, ebx
lea ebx, [edx + edx]
xor ebp, edx
shr edx, 0x1e
mov dword [0xbb4128], ebp
or ebx, edx
not ebp
mov dl, 1
imul ebp, ebx
shl dl, cl
xor dword [0xbb412c], ebp
or byte [0xbb4133], dl
mov eax, fcn.00826f30
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.00826f30
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb4133], al
mov ebp, dword [edi]
push 7
push 0xbb4124
push ebp
call fcn.00777e50
add esp, 0xc
test eax, eax
je 0x82f5c2
xor ebx, ebx
test byte [edi + 0x25], 0x10
je 0x82f7ce
mov ecx, dword [esi]
call fcn.007f5910
test eax, eax
je 0x82f7ce
mov edx, 0x783ad0
xor eax, eax
movzx edi, byte [0xbb4163]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edi, eax
jb 0x82f7ba
mov al, byte [0xbb4163]
xor ecx, ecx
cmp edx, 3
mov ah, 1
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 [0xbb4163], ah
jne 0x82f5f7
mov ecx, 0x783ad0
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
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 0x82f66f
xor eax, eax
cmp ecx, 3
movzx edi, byte [0xbb4163]
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2 + 4]
and al, 7
movzx eax, al
bt edi, eax
jae 0x82f649
jmp 0x82f7ba
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb4163]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x82f78f
mov ecx, 0x783ad0
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete al
mov ecx, eax
not ecx
and ecx, 0x113
lea ecx, [eax + ecx*2 - 0x6841331c]
mov eax, dword [0xbb4140]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb4140], eax
not eax
imul edx, eax
mov eax, dword [0xbb4144]
lea edi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb4144], eax
or edi, edx
not eax
mov edx, dword [0xbb4148]
imul eax, edi
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb4148], edx
or edi, eax
not edx
mov eax, dword [0xbb414c]
imul edx, edi
lea edi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb414c], eax
or edi, edx
not eax
mov edx, dword [0xbb4150]
imul eax, edi
mov edi, eax
shl edi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb4150], edx
or eax, edi
not edx
mov ebx, dword [0xbb4154]
imul edx, eax
mov edi, edx
shl edi, 5
xor ebx, edx
shr edx, 0x1a
mov dword [0xbb4154], ebx
or edx, edi
not ebx
imul ebx, edx
mov edx, dword [0xbb4158]
mov edi, ebx
shl edi, 6
xor edx, ebx
shr ebx, 0x19
mov dword [0xbb4158], edx
or ebx, edi
not edx
imul edx, ebx
xor dword [0xbb415c], edx
mov dl, 1
shl dl, cl
or byte [0xbb4163], dl
mov eax, 0x783ad0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
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 [0xbb4163], al
push ebp
push 0xbb4140
push esi
call fcn.00782570
add esp, 0xc
mov ebx, 1
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret