Function at 0x41b130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, ecx
mov edi, dword [esp + 0x34]
mov byte [esp + 2], 0
mov dword [esp + 0x14], ecx
jmp 0x41b165
mov ebx, dword [esp + 0x14]
mov byte [esi + ebp], cl
inc dword [edi + 4]
cmp byte [esp + 2], 0xa
je 0x41b3ca
push 0x1006c792
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
push 8
push 1
lea ecx, [esp + 0xa]
push ecx
push dword [ebx]
call eax
test eax, eax
setg cl
mov dword [esp + 0x10], ecx
jg 0x41b199
cmp dword [ebx], 0xffffffff
jne 0x41b38c
test eax, eax
jle 0x41b3c2
movzx ecx, byte [esp + 2]
mov ebp, dword [edi]
mov edx, dword [edi + 4]
mov ebx, edx
sub ebx, ebp
mov esi, ebp
cmp edx, dword [edi + 8]
jne 0x41b34c
mov dword [esp + 0xc], edx
mov byte [esp + 3], cl
lea eax, [ebx + 1]
mov ecx, ebx
shr ecx, 1
add ecx, ebx
cmp ecx, eax
ja 0x41b1d1
mov ecx, eax
mov dword [esp + 0x1c], ecx
push ecx
call fcn.004081b0
add esp, 4
mov esi, eax
test ebp, ebp
je 0x41b332
cmp esi, ebp
mov eax, dword [esp + 0xc]
mov dword [esp + 4], ebx
jbe 0x41b2a2
cmp eax, esi
jbe 0x41b2a2
test ebx, ebx
je 0x41b320
mov edx, dword [esp + 4]
lea eax, [edx + ebp]
dec eax
lea ecx, [esi + edx]
dec ecx
mov edi, edx
and edi, 7
je 0x41b234
neg edi
xor edx, edx
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x41b220
add eax, edx
add ecx, edx
add edx, dword [esp + 4]
mov edi, ebp
sub edi, dword [esp + 0xc]
cmp edi, 0xfffffff8
ja 0x41b320
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x41b250
jmp 0x41b320
mov ecx, ebx
shr ecx, 2
mov eax, ebp
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov edx, ebx
and edx, 0xfffffffc
lea edi, [esi + edx]
add edx, ebp
mov eax, ebx
and eax, 3
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x18], edx
mov dword [esp + 8], edi
mov ebx, dword [esp + 0x18]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ecx, eax
xor ecx, 0xfffffffe
or eax, 1
and eax, ecx
je 0x41b320
mov edi, dword [esp + 4]
and edi, 2
movzx ecx, byte [edx + edi]
mov ebx, dword [esp + 8]
mov byte [ebx + edi], cl
cmp eax, 1
je 0x41b320
movzx ecx, byte [edx + edi + 1]
mov ebx, dword [esp + 8]
mov byte [ebx + edi + 1], cl
cmp eax, 2
je 0x41b320
movzx eax, byte [edx + edi + 2]
mov ecx, dword [esp + 8]
mov byte [ecx + edi + 2], al
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, dword [esp + 0x34]
push dword [edi]
call fcn.004081c0
add esp, 4
mov ebx, dword [esp + 4]
mov dword [edi], esi
lea eax, [esi + ebx]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x1c]
add eax, esi
mov dword [edi + 8], eax
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov eax, edx
not eax
and eax, ebp
not ebp
and ebp, edx
sub ebp, eax
cmp ebp, ebx
jae 0x41b150
lea eax, [esi + ebp]
inc eax
add esi, ebp
mov edx, esi
mov ebx, ecx
xor ecx, ecx
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edi, eax
xor ecx, ecx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov ecx, ebx
mov edi, dword [esp + 0x34]
mov esi, dword [edi]
jmp 0x41b150
push 0xea8d1240
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
push 2
push dword [ebx]
call eax
push 0xa3d60213
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
push dword [ebx]
call eax
mov dword [ebx], 0xffffffff
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 4