When adding support for a new mouse, or when debugging issues, it can be usefull to capture the original protocol with Razer official configuration software.
No matter the method, the basic requirements are:
You can sniff the USB protocol on Windows using USBPcap. Take a look at the illustrated tour for more information. Altenatively you can use Wireshark.
install Windows: you can get an evaluation copy (usable for 90 days) of Windows 7 Enterprise (note: you'll need to register)
find your mouse USB bus and device numbers:
> lsusb | grep '\<ID 1532:'
Bus 005 Device 010: ID 1532:0040 Razer USA, Ltd
> bus=5 dev=10
configure VM access to the host USB: see the relevant USB support section in the VirtualBox manual
load the usbmon module:
> sudo modprobe usbmon
> sudo cat /sys/kernel/debug/usb/usbmon/${bus}u | awk "{ if (\$4 ~ /:0*${bus}:0*${dev}:[0-9]+$/) print \$0 }"
See the usbmon documentation for the details of the output format.
Alternatively to VirtualBox VM, you may use QEMU.