Function at 0x411cd4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
mov bl, byte [esp + 0x24]
movzx ecx, bl
push ebp
push esi
mov si, word [0x5731e8]
mov ebp, 0xa3d
mov eax, dword [eax + ecx*4]
add eax, dword [0x5731d8]
inc bl
mov dword [esp + 0x10], eax
mov eax, 0x15aa
cdq
idiv dword [esp + 0x30]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x573210]
mov dword [esp + 0x14], eax
mov eax, 0xffff
movzx edx, si
add si, ax
mov eax, dword [0x5731f8]
push edi
mov edi, dword [0x5731dc]
movzx ecx, word [ecx + edx*4]
mov word [0x5731e8], si
or ecx, 0x1d78
mov dword [esp + 0x10], ecx
movzx edx, byte [edi + 0x131]
or edx, eax
mov dword [esp + 0x30], 0x1ed2
mov dword [esp + 0x1c], edx
dec eax
mov edx, dword [esp + 0x44]
mov dword [0x5731f8], eax
movzx eax, byte [edx + 0x159b]
sub ebp, eax
movzx eax, bl
movzx edx, byte [eax + edx]
shl eax, 4
mov dword [esp + 0x20], edx
cmp dword [eax + 0x1c62], edx
je 0x411d97
mov eax, dword [esp + 0x30]
movzx eax, byte [eax]
cmp dword [ebp + eax*4 + 0x20], 0x2646
jl 0x411e6e
mov eax, dword [esp + 0x30]
mov cl, byte [eax]
movzx eax, si
mov dl, byte [eax + 0x1ed2]
movzx eax, cl
mov ecx, dword [esp + 0x40]
imul eax, eax, 0xc
mov ecx, dword [eax + ecx + 0x98]
movzx eax, dl
mov edx, 0xffff
add si, dx
mov word [0x5731e8], si
cmp eax, ecx
jle 0x411e6a
mov edx, dword [0x5731f0]
mov eax, 0xffff
or edx, dword [esp + 0x1c]
add si, ax
movzx eax, si
mov word [0x5731e8], si
movzx ecx, byte [eax + edi]
movzx eax, byte [0x5731ea]
or ecx, eax
push ecx
push edx
call fcn.004118db
mov ecx, dword [esp + 0x34]
inc bl
mov dword [0x5731d4], eax
movzx edi, bl
mov ebx, dword [esp + 0x38]
mov eax, dword [ecx + 0x6a58]
or eax, dword [ecx + 0x47a0]
or eax, dword [ebp + 0x11b8]
mov ecx, dword [esp + 0x1c]
cdq
movzx esi, byte [ebx]
idiv dword [ecx + edi*4]
imul eax, dword [esi*8 + 0x1c62]
mov dword [esi*8 + 0x1c62], eax
push dword [0x5731f0]
mov eax, dword [esp + 0x40]
dec eax
push eax
call fcn.004118db
movzx ecx, byte [ebx]
add esp, 0x10
mov dword [ebp + ecx*4], eax
movzx eax, byte [0x1ed1]
mov ecx, dword [esp + 0x44]
jmp 0x411f13
mov ecx, dword [esp + 0x10]
mov eax, dword [0x5731f0]
mov edx, 0x965
inc eax
mov dword [0x5731f0], eax
movzx eax, byte [edi + eax*4]
cmp eax, edx
jb 0x411e95
add ecx, 0xdd1
inc eax
cmp eax, edx
jge 0x411e86
mov dword [esp + 0x10], ecx
mov eax, dword [0x573200]
inc bl
movzx edi, bl
mov ecx, dword [ebp + edi*4 + 0x2c]
mov dword [eax + edi*8], ecx
dec dword [0x573204]
inc bl
mov ecx, dword [esp + 0x14]
mov edx, dword [0x5731e0]
movzx eax, bl
mov ebx, dword [esp + 0x20]
mov ecx, dword [ecx + eax*4]
lea esi, [eax + 6]
sub ecx, dword [ebx + eax*8]
add esi, esi
mov eax, dword [0x5731f0]
mov ebx, dword [esp + 0x24]
movzx eax, byte [eax + ebx + 0x82f]
mov ebx, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [esp + 0x3c]
add ecx, 0x90e
or dword [edx + esi*8], ecx
mov esi, dword [0x5731dc]
movzx ecx, byte [ebx]
mov edx, dword [0x573204]
mov al, byte [eax + ecx*8 + 0x20]
mov ecx, dword [esp + 0x44]
add byte [edx + esi + 0x13], al
mov eax, dword [esp + 0x10]
xor byte [edi + ecx], al
movzx eax, byte [ebx]
movzx eax, byte [eax + ecx + 0x17]
add edi, edi
mov ecx, dword [esp + 0x18]
cdq
idiv dword [ecx + edi*8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret