Function at 0x435090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add eax, ebp
sub eax, dword [esp + 0x40]
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp + 0x18], eax
cmp eax, ebp
jbe 0x435327
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
lea esi, [eax - 1]
xor edi, edi
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
jmp 0x435117
mov ecx, edi
mov eax, dword [esp + 4]
sub ecx, eax
sar ecx, 2
cmp edi, dword [esp + 0xc]
je 0x435169
mov dword [eax + ecx*4], ebp
add edi, 4
mov dword [ebx + 4], edi
add ebp, esi
inc ebp
cmp ebp, dword [esp + 0x18]
jae 0x435327
test edx, edx
je 0x435120
cmp byte [edx], 0x3f
je 0x43512c
movzx ecx, byte [ebp]
mov eax, dword [esp + 0x3c]
cmp cl, byte [eax]
jne 0x43510c
cmp dword [esp + 0x40], 2
jb 0x4350f0
xor ecx, ecx
jmp 0x43515c
movzx edx, byte [ebp + ecx + 1]
mov eax, dword [esp + 0x3c]
cmp dl, byte [eax + ecx + 1]
mov edx, dword [esp + 0x44]
jne 0x43527f
inc ecx
cmp esi, ecx
je 0x4350f0
test edx, edx
je 0x435140
cmp byte [edx + ecx + 1], 0x3f
jne 0x435140
jmp 0x435157
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
mov dword [esp + 0x14], ecx
add edx, ecx
cmp edx, eax
ja 0x43517c
mov edx, eax
mov dword [esp + 0xc], edx
lea eax, [edx*4]
push eax
call fcn.00408c60
add esp, 4
mov ebx, eax
mov eax, dword [esp + 4]
test eax, eax
je 0x4352f5
mov edx, edi
not edx
and edx, eax
mov ecx, eax
not ecx
and ecx, edi
mov dword [esp], ecx
sub ecx, edx
cmp ebx, eax
mov edi, eax
mov dword [esp + 0x10], ebx
jbe 0x435286
lea eax, [edi + ecx]
cmp eax, ebx
jbe 0x435286
test ecx, ecx
je 0x4352e5
mov edi, ecx
mov eax, dword [esp + 4]
add eax, ecx
dec eax
mov ecx, dword [esp + 0x10]
add ecx, edi
dec ecx
not edx
mov ebx, dword [esp]
add ebx, edx
mov edx, ebx
mov dword [esp + 8], edi
and edi, 7
je 0x435217
mov dword [esp], edx
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x435200
add eax, edx
add ecx, edx
add dword [esp + 8], edx
mov edx, dword [esp]
cmp edx, 7
mov edi, dword [esp + 8]
jb 0x4352e5
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
movzx ebx, byte [eax + edx - 1]
mov byte [ecx + edx - 1], bl
movzx ebx, byte [eax + edx - 2]
mov byte [ecx + edx - 2], bl
movzx ebx, byte [eax + edx - 3]
mov byte [ecx + edx - 3], bl
movzx ebx, byte [eax + edx - 4]
mov byte [ecx + edx - 4], bl
movzx ebx, byte [eax + edx - 5]
mov byte [ecx + edx - 5], bl
movzx ebx, byte [eax + edx - 6]
mov byte [ecx + edx - 6], bl
movzx ebx, byte [eax + edx - 7]
mov byte [ecx + edx - 7], bl
add edx, 0xfffffff8
cmp edi, edx
jne 0x435230
jmp 0x4352e5
add ebp, ecx
jmp 0x43510c
mov edx, ecx
shr ecx, 2
mov eax, edi
mov dword [esp + 4], edi
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov edi, edx
and edi, 0xfffffffc
add edi, ebx
mov ecx, edx
xor ecx, 3
mov eax, edx
or eax, 0xfffffffc
and eax, ecx
add eax, dword [esp + 4]
mov ecx, edx
and ecx, 3
mov dword [esp + 8], ecx
shr ecx, 1
mov ebx, eax
mov dword [esp], edi
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test dl, 1
je 0x4352e5
mov ecx, edx
and ecx, 2
not edx
or edx, 0xfffffffe
mov edi, dword [esp + 8]
add edi, edx
movzx eax, byte [eax + ecx]
mov ecx, dword [esp]
mov byte [ecx + edi + 1], al
push dword [esp + 4]
call fcn.00408c70
add esp, 4
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x30]
mov dword [edi], ebx
mov ecx, dword [esp + 0x14]
lea eax, [ebx + ecx*4]
mov dword [esp], eax
mov eax, dword [esp + 0xc]
lea eax, [ebx + eax*4]
mov dword [esp + 0xc], eax
mov dword [edi + 8], eax
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x44]
mov eax, ebx
mov ebx, edi
mov edi, dword [esp]
jmp 0x435101
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret