Function at 0x42afa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 8], esi
mov edi, dword [esi + 0x2c]
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x2c]
mov ebx, dword [esi + 0x3c]
add eax, 0xfffffefa
sub ebx, dword [esi + 0x6c]
add eax, edi
sub ebx, edx
cmp dword [esi + 0x6c], eax
jb 0x42b04a
mov ecx, dword [esi + 0x38]
push edi
lea eax, [ecx + edi]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 0x4c]
add esp, 0xc
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
sub dword [esi + 0x5c], edi
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x44]
mov esi, dword [ebp - 4]
lea edx, [eax + esi*2]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp - 4], 0
sub eax, edi
cmp ecx, edi
movzx eax, ax
cmovb eax, dword [ebp - 4]
mov word [edx], ax
sub esi, 1
jne 0x42aff4
mov esi, dword [ebp - 8]
mov eax, dword [esi + 0x40]
mov esi, edi
lea edx, [eax + edi*2]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp - 4], 0
sub eax, edi
cmp ecx, edi
movzx eax, ax
cmovb eax, dword [ebp - 4]
mov word [edx], ax
sub esi, 1
jne 0x42b022
mov esi, dword [ebp - 8]
add ebx, edi
mov ecx, dword [esi]
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x42b185
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x74]
add ecx, edx
add ecx, dword [esi + 0x38]
cmp eax, ebx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
cmovbe ebx, eax
test ebx, ebx
jne 0x42b078
xor ebx, ebx
jmp 0x42b0d1
sub eax, ebx
mov dword [ecx + 4], eax
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x42b095
mov edx, dword [ecx]
mov ecx, dword [ecx + 0x30]
push ebx
call fcn.004315a0
jmp 0x42b0af
cmp eax, 2
jne 0x42b0b8
mov edx, dword [ecx]
mov eax, dword [ecx + 0x30]
test edx, edx
jne 0x42b0a7
xor eax, eax
jmp 0x42b0b5
push ebx
mov ecx, eax
call fcn.004312f0
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [ecx + 0x30], eax
push ebx
push dword [ecx]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [eax], ebx
add dword [eax + 8], ebx
mov edx, dword [esi + 0x74]
add edx, ebx
mov dword [ebp - 0xc], edx
mov dword [esi + 0x74], edx
cmp edx, 3
jb 0x42b0fe
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
movzx edx, byte [eax]
mov dword [esi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [esi + 0x54]
mov dword [esi + 0x48], edx
mov edx, dword [ebp - 0xc]
cmp edx, 0x106
jae 0x42b112
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x42afb4
mov ecx, dword [esi + 0x16c0]
mov edi, dword [esi + 0x3c]
cmp ecx, edi
jae 0x42b185
mov ebx, dword [esi + 0x6c]
add ebx, edx
cmp ecx, ebx
jae 0x42b155
mov eax, 0x102
sub edi, ebx
cmp edi, eax
cmova edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [edi + ebx]
mov dword [esi + 0x16c0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x102]
cmp ecx, eax
jae 0x42b185
sub ebx, ecx
sub edi, ecx
lea eax, [ebx + 0x102]
cmp eax, edi
cmovbe edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret