Function at 0x7979e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov edx, fcn.008468a0
mov edi, fcn.008468a0
mov esi, ecx
movzx ecx, byte [str.__bHU]
or edx, 2
xor edi, 2
mov eax, edx
add eax, edi
sete al
xor al, 5
add al, 0x84
and al, 7
movzx eax, al
bt ecx, eax
jb 0x797b3a
mov al, byte [str.__bHU]
mov ecx, edx
mov ah, 1
add ecx, edi
sete cl
xor cl, 5
add cl, 0x84
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [str.__bHU], ah
jne 0x797a1a
mov ecx, fcn.008468a0
mov edx, fcn.008468a0
or ecx, 2
xor edx, 2
mov edi, ecx
add edi, edx
sete ah
xor ah, 5
add ah, 0x84
and ah, 7
xor ah, 7
movzx edi, ah
movzx eax, al
bt eax, edi
jae 0x797a8c
mov eax, ecx
movzx edi, byte [str.__bHU]
add eax, edx
sete al
xor al, 5
add al, 0x84
and al, 7
movzx eax, al
bt edi, eax
jae 0x797a6b
jmp 0x797b3a
add ecx, edx
movzx ecx, byte [str.__bHU]
sete al
xor al, 5
add al, 0x84
and al, 7
movzx eax, al
bt ecx, eax
jb 0x797b0f
mov eax, fcn.008468a0
mov edx, fcn.008468a0
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
mov eax, dword [0xbbe058]
sete cl
xor ecx, 0x5312b43d
add ecx, 0x1084
xor eax, ecx
mov edx, ecx
mov dword [0xbbe058], eax
shr edx, 0x1f
not eax
mov ebx, dword [0xbbe05c]
or edx, ecx
and cl, 7
imul edx, eax
lea edi, [edx + edx]
xor ebx, edx
shr edx, 0x1e
mov dword [0xbbe05c], ebx
or edx, edi
not ebx
imul ebx, edx
mov dl, 1
xor dword [0xbbe060], ebx
shl dl, cl
or byte [str.__bHU], dl
mov eax, fcn.008468a0
mov ecx, fcn.008468a0
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
sete cl
xor cl, 5
add cl, 0x84
and cl, 7
xor cl, 7
rol al, cl
and byte [str.__bHU], al
mov ecx, esi
mov edx, 0xbbe058
call fcn.00783720
mov ebx, 1
test eax, eax
je 0x797dce
mov edx, fcn.00846820
movzx ecx, byte [0xbbe073]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x797c5a
mov al, byte [0xbbe073]
cmp edx, 2
mov ah, 1
sete cl
or cl, 2
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbe073], ah
jne 0x797b7e
mov ecx, fcn.00846820
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
or dl, 2
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x797bd8
cmp ecx, 2
movzx edx, byte [0xbbe073]
sete al
or al, 2
movzx eax, al
bt edx, eax
jae 0x797bbc
jmp 0x797c5a
cmp ecx, 2
movzx edx, byte [0xbbe073]
sete al
or al, 2
movzx eax, al
bt edx, eax
jb 0x797c39
mov eax, fcn.00846820
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
mov eax, dword [0xbbe068]
sete cl
or ecx, 0xd601f8a2
add ecx, 0xeb8
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbbe068], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbbe06c], edx
mov dl, 1
shl dl, cl
or byte [0xbbe073], dl
mov eax, fcn.00846820
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 0xfe
sete cl
or cl, 2
xor cl, 7
rol al, cl
and byte [0xbbe073], al
mov ecx, esi
mov edx, 0xbbe068
call fcn.00783720
test eax, eax
je 0x797dce
mov edx, fcn.007a2490
xor eax, eax
movzx edi, byte [0xbbe07f]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt edi, eax
jb 0x797dbb
mov al, byte [0xbbe07f]
xor ecx, ecx
cmp edx, 3
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 5
lea ecx, [ebx + ecx*2 + 4]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbe07f], ah
jne 0x797ca4
mov ecx, fcn.007a2490
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
mov ebx, edx
xor ebx, 5
lea edx, [ebx + edx*2 + 4]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x797d1f
xor eax, eax
cmp ecx, 3
movzx edi, byte [0xbbe07f]
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2 + 4]
and al, 7
movzx eax, al
bt edi, eax
jae 0x797cf8
jmp 0x797dbb
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbbe07f]
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x797d8f
mov eax, fcn.007a2490
xor ecx, ecx
mov edi, dword [0xbbe074]
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 0xd2aacd95
lea ecx, [eax + ecx*2 + 0x444]
mov edx, ecx
xor edi, ecx
shr edx, 0x1f
mov dword [0xbbe074], edi
not edi
or edx, ecx
and cl, 7
imul edx, edi
xor dword [0xbbe078], edx
mov dl, 1
shl dl, cl
or byte [0xbbe07f], dl
mov eax, fcn.007a2490
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 5
lea ecx, [eax + ecx*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbbe07f], al
mov ecx, esi
mov edx, 0xbbe074
call fcn.00783720
xor ebx, ebx
test eax, eax
sete bl
mov eax, ebx
pop esi
pop edi
pop ebx
ret