Function at 0x435710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x443d28]
mov esi, 0xffffffff
test eax, eax
je 0x435a6d
mov ecx, dword [0x443d2c]
add ecx, 8
mov ebp, dword [esp + 0x44]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx - 8], 0xdfe873fb
je 0x435754
add ecx, 0xc
dec eax
jne 0x435740
jmp 0x435a6d
mov byte [esp + 0x28], 0
mov dword [esp + 0x24], 0x900000c2
mov dword [esp + 0x20], 0xd2ff0000
mov dword [esp + 0x1c], 0xba00
mov dword [esp + 0x18], 0xb8
mov eax, dword [ecx]
mov dword [esp + 0x19], eax
mov eax, dword [0x443d30]
mov dword [esp + 0x1e], eax
mov word [esp + 0x25], 0x14
mov dword [esp + 4], 0
mov dword [esp + 0x14], 0x10
lea eax, [esp + 0x14]
lea ebx, [esp + 4]
push 0x40
push 0x3000
push eax
push 0
push ebx
push 0xffffffffffffffff
call dword [0x443d34]
mov edi, dword [esp + 4]
lea eax, [esp + 0x18]
mov dword [esp + 8], eax
mov ecx, 4
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 2
push dword [esp + 0x50]
call dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0x8000
push eax
push ebx
push 0xffffffffffffffff
call dword [0x443d38]
cmp esi, 0xc0000023
jne 0x435a6d
push dword [esp + 0xc]
call fcn.00430260
add esp, 4
mov ebx, dword [0x443d28]
mov esi, 0xffffffff
test ebx, ebx
je 0x435a64
mov dword [esp], eax
mov eax, dword [esp + 0xc]
xor edx, edx
mov ecx, dword [0x443d2c]
nop
nop
nop
nop
nop
nop
nop
lea edi, [edx + edx*2]
cmp dword [ecx + edi*4], 0xdfe873fb
je 0x435860
mov edi, edx
and edi, 1
xor edx, 1
lea edx, [edx + edi*2]
cmp edx, ebx
jb 0x435840
jmp 0x43598a
mov byte [esp + 0x28], 0
mov dword [esp + 0x24], 0x900000c2
mov dword [esp + 0x20], 0xd2ff0000
mov dword [esp + 0x1c], 0xba00
mov dword [esp + 0x18], 0xb8
mov esi, eax
mov eax, dword [ecx + edi*4 + 8]
mov dword [esp + 0x19], eax
mov eax, dword [0x443d30]
mov dword [esp + 0x1e], eax
mov word [esp + 0x25], 0x14
mov dword [esp + 4], 0
mov dword [esp + 0x14], 0x10
push 0x40
push 0x3000
lea eax, [esp + 0x1c]
push eax
push 0
lea ebx, [esp + 0x14]
push ebx
push 0xffffffffffffffff
call dword [0x443d34]
mov edi, dword [esp + 4]
mov ecx, 4
mov eax, dword [esp + 8]
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea eax, [esp + 0xc]
push eax
push esi
push dword [esp + 8]
push 2
push dword [esp + 0x50]
call dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], 0
push 0x8000
lea eax, [esp + 0x14]
push eax
push ebx
push 0xffffffffffffffff
call dword [0x443d38]
test esi, esi
js 0x43598a
cmp dword [esp + 0x48], 0
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
je 0x435a10
test ebp, ebp
mov eax, dword [esp]
je 0x435a05
mov eax, dword [eax + 0x10]
shr eax, 1
mov ecx, dword [esp + 0x48]
mov ecx, dword [ecx]
cmp ecx, eax
jb 0x435943
mov ecx, eax
test ecx, ecx
je 0x4359fc
mov eax, dword [esp]
add eax, 0x2c
mov dword [esp + 8], ecx
and ecx, 3
je 0x435992
xor edi, edi
movzx ebx, word [eax]
xor edx, edx
test bx, bx
setne dl
lea eax, [eax + edx*2]
mov word [ebp], bx
add ebp, 2
inc edi
cmp ecx, edi
jne 0x43595c
mov ecx, dword [esp + 8]
sub ecx, edi
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
jmp 0x435996
mov eax, dword [esp]
jmp 0x435a64
mov ecx, dword [esp + 8]
cmp dword [esp + 8], 4
jb 0x4359fc
movzx edx, word [eax]
xor ebx, ebx
test dx, dx
setne bl
lea edi, [eax + ebx*2]
mov word [ebp], dx
movzx eax, word [eax + ebx*2]
xor edx, edx
test ax, ax
setne dl
lea ebx, [edi + edx*2]
mov word [ebp + 2], ax
movzx eax, word [edi + edx*2]
xor edx, edx
test ax, ax
setne dl
lea edi, [ebx + edx*2]
mov word [ebp + 4], ax
movzx edx, word [ebx + edx*2]
xor eax, eax
test dx, dx
setne al
mov word [ebp + 6], dx
add ebp, 8
lea eax, [edi + eax*2]
add ecx, 0xfffffffc
jne 0x43599d
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov word [ebp], 0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
shr eax, 1
mov ecx, dword [esp + 0x48]
mov dword [ecx], eax
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x435a20
mov eax, dword [esp]
mov eax, dword [eax + 0x14]
mov dword [ecx], eax
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x435a32
mov eax, dword [esp]
mov eax, dword [eax + 0x18]
shr eax, 1
mov dword [ecx], eax
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x435a44
mov eax, dword [esp]
mov eax, dword [eax + 0x1c]
shr eax, 1
mov dword [ecx], eax
test ebx, ebx
mov eax, dword [esp]
je 0x435a50
mov ecx, dword [eax + 0x20]
mov dword [ebx], ecx
test edi, edi
je 0x435a5b
mov ecx, dword [eax + 0x24]
shr ecx, 1
mov dword [edi], ecx
test edx, edx
je 0x435a64
mov ecx, dword [eax + 0x28]
mov dword [edx], ecx
push eax
call fcn.004302c0
add esp, 4
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret