Function at 0x4350dc
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004069f4
xor eax, eax
push ebp
push 0xfdbb53be
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x43514e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
je 0x43514e
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x43514e
cmp dword [ebp - 0xc], 0
je 0x43514e
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x435139
cmp eax, 0
je 0x43514e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x43514c
cmp eax, 0
je 0x435155
xor ebx, ebx
jmp 0x43539a
mov eax, dword [ebp - 0xc]
call fcn.0041de5c
mov dword [ebp - 0x18], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.0041de84
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.00421e0c
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.0041de84
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.0041de84
push ebp
push 0xfdbb5369
push dword fs:[0]
mov dword fs:[0], esp
mov edx, dword [ebp - 4]
mov eax, edx
test eax, eax
je 0x4351be
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x100
jle 0x4351f9
push pe_nt_image_headers32
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0xfdbb4df8]
call fcn.00408144
add esp, 4
lea eax, [ebp - 4]
call fcn.00406dfc
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, pe_nt_image_headers32
call fcn.00434e24
jmp 0x43523a
mov ebx, edx
test ebx, ebx
je 0x435204
sub ebx, 4
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0xfdbb4df8]
call fcn.00408144
add esp, 4
lea eax, [ebp - 4]
call fcn.00406dfc
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x435231
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
xchg ecx, eax
call fcn.00434e24
xor esi, esi
lea eax, [ebp - 0x418]
mov dword [eax], esi
inc esi
add eax, 4
cmp esi, 0x100
jne 0x435242
xor ebx, ebx
xor esi, esi
lea ecx, [ebp - 0x418]
mov edi, dword [ebp - 4]
test edi, edi
je 0x435266
sub edi, 4
mov edi, dword [edi]
mov eax, esi
cdq
idiv edi
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edx]
add ebx, dword [ecx]
add eax, ebx
and eax, 0x800000ff
jns 0x435284
dec eax
or eax, 0xffffff00
inc eax
mov ebx, eax
movzx eax, byte [ecx]
mov byte [ebp - 0x11], al
mov eax, dword [ebp + ebx*4 - 0x418]
mov dword [ecx], eax
movzx eax, byte [ebp - 0x11]
mov dword [ebp + ebx*4 - 0x418], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x43525a
xor ebx, ebx
xor esi, esi
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov edi, eax
dec edi
test edi, edi
jl 0x43535f
inc edi
inc ebx
and ebx, 0x800000ff
jns 0x4352d4
dec ebx
or ebx, 0xffffff00
inc ebx
add esi, dword [ebp + ebx*4 - 0x418]
and esi, 0x800000ff
jns 0x4352eb
dec esi
or esi, 0xffffff00
inc esi
movzx eax, byte [ebp + ebx*4 - 0x418]
mov byte [ebp - 0x11], al
mov eax, dword [ebp + esi*4 - 0x418]
mov dword [ebp + ebx*4 - 0x418], eax
movzx eax, byte [ebp - 0x11]
mov dword [ebp + esi*4 - 0x418], eax
lea edx, [ebp - 0x11]
mov ecx, 1
mov eax, dword [ebp - 0xc]
call fcn.00420cc8
mov eax, dword [ebp + ebx*4 - 0x418]
add eax, dword [ebp + esi*4 - 0x418]
and eax, 0x800000ff
jns 0x43533b
dec eax
or eax, 0xffffff00
inc eax
movzx eax, byte [ebp + eax*4 - 0x418]
xor byte [ebp - 0x11], al
lea edx, [ebp - 0x11]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, 1
call fcn.00421b14
dec edi
jne 0x4352c3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43537c
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
mov eax, dword [ebp - 0xc]
call fcn.0041de84
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.0041de84
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xfdbb53c5
lea eax, [ebp - 8]
mov edx, dword [0xfdbb4df8]
call fcn.00408268
lea eax, [ebp - 4]
call fcn.00406924
ret