Function at 0x412b20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
fld dword [ebp + 0x10]
push ebx
mov ebx, dword [ecx + 0x10]
fmul qword [0x495e18]
push esi
push edi
mov edi, dword [eax + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x10]
mov edx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 4], edx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], eax
call fcn.004815a0
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x54]
test ecx, ecx
je 0x412b70
cmp dword [ecx], 0
jne 0x412d02
cmp eax, 0x100
jge 0x412c42
mov ecx, 0x100
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp + 0x10], ecx
test eax, eax
jle 0x412eb2
mov dword [ebp - 0xc], eax
mov ecx, 1
jmp 0x412ba0
mov eax, dword [ebp - 4]
test eax, eax
jle 0x412c30
mov dword [ebp - 8], eax
mov edi, edi
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
add eax, dword [ebp + 0x10]
sar eax, 1
jns 0x412bc1
xor eax, eax
jmp 0x412bcd
cmp eax, 0x80
jle 0x412bcd
mov eax, 0x80
mov cl, byte [edi]
movzx edx, byte [ebx]
movzx ecx, cl
sub edx, ecx
imul edx, eax
sar edx, 7
add dl, byte [edi]
inc edi
mov byte [esi], dl
mov cl, byte [edi]
movzx edx, byte [ebx + 1]
mov byte [ebp + 0xb], cl
inc ebx
movzx ecx, cl
sub edx, ecx
imul edx, eax
sar edx, 7
add dl, byte [ebp + 0xb]
inc esi
mov byte [esi], dl
mov cl, byte [edi + 1]
movzx edx, byte [ebx + 1]
inc edi
inc ebx
mov byte [ebp + 0xb], cl
movzx ecx, cl
sub edx, ecx
imul edx, eax
sar edx, 7
add dl, byte [ebp + 0xb]
inc esi
mov ecx, 1
add dword [ebp + 0xc], ecx
mov byte [esi], dl
add esi, 2
add edi, 2
add ebx, 2
sub dword [ebp - 8], ecx
jne 0x412bb0
sub dword [ebp - 0xc], ecx
jne 0x412ba0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add eax, 0xffffff00
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 8]
test eax, eax
jle 0x412eb2
mov dword [ebp - 8], eax
mov ecx, 1
lea ecx, [ecx]
mov eax, dword [ebp - 4]
test eax, eax
jle 0x412cf0
mov dword [ebp - 0xc], eax
mov edi, edi
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
sub eax, dword [ebp + 0x10]
sar eax, 1
jns 0x412c81
xor eax, eax
jmp 0x412c8d
cmp eax, 0x80
jle 0x412c8d
mov eax, 0x80
mov cl, byte [edi]
movzx edx, byte [ebx]
movzx ecx, cl
sub edx, ecx
imul edx, eax
sar edx, 7
add dl, byte [edi]
inc edi
mov byte [esi], dl
mov cl, byte [edi]
movzx edx, byte [ebx + 1]
mov byte [ebp + 0xb], cl
inc ebx
movzx ecx, cl
sub edx, ecx
imul edx, eax
sar edx, 7
add dl, byte [ebp + 0xb]
inc esi
mov byte [esi], dl
mov cl, byte [edi + 1]
movzx edx, byte [ebx + 1]
inc edi
inc ebx
mov byte [ebp + 0xb], cl
movzx ecx, cl
sub edx, ecx
imul edx, eax
sar edx, 7
add dl, byte [ebp + 0xb]
inc esi
mov ecx, 1
add dword [ebp + 0xc], ecx
mov byte [esi], dl
add esi, 2
add edi, 2
add ebx, 2
sub dword [ebp - 0xc], ecx
jne 0x412c70
sub dword [ebp - 8], ecx
jne 0x412c60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x100
jge 0x412de5
mov edx, 0x100
sub edx, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0x10], edx
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [ebp - 8]
add eax, eax
add eax, eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
movd mm4, dword [ebp + 0x10]
punpcklwd mm4, mm4
punpckldq mm4, mm4
pxor mm5, mm5
movq mm0, qword [edi]
movq mm1, qword [edx]
movq mm2, mm0
movq mm3, mm1
xor eax, eax
mov al, byte [esi + 1]
mov byte [ebp + 0xb], al
movzx eax, byte [ebp + 0xb]
mov dword [ebp - 8], eax
xor eax, eax
mov al, byte [esi]
mov byte [ebp + 0xb], al
movzx eax, byte [ebp + 0xb]
mov dword [ebp - 0xc], eax
movd mm7, dword [ebp - 8]
punpcklbw mm7, mm5
punpcklwd mm7, mm7
punpcklwd mm7, mm7
movd mm6, dword [ebp - 0xc]
punpcklbw mm6, mm5
punpcklwd mm6, mm6
punpcklwd mm6, mm6
punpckhbw mm0, mm5
punpckhbw mm1, mm5
punpcklbw mm2, mm5
punpcklbw mm3, mm5
paddusb mm6, mm4
paddusb mm7, mm4
psraw mm6, 1
psraw mm7, 1
psubw mm0, mm1
psubw mm2, mm3
pmullw mm0, mm6
psraw mm0, 7
pmullw mm2, mm7
psraw mm2, 7
paddw mm0, mm1
paddw mm2, mm3
packuswb mm2, mm0
movq qword [ebx], mm2
add edi, 8
add ebx, 8
add edx, 8
add esi, 2
dec ecx
jne 0x412d47
emms
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add eax, 0xffffff00
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 4]
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [ebp - 8]
add eax, eax
add eax, eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
movd mm4, dword [ebp + 0x10]
punpcklwd mm4, mm4
punpckldq mm4, mm4
pxor mm5, mm5
movq mm0, qword [edi]
movq mm1, qword [edx]
movq mm2, mm0
movq mm3, mm1
xor eax, eax
mov al, byte [esi + 1]
mov byte [ebp + 0xb], al
movzx eax, byte [ebp + 0xb]
mov dword [ebp - 8], eax
xor eax, eax
mov al, byte [esi]
mov byte [ebp + 0xb], al
movzx eax, byte [ebp + 0xb]
mov dword [ebp - 0xc], eax
movd mm7, dword [ebp - 8]
punpcklbw mm7, mm5
punpcklwd mm7, mm7
punpcklwd mm7, mm7
movd mm6, dword [ebp - 0xc]
punpcklbw mm6, mm5
punpcklwd mm6, mm6
punpcklwd mm6, mm6
punpckhbw mm0, mm5
punpckhbw mm1, mm5
punpcklbw mm2, mm5
punpcklbw mm3, mm5
psubusb mm6, mm4
psubusb mm7, mm4
psraw mm6, 1
psraw mm7, 1
psubw mm0, mm1
psubw mm2, mm3
pmullw mm0, mm6
psraw mm0, 7
pmullw mm2, mm7
psraw mm2, 7
paddw mm0, mm1
paddw mm2, mm3
packuswb mm2, mm0
movq qword [ebx], mm2
add edi, 8
add ebx, 8
add edx, 8
add esi, 2
dec ecx
jne 0x412e1d
emms
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc