Function at 0x95e710
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [0xbd33e0]
xor ebx, ebx
xor eax, esp
mov dword [esp + 0x3c], eax
mov dword [esp + 8], 0x40
cmp byte [ecx + 2], 0
jne 0x95eae8
cmp byte [ecx + 4], 1
mov edi, edx
mov esi, ecx
je 0x95e757
lea ebx, [esi + 0x2e0]
mov dword [esp + 4], 0xbccc30
mov dword [esp], 0x40
jmp 0x95e77a
lea ebx, [esp + 0xc]
lea eax, [esp + 8]
push eax
push ebx
push dword [esp + 0x5c]
call dword [esi + 0x1c]
add esp, 0xc
mov eax, dword [esp + 8]
mov dword [esp + 4], 0xbccc50
mov dword [esp], eax
mov edx, fcn.00968a50
xor eax, eax
movzx ebp, byte [0xbccc43]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt ebp, eax
jb 0x95e900
mov al, byte [0xbccc43]
mov ebp, ebx
xor ebx, ebx
cmp edx, 2
mov ah, 1
sete bl
mov ecx, ebx
not ecx
lea ecx, [ebx + ecx*2]
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbccc43], ah
jne 0x95e7b0
mov ecx, fcn.00968a50
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2]
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x95e827
mov ebx, ebp
xor eax, eax
cmp ecx, 2
movzx ebp, byte [0xbccc43]
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2]
and al, 3
movzx eax, al
bt ebp, eax
jae 0x95e802
jmp 0x95e900
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbccc43]
mov ebx, ebp
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt edx, eax
jb 0x95e8d6
mov ecx, fcn.00968a50
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete al
mov ecx, eax
not ecx
and ecx, 0x645
lea ecx, [eax + ecx*2 - 0x43ecf7c8]
mov eax, dword [0xbccc30]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbccc30], eax
not eax
imul edx, eax
mov eax, dword [str.SCv6]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [str.SCv6], eax
or ebx, edx
not eax
mov edx, dword [0xbccc38]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbccc38], edx
or ebx, eax
not edx
mov al, 1
imul edx, ebx
shl al, cl
mov ebx, ebp
xor dword [0xbccc3c], edx
or byte [0xbccc43], al
mov eax, fcn.00968a50
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
not eax
lea ecx, [ecx + eax*2]
mov al, 0xfe
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbccc43], al
mov edx, fcn.0095f5a0
xor eax, eax
movzx ebp, byte [0xbccc6b]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt ebp, eax
jb 0x95eab6
mov al, byte [0xbccc6b]
mov ebp, ebx
xor ecx, ecx
cmp edx, 2
mov ah, 1
sete cl
mov ebx, ecx
not ebx
lea ecx, [ebx + ecx*2]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbccc6b], ah
jne 0x95e936
mov ecx, fcn.0095f5a0
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
mov ebx, edx
not ebx
lea edx, [ebx + edx*2]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x95e9ad
mov ebx, ebp
xor eax, eax
cmp ecx, 2
movzx ebp, byte [0xbccc6b]
sete al
mov edx, eax
not edx
lea eax, [edx + eax*2]
and al, 7
movzx eax, al
bt ebp, eax
jae 0x95e988
jmp 0x95eab6
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbccc6b]
mov ebx, ebp
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x95ea8c
mov eax, fcn.0095f5a0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 0x9550307
lea ecx, [eax + ecx*2 + 0x10b0]
mov eax, dword [0xbccc50]
xor eax, ecx
mov dword [0xbccc50], eax
not eax
mov edx, dword [0xbccc54]
imul eax, ecx
and cl, 7
lea ebx, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbccc54], edx
or ebx, eax
not edx
mov eax, dword [0xbccc58]
imul edx, ebx
lea ebx, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbccc58], eax
or ebx, edx
not eax
mov edx, dword [0xbccc5c]
imul eax, ebx
lea ebx, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbccc5c], edx
or ebx, eax
not edx
mov eax, dword [0xbccc60]
imul edx, ebx
mov ebx, edx
shl ebx, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbccc60], eax
or edx, ebx
not eax
mov ebx, ebp
imul eax, edx
mov dl, 1
xor dword [0xbccc64], eax
shl dl, cl
or byte [0xbccc6b], dl
mov eax, fcn.0095f5a0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
not eax
lea ecx, [eax + ecx*2]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbccc6b], al
lea ebp, [esi + 0x320]
push 0x30
push edi
push dword [esp + 8]
push ebx
push dword [esp + 0x14]
push dword [esi + 0x10]
push ebp
call dword [esi + 0x24]
add esp, 0x1c
mov ebx, eax
test eax, eax
jne 0x95eae8
push 0x400
push ebp
call fcn.00965b40
add esp, 8
xor ebx, ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00989fe9
mov eax, ebx
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret