Function at 0x480eaf
Capabilities:
Create thread
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
mov ebx, dword [ebp + 8]
mov esi, 0x4c4c98
test ebx, ebx
jne 0x480eca
xor eax, eax
jmp 0x4811b2
push ebx
call fcn.004811bc
pop ecx
cmp dword [0x4be990], 0
je 0x480efe
cmp dword [0x4be994], 0
je 0x480efe
cmp dword [0x4be998], 0
je 0x480efe
cmp dword [0x4be99c], 0
je 0x480efe
cmp dword [0x4be9a0], 0
jne 0x480f05
xor eax, eax
jmp 0x4811b2
fild dword [0x4bea08]
fdivr dword [0x4811b8]
fstp dword [0x4cbc2c]
mov eax, dword [0x4bea08]
shl eax, 2
lea eax, [eax + eax*4]
mov ecx, 0x3e8
cdq
idiv ecx
add eax, 3
and eax, 0xfffffffc
mov dword [0x4cbc30], eax
mov eax, dword [0x4bea0c]
mov ecx, 0x14
cdq
idiv ecx
imul dword [0x4cbc30]
mov dword [0x4ca498], eax
shl dword [0x4ca498], 1
mov eax, dword [0x4bea08]
shl eax, 7
mov ecx, 0xac44
cdq
idiv ecx
mov dword [0x4be9e8], eax
mov eax, dword [0x4be9e8]
mov dword [ebp - 0x24], eax
xor edx, edx
mov dword [ebp - 0x20], edx
fild qword [ebp - 0x24]
fdivr dword [0x4811b8]
fstp dword [0x4be9ec]
mov eax, dword [0x4ca498]
cdq
idiv dword [0x4cbc30]
mov dword [ebp - 4], eax
push 0x5800
push 0
push esi
call fcn.0047d9ec
add esp, 0xc
xor eax, eax
imul edx, eax, 0xb
mov dword [esi + edx*8], eax
imul ecx, eax, 0xb
mov dword [esi + ecx*8 + 0x34], 1
inc eax
cmp eax, 0x100
jl 0x480fa5
xor eax, eax
mov al, byte [ebx + 0x128]
mov dword [ebx + 0x12c], eax
movsx edx, word [ebx + 0x24]
mov dword [ebx + 0x138], edx
xor ecx, ecx
mov dword [ebx + 0x140], ecx
xor eax, eax
mov dword [ebx + 0x144], eax
mov dword [ebx + 0x150], 0xffffffff
mov dword [ebx + 0x14c], 0xffffffff
xor edx, edx
mov dword [ebx + 8], edx
xor ecx, ecx
mov dword [ebx + 0x134], ecx
xor eax, eax
mov dword [ebx + 0x148], eax
xor edx, edx
mov dword [ebx + 0x154], edx
movsx ecx, word [ebx + 0x26]
push ecx
push ebx
call fcn.00480d08
add esp, 8
movsx eax, word [ebx + 0x14]
imul edx, eax, 0xac
push edx
push 0
push 0x4ca4c4
call fcn.0047d9ec
add esp, 0xc
xor eax, eax
jmp 0x481058
imul edx, eax, 0xac
add edx, 0x4ca4c4
imul ecx, eax, 0x58
add ecx, esi
mov dword [edx + 4], ecx
inc eax
movsx edx, word [ebx + 0x14]
cmp eax, edx
jl 0x481043
mov dword [0x4bea04], ebx
push 1
mov eax, dword [ebp - 4]
add eax, eax
lea eax, [eax + eax*2]
push eax
call fcn.0047da08
add esp, 8
mov dword [0x4cba44], eax
mov word [ebp - 0x1c], 1
mov word [ebp - 0x1a], 2
mov word [ebp - 0xe], 0x10
movzx ecx, word [ebp - 0x1a]
movzx eax, word [ebp - 0xe]
imul ecx, eax
test ecx, ecx
jns 0x4810a2
add ecx, 7
sar ecx, 3
mov word [ebp - 0x10], cx
mov edx, dword [0x4bea08]
mov dword [ebp - 0x18], edx
movzx ecx, word [ebp - 0x10]
imul ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov word [ebp - 0xc], 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push 0x4ca49c
call sub.winmm.dll_waveOutOpen
test eax, eax
je 0x4810e4
xor eax, eax
jmp 0x4811b2
mov ebx, 0x4ca4a0
mov esi, dword [0x4ca498]
shl esi, 2
push 1
push esi
call fcn.0047da08
add esp, 8
mov dword [0x4ca4c0], eax
mov dword [ebx + 0x10], 0xc
mov eax, dword [0x4ca4c0]
mov dword [ebx], eax
mov dword [ebx + 4], esi
xor edx, edx
mov dword [ebx + 8], edx
xor ecx, ecx
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x14], 0xffffffff
push 0x20
push ebx
push dword [0x4ca49c]
call sub.winmm.dll_waveOutPrepareHeader
push 1
mov eax, dword [0x4ca498]
shl eax, 3
add eax, 0x100
push eax
call fcn.0047da08
add esp, 8
mov dword [0x4cbc24], eax
mov edx, dword [0x4cbc24]
add edx, 0xf
and edx, 0xfffffff0
mov dword [0x4cbc28], edx
call fcn.0047e5a8
cmp dword [0x4bea18], 0
jne 0x481161
push 0x20
push 0x4ca4a0
push dword [0x4ca49c]
call sub.winmm.dll_waveOutWrite
mov byte [0x4bea10], 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0x47e72c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4bea14], eax
push 0xf
push dword [0x4bea14]
call sub.kernel32.dll_SetThreadPriority
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret