Function at 0x4b293a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax]
mov edx, dword [ebp + 8]
cmp dword [edx + 4], ecx
jb 0x4b2993
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cx, word [eax]
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cx, word [eax + 2]
xor ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov dword [eax], edx
jmp 0x4b29c6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax]
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 2]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov dword [eax], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jne 0x4b2b71
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x20], 0
jne 0x4b2b57
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 8]
and ecx, 7
test ecx, ecx
jne 0x4b2ab1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
cmp dword [eax + 0x40], 0
jl 0x4b2a32
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [edx + 0x3c]
cmp edx, dword [ecx + 0x40]
jl 0x4b2a32
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 8]
or edx, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 8], edx
mov dword [ebp - 0x1c], 0xffffffff
jmp 0x4b2aa9
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x1c]
sub ecx, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
cmp dword [edx + 0x1c], 0
jge 0x4b2a69
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.0048d880
add esp, 8
mov dword [ebp - 0x20], eax
jmp 0x4b2aa3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x3c]
add ecx, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [eax + 0x3c], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x18]
xor ecx, ecx
mov cl, byte [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x18]
add ecx, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
jmp 0x4b2ab8
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4b2ad5
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], 1
mov dword [ebp - 0x18], 0xff
mov edx, dword [ebp + 8]
mov al, byte [edx + 0x1c]
mov byte [ebp - 0x14], al
mov ecx, dword [ebp + 8]
mov dl, byte [ebp - 0x18]
mov byte [ecx + 0x1c], dl
mov eax, dword [ebp - 0x14]
and eax, 0xff
cmp eax, 0xff
jne 0x4b2b39
cmp dword [ebp - 0x18], 0x8f
jle 0x4b2b1b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
add edx, 0xff00
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 8
jmp 0x4b2b37
mov edx, dword [ebp - 0x18]
shl edx, 9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, edx
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 8], 7
jmp 0x4b2b55
mov ecx, dword [ebp - 0x18]
shl ecx, 8
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov dword [edx + 8], 8
jmp 0x4b2b71
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, 0xff00
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 8], 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
shl edx, 1
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
sub edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
and edx, 0x8000
test edx, edx
je 0x4b29c6
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret