Function at 0x95eb00
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x110
mov edi, dword [0xbd33e0]
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.00968bd0
add esp, 4
mov ebp, 0xffff8f00
test eax, eax
je 0x95ee45
mov ebx, eax
push dword [eax + 8]
call fcn.00968f90
add esp, 4
test eax, eax
je 0x95ee45
mov edi, eax
push dword [ebx + 0xc]
call fcn.009685e0
add esp, 4
test eax, eax
je 0x95ee45
mov dword [esp], edi
mov edi, fcn.00965b00
mov edx, dword [esp + 0x128]
mov ebp, dword [esp + 0x124]
imul edi, edi
movzx ecx, byte [0xbccc83]
and edi, 3
cmp edi, 1
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x95ecd6
mov al, byte [0xbccc83]
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 [0xbccc83], ah
jne 0x95eba6
mov ecx, fcn.00965b00
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 0x95ec06
cmp ecx, 1
movzx edi, byte [0xbccc83]
seta al
not al
and al, 3
movzx eax, al
bt edi, eax
jae 0x95ebe8
jmp 0x95ecd6
cmp ecx, 1
movzx ecx, byte [0xbccc83]
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x95ecb3
mov eax, fcn.00965b00
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbccc70]
seta cl
xor ecx, 0xf6c81a1b
add ecx, 0xac8
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbccc70], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbccc74]
lea ebp, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbccc74], eax
or ebp, edx
not eax
mov edx, dword [0xbccc78]
imul eax, ebp
mov ebp, dword [esp + 0x124]
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbccc78], edx
or edi, eax
not edx
mov al, 1
imul edx, edi
shl al, cl
xor dword [0xbccc7c], edx
mov edx, dword [esp + 0x128]
or byte [0xbccc83], al
mov eax, fcn.00965b00
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 [0xbccc83], al
lea edi, [esp + 0xc]
push 0x100
push edi
push 0x40
push dword [esp + 0x138]
push 0xbccc70
push 0x30
push ebp
call edx
add esp, 0x1c
mov edx, dword [esp]
mov ebp, eax
test eax, eax
jne 0x95ee45
mov eax, dword [edx + 4]
mov ebp, 0xffff9400
cmp eax, 0xa
ja 0x95ee45
mov ecx, 0x540
bt ecx, eax
jae 0x95ee45
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 0x95eda5
mov ebp, 0xffff9400
test eax, eax
jne 0x95ee33
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.009876a0
add esp, 0xc
add edi, ebx
lea eax, [esi + 0x24]
jmp 0x95edca
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.009876a0
add esp, 0xc
add edi, ebx
lea eax, [esi + 0x14]
push ebx
push edi
push eax
call fcn.009876a0
add esp, 0xc
lea edi, [esi + 0x34]
push dword [esp]
push edi
call fcn.00969050
add esp, 8
mov ebp, eax
test eax, eax
jne 0x95ee33
add esi, 0x6c
push dword [esp]
push esi
call fcn.00969050
add esp, 8
mov ebp, eax
test eax, eax
jne 0x95ee33
push 1
mov eax, dword [esp + 4]
push dword [eax + 8]
push dword [esp + 0x10]
push edi
call fcn.00969090
add esp, 0x10
mov ebp, eax
test eax, eax
jne 0x95ee33
push 0
mov eax, dword [esp + 4]
push dword [eax + 8]
push dword [esp + 0xc]
push esi
call fcn.00969090
add esp, 0x10
mov ebp, eax
lea eax, [esp + 0xc]
push 0x100
push eax
call fcn.00965b40
add esp, 8
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00989fe9
mov eax, ebp
add esp, 0x110
pop esi
pop edi
pop ebx
pop ebp
ret