Function at 0x41bcd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov ebx, eax
mov dword [esp + 4], ecx
mov dword [esp], edx
mov eax, dword [esp]
mov dl, byte [eax + 0x576d]
mov byte [ebx + 0x14a1], dl
mov ecx, dword [esp]
mov al, byte [ecx + 0x576e]
mov byte [ebx + 0x14a0], al
mov edx, dword [esp]
mov ecx, dword [edx + 0x55b8]
mov dword [ebx + 0x149c], ecx
mov eax, dword [esp]
mov edx, dword [eax + 0x4c00]
lea eax, [ebx + 0x6280]
mov dword [ebx + 0x60a4], edx
mov edx, dword [esp]
add edx, 0x55c4
call fcn.0041f2a0
mov edx, dword [ebx + 0x20]
cmp edx, 0x400000
jae 0x41bd92
cmp edx, dword [ebx + 0x149c]
jbe 0x41bd65
mov eax, dword [ebx + 0x149c]
mov esi, 0x400000
sub esi, edx
jmp 0x41bd5e
mov edx, dword [ebx]
lea ecx, [edx + eax]
mov cl, byte [ecx + esi]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [ebx + 0x20]
jb 0x41bd52
jmp 0x41bd92
xor eax, eax
mov esi, dword [ebx + 0x149c]
sub esi, dword [ebx + 0x20]
jmp 0x41bd7e
mov edx, dword [ebx]
lea ecx, [edx + eax]
mov cl, byte [ecx + esi]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [ebx + 0x20]
jb 0x41bd72
xor eax, eax
mov dword [ebx + 0x149c], eax
mov byte [ebx + 0x14a1], 1
push 0x111
mov eax, dword [ebx]
push eax
add eax, dword [ebx + 0x20]
push eax
call fcn.0049fbe4
add esp, 0xc
mov edx, dword [ebx + 0x149c]
mov dword [esp + 8], edx
cmp dword [esp + 4], 0
jne 0x41be21
xor ecx, ecx
mov eax, dword [ebx + 0x149c]
inc eax
and eax, dword [ebx + 0x24]
mov dword [ebx + 0x149c], eax
jmp 0x41be10
mov eax, ecx
mov ecx, dword [ebx]
mov edi, eax
movzx ecx, byte [ecx + edx + 2]
shl edi, 5
xor ecx, edi
and ecx, 0x7fff
mov eax, ecx
mov ecx, dword [ebx + 0x10]
mov esi, dword [ecx + eax*4]
mov ecx, dword [ebx + 0x10]
and esi, dword [ebx + 0x24]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + 0x149c]
mov edx, dword [ebx + 0x14]
mov dword [edx + ecx*4], esi
mov ecx, eax
mov eax, dword [ebx + 0x149c]
inc eax
and eax, dword [ebx + 0x24]
mov dword [ebx + 0x149c], eax
mov edx, dword [ebx + 0x149c]
cmp edx, dword [esp + 8]
jne 0x41bdcb
jmp 0x41bf8c
mov eax, dword [ebx + 0x149c]
inc eax
and eax, dword [ebx + 0x24]
mov dword [ebx + 0x149c], eax
jmp 0x41bf7c
lea edx, [eax + 1]
mov esi, dword [ebx]
and edx, dword [ebx + 0x24]
mov ecx, dword [ebx]
movzx edx, byte [esi + edx]
movzx ecx, byte [ecx + eax]
shl edx, 8
mov esi, eax
add edx, ecx
mov dword [esp + 0xc], edx
mov edx, dword [ebx]
mov edi, dword [ebx]
movzx edi, byte [edi + esi + 1]
movzx edx, byte [edx + esi + 2]
mov edi, dword [edi*4 + 0x4bd234]
shl edi, 3
mov edx, dword [edx*4 + 0x4bd234]
shl edx, 7
add edx, edi
mov edi, dword [ebx]
add edx, ecx
mov ecx, dword [ebx]
and edx, 0x3ffff
movzx ecx, byte [ecx + eax + 3]
mov ecx, dword [ecx*4 + 0x4bd234]
add ecx, edx
and ecx, 0x3ffff
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx]
movzx ecx, byte [ecx + eax + 4]
mov edi, dword [ecx*4 + 0x4bd234]
mov ecx, dword [ebx + 0x10]
add edi, edi
add edi, dword [esp + 0x10]
and edi, dword [ebx + 0x1c]
mov ecx, dword [ecx + edi*4]
and ecx, dword [ebx + 0x24]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc]
mov ebp, dword [ebx + 4]
and ecx, 0x3fff
lea ecx, [ebp + ecx]
push ecx
pop ecx
mov byte [ecx], al
mov ecx, dword [ebx + 8]
mov word [ecx + edx*2], ax
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0xc]
mov dword [edx + ecx*4], esi
mov edx, dword [ebx + 0x10]
mov dword [edx + edi*4], esi
mov edx, dword [esp + 0x14]
mov esi, dword [ebx]
mov ecx, dword [ebx]
movzx esi, byte [esi + edx + 1]
movzx ecx, byte [ecx + edx + 2]
mov esi, dword [esi*4 + 0x4bd234]
shl esi, 3
mov ecx, dword [ecx*4 + 0x4bd234]
shl ecx, 7
add ecx, esi
mov esi, dword [ebx]
movzx esi, byte [esi + edx]
add ecx, esi
and ecx, 0x3ffff
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx]
movzx ecx, byte [ecx + edx + 3]
mov ecx, dword [ecx*4 + 0x4bd234]
add ecx, dword [esp + 0x18]
and ecx, 0x3ffff
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx]
movzx edx, byte [ecx + edx + 4]
mov edx, dword [edx*4 + 0x4bd234]
add edx, edx
add edx, dword [esp + 0x1c]
and edx, dword [ebx + 0x1c]
cmp edi, edx
je 0x41bf62
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov edx, dword [ebx + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [edx + eax*4], ecx
mov eax, dword [ebx + 0x149c]
inc eax
and eax, dword [ebx + 0x24]
mov dword [ebx + 0x149c], eax
mov eax, dword [ebx + 0x149c]
cmp eax, dword [esp + 8]
jne 0x41be36
mov byte [ebx + 0x60a0], 0
mov edx, dword [esp]
lea edi, [ebx + 0x14b0]
mov ecx, 0x12fc
lea esi, [edx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp]
add eax, 0x10
call fcn.0043830c
lea eax, [ebx + 0xda4]
call fcn.0041d710
xor edx, edx
xor ecx, ecx
mov dword [ebx + 0x974], edx
mov dword [ebx + 0x978], ecx
mov byte [ebx + 0x97c], 1
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret