Function at 0x959310
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0xbcbae0]
mov edi, 0xffffd800
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, 0xdf
mov ebx, dword [ecx + 8]
mov dword [esp + 4], ebx
and eax, dword [ecx]
cmp eax, 0x80
jne 0x9595b1
add ebx, dword [ecx + 4]
mov esi, edx
lea eax, [esp + 4]
lea ecx, [esp + 8]
push 6
push ecx
push ebx
push eax
call fcn.0096ce00
add esp, 0x10
test eax, eax
je 0x95936b
mov edi, eax
add edi, 0xffffdb00
jmp 0x9595b1
cmp dword [esp + 8], 8
mov edi, 0xffffdf80
jne 0x9595b1
mov eax, dword [esp + 4]
mov edx, 0x96dec0
and edx, 1
inc edx
mov ecx, edx
mov dword [esp], eax
xor eax, eax
xor ecx, 0x96dec0
movzx ecx, byte [0xbc8877]
sete al
bt ecx, eax
jb 0x9594a3
mov al, byte [0xbc8877]
mov ecx, edx
mov ah, 1
xor ecx, 0x96dec0
sete cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbc8877], ah
jne 0x9593ad
mov ecx, 0x96dec0
movzx eax, al
and ecx, 1
inc ecx
mov edx, ecx
xor edx, 0x96dec0
sete dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x95940b
mov edx, ecx
xor eax, eax
xor edx, 0x96dec0
movzx edx, byte [0xbc8877]
sete al
bt edx, eax
jae 0x9593ed
jmp 0x9594a3
xor eax, eax
xor ecx, 0x96dec0
movzx ecx, byte [0xbc8877]
sete al
bt ecx, eax
jb 0x959485
mov eax, 0x96dec0
xor ecx, ecx
and eax, 1
inc eax
xor eax, 0x96dec0
mov eax, dword [0xbc8868]
sete cl
or ecx, 0xae8b9b10
add ecx, 0x888
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbc8868], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbc886c]
lea ebp, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbc886c], eax
or ebp, edx
not eax
mov dl, 1
imul eax, ebp
shl dl, cl
xor dword [0xbc8870], eax
or byte [0xbc8877], dl
mov eax, 0x96dec0
and eax, 1
inc eax
xor eax, 0x96dec0
mov al, 0xfe
sete cl
xor cl, 7
rol al, cl
and byte [0xbc8877], al
push 8
mov ebp, dword [esp + 4]
push ebp
push 0xbc8868
call fcn.0097f460
add esp, 0xc
test eax, eax
jne 0x9595b1
mov dword [esi], 6
mov dword [esi + 4], 8
mov dword [esi + 8], ebp
mov eax, dword [esp + 8]
add dword [esp + 4], eax
push 0xa0
lea ebp, [esp + 0xc]
push ebp
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.0096ce00
add esp, 0x10
test eax, eax
jne 0x95935e
mov eax, dword [esp + 4]
mov edi, 0xffffda9a
add eax, dword [esp + 8]
cmp ebx, eax
jne 0x9595b1
push 0x30
push ebp
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.0096ce00
add esp, 0x10
test eax, eax
je 0x95952d
add eax, 0xffffdb00
mov edi, eax
jmp 0x9595b1
mov eax, dword [esp + 4]
add eax, dword [esp + 8]
cmp ebx, eax
jne 0x9595b1
push 6
lea ebp, [esp + 0xc]
push ebp
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.0096ce00
add esp, 0x10
test eax, eax
jne 0x95935e
mov dword [esi + 0xc], 6
mov eax, dword [esp + 4]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 8]
add eax, ecx
mov dword [esi + 0x10], ecx
mov dword [esp + 4], eax
push 4
push ebp
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.0096ce00
add esp, 0x10
test eax, eax
jne 0x95935e
mov dword [esi + 0x18], 4
mov edi, 0xffffda9a
mov eax, dword [esp + 4]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 8]
add eax, ecx
mov dword [esi + 0x1c], ecx
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 4], eax
cmove edi, ecx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00980459
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret