Function at 0x78c0e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov edx, fcn.0083b030
mov edi, fcn.0083b030
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 0x78c23a
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 0x78c11a
mov ecx, fcn.0083b030
mov edx, fcn.0083b030
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 0x78c18c
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 0x78c16b
jmp 0x78c23a
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 0x78c20f
mov eax, fcn.0083b030
mov edx, fcn.0083b030
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
mov eax, dword [0xbb66f8]
sete cl
xor ecx, 0x5312b43d
add ecx, 0x1084
xor eax, ecx
mov edx, ecx
mov dword [0xbb66f8], eax
shr edx, 0x1f
not eax
mov ebx, dword [0xbb66fc]
or edx, ecx
and cl, 7
imul edx, eax
lea edi, [edx + edx]
xor ebx, edx
shr edx, 0x1e
mov dword [0xbb66fc], ebx
or edx, edi
not ebx
imul ebx, edx
mov dl, 1
xor dword [0xbb6700], ebx
shl dl, cl
or byte [str.__bHU], dl
mov eax, fcn.0083b030
mov ecx, fcn.0083b030
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, 0xbb66f8
call fcn.00777e20
mov ebx, 1
test eax, eax
je 0x78c4ce
mov edx, fcn.0083afb0
movzx ecx, byte [0xbb6713]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x78c35a
mov al, byte [0xbb6713]
cmp edx, 2
mov ah, 1
sete cl
or cl, 2
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb6713], ah
jne 0x78c27e
mov ecx, fcn.0083afb0
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 0x78c2d8
cmp ecx, 2
movzx edx, byte [0xbb6713]
sete al
or al, 2
movzx eax, al
bt edx, eax
jae 0x78c2bc
jmp 0x78c35a
cmp ecx, 2
movzx edx, byte [0xbb6713]
sete al
or al, 2
movzx eax, al
bt edx, eax
jb 0x78c339
mov eax, fcn.0083afb0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
mov eax, dword [0xbb6708]
sete cl
or ecx, 0xd601f8a2
add ecx, 0xeb8
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb6708], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbb670c], edx
mov dl, 1
shl dl, cl
or byte [0xbb6713], dl
mov eax, fcn.0083afb0
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 [0xbb6713], al
mov ecx, esi
mov edx, 0xbb6708
call fcn.00777e20
test eax, eax
je 0x78c4ce
mov edx, fcn.00796b80
xor eax, eax
movzx edi, byte [0xbb671f]
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 0x78c4bb
mov al, byte [0xbb671f]
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 [0xbb671f], ah
jne 0x78c3a4
mov ecx, fcn.00796b80
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 0x78c41f
xor eax, eax
cmp ecx, 3
movzx edi, byte [0xbb671f]
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2 + 4]
and al, 7
movzx eax, al
bt edi, eax
jae 0x78c3f8
jmp 0x78c4bb
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb671f]
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x78c48f
mov eax, fcn.00796b80
xor ecx, ecx
mov edi, dword [0xbb6714]
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 [0xbb6714], edi
not edi
or edx, ecx
and cl, 7
imul edx, edi
xor dword [0xbb6718], edx
mov dl, 1
shl dl, cl
or byte [0xbb671f], dl
mov eax, fcn.00796b80
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 [0xbb671f], al
mov ecx, esi
mov edx, 0xbb6714
call fcn.00777e20
xor ebx, ebx
test eax, eax
sete bl
mov eax, ebx
pop esi
pop edi
pop ebx
ret