Function at 0x436c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xd4
mov edi, edx
mov esi, ecx
lea ebx, [ebp - 0xa8]
push 1
push ebx
call fcn.004e5780
add esp, 8
mov eax, dword [ebp - 0xa8]
cmp eax, 2
jne 0x436d72
lea eax, [ebp - 0xdc]
push dword [ebp - 0xa4]
push edi
push eax
call fcn.004e63f0
add esp, 0xc
mov eax, dword [ebp - 0xdc]
cmp eax, 2
jne 0x436db9
mov eax, dword [ebp - 0xd4]
cmp eax, 1
jne 0x43717d
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0x4c]
movzx eax, byte [eax]
push eax
push ecx
call fcn.004e6b30
add esp, 8
mov eax, dword [ebp - 0x4c]
cmp eax, 2
jne 0x436e91
movzx eax, byte [ebp - 0x46]
movzx ecx, word [ebp - 0x48]
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x10], ecx
push 1
push ebx
call fcn.004e5780
add esp, 8
mov ecx, dword [ebp - 0xa8]
cmp ecx, 2
jne 0x436ea0
push dword [ebp - 0xa4]
push edi
lea eax, [ebp - 0xdc]
push eax
call fcn.004e63f0
add esp, 0xc
mov ecx, dword [ebp - 0xdc]
cmp ecx, 2
jne 0x436ee7
mov eax, dword [ebp - 0xd4]
cmp eax, 1
jne 0x43717d
mov eax, dword [ebp - 0xd8]
movzx ecx, byte [eax]
test cl, cl
js 0x436f73
mov ebx, ecx
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], ebx
mov word [esi + 8], ax
shr eax, 0x10
mov byte [esi + 0xa], al
mov dword [esi], 2
jmp 0x436e86
movsd xmm0, qword [ebp - 0x9c]
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
movsd qword [ebp - 0x74], xmm0
movsd xmm0, qword [ebp - 0x94]
movsd qword [ebp - 0x6c], xmm0
movsd xmm0, qword [ebp - 0x8c]
movsd qword [ebp - 0x64], xmm0
movsd xmm0, qword [ebp - 0x84]
movsd qword [ebp - 0x5c], xmm0
movsd xmm0, qword [ebp - 0x7c]
jmp 0x436e01
movsd xmm0, qword [ebp - 0xd0]
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xd4]
movsd qword [ebp - 0x74], xmm0
movsd xmm0, qword [ebp - 0xc8]
movsd qword [ebp - 0x6c], xmm0
movsd xmm0, qword [ebp - 0xc0]
movsd qword [ebp - 0x64], xmm0
movsd xmm0, qword [ebp - 0xb8]
movsd qword [ebp - 0x5c], xmm0
movsd xmm0, qword [ebp - 0xb0]
movsd xmm2, qword [ebp - 0x5c]
movsd xmm1, qword [ebp - 0x64]
movsd qword [ebp - 0x54], xmm0
movsd xmm0, qword [ebp - 0x54]
movsd qword [ebp - 0x28], xmm2
movsd qword [ebp - 0x30], xmm1
movsd xmm2, qword [ebp - 0x74]
movsd xmm1, qword [ebp - 0x6c]
movsd qword [ebp - 0x20], xmm0
movsd qword [ebp - 0x38], xmm1
movsd qword [ebp - 0x40], xmm2
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
movsd xmm0, qword [ebp - 0x20]
movsd xmm1, qword [ebp - 0x25]
movsd xmm2, qword [ebp - 0x2d]
movsd qword [esi + 0x2c], xmm0
movsd qword [esi + 0x27], xmm1
movsd xmm1, qword [ebp - 0x35]
movsd qword [esi + 0x1f], xmm2
movsd xmm2, qword [ebp - 0x45]
movsd qword [esi + 0x17], xmm1
movsd xmm1, qword [ebp - 0x3d]
movsd qword [esi + 7], xmm2
movsd qword [esi + 0xf], xmm1
mov dword [esi], eax
mov word [esi + 4], cx
shr ecx, 0x10
mov byte [esi + 6], cl
add esp, 0xd4
pop esi
pop edi
pop ebx
pop ebp
ret
movzx edx, byte [ebp - 0x46]
movzx ecx, word [ebp - 0x48]
shl edx, 0x10
or ecx, edx
jmp 0x436e3e
mov edx, dword [ebp - 0xa4]
movsd xmm0, qword [ebp - 0x9c]
mov eax, dword [ebp - 0xa0]
movsd qword [ebp - 0x4c], xmm0
movsd xmm0, qword [ebp - 0x94]
movsd qword [ebp - 0x44], xmm0
movsd xmm0, qword [ebp - 0x8c]
movsd qword [ebp - 0x3c], xmm0
movsd xmm0, qword [ebp - 0x84]
movsd qword [ebp - 0x34], xmm0
movsd xmm0, qword [ebp - 0x7c]
jmp 0x436f2f
movsd xmm0, qword [ebp - 0xd0]
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xd4]
movsd qword [ebp - 0x4c], xmm0
movsd xmm0, qword [ebp - 0xc8]
movsd qword [ebp - 0x44], xmm0
movsd xmm0, qword [ebp - 0xc0]
movsd qword [ebp - 0x3c], xmm0
movsd xmm0, qword [ebp - 0xb8]
movsd qword [ebp - 0x34], xmm0
movsd xmm0, qword [ebp - 0xb0]
movsd qword [ebp - 0x2c], xmm0
movsd xmm2, qword [ebp - 0x34]
movsd xmm1, qword [ebp - 0x3c]
movsd xmm0, qword [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
cmp al, 0xd
movsd qword [ebp - 0x5c], xmm2
movsd qword [ebp - 0x64], xmm1
movsd xmm2, qword [ebp - 0x4c]
movsd xmm1, qword [ebp - 0x44]
movsd qword [ebp - 0x54], xmm0
movsd qword [ebp - 0x6c], xmm1
movsd qword [ebp - 0x74], xmm2
jne 0x436f88
xor ecx, ecx
mov al, 6
jmp 0x436fce
cmp ecx, 0x80
jne 0x437028
mov eax, 5
xor ecx, ecx
mov edx, ebx
movsd xmm2, qword [ebp - 0x5c]
movsd xmm1, qword [ebp - 0x64]
movsd xmm0, qword [ebp - 0x54]
mov edi, eax
shr edi, 8
movsd qword [ebp - 0x90], xmm2
movsd qword [ebp - 0x98], xmm1
movsd xmm2, qword [ebp - 0x74]
movsd xmm1, qword [ebp - 0x6c]
movsd qword [ebp - 0x88], xmm0
movsd qword [ebp - 0xa0], xmm1
movsd qword [ebp - 0xa8], xmm2
movsd xmm2, qword [ebp - 0x90]
movsd xmm1, qword [ebp - 0x98]
movsd xmm0, qword [ebp - 0x88]
movsd qword [esi + 0x24], xmm2
movsd qword [esi + 0x1c], xmm1
movsd xmm2, qword [ebp - 0xa8]
movsd xmm1, qword [ebp - 0xa0]
movsd qword [esi + 0x2c], xmm0
movsd qword [esi + 0x14], xmm1
movsd qword [esi + 0xc], xmm2
mov dword [esi], ecx
mov dword [esi + 4], edx
mov byte [esi + 8], al
mov eax, edi
mov word [esi + 9], di
shr eax, 0x10
mov byte [esi + 0xb], al
jmp 0x436e86
cmp cl, 0x84
ja 0x437112
mov eax, ecx
xor eax, 0x80
je 0x4370f4
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xe0], eax
push 1
push ebx
call fcn.004e5780
add esp, 8
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xa4]
cmp ecx, 2
jne 0x436ea6
push edx
push edi
lea eax, [ebp - 0xdc]
push eax
call fcn.004e63f0
add esp, 0xc
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xd4]
cmp ecx, 2
jne 0x43711e
cmp eax, 1
jne 0x43717d
mov ecx, dword [ebp - 0x18]
movzx eax, byte [edx]
shl ecx, 8
or eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xe0]
dec eax
jne 0x437048
mov ebx, dword [ebp - 0x18]
mov eax, 0xc
cmp ebx, 0x10000000
jae 0x436f84
mov edi, ebx
mov al, 1
mov dl, 0x81
and edi, 0xffffff80
cmp edi, 0x80
je 0x4370ef
lea edi, [ecx - 0x100]
mov dl, 0x82
cmp edi, 0xff00
jae 0x437164
mov ecx, dword [ebp - 0x14]
jmp 0x437106
xor ebx, ebx
lea eax, [ebx - 0x1000000]
mov dl, 0x84
cmp eax, 0xf000000
setb al
test al, al
je 0x437112
cmp dl, cl
je 0x436d57
mov edi, dword [ebp - 0x10]
xor ecx, ecx
mov al, 6
jmp 0x436fce
movsd xmm2, qword [ebp - 0xb8]
movsd xmm1, qword [ebp - 0xc0]
movsd xmm0, qword [ebp - 0xb0]
movsd qword [ebp - 0x34], xmm2
movsd qword [ebp - 0x3c], xmm1
movsd xmm2, qword [ebp - 0xd0]
movsd xmm1, qword [ebp - 0xc8]
movsd qword [ebp - 0x2c], xmm0
movsd qword [ebp - 0x44], xmm1
movsd qword [ebp - 0x4c], xmm2
jmp 0x436f34
add ecx, 0xffff0000
mov dl, 0x83
cmp ecx, 0xff0000
mov ecx, dword [ebp - 0x14]
jae 0x4370f6
jmp 0x437106
push 0x6b2eb0
push eax
push 1
call fcn.005008c0
nop word [eax + eax]