Function at 0x78fb50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
test ecx, ecx
jne 0x78fcbc
mov edx, 0x830440
xor eax, eax
movzx esi, byte [0xbb76d7]
not edx
and edx, 1
mov ecx, edx
add ecx, 0x830440
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt esi, eax
jb 0x78fcab
mov al, byte [0xbb76d7]
mov esi, edx
xor ecx, ecx
mov ah, 1
add esi, 0x830440
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb76d7], ah
jne 0x78fb90
mov ecx, 0x830440
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov esi, ecx
add esi, 0x830440
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x78fc0e
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbb76d7]
add edx, 0x830440
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
bt esi, eax
jae 0x78fbe7
jmp 0x78fcab
xor eax, eax
add ecx, 0x830440
movzx edx, byte [0xbb76d7]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x78fc81
mov ecx, 0x830440
xor eax, eax
mov esi, dword [0xbb76cc]
not ecx
and ecx, 1
add ecx, 0x830440
sete al
mov ecx, eax
not ecx
and ecx, 0x111
lea ecx, [eax + ecx*2 - 0x250c5396]
mov edx, ecx
xor esi, ecx
shr edx, 0x1f
mov dword [0xbb76cc], esi
not esi
or edx, ecx
and cl, 7
imul edx, esi
xor dword [0xbb76d0], edx
mov dl, 1
shl dl, cl
or byte [0xbb76d7], dl
mov eax, 0x830440
xor ecx, ecx
not eax
and eax, 1
add eax, 0x830440
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb76d7], al
mov ecx, 0xbb76cc
call fcn.007d3420
xor esi, esi
jmp 0x78fe25
cmp dword [ecx + 0x60], 0xa029a697
mov esi, 1
je 0x78fe25
call fcn.00795930
xor esi, esi
test eax, eax
je 0x78fe25
mov edx, fcn.0080fba0
mov eax, fcn.0080fba0
movzx ecx, byte [0xbb76e7]
and edx, 1
xor edx, eax
cmp edx, 0xffffffff
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x78fe1b
mov al, byte [0xbb76e7]
cmp edx, 0xffffffff
mov ah, 1
sete cl
not cl
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb76e7], ah
jne 0x78fd0e
mov ecx, fcn.0080fba0
mov edx, fcn.0080fba0
movzx eax, al
and ecx, 1
xor ecx, edx
cmp ecx, 0xffffffff
sete dl
not dl
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x78fd72
cmp ecx, 0xffffffff
movzx edx, byte [0xbb76e7]
sete al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x78fd54
jmp 0x78fe1b
cmp ecx, 0xffffffff
movzx ecx, byte [0xbb76e7]
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x78fdf4
mov edx, fcn.0080fba0
mov eax, fcn.0080fba0
xor ecx, ecx
and edx, 1
xor edx, eax
mov eax, dword [0xbb76d8]
cmp edx, 0xffffffff
sete cl
xor ecx, 0x4497790b
add ecx, 0x8a0
xor eax, ecx
mov edx, ecx
mov dword [0xbb76d8], eax
shr edx, 0x1f
not eax
mov ebx, dword [0xbb76dc]
or edx, ecx
and cl, 7
imul edx, eax
lea edi, [edx + edx]
xor ebx, edx
shr edx, 0x1e
mov dword [0xbb76dc], ebx
or edi, edx
not ebx
mov dl, 1
imul ebx, edi
shl dl, cl
xor dword [0xbb76e0], ebx
or byte [0xbb76e7], dl
mov ecx, fcn.0080fba0
mov eax, fcn.0080fba0
and ecx, 1
xor ecx, eax
mov al, 0xfe
cmp ecx, 0xffffffff
sete cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb76e7], al
mov ecx, 0xbb76d8
call fcn.007d3420
mov eax, esi
pop esi
pop edi
pop ebx
ret