Function at 0x7c1190
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0xbcbae0]
mov esi, ecx
mov edi, edx
lea ebx, [esp + 0xf]
xor eax, esp
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
mov ecx, dword [ecx]
push eax
push ebx
call fcn.007a0ae0
add esp, 8
test eax, eax
je 0x7c13e8
cmp eax, 0xc0a
je 0x7c11ce
cmp eax, 7
jne 0x7c11d5
mov dword [esi + 0x18], 1
mov eax, 0x81e7f0
mov edx, 3
movzx ebx, byte [0xbaea23]
sub edx, eax
xor eax, eax
mov ecx, edx
xor ecx, 0x81e7f0
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt ebx, eax
jb 0x7c13d4
mov al, byte [0xbaea23]
mov ebx, edx
xor ecx, ecx
mov ah, 1
xor ebx, 0x81e7f0
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 [0xbaea23], ah
jne 0x7c120b
mov edx, 0x81e7f0
mov ecx, 3
movzx eax, al
sub ecx, edx
xor edx, edx
mov ebx, ecx
xor ebx, 0x81e7f0
sete dl
mov ebx, edx
xor ebx, 3
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7c1288
mov edx, ecx
xor eax, eax
movzx ebx, byte [0xbaea23]
xor edx, 0x81e7f0
sete al
mov edx, eax
xor edx, 3
lea eax, [edx + eax*2]
bt ebx, eax
jae 0x7c1262
jmp 0x7c13d4
xor eax, eax
xor ecx, 0x81e7f0
movzx edx, byte [0xbaea23]
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7c13a8
mov eax, 0x81e7f0
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, 0x81e7f0
sete al
mov ecx, eax
xor ecx, 0xbe3af48b
lea ecx, [ecx + eax*2 + 0x6c8]
mov eax, dword [0xbaea00]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbaea00], eax
not eax
imul edx, eax
mov eax, dword [0xbaea04]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbaea04], eax
or ebx, edx
not eax
mov edx, dword [0xbaea08]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbaea08], edx
or ebx, eax
not edx
mov eax, dword [0xbaea0c]
imul edx, ebx
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbaea0c], eax
or ebx, edx
not eax
mov edx, dword [0xbaea10]
imul eax, ebx
mov ebx, eax
shl ebx, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbaea10], edx
or eax, ebx
not edx
mov ebp, dword [0xbaea14]
imul edx, eax
mov ebx, edx
shl ebx, 5
xor ebp, edx
shr edx, 0x1a
mov dword [0xbaea14], ebp
or edx, ebx
not ebp
imul ebp, edx
mov edx, dword [0xbaea18]
mov ebx, ebp
shl ebx, 6
xor edx, ebp
shr ebp, 0x19
mov dword [0xbaea18], edx
or ebp, ebx
not edx
imul edx, ebp
xor dword [0xbaea1c], edx
mov dl, 1
shl dl, cl
or byte [0xbaea23], dl
mov eax, 0x81e7f0
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, 0x81e7f0
sete al
mov ecx, eax
xor ecx, 3
lea ecx, [ecx + eax*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbaea23], al
push edi
push 0xbaea00
push esi
call fcn.007c0fc0
add esp, 0xc
jmp 0x7c16e0
movzx eax, byte [esp + 0xf]
mov ecx, dword [esp + 8]
cmp al, byte [esp + 0x28]
jne 0x7c1401
cmp ecx, dword [esp + 0x2c]
je 0x7c16e0
mov ebx, fcn.007a3e30
mov ebp, fcn.007a3e30
mov dword [esp], ecx
xor ecx, ecx
mov dword [esp + 4], eax
or ebx, 2
xor ebp, 2
movzx eax, byte [0xbaea6b]
mov edx, ebx
add edx, ebp
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2]
or cl, 4
movzx ecx, cl
bt eax, ecx
jb 0x7c16c0
mov al, byte [0xbaea6b]
mov edx, ebx
xor ecx, ecx
mov ah, 1
add edx, ebp
sete cl
mov edx, ecx
xor edx, 1
lea edx, [ecx + edx*2]
mov cl, 7
or dl, 4
sub cl, dl
shl ah, cl
or ah, al
lock cmpxchg byte [0xbaea6b], ah
jne 0x7c1444
mov ecx, fcn.007a3e30
mov edx, fcn.007a3e30
xor ebx, ebx
mov ah, 7
or ecx, 2
xor edx, 2
mov ebp, ecx
add ebp, edx
sete bl
mov ebp, ebx
xor ebx, 1
lea ebx, [ebp + ebx*2]
or bl, 4
sub ah, bl
movzx ebx, ah
movzx eax, al
bt eax, ebx
jae 0x7c14c7
mov ebx, ecx
xor eax, eax
movzx ebp, byte [0xbaea6b]
add ebx, edx
sete al
mov ebx, eax
xor ebx, 1
lea eax, [eax + ebx*2]
or al, 4
movzx eax, al
bt ebp, eax
jae 0x7c14a0
jmp 0x7c16c0
xor eax, eax
add ecx, edx
movzx edx, byte [0xbaea6b]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2]
or al, 4
movzx eax, al
bt edx, eax
jb 0x7c1691
mov eax, fcn.007a3e30
mov edx, fcn.007a3e30
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
sete cl
mov eax, ecx
not eax
and eax, 0x241
lea ecx, [ecx + eax*2 + 0x5901e51c]
mov eax, dword [str.ey0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [str.ey0], eax
not eax
imul edx, eax
mov eax, dword [0xbaea34]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbaea34], eax
or ebx, edx
not eax
mov edx, dword [0xbaea38]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbaea38], edx
or ebx, eax
not edx
mov eax, dword [0xbaea3c]
imul edx, ebx
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbaea3c], eax
or ebx, edx
not eax
mov edx, dword [0xbaea40]
imul eax, ebx
mov ebx, eax
shl ebx, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbaea40], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbaea44]
mov ebx, edx
shl ebx, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbaea44], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbaea48]
mov ebx, eax
shl ebx, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbaea48], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbaea4c]
mov ebx, edx
shl ebx, 7
xor eax, edx
shr edx, 0x18
mov dword [0xbaea4c], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbaea50]
mov ebx, eax
shl ebx, 8
xor edx, eax
shr eax, 0x17
mov dword [0xbaea50], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbaea54]
mov ebx, edx
shl ebx, 9
xor eax, edx
shr edx, 0x16
mov dword [0xbaea54], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbaea58]
mov ebx, eax
shl ebx, 0xa
xor edx, eax
shr eax, 0x15
mov dword [0xbaea58], edx
or eax, ebx
not edx
mov ebp, dword [0xbaea5c]
imul edx, eax
mov ebx, edx
shl ebx, 0xb
xor ebp, edx
shr edx, 0x14
mov dword [0xbaea5c], ebp
or edx, ebx
not ebp
imul ebp, edx
mov edx, dword [0xbaea60]
mov ebx, ebp
shl ebx, 0xc
xor edx, ebp
shr ebp, 0x13
mov dword [0xbaea60], edx
or ebp, ebx
not edx
imul edx, ebp
xor dword [0xbaea64], edx
mov dl, 1
shl dl, cl
or byte [0xbaea6b], dl
mov eax, fcn.007a3e30
mov ecx, fcn.007a3e30
xor edx, edx
xor ecx, 2
or eax, 2
add eax, ecx
mov cl, 7
sete dl
mov eax, edx
xor eax, 1
lea eax, [edx + eax*2]
mov dl, 0xfe
or al, 4
sub cl, al
rol dl, cl
and byte [0xbaea6b], dl
movzx eax, byte [esp + 0x28]
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x34]
push eax
push edi
push str.ey0
push esi
call fcn.007c0fc0
add esp, 0x1c
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00980459
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret