Function at 0x411cf4
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 [0xaa1df8]
mov ebp, 0xa3d
mov eax, dword [eax + ecx*4]
add eax, dword [0xaa1de8]
inc bl
mov dword [esp + 0x10], eax
mov eax, 0x15aa
cdq
idiv dword [esp + 0x30]
mov dword [esp + 0x20], ecx
mov ecx, dword [0xaa1e20]
mov dword [esp + 0x14], eax
mov eax, 0xffff
movzx edx, si
add si, ax
mov eax, dword [0xaa1e08]
push edi
mov edi, dword [0xaa1dec]
movzx ecx, word [ecx + edx*4]
mov word [0xaa1df8], 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 [0xaa1e08], 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 + 0x1641], edx
je 0x411db7
mov eax, dword [esp + 0x30]
movzx eax, byte [eax]
cmp dword [ebp + eax*4 + 0x20], 0x2646
jl 0x411e8e
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 [0xaa1df8], si
cmp eax, ecx
jle 0x411e8a
mov edx, dword [0xaa1e00]
mov eax, 0xffff
or edx, dword [esp + 0x1c]
add si, ax
movzx eax, si
mov word [0xaa1df8], si
movzx ecx, byte [eax + edi]
movzx eax, byte [0xaa1dfa]
or ecx, eax
push ecx
push edx
call fcn.004118fb
mov ecx, dword [esp + 0x34]
inc bl
mov dword [0xaa1de4], eax
movzx edi, bl
mov ebx, dword [esp + 0x38]
mov eax, dword [ecx + 0x47a0]
or eax, dword [ecx + 0x1958]
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 + 0x1641]
mov dword [esi*8 + 0x1641], eax
push dword [0xaa1e00]
mov eax, dword [esp + 0x40]
dec eax
push eax
call fcn.004118fb
movzx ecx, byte [ebx]
add esp, 0x10
mov dword [ebp + ecx*4], eax
movzx eax, byte [0x1ed1]
mov ecx, dword [esp + 0x44]
jmp 0x411f36
mov ecx, dword [esp + 0x10]
mov eax, dword [0xaa1e00]
mov edx, 0x965
inc eax
mov dword [0xaa1e00], eax
movzx eax, byte [edi + eax*4]
cmp eax, edx
jb 0x411eb5
add ecx, 0xdd1
inc eax
cmp eax, edx
jge 0x411ea6
mov dword [esp + 0x10], ecx
mov eax, dword [0xaa1e10]
inc bl
movzx edi, bl
mov ecx, dword [ebp + edi*4 + 0x90]
mov dword [eax + edi*8], ecx
dec dword [0xaa1e14]
inc bl
mov ecx, dword [esp + 0x14]
mov edx, dword [0xaa1df0]
movzx eax, bl
mov ebx, dword [esp + 0x20]
mov esi, eax
add esi, esi
mov ecx, dword [ecx + eax*4]
sub ecx, dword [ebx + eax*8]
mov eax, dword [0xaa1e00]
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 + 0x44], ecx
mov esi, dword [0xaa1dec]
movzx ecx, byte [ebx]
mov edx, dword [0xaa1e14]
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