Function at 0x954fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x110
mov edi, dword [0xbcbae0]
mov eax, dword [esp + 0x130]
mov esi, ecx
xor edi, esp
mov dword [esp + 0x10c], edi
mov dword [esi + 0xa4], eax
push edx
call fcn.0095f0a0
add esp, 4
mov ebp, 0xffff8f00
test eax, eax
je 0x955315
mov ebx, eax
push dword [eax + 8]
call fcn.0095f460
add esp, 4
test eax, eax
je 0x955315
mov edi, eax
push dword [ebx + 0xc]
call fcn.0095ea90
add esp, 4
test eax, eax
je 0x955315
mov dword [esp], edi
mov edi, fcn.0095bfb0
mov edx, dword [esp + 0x128]
mov ebp, dword [esp + 0x124]
imul edi, edi
movzx ecx, byte [0xbc5353]
and edi, 3
cmp edi, 1
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x9551a6
mov al, byte [0xbc5353]
cmp edi, 1
mov ah, 1
seta cl
not cl
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbc5353], ah
jne 0x955076
mov ecx, fcn.0095bfb0
movzx edi, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta ah
not ah
and ah, 3
xor ah, 7
movzx eax, ah
bt edi, eax
jae 0x9550d6
cmp ecx, 1
movzx edi, byte [0xbc5353]
seta al
not al
and al, 3
movzx eax, al
bt edi, eax
jae 0x9550b8
jmp 0x9551a6
cmp ecx, 1
movzx ecx, byte [0xbc5353]
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x955183
mov eax, fcn.0095bfb0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbc5340]
seta cl
xor ecx, 0xf6c81a1b
add ecx, 0xac8
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbc5340], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbc5344]
lea ebp, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbc5344], eax
or ebp, edx
not eax
mov edx, dword [0xbc5348]
imul eax, ebp
mov ebp, dword [esp + 0x124]
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbc5348], edx
or edi, eax
not edx
mov al, 1
imul edx, edi
shl al, cl
xor dword [0xbc534c], edx
mov edx, dword [esp + 0x128]
or byte [0xbc5353], al
mov eax, fcn.0095bfb0
imul eax, eax
and eax, 3
cmp eax, 1
mov al, 0xfe
seta cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbc5353], al
lea edi, [esp + 0xc]
push 0x100
push edi
push 0x40
push dword [esp + 0x138]
push 0xbc5340
push 0x30
push ebp
call edx
add esp, 0x1c
mov edx, dword [esp]
mov ebp, eax
test eax, eax
jne 0x955315
mov eax, dword [edx + 4]
mov ebp, 0xffff9400
cmp eax, 0xa
ja 0x955315
mov ecx, 0x540
bt ecx, eax
jae 0x955315
mov dword [esp + 8], edi
mov edi, dword [edx + 8]
mov dword [esi + 0xc], 0
xor ecx, ecx
mov ebp, edx
mov eax, dword [esp + 0x134]
shr edi, 3
test byte [ebx + 0x24], 2
sete cl
lea edx, [ecx*8 + 8]
lea ecx, [ecx*8 + 0x14]
mov dword [esi + 0x10], edx
mov dword [esi + 4], 0xc
xor edx, edx
cmp dword [ebp + 4], 0xa
sete dl
lea ebx, [edx*8 + 4]
sub ecx, ebx
cmp eax, 1
mov dword [esi + 8], ebx
mov dword [esi], ecx
je 0x955275
mov ebp, 0xffff9400
test eax, eax
jne 0x955303
lea eax, [esp + edi + 0xc]
mov dword [esp + 4], eax
add edi, eax
lea eax, [esi + 0x14]
push ebx
push edi
push eax
call fcn.0097cbc0
add esp, 0xc
add edi, ebx
lea eax, [esi + 0x24]
jmp 0x95529a
lea eax, [esp + 0xc]
mov dword [esp + 4], eax
lea eax, [esp + edi + 0xc]
mov dword [esp + 8], eax
add edi, eax
lea eax, [esi + 0x24]
push ebx
push edi
push eax
call fcn.0097cbc0
add esp, 0xc
add edi, ebx
lea eax, [esi + 0x14]
push ebx
push edi
push eax
call fcn.0097cbc0
add esp, 0xc
lea edi, [esi + 0x34]
push dword [esp]
push edi
call fcn.0095f520
add esp, 8
mov ebp, eax
test eax, eax
jne 0x955303
add esi, 0x6c
push dword [esp]
push esi
call fcn.0095f520
add esp, 8
mov ebp, eax
test eax, eax
jne 0x955303
push 1
mov eax, dword [esp + 4]
push dword [eax + 8]
push dword [esp + 0x10]
push edi
call fcn.0095f560
add esp, 0x10
mov ebp, eax
test eax, eax
jne 0x955303
push 0
mov eax, dword [esp + 4]
push dword [eax + 8]
push dword [esp + 0xc]
push esi
call fcn.0095f560
add esp, 0x10
mov ebp, eax
lea eax, [esp + 0xc]
push 0x100
push eax
call fcn.0095bff0
add esp, 8
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00980459
mov eax, ebp
add esp, 0x110
pop esi
pop edi
pop ebx
pop ebp
ret