Function at 0x42453d
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c0
push ebx
mov ebx, ecx
push esi
push edi
and dword [ebx], 0
cmp dword [ebp + 8], 0
mov dword [ebp - 0x30], ebx
jne 0x424562
mov dword [ebx], 5
jmp 0x424970
push 1
pop edi
push edi
push dword [ebp + 8]
call fcn.004356c0
mov esi, eax
push esi
mov dword [ebp - 4], esi
call fcn.004356f0
add esp, 0xc
test al, al
jne 0x42458b
mov dword [ebx], 2
jmp 0x424970
lea eax, [ebp - 0xc0]
push eax
push esi
call fcn.00435b20
pop ecx
test al, al
pop ecx
jne 0x4245b0
push esi
call fcn.00435700
pop ecx
mov dword [ebx], 0x16
jmp 0x424970
lea eax, [ebp - 0xc0]
push eax
call fcn.00435750
movzx eax, ax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00435770
movsx dx, byte [ebp - 0xbd]
pop ecx
pop ecx
movsx cx, byte [ebp - 0x7f]
imul ecx, edx
movzx ecx, cx
movzx eax, ax
cmp ecx, 0x18
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], ecx
jl 0x4245f5
xor esi, esi
jmp 0x4245f9
mov esi, edi
shl esi, cl
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00435790
test al, al
pop ecx
je 0x424634
lea eax, [ebp - 0x3c0]
push eax
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 4]
call fcn.00435c40
add esp, 0xc
test al, al
jne 0x424650
xor ecx, ecx
lea eax, [ebp - 0x3bf]
mov byte [eax + 1], cl
mov byte [eax], cl
mov byte [eax - 1], cl
inc ecx
add eax, 3
cmp ecx, 0x100
jl 0x42463c
cmp dword [ebp - 8], 8
jge 0x42468c
test esi, esi
jle 0x42468c
xor eax, eax
mov cl, byte [ebp + eax - 0xae]
mov byte [ebp + eax - 0x3be], cl
mov cl, byte [ebp + eax - 0xaf]
mov byte [ebp + eax - 0x3bf], cl
mov cl, byte [ebp + eax - 0xb0]
mov byte [ebp + eax - 0x3c0], cl
add eax, 3
dec esi
jne 0x42465c
mov esi, dword [ebp - 0x10]
lea eax, [esi + esi*2]
push eax
mov dword [ebp - 0x38], eax
call fcn.00484fdd
test eax, eax
pop ecx
mov dword [ebp + 0xc], eax
jne 0x4246b3
push dword [ebp - 4]
call fcn.00435700
pop ecx
mov dword [ebx], edi
jmp 0x424970
lea eax, [ebp - 0xc0]
push eax
call fcn.00435ab0
push eax
call fcn.00484fdd
pop ecx
mov dword [ebp + 0x10], eax
test eax, eax
pop ecx
jne 0x4246d8
push dword [ebp - 4]
call fcn.00435700
jmp 0x424733
mov eax, dword [ebp - 0x20]
imul eax, esi
lea eax, [eax + eax*2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x424710
push dword [ebp - 4]
call fcn.00435700
push dword [ebp + 0x10]
call fcn.00485006
push dword [ebp + 0xc]
call fcn.00485006
add esp, 0xc
jmp 0x4246ac
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x424741
push dword [ebp - 4]
call fcn.00435700
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 0x10]
call fcn.00485006
push dword [ebp + 0xc]
call fcn.00485006
pop ecx
jmp 0x4246ab
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call fcn.004357c0
pop ecx
mov dword [ebp - 0x24], edi
push 8
pop eax
cdq
idiv dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebp - 8]
cmp eax, 0x18
mov dword [ebp - 0x3c], ebx
je 0x424776
dec eax
test eax, eax
jle 0x424776
mov ecx, dword [ebp - 0x24]
dec eax
lea ecx, [ecx + ecx + 1]
mov dword [ebp - 0x24], ecx
jne 0x424769
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x20], 0
jle 0x4248df
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0xc0]
push esi
push eax
push dword [ebp - 4]
call fcn.00435cd0
add esp, 0xc
test eax, eax
je 0x42490d
cmp dword [ebp - 8], 0x18
push edi
push edi
push dword [ebp - 0x10]
jne 0x4247c5
push dword [ebp - 0x14]
lea eax, [ebp - 0xc0]
push esi
push eax
call fcn.00435890
add esp, 0x18
jmp 0x424891
push dword [ebp + 0xc]
lea eax, [ebp - 0xc0]
push esi
push eax
call fcn.00435890
mov eax, dword [ebp - 0x10]
add esp, 0x18
cdq
idiv ebx
xor esi, esi
mov dword [ebp - 0x2c], esi
test eax, eax
mov dword [ebp - 0x40], eax
jle 0x424891
lea eax, [ebx + ebx*2]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 8]
dec eax
je 0x42480d
sub eax, 3
je 0x42480d
sub eax, 4
jne 0x424878
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
lea esi, [ebx - 1]
test esi, esi
mov byte [ebp + 0xb], al
mov dword [ebp - 0x1c], esi
jl 0x424878
mov edi, dword [ebp - 8]
imul esi, edi
neg edi
mov al, byte [ebp - 8]
mov bl, byte [ebp - 0x24]
imul byte [ebp - 0x1c]
mov ecx, esi
push 1
shl bl, cl
mov cl, al
add esi, edi
and bl, byte [ebp + 0xb]
shr bl, cl
or ecx, 0xffffffff
movzx eax, bl
lea eax, [eax + eax*2]
mov bl, byte [ebp + eax - 0x3be]
mov byte [ecx + edx], bl
mov cl, byte [ebp + eax - 0x3bf]
mov byte [edx], cl
mov cl, byte [ebp + eax - 0x3c0]
pop eax
mov byte [eax + edx], cl
add edx, 3
dec dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0
jge 0x424828
mov ebx, dword [ebp - 0x3c]
push eax
pop edi
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x34]
inc esi
cmp esi, dword [ebp - 0x40]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edx
jl 0x4247fd
mov eax, dword [ebp - 0x38]
mov esi, 0x4e67f0
add dword [ebp - 0x14], eax
mov ecx, esi
call fcn.0041df36
cmp dword [eax + 4], edi
jne 0x4248ca
mov ecx, esi
call fcn.0041df36
cmp dword [eax], 0
je 0x4248ca
mov ecx, esi
call fcn.0041df36
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [eax]
neg eax
sbb eax, eax
inc eax
jmp 0x4248cc
xor eax, eax
test eax, eax
jne 0x42493a
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jl 0x424784
push dword [ebp + 0x10]
call fcn.00485006
push dword [ebp + 0xc]
call fcn.00485006
push dword [ebp - 4]
call fcn.00435700
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call fcn.00435700
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call fcn.00485006
push dword [ebp + 0xc]
call fcn.00485006
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov dword [eax], 0x16
jmp 0x424970
push dword [ebp + 0x10]
call fcn.00485006
push dword [ebp + 0xc]
call fcn.00485006
push dword [ebp - 4]
call fcn.00435700
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x30]
mov dword [eax], 0xe
xor eax, eax
jmp 0x424906