Function at 0x422f24
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
movzx esi, byte [0x7e8036]
movaps xmm5, xmm1
shl esi, 6
movaps xmm4, xmm2
mov byte [ebp - 6], cl
mov byte [ebp - 3], dl
movss xmm6, dword [0x7e80bc]
mov al, byte [esi + 0x7ea7d3]
movaps xmm2, xmm6
mov cl, byte [esi + 0x7ea7d1]
mov byte [ebp - 2], al
mov al, cl
shr al, 3
movzx edx, al
movzx eax, byte [0x7e8120]
add ax, ax
movss xmm7, dword [0x4fd2b0]
add dx, ax
movss dword [ebp - 0x24], xmm3
shl dx, 4
xorps xmm2, xmm7
movzx eax, dx
mov dword [ebp - 0x20], eax
movzx eax, cl
movzx ecx, word [0x7e80fa]
shl ax, 4
cmp byte [esi + 0x7ea7db], 0
movzx eax, ax
mov dword [ebp - 0x3c], eax
setne byte [ebp - 7]
mov al, byte [0x7d124d]
shr al, 1
mov byte [ebp - 4], al
mov eax, 0xffd8
imul ecx, eax
push edi
movss dword [ebp - 0x44], xmm4
movss dword [ebp - 0x48], xmm5
mov dword [ebp - 0x14], 0x800
movzx eax, cx
mov byte [ebp - 5], 1
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], 0
movss xmm1, dword [eax*4 + 0x94ab20]
movss xmm0, dword [eax*4 + 0x98ab20]
movaps xmm3, xmm1
mulss xmm0, dword [0x4fbf44]
mulss xmm3, xmm2
subss xmm3, xmm0
movss xmm0, dword [eax*4 + 0x98ab20]
mov ax, word [0x7e80f6]
mulss xmm0, xmm2
mov cx, ax
shl ax, 2
xorps xmm2, xmm2
add cx, ax
mulss xmm1, xmm2
shl cx, 3
movzx eax, cx
movss dword [ebp - 0x10], xmm3
addss xmm0, xmm1
movss xmm1, dword [eax*4 + 0x94ab20]
movss xmm2, dword [eax*4 + 0x98ab20]
movaps xmm3, xmm1
movss dword [ebp - 0x28], xmm0
xorps xmm0, xmm0
mulss xmm3, xmm0
movss xmm0, dword [ebp - 0x10]
mulss xmm0, xmm2
subss xmm3, xmm0
movss xmm0, dword [ebp - 0x10]
mulss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
xorps xmm0, xmm0
movss xmm1, dword [ebp - 0x10]
mulss xmm2, xmm0
movss dword [ebp - 0x40], xmm3
addss xmm1, xmm2
subss xmm1, dword [0x7e80e0]
movss dword [ebp - 0x10], xmm1
cmp byte [ebp - 3], 0
jbe 0x422fa6
movzx esi, word [0x7e80fe]
mov eax, 0x8000
sub eax, dword [0x7e8100]
mov edx, dword [0x7eaeb4]
movzx edi, ax
movzx eax, byte [ebp - 2]
shl eax, 2
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebp - 6]
mov dword [ebp - 0x38], eax
mov al, byte [ebp - 1]
nop dword [eax + eax]
mov ah, al
and ah, 1
mov byte [ebp - 2], ah
je 0x422aff
movaps xmm0, xmm4
jmp 0x422b02
movaps xmm0, xmm5
movzx ecx, word [ebp - 0xc]
movss xmm5, dword [ecx*4 + 0x94ab20]
mulss xmm5, xmm0
xorps xmm5, xmm7
subss xmm5, xmm3
test ah, ah
je 0x422b25
movss xmm4, dword [ebp + 8]
jmp 0x422b2a
movss xmm4, dword [ebp - 0x24]
cmp byte [ebp - 6], 0
subss xmm4, xmm1
movss xmm7, dword [ecx*4 + 0x98ab20]
movss xmm1, dword [esi*4 + 0x94ab20]
movaps xmm2, xmm7
mulss xmm2, xmm0
movaps xmm3, xmm1
movss xmm0, dword [esi*4 + 0x98ab20]
mulss xmm3, xmm4
addss xmm2, dword [ebp - 0x28]
movss dword [ebp - 0x34], xmm7
mulss xmm0, xmm2
mulss xmm1, xmm2
subss xmm3, xmm0
movss xmm0, dword [esi*4 + 0x98ab20]
mulss xmm0, xmm4
addss xmm3, dword [0x7e80dc]
addss xmm1, xmm0
movss xmm0, dword [edi*4 + 0x98ab20]
mulss xmm0, xmm3
addss xmm6, xmm1
movss xmm1, dword [edi*4 + 0x94ab20]
movaps xmm4, xmm1
movaps xmm2, xmm1
mulss xmm4, xmm5
mulss xmm2, xmm3
subss xmm4, xmm0
movss dword [ebp - 0x30], xmm6
movss xmm0, dword [edi*4 + 0x98ab20]
mulss xmm0, xmm5
movss dword [ebp - 0x2c], xmm4
addss xmm2, xmm0
movss dword [ebp - 0x18], xmm2
jne 0x422c2d
cmp al, 0x10
jne 0x422c2d
movss xmm0, dword [0x4fbff0]
comiss xmm0, xmm6
jbe 0x422c2d
cmp byte [0x7e8106], 0
jne 0x422c2d
movss xmm1, dword [0x7e80ec]
movaps xmm0, xmm4
addss xmm0, dword [0x7e80e8]
addss xmm1, xmm2
mov cl, 1
call fcn.00411e70
movss xmm2, dword [ebp - 0x18]
movss xmm4, dword [ebp - 0x2c]
movss xmm6, dword [ebp - 0x30]
movss xmm7, dword [ebp - 0x34]
mov edx, dword [0x7eaeb4]
mov al, byte [ebp - 1]
mulss xmm6, dword [0x4fc378]
mov ecx, dword [ebp - 0x38]
movss xmm3, dword [0x4fc598]
movaps xmm0, xmm3
subss xmm0, xmm6
divss xmm4, xmm0
divss xmm2, xmm0
addss xmm4, dword [0x7e80e8]
mulss xmm4, dword [0xa92f4c]
movss dword [edx], xmm4
addss xmm2, dword [0x7e80ec]
mov dword [edx + 8], 0
mulss xmm2, dword [0xa92f50]
subss xmm2, dword [0xa88354]
movss dword [edx + 4], xmm2
cmp ecx, 4
ja case.default.0x422c90
jmp dword [ecx*4 + 0x422fb0]
movzx eax, al
mov ecx, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
shr ecx, 1
movzx eax, ax
add ecx, eax
cmp byte [ebp - 1], 2
movd xmm0, ecx
mov cl, byte [ebp - 2]
cvtdq2ps xmm0, xmm0
movzx eax, cl
mulss xmm0, dword [0x4fc048]
movss dword [edx + 0x14], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x4fc038]
movss dword [edx + 0x18], xmm0
jb 0x422d64
movzx eax, byte [ebp - 3]
mov dword [ebp - 0x34], eax
add eax, 0xfffffffd
cmp dword [ebp - 0x18], eax
jg 0x422d64
cmp byte [ebp - 1], 4
jb 0x422d53
mov eax, dword [ebp - 0x34]
add eax, 0xfffffffb
cmp dword [ebp - 0x18], eax
jg 0x422d53
test cl, cl
jne 0x422d3f
cmp byte [ebp - 7], cl
je 0x422d3f
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [0x7d124d]
shl ecx, 0x18
mov eax, dword [eax + 0x4e97e0]
and eax, 0xffffff
or eax, ecx
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x7d1050]
and eax, 0xffffff
or eax, ecx
mov cl, byte [ebp - 2]
mov dword [edx + 0x10], eax
jmp 0x422d72
movzx eax, byte [0x7d124d]
shl eax, 0x18
or eax, 0xffffff
mov dword [edx + 0xc], eax
jmp 0x422d6b
movzx eax, byte [ebp - 4]
shl eax, 0x18
or eax, 0xffffff
mov dword [edx + 0xc], eax
jmp 0x422d6b
mov dword [edx + 0xc], 0xffffff
mov dword [edx + 0x10], 0
mov al, byte [ebp - 1]
test al, al
jne 0x422db8
movss xmm2, dword [0x4fcb40]
movaps xmm0, xmm4
comiss xmm2, xmm0
ja 0x422f9e
comiss xmm0, xmm3
ja 0x422f9e
movss xmm1, dword [edx + 4]
comiss xmm2, xmm1
ja 0x422f9e
movaps xmm0, xmm3
subss xmm0, dword [0xa88a50]
comiss xmm1, xmm0
ja 0x422f9e
test cl, cl
je case.default.0x422c90
add dword [ebp - 0xc], 0x800
jmp case.default.0x422c90
movzx eax, al
mov ecx, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
shr ecx, 1
movzx eax, ax
add ecx, eax
cmp byte [ebp - 1], 2
movd xmm0, ecx
mov cl, byte [ebp - 2]
cvtdq2ps xmm0, xmm0
movzx eax, cl
mulss xmm0, dword [0x4fc048]
movss dword [edx + 0x14], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x4fc588]
addss xmm0, dword [0x4fc038]
movss dword [edx + 0x18], xmm0
jb 0x422e5f
movzx eax, byte [ebp - 3]
mov dword [ebp - 0x34], eax
add eax, 0xfffffffd
cmp dword [ebp - 0x18], eax
jg 0x422e5f
cmp byte [ebp - 1], 4
jb 0x422e4e
mov eax, dword [ebp - 0x34]
add eax, 0xfffffffb
cmp dword [ebp - 0x18], eax
jg 0x422e4e
movzx eax, byte [0x7d124d]
shl eax, 0x18
or eax, 0xffffff
mov dword [edx + 0xc], eax
jmp 0x422e66
movzx eax, byte [ebp - 4]
shl eax, 0x18
or eax, 0xffffff
mov dword [edx + 0xc], eax
jmp 0x422e66
mov dword [edx + 0xc], 0xffffff
mov al, byte [ebp - 1]
mov dword [edx + 0x10], 0
test cl, cl
je case.default.0x422c90
add dword [ebp - 0xc], 0x800
jmp case.default.0x422c90
movzx eax, al
mov ecx, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x3c]
shr ecx, 1
movzx eax, ax
add ecx, eax
cmp byte [ebp - 1], 2
movd xmm0, ecx
mov cl, byte [ebp - 2]
cvtdq2ps xmm0, xmm0
movzx eax, cl
mulss xmm0, dword [0x4fbfe4]
movss dword [edx + 0x14], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edx + 0x18], xmm0
jb 0x422e5f
movzx eax, byte [ebp - 3]
mov dword [ebp - 0x34], eax
add eax, 0xfffffffd
cmp dword [ebp - 0x18], eax
jg 0x422e5f
cmp byte [ebp - 1], 4
jb 0x422e4e
mov eax, dword [ebp - 0x34]
add eax, 0xfffffffb
cmp dword [ebp - 0x18], eax
jmp 0x422e38
xorps xmm0, xmm0
maxss xmm0, xmm7
mulss xmm0, dword [0x4fc838]
call fcn.004d6c60
movzx ecx, byte [0x7d124d]
mov edx, dword [0x7eaeb4]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
mov dword [edx + 0xc], ecx
mov cl, byte [ebp - 2]
jmp 0x422e66
movzx eax, byte [0x7d124d]
mov ecx, dword [ebp - 0x14]
add dword [ebp - 0x14], 0x800
shl eax, 0x18
or eax, 0x181818
movzx ecx, cx
mov dword [edx + 0xc], eax
mov al, byte [ebp - 5]
movzx eax, al
imul eax, ecx
mov dword [edx + 0x10], 0
sub word [ebp - 0xc], ax
mov al, byte [ebp - 5]
neg al
mov byte [ebp - 5], al
mov al, byte [ebp - 1]
inc al
add edx, 0x1c
mov byte [ebp - 1], al
mov dword [0x7eaeb4], edx
cmp al, byte [ebp - 3]
jae 0x422fa6
movss xmm6, dword [0x7e80bc]
movss xmm3, dword [ebp - 0x40]
movss xmm4, dword [ebp - 0x44]
movss xmm5, dword [ebp - 0x48]
movss xmm7, dword [0x4fd2b0]
movss xmm1, dword [ebp - 0x10]
jmp 0x422af0
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret