Function at 0x480820
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x34]
xor edx, edx
push ebx
push ebp
mov ebp, dword [esp + 0x44]
div ebp
mov ecx, dword [esp + 0x40]
lea ebx, [ebp - 2]
mov ebp, dword [esp + 0x34]
movss xmm1, dword [0x5b0c24]
shr ebx, 1
add ebx, 7
imul ebx, ecx
push esi
push edi
mov edi, edx
lea esi, [ecx + ecx]
mov dword [esp + 0x44], edi
imul eax, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], esi
add ebp, eax
xor ebx, ebx
lea eax, [ecx + ebp]
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x28], ebx
lea edx, [eax + ecx*2]
add eax, esi
lea esi, [eax + ecx*2]
add eax, dword [esp + 0x1c]
lea edi, [eax + ecx*2]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov al, byte [ecx + ebp]
movzx ebp, byte [esi + 1]
cmp al, 6
movzx ecx, al
mov eax, 6
cmova ecx, eax
shl ebp, 8
movzx eax, cl
movzx ecx, byte [edx + 1]
mov dword [esp + 0x24], eax
movzx eax, byte [edx]
movzx edx, byte [edi + 1]
shl ecx, 8
or ecx, eax
shl edx, 8
movzx eax, byte [esi]
xor ecx, 0x8000
or ebp, eax
sub ecx, 0x8000
movzx eax, byte [edi]
xor ebp, 0x8000
or edx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x44]
xor edx, 0x8000
sub ebp, 0x8000
sub edx, 0x8000
test eax, eax
jne 0x480949
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esi + ebx*4], xmm0
inc ebx
cmp ebx, ecx
je 0x480b6e
movd xmm0, ebp
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esi + ebx*4], xmm0
inc ebx
cmp ebx, ecx
je 0x480b6e
lea esi, [eax + 2]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
jmp 0x480a73
cmp eax, 1
jne 0x48098a
mov eax, dword [esp + 0x38]
xor edi, edi
mov ecx, dword [esp + 0x50]
movd xmm0, ebp
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x44], edi
mulss xmm0, xmm1
movss dword [eax + ebx*4], xmm0
inc ebx
cmp ebx, ecx
je 0x480b6e
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], eax
jmp 0x480a77
mov esi, dword [esp + 0x40]
sub eax, 2
mov ecx, dword [esp + 0x28]
mov ebx, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], esi
je 0x480a6f
mov edi, edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], ecx
mov ebx, eax
mov edx, dword [esp + 0x20]
mov eax, esi
shr eax, 1
mov ecx, esi
add esi, dword [esp + 0x48]
not ecx
and ecx, 1
mov dword [esp + 0x10], esi
shl ecx, 2
movzx esi, byte [eax + edx]
shr esi, cl
mov ecx, dword [esp + 0x24]
and esi, 0xf
mov dword [esp + 0x44], ebp
mov dword [esp + 0x2c], ebp
mov eax, dword [ecx*8 + 0x5b0a60]
mov ecx, dword [ecx*8 + 0x5b0a64]
imul ecx, edi
imul eax, ebp
mov ebp, 0x7fff
add eax, ecx
mov ecx, esi
xor ecx, 8
cdq
and edx, 0xff
sub ecx, 8
imul ecx, dword [esp + 0x18]
lea edi, [edx + eax]
mov eax, 0xffff8000
sar edi, 8
add edi, ecx
cmp edi, 0xffff8000
cmovl edi, eax
mov eax, dword [esi*4 + 0x5b0a20]
imul eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
cdq
and edx, 0xff
lea ecx, [edx + eax]
mov eax, 0x10
sar ecx, 8
cmp ecx, 0x10
cmovl ecx, eax
cmp edi, ebp
mov dword [esp + 0x18], ecx
cmovl ebp, edi
mov edi, dword [esp + 0x44]
sub ebx, 1
jne 0x4809b1
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
mov eax, ecx
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x14]
sub eax, ebx
cmp ecx, eax
cmova ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x480b53
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov eax, esi
shr eax, 1
mov ecx, esi
add esi, dword [esp + 0x48]
not ecx
and ecx, 1
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x20]
shl ecx, 2
movzx esi, byte [eax + esi]
shr esi, cl
mov ecx, dword [esp + 0x24]
and esi, 0xf
mov eax, dword [ecx*8 + 0x5b0a64]
mov ecx, dword [ecx*8 + 0x5b0a60]
imul eax, edx
imul ecx, ebp
add eax, ecx
mov ecx, esi
xor ecx, 8
cdq
sub ecx, 8
and edx, 0xff
add eax, edx
imul ecx, edi
sar eax, 8
add eax, ecx
mov ecx, 0xffff8000
cmp eax, 0xffff8000
cmovl eax, ecx
mov ecx, 0x7fff
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [esi*4 + 0x5b0a20]
imul eax, edi
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
cdq
and edx, 0xff
lea edi, [edx + eax]
mulss xmm0, xmm1
sar edi, 8
mov eax, 0x10
cmp edi, 0x10
mov edx, ebp
mov ebp, ecx
cmovl edi, eax
mov eax, dword [esp + 0x38]
movss dword [eax + ebx*4], xmm0
inc ebx
sub dword [esp + 0x14], 1
jne 0x480a98
mov edi, dword [esp + 0x44]
cmp ebx, dword [esp + 0x50]
je 0x480b6e
mov ebp, dword [esp + 0x3c]
add ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x1c]
jmp CreateEventW
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret