Function at 0x83ac70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov edi, edx
mov edx, fcn.00832790
mov esi, ecx
xor eax, eax
movzx ebx, byte [0xbbba93]
and edx, 1
inc edx
mov ecx, edx
xor ecx, fcn.00832790
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x83adf1
mov al, byte [0xbbba93]
mov ebx, edx
xor ecx, ecx
mov ah, 1
xor ebx, fcn.00832790
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 [0xbbba93], ah
jne 0x83acb1
mov ecx, fcn.00832790
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov ebx, ecx
xor ebx, fcn.00832790
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 0x83ad39
mov edx, ecx
xor eax, eax
movzx ebx, byte [0xbbba93]
xor edx, fcn.00832790
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 6]
and al, 7
movzx eax, al
bt ebx, eax
jae 0x83ad0d
jmp 0x83adf1
xor eax, eax
xor ecx, fcn.00832790
movzx edx, byte [0xbbba93]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x83adc5
mov eax, fcn.00832790
xor ecx, ecx
mov ebx, dword [0xbbba84]
and eax, 1
inc eax
xor eax, fcn.00832790
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 - 0x7b7c708a]
xor ebx, ecx
mov edx, ecx
mov dword [0xbbba84], ebx
shr edx, 0x1f
not ebx
mov ebp, dword [0xbbba88]
or edx, ecx
and cl, 7
imul edx, ebx
lea ebx, [edx + edx]
xor ebp, edx
shr edx, 0x1e
mov dword [0xbbba88], ebp
or ebx, edx
not ebp
mov dl, 1
imul ebp, ebx
shl dl, cl
xor dword [0xbbba8c], ebp
or byte [0xbbba93], dl
mov eax, fcn.00832790
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.00832790
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 [0xbbba93], al
mov ebp, dword [edi]
push 7
push 0xbbba84
push ebp
call fcn.00783750
add esp, 0xc
test eax, eax
je 0x83ae22
xor ebx, ebx
test byte [edi + 0x25], 0x10
je 0x83b02e
mov ecx, dword [esi]
call fcn.00801170
test eax, eax
je 0x83b02e
mov edx, 0x78f3c0
xor eax, eax
movzx edi, byte [0xbbbac3]
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 0x83b01a
mov al, byte [0xbbbac3]
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 [0xbbbac3], ah
jne 0x83ae57
mov ecx, 0x78f3c0
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 0x83aecf
xor eax, eax
cmp ecx, 3
movzx edi, byte [0xbbbac3]
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2 + 4]
and al, 7
movzx eax, al
bt edi, eax
jae 0x83aea9
jmp 0x83b01a
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbbbac3]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x83afef
mov ecx, 0x78f3c0
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 [0xbbbaa0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbbbaa0], eax
not eax
imul edx, eax
mov eax, dword [0xbbbaa4]
lea edi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbbaa4], eax
or edi, edx
not eax
mov edx, dword [0xbbbaa8]
imul eax, edi
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbbbaa8], edx
or edi, eax
not edx
mov eax, dword [0xbbbaac]
imul edx, edi
lea edi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbbbaac], eax
or edi, edx
not eax
mov edx, dword [0xbbbab0]
imul eax, edi
mov edi, eax
shl edi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbbbab0], edx
or eax, edi
not edx
mov ebx, dword [0xbbbab4]
imul edx, eax
mov edi, edx
shl edi, 5
xor ebx, edx
shr edx, 0x1a
mov dword [0xbbbab4], ebx
or edx, edi
not ebx
imul ebx, edx
mov edx, dword [0xbbbab8]
mov edi, ebx
shl edi, 6
xor edx, ebx
shr ebx, 0x19
mov dword [0xbbbab8], edx
or ebx, edi
not edx
imul edx, ebx
xor dword [0xbbbabc], edx
mov dl, 1
shl dl, cl
or byte [0xbbbac3], dl
mov eax, 0x78f3c0
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 [0xbbbac3], al
push ebp
push 0xbbbaa0
push esi
call fcn.0078de60
add esp, 0xc
mov ebx, 1
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret