Function at 0x7951c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edi, fcn.00553ca0
mov esi, ecx
xor eax, eax
mov ebp, edx
movzx edx, byte [0xbac35b]
and edi, 1
inc edi
mov ecx, edi
xor ecx, fcn.00553ca0
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x79533c
mov al, byte [0xbac35b]
mov ebx, edi
xor ecx, ecx
mov ah, 1
xor ebx, fcn.00553ca0
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 [0xbac35b], ah
jne 0x795202
mov ecx, fcn.00553ca0
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov edi, ecx
xor edi, fcn.00553ca0
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 0x79528a
mov edx, ecx
xor eax, eax
movzx edi, byte [0xbac35b]
xor edx, fcn.00553ca0
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 6]
and al, 7
movzx eax, al
bt edi, eax
jae 0x79525e
jmp 0x79533c
xor eax, eax
xor ecx, fcn.00553ca0
movzx edx, byte [0xbac35b]
sete al
mov ecx, eax
not ecx
and ecx, 0x111
lea ebx, [eax + ecx*2 - 0x705adb92]
mov eax, ebx
and al, 7
movzx eax, al
bt edx, eax
jb 0x795310
mov edi, 0xbac300
xor eax, eax
mov dword [esp], ebp
mov edx, dword [edi]
mov ecx, eax
mov ebp, ebx
inc eax
shl ebp, cl
xor cl, 0x1f
xor edx, ebx
shr ebx, cl
mov dword [edi], edx
or ebx, ebp
not edx
add edi, 4
imul ebx, edx
cmp eax, 0x16
jne 0x7952c3
mov eax, fcn.00553ca0
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.00553ca0
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 + 6]
mov al, 1
and cl, 7
shl al, cl
or byte [0xbac35b], al
mov ebp, dword [esp]
mov eax, fcn.00553ca0
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.00553ca0
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 [0xbac35b], al
mov eax, fcn.007e58d0
mov ebx, 3
movzx edx, byte [0xbad1ff]
mov edi, dword [esp + 0x18]
sub ebx, eax
xor eax, eax
mov ecx, ebx
xor ecx, fcn.007e58d0
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x79553e
mov al, byte [0xbad1ff]
mov edx, ebx
xor ecx, ecx
xor edx, fcn.007e58d0
sete cl
mov edx, ecx
xor edx, 5
lea ecx, [edx + ecx*2 + 4]
mov dl, 1
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbad1ff], dl
jne 0x79537c
mov edx, fcn.007e58d0
mov ecx, 3
movzx eax, al
sub ecx, edx
xor edx, edx
mov ebx, ecx
xor ebx, fcn.007e58d0
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 0x795407
mov edx, ecx
xor eax, eax
movzx ebx, byte [0xbad1ff]
xor edx, fcn.007e58d0
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2 + 4]
and al, 7
movzx eax, al
bt ebx, eax
jae 0x7953db
jmp 0x79553e
xor eax, eax
xor ecx, fcn.007e58d0
movzx edx, byte [0xbad1ff]
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x79550e
mov eax, fcn.007e58d0
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007e58d0
sete al
mov ecx, eax
xor ecx, 0x9682330d
lea ecx, [ecx + eax*2 + 0x1064]
mov eax, dword [0xbad1e0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbad1e0], eax
not eax
imul edx, eax
mov eax, dword [0xbad1e4]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbad1e4], eax
or ebx, edx
not eax
mov edx, dword [0xbad1e8]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbad1e8], edx
or ebx, eax
not edx
mov eax, dword [0xbad1ec]
imul edx, ebx
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbad1ec], eax
or ebx, edx
not eax
mov edx, dword [0xbad1f0]
imul eax, ebx
mov ebx, eax
shl ebx, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbad1f0], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbad1f4]
mov ebx, edx
shl ebx, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbad1f4], eax
or edx, ebx
not eax
imul eax, edx
mov dl, 1
xor dword [0xbad1f8], eax
shl dl, cl
or byte [0xbad1ff], dl
mov eax, fcn.007e58d0
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007e58d0
sete al
mov ecx, eax
xor ecx, 5
lea ecx, [ecx + eax*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbad1ff], al
push 0xbac314
push ebp
push edi
push 0xbad1e0
push esi
call fcn.00777b70
add esp, 0x14
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret