Function at 0x4b5dc4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x6c]
mov eax, dword [ecx + 0x34]
sub eax, edx
mov edx, eax
mov eax, dword [ebp + 8]
sub edx, dword [eax + 0x64]
mov eax, edx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b5e12
mov eax, dword [ebp + 8]
cmp dword [eax + 0x64], 0
jne 0x4b5e12
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6c], 0
jne 0x4b5e12
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x4b5f53
cmp dword [ebp - 8], 0xffffffff
jne 0x4b5e22
lea eax, [ebp - 8]
dec dword [eax]
jmp 0x4b5f53
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x24]
sub eax, 0x106
cmp dword [ecx + 0x64], eax
jb 0x4b5f53
sub esp, 4
push dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x30]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x30]
call sub.msvcrt.dll_memcpy
add esp, 0x10
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + 0x68]
sub eax, edx
mov dword [ecx + 0x68], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + 0x64]
sub eax, edx
mov dword [ecx + 0x64], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + 0x54]
sub eax, edx
mov dword [ecx + 0x54], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
add eax, eax
mov edx, dword [edx + 0x3c]
add edx, eax
mov dword [ebp - 0x18], edx
sub dword [ebp - 0x18], 2
mov edx, dword [ebp - 0x18]
mov ax, word [edx]
mov ecx, eax
and ecx, 0xffff
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jb 0x4b5ed3
mov edx, dword [ebp - 0x14]
mov word [ebp - 0x1a], dx
mov eax, dword [ebp - 0xc]
sub word [ebp - 0x1a], ax
jmp 0x4b5ed9
mov word [ebp - 0x1a], 0
mov ax, word [ebp - 0x1a]
mov ecx, dword [ebp - 0x18]
mov word [ecx], ax
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0
je 0x4b5eee
jmp 0x4b5ea6
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
add edx, edx
mov eax, dword [eax + 0x38]
add eax, edx
mov dword [ebp - 0x18], eax
sub dword [ebp - 0x18], 2
mov ecx, dword [ebp - 0x18]
mov ax, word [ecx]
mov edx, eax
and edx, 0xffff
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0xc]
jb 0x4b5f31
mov eax, dword [ebp - 0x14]
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0xc]
sub word [ebp - 0x1c], ax
jmp 0x4b5f37
mov word [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov word [edx], cx
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0
je 0x4b5f4b
jmp 0x4b5f04
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
add dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax + 4], 0
jne 0x4b5f63
jmp 0x4b6014
sub esp, 4
push dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
mov edx, dword [edx + 0x30]
add edx, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6c]
lea eax, [edx + ecx]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.004b5980
add esp, 0x10
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6c]
add eax, dword [ebp - 0x10]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6c], 2
jbe 0x4b5ff8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
add eax, dword [edx + 0x30]
mov al, byte [eax]
and eax, 0xff
mov dword [ecx + 0x40], eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x50]
mov eax, dword [edx + 0x40]
shl eax, cl
mov ecx, eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
add eax, dword [edx + 0x30]
inc eax
mov al, byte [eax]
and eax, 0xff
mov edx, ecx
xor edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4c]
and eax, edx
mov dword [ebx + 0x40], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6c], 0x105
ja 0x4b6014
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax + 4], 0
je 0x4b6014
jmp 0x4b5dd4
mov ebx, dword [ebp - 4]
leave
ret