Function at 0x4866c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
lea esp, [esp - 0x18]
mov dword [esp], eax
mov byte [esp + 0x14], 0
mov byte [esp + 0x10], 0
mov eax, dword [esp]
mov esi, dword [eax - 0x48]
mov eax, dword [esp]
mov edx, dword [eax - 4]
mov dword [esp + 4], edx
mov dword [esp + 0xc], 1
jmp 0x4869da
mov al, byte [esi]
cmp al, 0x22
jb 0x48673a
sub al, 0x22
je 0x486704
sub al, 5
je 0x48671f
jmp 0x48673a
mov al, byte [esp + 0x14]
test al, al
jne 0x486717
mov al, byte [esp + 0x10]
test al, al
sete byte [esp + 0x10]
add esi, 1
jmp 0x4869da
mov al, byte [esp + 0x10]
test al, al
jne 0x486732
mov al, byte [esp + 0x14]
test al, al
sete byte [esp + 0x14]
add esi, 1
jmp 0x4869da
mov al, byte [esp + 0x14]
test al, al
jne 0x4869ca
mov al, byte [esp + 0x10]
test al, al
jne 0x4869ca
mov al, byte [esi]
cmp al, 0x23
jb 0x4869b3
sub al, 0x23
je 0x48677d
sub al, 0xb
je 0x48677d
sub al, 2
je 0x48677d
sub al, 0x15
je 0x48690e
sub al, 0x20
je 0x48690e
jmp 0x4869b3
cmp dword [esp + 0xc], 1
jne 0x48684f
mov eax, dword [esp]
cmp dword [eax - 0x6c], 0
jle 0x48684f
mov eax, dword [esp]
mov ebx, dword [eax - 0x6c]
mov dword [esp + 8], 1
cmp ebx, dword [esp + 8]
jl 0x486845
sub dword [esp + 8], 1
mov esi, esi
add dword [esp + 8], 1
mov edx, dword [esp]
mov al, byte [esp + 8]
and eax, 0xff
cmp byte [edx + eax - 0x38], 0x20
je 0x4867e7
mov edx, dword [esp]
mov al, byte [esp + 8]
and eax, 0xff
mov al, byte [edx + eax - 0x38]
mov edx, dword [esp + 4]
mov byte [edx], al
add dword [esp + 4], 1
mov edx, dword [esp]
cmp byte [edx - 0x68], 0
je 0x48683b
mov al, byte [esp + 8]
and eax, 0xff
movzx eax, byte [edx + eax - 0x38]
cmp eax, 0x20
je 0x48683b
cmp eax, 0x2d
je 0x48683b
mov ecx, dword [esp]
mov eax, dword [ecx - 0x70]
cdq
mov edi, 3
idiv edi
test edx, edx
jne 0x486834
cmp dword [ecx - 0x70], 0
jle 0x486834
mov eax, dword [esp]
mov al, byte [eax - 0x12e]
mov edx, dword [esp + 4]
mov byte [edx], al
add dword [esp + 4], 1
mov eax, dword [esp]
sub dword [eax - 0x70], 1
cmp ebx, dword [esp + 8]
jg 0x4867b4
mov eax, dword [esp]
mov eax, dword [eax - 0x6c]
add dword [esp + 0xc], eax
mov edx, dword [esp]
mov al, byte [esp + 0xc]
and eax, 0xff
cmp byte [edx + eax - 0x38], 0x20
je 0x4868e7
mov edx, dword [esp]
mov al, byte [esp + 0xc]
and eax, 0xff
cmp byte [edx + eax - 0x38], 0x2e
jne 0x48688a
mov eax, dword [esp]
mov dl, byte [eax - 0x12d]
mov eax, dword [esp + 4]
mov byte [eax], dl
jmp 0x4868a0
mov edx, dword [esp]
mov al, byte [esp + 0xc]
and eax, 0xff
mov dl, byte [edx + eax - 0x38]
mov eax, dword [esp + 4]
mov byte [eax], dl
add dword [esp + 4], 1
mov ecx, dword [esp]
cmp byte [ecx - 0x68], 0
je 0x4868e7
mov eax, dword [ecx - 0x70]
cdq
mov ebx, 3
idiv ebx
test edx, edx
jne 0x4868e7
cmp dword [ecx - 0x70], 0
jle 0x4868e7
mov al, byte [esp + 0xc]
and eax, 0xff
cmp byte [ecx + eax - 0x38], 0x2d
je 0x4868e7
mov eax, dword [esp]
mov dl, byte [eax - 0x12e]
mov eax, dword [esp + 4]
mov byte [eax], dl
add dword [esp + 4], 1
mov edx, dword [esp]
mov al, byte [esp + 0xc]
and eax, 0xff
cmp byte [edx + eax - 0x38], 0x2d
je 0x486901
mov eax, dword [esp]
sub dword [eax - 0x70], 1
add dword [esp + 0xc], 1
add esi, 1
jmp 0x4869da
mov eax, dword [esp]
cmp dword [eax - 0x50], 0
je 0x4869a1
add esi, 1
mov eax, dword [esp]
mov eax, dword [eax - 0x4c]
cmp eax, esi
jbe 0x4869da
movzx eax, byte [esi]
cmp eax, 0x2b
je 0x486939
cmp eax, 0x2d
jne 0x48699c
mov eax, dword [esp]
mov eax, dword [eax - 0x54]
add esi, eax
mov eax, dword [esp]
movzx eax, byte [eax - 0x44]
mov ecx, eax
mov dword [esp + 8], 1
cmp ecx, dword [esp + 8]
jl 0x486987
sub dword [esp + 8], 1
lea esi, [esi]
add dword [esp + 8], 1
mov edx, dword [esp]
mov al, byte [esp + 8]
and eax, 0xff
mov dl, byte [edx + eax - 0x44]
mov eax, dword [esp + 4]
mov ebx, dword [esp + 8]
mov byte [eax + ebx - 1], dl
cmp ecx, dword [esp + 8]
jg 0x486960
mov eax, dword [esp]
movzx eax, byte [eax - 0x44]
add dword [esp + 4], eax
mov eax, dword [esp]
mov dword [eax - 0x50], 0
add esi, 1
jmp 0x4869da
mov dl, byte [esi]
mov eax, dword [esp + 4]
mov byte [eax], dl
add dword [esp + 4], 1
add esi, 1
jmp 0x4869da
cmp byte [esi], 0x2c
je 0x4869c5
mov dl, byte [esi]
mov eax, dword [esp + 4]
mov byte [eax], dl
add dword [esp + 4], 1
add esi, 1
jmp 0x4869da
mov dl, byte [esi]
mov eax, dword [esp + 4]
mov byte [eax], dl
add dword [esp + 4], 1
add esi, 1
mov eax, dword [esp]
mov eax, dword [eax - 0x4c]
cmp eax, esi
ja 0x4866f4
mov eax, dword [esp]
mov edx, dword [eax - 4]
mov eax, dword [esp + 4]
sub eax, edx
lea esp, [esp + 0x18]
pop edi
pop esi
pop ebx
ret