Function at 0x423c3f
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and dword [ebp - 0x24], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x30], ecx
push 0x10000
lea edi, [ebx + ebx*2 + 6]
call fcn.0046cec5
lea esi, [edi + edi]
mov dword [ebp - 8], eax
push esi
call fcn.0046cec5
push esi
mov dword [ebp - 4], eax
call fcn.0046cec5
push 0x300
mov dword [ebp - 0xc], eax
call fcn.0046cec5
push 0x200
mov dword [ebp - 0x28], eax
lea esi, [eax + 0x100]
call fcn.0046cec5
mov edx, dword [ebp - 0x28]
xor ecx, ecx
add esp, 0x14
cmp edx, ecx
mov dword [ebp - 0x10], eax
je 0x423f3c
cmp dword [ebp - 8], ecx
je 0x423f35
cmp dword [ebp - 4], ecx
je 0x423f35
cmp dword [ebp - 0xc], ecx
je 0x423f35
cmp eax, ecx
je 0x423f35
cmp edi, ecx
jle 0x423cdf
mov ecx, edi
mov edi, dword [ebp - 4]
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 8]
mov ecx, 0x4000
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov edi, edx
xor ecx, ecx
sub edi, esi
sub edx, esi
mov eax, esi
lea esi, [edx + 0x200]
mov edx, 0x100
and byte [edi + eax], 0
mov byte [eax], cl
or byte [esi + eax], 0xff
inc ecx
inc eax
cmp ecx, edx
jl 0x423d01
mov esi, dword [ebp - 0x10]
mov ecx, 0xffffff00
sub ecx, esi
lea eax, [esi + 0x100]
mov byte [eax - 0x100], 0xec
mov byte [eax], 0x14
inc eax
lea edi, [ecx + eax]
cmp edi, edx
jl 0x423d21
push 0xffffffffffffffec
pop eax
mov byte [esi + eax + 0x100], al
inc eax
cmp eax, 0x14
jle 0x423d36
and dword [ebp - 0x14], 0
cmp dword [ebp + 0x14], 0
jle 0x423f05
cmp dword [ebp - 0x24], 0
je 0x423d84
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 4]
or eax, 0xffffffff
lea edx, [edx + ebx - 1]
add ecx, ebx
mov dword [ebp + 0xc], edx
mov edx, dword [ebp - 0xc]
lea ecx, [ecx + ebx*2 - 3]
mov dword [ebp - 0x20], eax
lea esi, [edx + 6]
lea edx, [ebx + ebx*2]
mov dword [ebp + 8], ecx
lea edi, [edi + edx*2]
jmp 0x423da0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], 1
lea esi, [eax + 6]
lea eax, [ebx + ebx*2]
lea edi, [ecx + eax*2]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
xor edx, edx
cmp ebx, edx
mov word [edi + 4], dx
mov word [edi + 2], dx
mov word [edi], dx
jle 0x423ecf
lea eax, [eax + eax*2]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], eax
movsx edx, word [esi]
mov eax, dword [ebp - 0x28]
movzx ebx, byte [ecx]
add eax, 0x100
sar edx, 1
mov dword [ebp - 0x1c], eax
add eax, edx
movzx edx, byte [ecx + 1]
movzx eax, byte [ebx + eax]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
movsx eax, word [esi + 2]
movzx ecx, byte [ecx + 2]
sar eax, 1
add ebx, eax
movsx eax, word [esi + 4]
movzx edx, byte [edx + ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], edx
sar eax, 1
add ebx, eax
movzx eax, byte [ecx + ebx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov ecx, 0xf8
mov ebx, edx
and eax, ecx
and ebx, ecx
mov ecx, dword [ebp - 0x1c]
shl eax, 5
or eax, ebx
shl eax, 2
sar ecx, 3
or eax, ecx
mov ecx, dword [ebp - 8]
cmp word [ecx + eax*2], 0
lea ebx, [ecx + eax*2]
jge 0x423e49
push dword [ebp + 0x20]
mov ecx, dword [ebp - 0x30]
push dword [ebp + 0x1c]
push dword [ebp - 0x1c]
push edx
push dword [ebp - 0x18]
call fcn.00423f81
mov word [ebx], ax
mov ecx, dword [ebp + 0xc]
mov al, byte [ebx]
mov byte [ecx], al
mov ecx, dword [ebp + 0x20]
movsx eax, word [ebx]
movzx edx, byte [eax + ecx]
add eax, ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x100
mov ebx, ecx
mov dword [ebp - 0x38], ecx
sub ebx, edx
mov edx, dword [ebp - 0x18]
movsx edx, byte [ebx + edx]
movzx ebx, byte [eax + 0x100]
movzx eax, byte [eax + 0x200]
sub ecx, ebx
mov ebx, dword [ebp - 0x34]
movsx ecx, byte [ecx + ebx]
mov ebx, dword [ebp - 0x38]
sub ebx, eax
mov eax, dword [ebp - 0x1c]
movsx ebx, byte [ebx + eax]
lea eax, [esi + 6]
mov word [edi], dx
sub edi, 6
add word [eax], dx
mov word [edi + 8], cx
add word [esi + 8], cx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x3c]
mov word [edi + 0xa], bx
add word [esi + 0xa], bx
mov esi, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], ecx
add dword [ebp + 0xc], eax
dec dword [ebp - 0x2c]
jne 0x423dbe
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
push 2
cdq
pop esi
idiv esi
cmp edx, 1
jne 0x423eeb
lea eax, [ebx + 1]
add ecx, eax
add dword [ebp + 0xc], eax
lea ecx, [ecx + eax*2]
mov dword [ebp + 8], ecx
xor eax, eax
cmp dword [ebp - 0x24], eax
sete al
inc dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x14]
jl 0x423d51
push dword [ebp - 0x28]
call fcn.0046cdb1
push dword [ebp - 8]
call fcn.0046cdb1
push dword [ebp - 4]
call fcn.0046cdb1
push dword [ebp - 0xc]
call fcn.0046cdb1
push dword [ebp - 0x10]
call fcn.0046cdb1
add esp, 0x14
push 1
pop eax
jmp 0x423f7a
push edx
call fcn.0046cdb1
pop ecx
cmp dword [ebp - 8], 0
je 0x423f4b
push dword [ebp - 8]
call fcn.0046cdb1
pop ecx
cmp dword [ebp - 4], 0
je 0x423f5a
push dword [ebp - 4]
call fcn.0046cdb1
pop ecx
cmp dword [ebp - 0xc], 0
je 0x423f69
push dword [ebp - 0xc]
call fcn.0046cdb1
pop ecx
cmp dword [ebp - 0x10], 0
je 0x423f78
push dword [ebp - 0x10]
call fcn.0046cdb1
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x1c