Function at 0x67426c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x4c]
movzx edx, word [edx + 0xe]
imul edx
call fcn.00673de8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 0xd400
add eax, 0x4000
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
call fcn.00406fa4
mov dword [ebp - 0x34], eax
push ebp
push 0x674684
push dword fs:[0]
mov dword fs:[0], esp
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x4c]
imul dword [edx + 8]
add eax, eax
call fcn.00406fa4
mov dword [ebp - 0x38], eax
push ebp
push 0x674665
push dword fs:[0]
mov dword fs:[0], esp
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
add eax, 0xc000
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
add eax, 0xc000
add eax, 0x1400
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x44]
mov ecx, ebx
shr ecx, 8
mov byte [edx + eax*4], cl
mov edx, dword [ebp - 0x44]
mov ecx, ebx
shr ecx, 4
and cl, 0xf
mov byte [edx + eax*4 + 1], cl
mov edx, dword [ebp - 0x44]
mov ecx, ebx
and cl, 0xf
mov byte [edx + eax*4 + 2], cl
mov edx, dword [ebp - 0x44]
xor ecx, ecx
mov dword [edx + eax*4 + 4], ecx
inc ebx
cmp ebx, 0x1000
jne 0x674311
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x6743db
inc eax
mov dword [ebp - 0x48], eax
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 8]
dec eax
sub eax, ebx
imul eax, dword [ebp - 0x14]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
call fcn.0040729c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
dec eax
test eax, eax
jl 0x6743d5
inc eax
movzx ecx, byte [edx + 2]
and cl, 0xf0
movzx esi, cl
shl esi, 4
movzx ecx, byte [edx + 1]
and cl, 0xf0
movzx ecx, cl
add si, cx
movzx ecx, byte [edx]
and cl, 0xf0
movzx ecx, cl
shr ecx, 4
add si, cx
mov ecx, esi
movzx esi, cx
lea esi, [esi + esi*2]
mov edi, dword [ebp - 0x44]
inc dword [edi + esi*4 + 4]
add edx, 3
mov esi, dword [ebp - 0x3c]
mov word [esi], cx
add dword [ebp - 0x3c], 2
dec eax
jne 0x67438d
inc ebx
dec dword [ebp - 0x48]
jne 0x674363
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 0x40]
xor ecx, ecx
mov dword [edx + eax*4 + 0x10], ecx
mov edx, dword [ebp - 0x40]
xor ecx, ecx
mov dword [edx + eax*4 + 0xc], ecx
mov edx, dword [ebp - 0x40]
xor ecx, ecx
mov dword [edx + eax*4 + 8], ecx
xor ecx, ecx
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 0x40]
lea edx, [edx + eax*4]
mov byte [edx + ecx], 0
mov edx, dword [ebp - 0x40]
lea eax, [edx + eax*4]
mov byte [eax + ecx + 3], 0xff
inc ecx
cmp ecx, 3
jne 0x6743fd
inc ebx
cmp ebx, 0x100
jne 0x6743dd
xor ebx, ebx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x44]
cmp dword [edx + eax*4 + 4], 0
jg 0x67443c
inc ebx
cmp ebx, 0x1000
jl 0x674426
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x44]
lea eax, [edx + eax*4]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 0x44]
lea edx, [ecx + edx*4]
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x10], edx
mov ecx, 1
inc ebx
cmp ebx, 0x1000
jge 0x674488
lea edx, [ebx + ebx*2]
mov esi, dword [ebp - 0x44]
cmp dword [esi + edx*4 + 4], 0
jle 0x67447f
mov esi, dword [ebp - 0x44]
lea esi, [esi + edx*4]
mov dword [eax + 8], esi
mov eax, dword [ebp - 0x44]
lea eax, [eax + edx*4]
inc ecx
inc ebx
cmp ebx, 0x1000
jl 0x674462
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x40]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x4c]
imul dword [edx + 8]
mov edx, dword [ebp - 0x40]
mov dword [edx + 0xc], eax
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x34]
add eax, 0xc000
add eax, 0x1400
add eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [ebp - 0x40]
call fcn.00673f78
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
jle 0x674504
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
dec eax
sub eax, ebx
jl 0x674504
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
lea esi, [eax + ebx*4]
mov eax, esi
xor ecx, ecx
mov edx, 4
call fcn.00407c24
add esi, 4
dec dword [ebp - 0x48]
jne 0x6744ee
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jl 0x6745c1
inc eax
mov dword [ebp - 0x48], eax
xor ebx, ebx
mov esi, dword [ebp + 8]
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx + eax*4 + 8]
test ecx, ecx
jle 0x6745b4
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + eax*4 + 0x10]
xor edx, edx
mov dword [ebp - 0x28], edx
xor edx, edx
mov dword [ebp - 0x2c], edx
xor edx, edx
mov dword [ebp - 0x30], edx
test eax, eax
je 0x674563
mov byte [eax + 3], bl
movzx edx, byte [eax]
add dword [ebp - 0x28], edx
movzx edx, byte [eax + 1]
add dword [ebp - 0x2c], edx
movzx edx, byte [eax + 2]
add dword [ebp - 0x30], edx
mov eax, dword [eax + 8]
test eax, eax
jne 0x674545
mov edi, esi
mov eax, dword [ebp - 0x28]
shl eax, 4
or eax, 0xf
cdq
idiv ecx
mov byte [edi + 2], al
mov eax, dword [ebp - 0x2c]
shl eax, 4
or eax, 0xf
cdq
idiv ecx
mov byte [edi + 1], al
mov eax, dword [ebp - 0x30]
shl eax, 4
or eax, 0xf
cdq
idiv ecx
mov byte [edi], al
mov byte [edi + 3], 0
cmp byte [edi + 2], 0x10
ja 0x6745b4
cmp byte [edi + 1], 0x10
ja 0x6745b4
cmp byte [edi], 0x10
ja 0x6745b4
mov eax, esi
xor ecx, ecx
mov edx, 4
call fcn.00407c24
inc ebx
add esi, 4
dec dword [ebp - 0x48]
jne 0x674519
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
add eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
add eax, eax
add eax, eax
add eax, eax
call fcn.00673de8
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x4c]
mov edx, dword [edx + 8]
imul edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
xor ecx, ecx
call fcn.00407c24
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x67464d
inc eax
mov dword [ebp - 0x48], eax
xor ebx, ebx
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 8]
dec eax
sub eax, ebx
imul dword [ebp - 0x18]
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov edx, ebx
imul edx, dword [ebp - 0x1c]
add edx, dword [ebp - 8]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
dec eax
test eax, eax
jl 0x674647
inc eax
mov ecx, dword [ebp - 0x10]
movzx ecx, word [ecx]
lea ecx, [ecx + ecx*2]
mov esi, dword [ebp - 0x44]
movzx ecx, byte [esi + ecx*4 + 3]
mov byte [edx], cl
add dword [ebp - 0x10], 2
inc edx
dec eax
jne 0x67462c
inc ebx
dec dword [ebp - 0x48]
jne 0x674605
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67466c
mov eax, dword [ebp - 0x38]
call fcn.00406fd8
pop eax
jmp eax