Function at 0x486e40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, 0xd
sub esp, 0xcc
push ebx
xor eax, eax
push ebp
push esi
push edi
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xd
stosb byte es:[edi], al
lea edi, [esp + 0xa5]
xor eax, eax
xor ebx, ebx
mov byte [esp + 0xa4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xe8]
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jne 0x486ea0
pop edi
mov ax, 0x10
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret 0x18
mov ebp, dword [esp + 0xf4]
cmp bp, 0x38
jbe 0x486ebe
mov ax, 0x14
pop edi
pop esi
pop ebp
pop ebx
sub esp, 0xffffff34
ret 0x18
lea ecx, [esp + 0x1c]
push ebp
push ecx
push eax
call fcn.0047e7f0
and ebp, 0xffff
mov edx, ebp
and edx, 3
je 0x486f00
mov ecx, 4
sub ecx, edx
je 0x486ef7
mov eax, 0xa5a5a5a5
mov esi, ecx
lea edi, [esp + ebp + 0x1c]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 4
sub eax, edx
add ebp, eax
mov al, byte [esp + 0x1e]
cmp ebp, 4
mov cl, byte [esp + 0x1c]
mov dl, byte [esp + 0x1d]
mov byte [esp + 0x54], cl
mov cl, byte [esp + 0x1f]
mov byte [esp + 0x56], al
mov byte [esp + 0x57], cl
mov ecx, ebp
mov byte [esp + 0x55], dl
lea eax, [esp + 0x20]
jbe 0x486f4f
sub ecx, 4
mov dl, byte [eax]
mov byte [esp + ecx + 0x54], dl
inc eax
mov dl, byte [eax]
inc eax
mov byte [esp + ecx + 0x55], dl
mov dl, byte [eax]
mov byte [esp + ecx + 0x56], dl
inc eax
mov dl, byte [eax]
inc eax
cmp ecx, 4
mov byte [esp + ecx + 0x57], dl
ja 0x486f2b
mov eax, dword [esp + 0x1e]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1d]
mov esi, dword [esp + 0x1f]
and esi, 0xff
and eax, 0xff
shl esi, 8
or esi, eax
and ecx, 0xff
shl esi, 8
or esi, ecx
and edx, 0xff
shl esi, 8
mov eax, 4
or esi, edx
cmp eax, ebp
mov edx, ebp
sbb eax, eax
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x18], edx
neg eax
sub eax, 0xffffffee
cmp cx, 0xff
jbe 0x486fc0
mov eax, 0x27
xor edx, edx
mov dl, ch
mov byte [esp + ebp + 0x54], dl
mov byte [esp + ebp + 0x55], 0
lea edx, [ebp + 2]
mov dword [esp + 0x18], edx
and ecx, 0xff
lea edi, [esp + 0x18]
push edi
lea edi, [esp + 0x58]
push ebp
push edi
push edx
lea edx, [esp + 0x64]
push edx
push ebx
push ecx
push eax
mov eax, dword [esp + 0x100]
push eax
call fcn.00485d40
mov ebx, eax
lea eax, [esp + 0xa4]
mov ecx, dword [esp + 0x18]
cmp ecx, 4
jb 0x487021
mov dl, byte [esp + ecx + 0x50]
add ecx, 0xfffffffc
mov byte [eax], dl
inc eax
mov dl, byte [esp + ecx + 0x55]
mov byte [eax], dl
inc eax
mov dl, byte [esp + ecx + 0x56]
mov byte [eax], dl
inc eax
mov dl, byte [esp + ecx + 0x57]
mov byte [eax], dl
inc eax
cmp ecx, 4
jae 0x486ff9
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0xa5]
mov ecx, dword [esp + 0xa6]
mov eax, dword [esp + 0xa7]
and eax, 0xff
shl eax, 8
and ecx, 0xff
and edx, 0xff
or eax, ecx
shl eax, 8
or eax, edx
mov ecx, dword [esp + 0xa4]
and ecx, 0xff
shl eax, 8
or eax, ecx
mov dword [esp + 0x10], eax
or bl, bl
jne 0x4870e0
lea edx, [esi + esi]
xor edx, eax
je 0x4870e0
mov eax, dword [esp + 0xec]
test eax, eax
je 0x487093
lea edx, [esp + 0xa4]
mov ecx, dword [esp + 0xf4]
push ecx
push eax
push edx
call fcn.0047e7f0
mov esi, dword [esp + 0xf0]
test esi, esi
je 0x487155
lea eax, [esp + 0x10]
push 4
lea ecx, [esp + ebp + 0xa4]
push eax
push ecx
call fcn.0047e7f0
pop edi
mov dx, word [esp + 0xe]
mov ax, word [esp + 0xc]
mov word [esp + 0x10], dx
mov word [esp + 0x12], ax
mov ax, bx
mov ecx, dword [esp + 0x10]
mov dword [esi], ecx
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret 0x18
cmp bx, 3
jne 0x4870f6
pop edi
mov ax, bx
pop esi
pop ebp
pop ebx
sub esp, 0xffffff34
ret 0x18
mov eax, dword [esp + 0xec]
test eax, eax
je 0x487117
mov edx, dword [esp + 0xf4]
push edx
push eax
mov eax, dword [esp + 0xf0]
push eax
call fcn.0047e7f0
mov esi, dword [esp + 0xf0]
test esi, esi
je 0x48714d
lea ecx, [esp + 0x10]
push 4
lea edx, [esp + ebp + 0x1c]
push ecx
push edx
call fcn.0047e7f0
mov ax, word [esp + 0x12]
mov cx, word [esp + 0x10]
mov word [esp + 0x14], ax
mov word [esp + 0x16], cx
mov edx, dword [esp + 0x14]
mov dword [esi], edx
cmp bx, 2
jne 0x487155
xor ebx, ebx
pop edi
mov ax, bx
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret 0x18