Function at 0x954be0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [0xbcbae0]
xor ebx, ebx
xor eax, esp
mov dword [esp + 0x3c], eax
mov dword [esp + 8], 0x40
cmp byte [ecx + 2], 0
jne 0x954fb8
cmp byte [ecx + 4], 1
mov edi, edx
mov esi, ecx
je 0x954c27
lea ebx, [esi + 0x2e0]
mov dword [esp + 4], 0xbc5300
mov dword [esp], 0x40
jmp 0x954c4a
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], 0xbc5320
mov dword [esp], eax
mov edx, fcn.0095ef20
xor eax, eax
movzx ebp, byte [0xbc5313]
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 0x954dd0
mov al, byte [0xbc5313]
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 [0xbc5313], ah
jne 0x954c80
mov ecx, fcn.0095ef20
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 0x954cf7
mov ebx, ebp
xor eax, eax
cmp ecx, 2
movzx ebp, byte [0xbc5313]
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2]
and al, 3
movzx eax, al
bt ebp, eax
jae 0x954cd2
jmp 0x954dd0
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbc5313]
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 0x954da6
mov ecx, fcn.0095ef20
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 [0xbc5300]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbc5300], 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 [0xbc5308]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbc5308], edx
or ebx, eax
not edx
mov al, 1
imul edx, ebx
shl al, cl
mov ebx, ebp
xor dword [0xbc530c], edx
or byte [0xbc5313], al
mov eax, fcn.0095ef20
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 [0xbc5313], al
mov edx, fcn.00955a70
xor eax, eax
movzx ebp, byte [0xbc533b]
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 0x954f86
mov al, byte [0xbc533b]
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 [0xbc533b], ah
jne 0x954e06
mov ecx, fcn.00955a70
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 0x954e7d
mov ebx, ebp
xor eax, eax
cmp ecx, 2
movzx ebp, byte [0xbc533b]
sete al
mov edx, eax
not edx
lea eax, [edx + eax*2]
and al, 7
movzx eax, al
bt ebp, eax
jae 0x954e58
jmp 0x954f86
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbc533b]
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 0x954f5c
mov eax, fcn.00955a70
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 [0xbc5320]
xor eax, ecx
mov dword [0xbc5320], eax
not eax
mov edx, dword [0xbc5324]
imul eax, ecx
and cl, 7
lea ebx, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbc5324], edx
or ebx, eax
not edx
mov eax, dword [0xbc5328]
imul edx, ebx
lea ebx, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbc5328], eax
or ebx, edx
not eax
mov edx, dword [0xbc532c]
imul eax, ebx
lea ebx, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbc532c], edx
or ebx, eax
not edx
mov eax, dword [0xbc5330]
imul edx, ebx
mov ebx, edx
shl ebx, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbc5330], eax
or edx, ebx
not eax
mov ebx, ebp
imul eax, edx
mov dl, 1
xor dword [0xbc5334], eax
shl dl, cl
or byte [0xbc533b], dl
mov eax, fcn.00955a70
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 [0xbc533b], 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 0x954fb8
push 0x400
push ebp
call fcn.0095bff0
add esp, 8
xor ebx, ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00980459
mov eax, ebx
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret