Function at 0x435840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xe4
mov edi, edx
mov esi, ecx
lea ebx, [ebp - 0x80]
mov byte [ebp - 0xd], 0
push 1
push ebx
call fcn.004e5780
add esp, 8
mov eax, dword [ebp - 0x80]
cmp eax, 2
jne 0x43596d
lea ecx, [ebp - 0xf0]
mov edx, edi
push dword [ebp - 0x7c]
call fcn.00426250
add esp, 4
mov eax, dword [ebp - 0xf0]
cmp eax, 2
jne 0x4359ad
lea eax, [ebp - 0xd]
lea ecx, [ebp - 0x48]
push 1
push eax
push dword [edi]
push ecx
call fcn.004e6050
add esp, 0x10
mov eax, dword [ebp - 0x48]
cmp eax, 2
jne 0x4359fb
movzx eax, byte [ebp - 0xd]
lea ecx, [ebp - 0xb4]
push eax
push ecx
call fcn.004e6b30
add esp, 8
mov eax, dword [ebp - 0xb4]
cmp eax, 2
jne 0x435ab3
movzx eax, byte [ebp - 0xae]
movzx ecx, word [ebp - 0xb0]
mov byte [ebp - 0xd], 0
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x4c], ecx
push 1
push ebx
call fcn.004e5780
add esp, 8
mov eax, dword [ebp - 0x80]
cmp eax, 2
jne 0x435ac8
lea ecx, [ebp - 0xf0]
mov edx, edi
push dword [ebp - 0x7c]
call fcn.00426250
add esp, 4
mov eax, dword [ebp - 0xf0]
cmp eax, 2
jne 0x435bf9
push 1
lea eax, [ebp - 0xd]
push eax
push dword [edi]
lea eax, [ebp - 0x48]
push eax
call fcn.004e6050
add esp, 0x10
mov eax, dword [ebp - 0x48]
cmp eax, 2
jne 0x435c47
movzx edx, byte [ebp - 0xd]
test dl, dl
js 0x435b0b
mov eax, dword [ebp - 0x4c]
mov dword [esi + 4], edx
mov word [esi + 8], ax
shr eax, 0x10
mov byte [esi + 0xa], al
mov dword [esi], 2
jmp 0x435aa8
movsd xmm2, qword [ebp - 0x70]
movsd xmm1, qword [ebp - 0x68]
movsd xmm0, qword [ebp - 0x78]
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x7c]
movsd qword [ebp - 0x38], xmm2
movsd qword [ebp - 0x30], xmm1
movsd xmm2, qword [ebp - 0x60]
movsd xmm1, qword [ebp - 0x58]
movsd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x18], edx
movsd qword [ebp - 0x28], xmm2
movsd qword [ebp - 0x20], xmm1
mov dword [ebp - 0x44], ecx
jmp 0x4359fb
movsd xmm1, qword [ebp - 0xcc]
movsd xmm2, qword [ebp - 0xd4]
movsd xmm0, qword [ebp - 0xc4]
movsd qword [ebp - 0x24], xmm1
movsd xmm1, qword [ebp - 0xdc]
movsd qword [ebp - 0x2c], xmm2
movsd xmm2, qword [ebp - 0xec]
movsd qword [ebp - 0x1c], xmm0
movsd qword [ebp - 0x34], xmm1
movsd xmm1, qword [ebp - 0xe4]
movsd qword [ebp - 0x44], xmm2
movsd qword [ebp - 0x3c], xmm1
movsd xmm2, qword [ebp - 0x34]
movsd xmm1, qword [ebp - 0x2c]
mov ecx, dword [ebp - 0x44]
movsd xmm0, qword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
movsd qword [ebp - 0xa0], xmm2
movsd qword [ebp - 0x98], xmm1
movsd xmm2, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0xa8], xmm0
movsd qword [ebp - 0x90], xmm2
movsd qword [ebp - 0x88], xmm1
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], edx
movsd xmm0, qword [ebp - 0x88]
movsd xmm1, qword [ebp - 0x8d]
movsd xmm2, qword [ebp - 0x95]
movsd qword [esi + 0x2c], xmm0
movsd qword [esi + 0x27], xmm1
movsd xmm1, qword [ebp - 0x9d]
movsd qword [esi + 0x1f], xmm2
movsd xmm2, qword [ebp - 0xad]
movsd qword [esi + 0x17], xmm1
movsd xmm1, qword [ebp - 0xa5]
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, 0xe4
pop esi
pop edi
pop ebx
pop ebp
ret
movzx edx, byte [ebp - 0xae]
movzx ecx, word [ebp - 0xb0]
shl edx, 0x10
or ecx, edx
jmp 0x435a4e
movsd xmm2, qword [ebp - 0x70]
movsd xmm1, qword [ebp - 0x68]
movsd xmm0, qword [ebp - 0x78]
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x7c]
movsd qword [ebp - 0x38], xmm2
movsd qword [ebp - 0x30], xmm1
movsd xmm2, qword [ebp - 0x60]
movsd xmm1, qword [ebp - 0x58]
movsd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x18], edx
movsd qword [ebp - 0x28], xmm2
movsd qword [ebp - 0x20], xmm1
mov dword [ebp - 0x44], ecx
jmp 0x435c47
cmp edx, 0x80
jne 0x435b1f
mov ecx, 5
xor eax, eax
jmp 0x435c9c
cmp dl, 0x84
ja 0x435d51
mov dword [ebp - 0xb8], edx
xor edx, 0x80
je 0x435d2d
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0x14], 0
mov byte [ebp - 0xd], 0
push 1
push ebx
call fcn.004e5780
add esp, 8
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
cmp eax, 2
jne 0x435d5a
mov eax, edx
lea ecx, [ebp - 0xf0]
mov edx, edi
push eax
call fcn.00426250
add esp, 4
mov eax, dword [ebp - 0xf0]
cmp eax, 2
jne 0x435bf9
push 1
lea eax, [ebp - 0xd]
push eax
push dword [edi]
lea eax, [ebp - 0x48]
push eax
call fcn.004e6050
add esp, 0x10
mov eax, dword [ebp - 0x48]
cmp eax, 2
jne 0x435c47
mov edx, dword [ebp - 0x14]
movzx eax, byte [ebp - 0xd]
shl edx, 8
or eax, edx
dec dword [ebp - 0xbc]
mov dword [ebp - 0x14], eax
jne 0x435b47
mov edi, dword [ebp - 0x14]
mov ecx, 0xc
cmp edi, 0x10000000
jae 0x435b18
and edi, 0xffffff80
mov al, 1
mov cl, 0x81
cmp edi, 0x80
je 0x435bf1
lea edi, [edx - 0x100]
mov cl, 0x82
cmp edi, 0xff00
jae 0x435d9a
mov edx, dword [ebp - 0x14]
jmp 0x435d3f
movsd xmm0, qword [ebp - 0xc4]
movsd xmm1, qword [ebp - 0xcc]
movsd xmm2, qword [ebp - 0xd4]
movsd qword [ebp - 0x1c], xmm0
movsd qword [ebp - 0x24], xmm1
movsd xmm1, qword [ebp - 0xdc]
movsd qword [ebp - 0x2c], xmm2
movsd xmm2, qword [ebp - 0xec]
movsd qword [ebp - 0x34], xmm1
movsd xmm1, qword [ebp - 0xe4]
movsd qword [ebp - 0x3c], xmm1
movsd qword [ebp - 0x44], xmm2
movsd xmm2, qword [ebp - 0x34]
movsd xmm1, qword [ebp - 0x2c]
mov ecx, dword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x3c]
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
movsd qword [ebp - 0xac], xmm2
movsd qword [ebp - 0xa4], xmm1
movsd xmm2, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
cmp cl, 0xd
movsd qword [ebp - 0xb4], xmm0
movsd qword [ebp - 0x9c], xmm2
movsd qword [ebp - 0x94], xmm1
jne 0x435c9c
xor eax, eax
mov cl, 6
jmp 0x435ce2
movsd xmm2, qword [ebp - 0x9c]
movsd xmm1, qword [ebp - 0xa4]
movsd xmm0, qword [ebp - 0x94]
mov edx, ecx
shr edx, 8
movsd qword [ebp - 0x68], xmm2
movsd qword [ebp - 0x70], xmm1
movsd xmm2, qword [ebp - 0xb4]
movsd xmm1, qword [ebp - 0xac]
movsd qword [ebp - 0x60], xmm0
movsd qword [ebp - 0x78], xmm1
movsd qword [ebp - 0x80], xmm2
movsd xmm2, qword [ebp - 0x68]
movsd xmm1, qword [ebp - 0x70]
movsd xmm0, qword [ebp - 0x60]
movsd qword [esi + 0x24], xmm2
movsd qword [esi + 0x1c], xmm1
movsd xmm2, qword [ebp - 0x80]
movsd xmm1, qword [ebp - 0x78]
movsd qword [esi + 0x2c], xmm0
movsd qword [esi + 0x14], xmm1
movsd qword [esi + 0xc], xmm2
mov dword [esi], eax
mov eax, edx
mov dword [esi + 4], edi
mov byte [esi + 8], cl
mov word [esi + 9], dx
shr eax, 0x10
mov byte [esi + 0xb], al
jmp 0x435aa8
xor edx, edx
lea eax, [edx - 0x1000000]
mov cl, 0x84
cmp eax, 0xf000000
setb al
test al, al
mov eax, dword [ebp - 0xb8]
je 0x435d51
cmp cl, al
je 0x435952
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov cl, 6
jmp 0x435ce2
movsd xmm2, qword [ebp - 0x60]
movsd xmm1, qword [ebp - 0x68]
mov ecx, dword [ebp - 0x50]
movsd xmm0, qword [ebp - 0x58]
movsd qword [ebp - 0x28], xmm2
movsd qword [ebp - 0x30], xmm1
movsd xmm2, qword [ebp - 0x78]
movsd xmm1, qword [ebp - 0x70]
mov dword [ebp - 0x18], ecx
movsd qword [ebp - 0x20], xmm0
movsd qword [ebp - 0x38], xmm1
movsd qword [ebp - 0x40], xmm2
mov dword [ebp - 0x44], edx
jmp 0x435c47
add edx, 0xffff0000
mov cl, 0x83
cmp edx, 0xff0000
mov edx, dword [ebp - 0x14]
jae 0x435d2f
jmp 0x435d3f