Function at 0x79d3f0
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
je 0x79d6af
push ebp
push ebx
push edi
push esi
mov edi, fcn.007fd060
xor eax, eax
mov esi, ecx
mov ebp, edx
movzx edx, byte [0xbb4827]
imul edi, edi
and edi, 3
cmp edi, 3
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x79d684
mov al, byte [0xbb4827]
xor ecx, ecx
cmp edi, 3
mov ah, 1
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 [0xbb4827], ah
jne 0x79d436
mov ecx, fcn.007fd060
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, [edx + ebx*2 + 6]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x79d4b1
xor eax, eax
cmp ecx, 3
movzx edi, byte [0xbb4827]
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 6]
and al, 7
movzx eax, al
bt edi, eax
jae 0x79d48a
jmp 0x79d684
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb4827]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x79d658
mov eax, fcn.007fd060
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 - 0x7e1d9202]
mov eax, dword [0xbb47f0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb47f0], eax
not eax
imul edx, eax
mov eax, dword [0xbb47f4]
lea edi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb47f4], eax
or edi, edx
not eax
mov edx, dword [0xbb47f8]
imul eax, edi
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb47f8], edx
or edi, eax
not edx
mov eax, dword [0xbb47fc]
imul edx, edi
lea edi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb47fc], eax
or edi, edx
not eax
mov edx, dword [0xbb4800]
imul eax, edi
mov edi, eax
shl edi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb4800], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbb4804]
mov edi, edx
shl edi, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbb4804], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbb4808]
mov edi, eax
shl edi, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbb4808], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbb480c]
mov edi, edx
shl edi, 7
xor eax, edx
shr edx, 0x18
mov dword [0xbb480c], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbb4810]
mov edi, eax
shl edi, 8
xor edx, eax
shr eax, 0x17
mov dword [0xbb4810], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbb4814]
mov edi, edx
shl edi, 9
xor eax, edx
shr edx, 0x16
mov dword [0xbb4814], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbb4818]
mov edi, eax
shl edi, 0xa
xor edx, eax
shr eax, 0x15
mov dword [0xbb4818], edx
or eax, edi
not edx
mov ebx, dword [0xbb481c]
imul edx, eax
mov edi, edx
shl edi, 0xb
xor ebx, edx
shr edx, 0x14
mov dword [0xbb481c], ebx
or edx, edi
not ebx
imul ebx, edx
mov dl, 1
xor dword [0xbb4820], ebx
shl dl, cl
or byte [0xbb4827], dl
mov eax, fcn.007fd060
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
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 [0xbb4827], al
lea eax, [esi + 1]
imul eax, esi
imul eax, dword [0xbb47e8]
mov ecx, eax
shr ecx, 0x1f
add ecx, eax
sar ecx, 1
push ebp
push ecx
push 0xbb47f0
push 0x1b
call fcn.00783470
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret