Function at 0x46ac80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x7c
mov esi, ecx
lea ecx, [ebp - 0x48]
mov ebx, edx
call fcn.00469c30
cmp byte [ebp - 0x48], 1
mov dword [ebp - 0x4c], esi
jne 0x46acce
movsd xmm1, qword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x2c]
movsd xmm2, qword [ebp - 0x44]
movsd qword [ebp - 0x60], xmm1
movsd xmm1, qword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
movsd qword [ebp - 0x58], xmm0
movsd qword [ebp - 0x70], xmm2
movsd qword [ebp - 0x68], xmm1
jmp 0x46ace0
movzx edx, byte [ebp - 0x47]
lea ecx, [ebp - 0x74]
call fcn.00469670
cmp byte [ebp - 0x74], 1
jne 0x46ad58
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x6c]
movsd xmm0, qword [ebp - 0x68]
movsd xmm1, qword [ebp - 0x60]
mov edx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp - 0x50]
mov edi, eax
movsd qword [ebp - 0x88], xmm0
movsd qword [ebp - 0x80], xmm1
shr edi, 0x10
movzx ebx, ah
shl edi, 0x10
movzx eax, al
movsd xmm0, qword [ebp - 0x88]
movsd xmm1, qword [ebp - 0x80]
shl ebx, 8
or edi, ebx
mov ebx, dword [ebp - 0x4c]
or eax, edi
mov edi, dword [ebp - 0x78]
movsd qword [ebx + 0x14], xmm1
movsd qword [ebx + 0xc], xmm0
mov dword [ebx + 0x1c], edi
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], ecx
mov dword [ebx], 1
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret
mov cl, byte [ebp - 0x72]
movzx eax, byte [ebp - 0x73]
mov edx, ebx
mov byte [ebp - 0x1c], cl
movzx edi, cl
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x20], eax
call fcn.00469c30
cmp byte [ebp - 0x48], 1
jne 0x46adce
mov ecx, dword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x3c]
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x28]
movsd qword [ebp - 0x74], xmm0
movsd xmm0, qword [ebp - 0x34]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x24]
movsd qword [ebp - 0x6c], xmm0
lea edx, [ebp - 0x48]
cmp bl, 6
je 0x46af32
mov edi, dword [ebp - 0x64]
movsd xmm0, qword [ebp - 0x74]
movsd xmm1, qword [ebp - 0x6c]
mov dword [ebp - 0x1c], ecx
mov dword [edx + 0x10], edi
movsd qword [edx + 8], xmm1
movsd qword [edx], xmm0
jmp 0x46af49
mov dword [ebp - 0x10], ebx
movzx ebx, byte [ebp - 0x47]
mov dword [ebp - 0x14], edi
test bl, bl
js 0x46ae74
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
test eax, eax
je 0x46af74
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
sub edx, ecx
jb 0x46af7a
cmp edx, ebx
jb 0x46af7a
lea edx, [ecx + ebx]
mov dword [ebp - 0x18], ebx
mov edi, 5
mov ebx, ecx
cmp edx, 0x10000000
cmovae edx, edi
add ebx, dword [ebp - 0x18]
mov edi, 5
cmovb edx, edi
mov edi, dword [ebp - 0x18]
jb 0x46af7a
cmp ebx, 0xfffffff
ja 0x46af7a
mov ebx, dword [ebp - 0x10]
add eax, ecx
mov dword [ebx + 8], edx
mov edx, dword [ebp - 0x20]
cmp dl, 2
jne 0x46afd7
lea ebx, [eax + 1]
sub edi, 1
jae 0x46b058
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], 8
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
mov dword [eax], 0
jmp 0x46b072
cmp bl, 0x80
je 0x46af2c
cmp bl, 0x85
jae 0x46af2c
mov edi, ebx
xor edi, 0x80
je 0x46af2c
mov dword [ebp - 0x18], ebx
xor ebx, ebx
lea ecx, [ebp - 0x48]
nop dword [eax]
mov edx, dword [ebp - 0x10]
mov esi, ecx
call fcn.00469c30
cmp byte [ebp - 0x48], 1
je 0x46afae
movzx eax, byte [ebp - 0x47]
shl ebx, 8
mov ecx, esi
or ebx, eax
dec edi
jne 0x46aea0
cmp ebx, 0x10000000
jae 0x46afc4
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x4c]
mov ecx, ebx
mov al, 0x81
and ecx, 0xffffff80
cmp ecx, 0x80
je 0x46af03
lea ecx, [ebx - 0x100]
mov al, 0x82
cmp ecx, 0xff00
jb 0x46af03
lea ecx, [ebx - 0x10000]
mov al, 0x83
cmp ecx, 0xffeffff
ja 0x46af2c
cmp al, dl
mov ecx, 6
cmove ecx, ebx
mov ebx, ecx
je 0x46ade0
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x48]
cmp bl, 6
je 0x46af32
jmp 0x46adad
mov edi, dword [ebp - 0x14]
lea edx, [ebp - 0x48]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x20]
shl edi, 0x10
mov dword [ebp - 0x10], 0
shl ecx, 8
lea ebx, [edi + ecx + 2]
mov edi, dword [edx + 0x10]
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
mov edx, ebx
mov dword [ebp - 0x78], edi
mov edi, eax
movsd qword [ebp - 0x80], xmm1
movsd qword [ebp - 0x88], xmm0
jmp 0x46ad0b
mov dword [ecx], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0
shl edx, 8
shl eax, 0x10
mov ecx, dword [ecx + 8]
lea eax, [edx + eax + 2]
mov dword [esi + 4], eax
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], ecx
mov dword [esi], 1
jmp 0x46ad50
mov ecx, dword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x3c]
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x14]
jmp 0x46ad86
mov edx, ecx
mov dword [ebp - 0x10], 0
mov ebx, 5
jmp 0x46adad
lea ecx, [ebp - 0x48]
push edi
push eax
push dword [ebp - 0x14]
call fcn.0046aba0
add esp, 0xc
cmp dword [ebp - 0x48], 1
mov edi, dword [ebp - 0x10]
lea eax, [esi + 4]
lea ecx, [ebp - 0x44]
jne 0x46b037
mov edx, dword [ecx + 0x18]
mov dword [edi], 0
movsd xmm0, qword [ecx + 0x10]
movsd xmm2, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov ecx, 1
mov dword [eax + 0x18], edx
mov edx, dword [edi + 8]
movsd qword [eax + 0x10], xmm0
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm2
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], edx
mov dword [esi], ecx
jmp 0x46ad50
mov edx, dword [ecx + 0x10]
movsd xmm0, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov dword [eax + 0x10], edx
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
xor eax, eax
mov dword [esi], eax
jmp 0x46ad50
cmp byte [eax], 0
je 0x46b084
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp - 0x1c]
mov word [esi + 4], 0x203
mov dword [eax], 0
mov byte [esi + 6], cl
mov eax, dword [eax + 8]
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], eax
jmp 0x46afa3
lea ecx, [ebp - 0x48]
mov edx, 2
push edi
push ebx
jmp 0x46afdc