Function at 0x410e80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff8c
mov ebx, eax
mov dword [esp], edx
movzx eax, word [ebx]
mov dword [esp + 4], eax
dec eax
mov dword [esp + 8], eax
mov edx, dword [esp]
mov eax, dword [edx + 0x650]
jmp 0x410ed5
mov edx, eax
lea esi, [eax - 0x16]
sub eax, 6
mov ecx, dword [edx]
mov dword [esp + 0x10], ecx
mov cx, word [edx + 4]
mov dword es:[esp + 0x14], ecx
mov ecx, dword [esi]
mov dword [edx], ecx
mov cx, word [esi + 4]
mov word [edx + 4], cx
mov edx, dword [esp + 0x10]
mov dword [esi], edx
mov dx, word [esp + 0x14]
mov word [esi + 4], dx
cmp eax, dword [ebx + 4]
jne 0x410ea3
mov edx, dword [ebx + 4]
add byte [edx + 1], 4
add word [ebx + 2], 4
movzx edx, word [ebx + 2]
movzx esi, byte [eax + 1]
sub edx, esi
mov ecx, dword [esp]
cmp dword [ecx + 0x65c], 0
setne cl
and ecx, 1
mov dword [esp + 0xc], ecx
mov ecx, esi
add ecx, dword [esp + 0xc]
sar ecx, 1
mov byte [eax + 1], cl
and ecx, 0xff
mov word [ebx + 2], cx
add eax, 6
movzx esi, byte [eax + 1]
sub edx, esi
mov ecx, esi
add ecx, dword [esp + 0xc]
sar ecx, 1
mov byte [eax + 1], cl
and ecx, 0xff
add word [ebx + 2], cx
mov cl, byte [eax + 1]
cmp cl, byte [eax - 5]
jbe 0x410f7d
mov esi, eax
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov cx, word [eax + 4]
mov word [esp + 0x1c], cx
mov ecx, dword [esi - 6]
mov dword [esi], ecx
mov cx, word [esi - 2]
mov word [esi], cx
add al, 0x83
out dx, al
push es
cmp esi, dword [ebx + 4]
je 0x410f6e
mov cl, byte [esi - 5]
cmp cl, byte [esp + 0x19]
jb 0x410f50
mov ecx, dword [esp + 0x18]
mov dword [esi], ecx
mov cx, word [esp + 0x1c]
mov word [esi + 4], cx
dec dword [esp + 8]
jne 0x410f19
cmp byte [eax + 1], 0
jne 0x41101b
inc dword [esp + 8]
sub dword [eax + 6], 0xffffff80
js 0x410f98
add byte [ebx + esi*8 + 0x66], dh
mov eax, dword [esp + 8]
je 0x410f8d
mov ax, word [esp + 8]
add edx, dword [esp + 8]
inc esi
sub dword [ebx], eax
mov ax, word [ebx]
cmp ax, 1
jne 0x41101b
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
mov ax, word [ecx + 4]
mov word [esp + 0x24], ax
xor ecx, ecx
mov cl, byte [esp + 0x21]
sar ecx, 1
sub byte [esp + 0x21], cl
sar edx, 1
cmp edx, 1
jg 0x410fc1
mov ecx, dword [esp + 4]
mov eax, dword [esp]
inc ecx
add eax, 0x4a8c
sar ecx, 1
mov edx, dword [ebx + 4]
add ebx, 2
movzx ecx, byte [eax + ecx + 0x29]
mov esi, dword [eax + ecx*4 + 0xb8]
mov dword [edx], esi
mov dword [eax + ecx*4 + 0xb8], edx
mov eax, dword [esp]
mov dword [eax + 0x650], ebx
mov eax, dword [esp + 0x20]
mov dword [ebx], eax
mov ax, word [esp + 0x24]
mov word [ebx + 4], ax
jmp 0x4111f7
mov ecx, edx
sar ecx, 1
sub edx, ecx
add word [ebx + 2], dx
mov edx, dword [esp + 4]
inc edx
sar edx, 1
mov dword [esp + 0x28], edx
movzx eax, word [ebx]
inc eax
sar eax, 1
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x28]
cmp edx, dword [esp + 0x2c]
je 0x4111eb
mov esi, dword [esp]
mov eax, dword [esp + 0x28]
mov edi, dword [ebx + 4]
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x2c]
add esi, 0x4a8c
mov dword [esp + 0x34], edx
xor eax, eax
mov ecx, dword [esp + 0x30]
mov al, byte [esi + ecx + 0x29]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x34]
movzx ebp, byte [esi + edx + 0x29]
cmp ebp, dword [esp + 0x38]
jne 0x411088
mov eax, edi
jmp 0x4110e8
cmp dword [esi + ebp*4 + 0xb8], 0
je 0x4110fc
mov dword [esp + 0x40], ebp
mov edx, dword [esp + 0x40]
mov ecx, dword [esi + edx + 0xb8]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ecx, dword [edx]
mov edx, edi
mov dword [esi + eax*4 + 0xb8], ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
shl ecx, 2
lea ecx, [ecx + ecx*2]
call fcn.0040fc34
mov edx, dword [esp + 0x38]
mov dword [eax + 0x48], edx
mov ecx, dword [esp + 0x48]
mov eax, dword [esi + ecx*4 + 0xb8]
mov dword [edi], eax
mov edx, dword [esp + 0x48]
mov dword [esi + edx*4 + 0xb8], edi
mov eax, dword [esp + 0x3c]
jmp 0x4111e8
mov edx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ebp
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov al, byte [esi + ecx + 4]
xor ecx, ecx
mov cl, byte [esi + edx + 4]
xor edx, dword [edx + 0x4489c12b]
and al, 0x54
mov eax, dword [esp + 0x50]
mov dl, byte [esi + eax + 4]
mov ecx, edx
xor edx, edx
shl ecx, 2
lea ecx, [ecx + ecx*2]
add ecx, edi
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x54]
mov dl, byte [esi + eax + 0x29]
xor eax, eax
mov dword [esp + 0x5c], edx
mov al, byte [esi + edx + 4]
cmp eax, dword [esp + 0x54]
je 0x4111b0
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x60], ecx
dec dword [esp + 0x5c]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov ecx, dword [esi + edx*4 + 0xb8]
mov dword [eax], ecx
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov dword [esi + edx*4 + 0xb8], ecx
xor edx, edx
mov eax, dword [esp + 0x5c]
mov dl, byte [esi + eax + 4]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x68]
shl eax, 2
lea eax, [eax + eax*2]
add dword [esp + 0x58], eax
mov ecx, dword [esp + 0x5c]
sub dword [esp + 0x54], ecx
mov eax, dword [esp + 0x58]
xor ecx, ecx
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x54]
mov cl, byte [esi + edx + 0x29]
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esi + eax*4 + 0xb8]
mov dword [eax], edx
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov dword [esi + eax*4 + 0xb8], edx
mov eax, edi
mov dword [ebx + 4], eax
mov edx, dword [esp]
mov ecx, dword [ebx + 4]
mov dword [edx + 0x650], ecx
add esp, 0x74
pop ebp
pop edi
pop esi
pop ebx
ret