Function at 0x7d7a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edi, fcn.00799950
xor eax, eax
mov ebp, edx
movzx edx, byte [0xbb7e6b]
mov esi, ecx
imul edi, edi
and edi, 3
cmp edi, 2
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7d7be3
mov al, byte [0xbb7e6b]
xor ecx, ecx
cmp edi, 2
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 3
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb7e6b], ah
jne 0x7d7ac9
mov ecx, fcn.00799950
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
mov ebx, edx
xor ebx, 3
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d7b36
xor eax, eax
cmp ecx, 2
movzx edi, byte [0xbb7e6b]
sete al
mov edx, eax
xor edx, 3
lea eax, [edx + eax*2]
bt edi, eax
jae 0x7d7b15
jmp 0x7d7be3
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbb7e6b]
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7d7bbb
mov eax, fcn.00799950
xor ecx, ecx
mov edi, dword [0xbb7e5c]
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 0x8bfea863
lea ecx, [eax + ecx*2 + 0xe10]
xor edi, ecx
mov edx, ecx
mov dword [0xbb7e5c], edi
shr edx, 0x1f
not edi
mov ebx, dword [0xbb7e60]
or edx, ecx
and cl, 7
imul edx, edi
lea edi, [edx + edx]
xor ebx, edx
shr edx, 0x1e
mov dword [0xbb7e60], ebx
or edi, edx
not ebx
mov dl, 1
imul ebx, edi
shl dl, cl
xor dword [0xbb7e64], ebx
or byte [0xbb7e6b], dl
mov eax, fcn.00799950
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 3
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb7e6b], al
mov edi, fcn.007a6360
mov eax, fcn.007a6360
movzx ecx, byte [0xbb7e77]
and edi, 1
xor edi, eax
xor eax, eax
cmp edi, 0xffffffff
setne al
bt ecx, eax
jb 0x7d7ce8
mov al, byte [0xbb7e77]
cmp edi, 0xffffffff
mov dl, 1
setne cl
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb7e77], dl
jne 0x7d7c0f
mov ecx, fcn.007a6360
mov edx, fcn.007a6360
movzx eax, al
and ecx, 1
xor ecx, edx
cmp ecx, 0xffffffff
setne dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d7c64
movzx edx, byte [0xbb7e77]
xor eax, eax
cmp ecx, 0xffffffff
setne al
bt edx, eax
jae 0x7d7c4b
jmp 0x7d7ce8
movzx edx, byte [0xbb7e77]
xor eax, eax
cmp ecx, 0xffffffff
setne al
bt edx, eax
jb 0x7d7cc6
mov edx, fcn.007a6360
mov eax, fcn.007a6360
xor ecx, ecx
and edx, 1
xor edx, eax
mov eax, dword [0xbb7e6c]
cmp edx, 0xffffffff
sete cl
xor ecx, 0x6e5b6149
add ecx, 0x900
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb7e6c], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbb7e70], edx
mov dl, 1
shl dl, cl
or byte [0xbb7e77], dl
mov ecx, fcn.007a6360
mov eax, fcn.007a6360
and ecx, 1
xor ecx, eax
mov al, 0xfe
cmp ecx, 0xffffffff
setne cl
xor cl, 7
rol al, cl
and byte [0xbb7e77], al
xor ebx, ebx
cmp ebp, 0xc
mov eax, 0xbb7e5c
mov edi, 0xbb7e6c
mov ecx, esi
mov edx, 0x16
sete byte [esp + 3]
cmove edi, eax
push 0
push 0
push edi
call fcn.008002d0
add esp, 0xc
test eax, eax
jne 0x7d7d3c
mov ecx, esi
call fcn.007f7590
test eax, eax
je 0x7d7d3c
mov cl, byte [esp + 3]
mov edx, 1
mov bl, cl
mov ecx, eax
push ebx
push 1
call fcn.007d10d0
add esp, 0xc
jmp 0x7d7d3f
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret