Function at 0x404f00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa4
mov esi, ecx
lea ecx, [ebp - 0x4c]
mov ebx, edx
call sym.der::reader::Reader::read_byte::haac5f508d59cfc6f
cmp dword [ebp - 0x4c], 2
jne 0x404fa6
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x80]
call sym.__LT_der..tag..Tag_u20_as_u20_core..convert..TryFrom_LT_u8_GT__GT_::try_from::hce38d97dc4eb2bcb
mov eax, dword [ebp - 0x80]
cmp eax, 2
je 0x404ff4
movzx ecx, byte [ebp - 0x7a]
movsd xmm0, qword [ebp - 0x54]
movsd xmm1, qword [ebp - 0x59]
movsd xmm2, qword [ebp - 0x61]
mov byte [ebp - 0xae], cl
movzx ecx, word [ebp - 0x7c]
movsd qword [esi + 0x2c], xmm0
movsd qword [esi + 0x27], xmm1
movsd xmm1, qword [ebp - 0x69]
movsd qword [esi + 0x1f], xmm2
movsd xmm2, qword [ebp - 0x71]
mov word [ebp - 0xb0], cx
movsd qword [esi + 0x17], xmm1
movsd xmm1, qword [ebp - 0x79]
movzx ecx, byte [ebp - 0xae]
movsd qword [esi + 0xf], xmm2
movzx edx, word [ebp - 0xb0]
movsd qword [esi + 7], xmm1
mov byte [esi + 6], cl
mov word [esi + 4], dx
mov dword [esi], eax
jmp 0x405210
movsd xmm1, qword [ebp - 0x2c]
movsd xmm2, qword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x24]
movsd qword [ebp - 0x60], xmm1
movsd xmm1, qword [ebp - 0x3c]
movsd qword [ebp - 0x68], xmm2
movsd xmm2, qword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
movsd qword [ebp - 0x58], xmm0
movsd qword [ebp - 0x70], xmm1
movsd xmm1, qword [ebp - 0x44]
movsd qword [ebp - 0x80], xmm2
movsd qword [ebp - 0x78], xmm1
mov eax, dword [ebp - 0x80]
cmp eax, 2
jne 0x404f39
movzx ecx, word [ebp - 0x7c]
movzx eax, byte [ebp - 0x7a]
mov edx, ebx
mov word [ebp - 0x10], cx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0xe], al
call sym.der::reader::Reader::read_byte::haac5f508d59cfc6f
mov eax, dword [ebp - 0x4c]
cmp eax, 2
jne 0x4050f3
movzx eax, byte [ebp - 0x48]
test al, al
js 0x405048
mov ebx, eax
movzx edx, byte [ebp - 0xe]
movzx ecx, word [ebp - 0x10]
and ebx, 0xffffff00
or ebx, eax
mov byte [esi + 0xa], dl
mov word [esi + 8], cx
mov dword [esi + 4], ebx
mov dword [esi], 2
jmp 0x405210
mov cl, 5
cmp al, 0x80
jne 0x405057
xor edx, edx
xor eax, eax
jmp 0x40516a
xor edx, edx
cmp al, 0x84
ja 0x405155
mov edi, eax
mov dword [ebp - 0x84], eax
xor edi, 0x80
je 0x40521b
mov dword [ebp - 0x88], ebx
xor ebx, ebx
nop dword [eax]
mov edx, dword [ebp - 0x88]
lea ecx, [ebp - 0x4c]
call sym.der::reader::Reader::read_byte::haac5f508d59cfc6f
mov eax, dword [ebp - 0x4c]
cmp eax, 2
jne 0x4050f3
mov eax, ebx
movzx ebx, byte [ebp - 0x48]
shl eax, 8
or ebx, eax
dec edi
jne 0x405080
mov cl, 0xc
cmp ebx, 0x10000000
jae 0x40504e
mov edx, ebx
mov al, 1
mov cl, 0x81
and edx, 0xfffff80
cmp edx, 0x80
je 0x40522d
lea edx, [ebx - 0x100]
mov cl, 0x82
cmp edx, 0xff00
jb 0x40522d
lea edx, [ebx - 0x10000]
mov cl, 0x83
cmp edx, 0xff0000
jae 0x40521d
jmp 0x40522d
movzx ebx, byte [ebp - 0x45]
movsd xmm2, qword [ebp - 0x38]
movsd xmm1, qword [ebp - 0x30]
movzx edi, word [ebp - 0x47]
movzx edx, byte [ebp - 0x48]
movzx ecx, byte [ebp - 0x44]
mov ch, byte [ebp - 0x41]
movsd xmm0, qword [ebp - 0x40]
shl ebx, 0x10
movsd qword [ebp - 0x78], xmm2
movsd qword [ebp - 0x70], xmm1
movsd xmm2, qword [ebp - 0x28]
movsd xmm1, qword [ebp - 0x20]
movzx edx, dl
mov byte [ebp - 0x16], ch
movsd qword [ebp - 0x80], xmm0
or edi, ebx
movzx ebx, word [ebp - 0x43]
shl edi, 8
or edx, edi
cmp cl, 0xd
movsd qword [ebp - 0x68], xmm2
movsd qword [ebp - 0x60], xmm1
mov word [ebp - 0x18], bx
jne 0x40516a
movzx eax, byte [ebp - 0xe]
mov cl, 6
mov byte [ebp - 0x12], al
movzx eax, word [ebp - 0x10]
mov word [ebp - 0x14], ax
xor eax, eax
jmp 0x4051b9
movsd xmm2, qword [ebp - 0x68]
movsd xmm1, qword [ebp - 0x70]
movsd xmm0, qword [ebp - 0x60]
movzx edi, word [ebp - 0x18]
mov ch, byte [ebp - 0x16]
movsd qword [ebp - 0x98], xmm2
movsd qword [ebp - 0xa0], xmm1
movsd xmm2, qword [ebp - 0x80]
movsd xmm1, qword [ebp - 0x78]
movsd qword [ebp - 0x90], xmm0
mov word [ebp - 0x14], di
mov byte [ebp - 0x12], ch
movsd qword [ebp - 0xa8], xmm1
movsd qword [ebp - 0xb0], xmm2
mov byte [esi + 8], cl
movzx ecx, word [ebp - 0x14]
movsd xmm1, qword [ebp - 0xa8]
movsd xmm0, qword [ebp - 0xb0]
movsd xmm2, qword [ebp - 0x98]
mov word [esi + 9], cx
mov ch, byte [ebp - 0x12]
mov byte [esi + 0xb], ch
movsd qword [esi + 0x14], xmm1
movsd xmm1, qword [ebp - 0xa0]
movsd qword [esi + 0xc], xmm0
movsd qword [esi + 0x24], xmm2
movsd qword [esi + 0x1c], xmm1
movsd xmm1, qword [ebp - 0x90]
movsd qword [esi + 0x2c], xmm1
mov dword [esi], eax
mov dword [esi + 4], edx
add esp, 0xa4
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
lea eax, [ebx - 0x1000000]
mov cl, 0x84
cmp eax, 0xf000000
setb al
xor edx, edx
test al, al
je 0x405155
cmp cl, byte [ebp - 0x84]
jne 0x405155
movzx eax, bl
jmp 0x405023