Function at 0x48de30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0xffffffffffffffff
push 0x4c5728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebp
mov ebp, dword [esp + 0x58]
mov eax, dword [ebp]
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
mov ecx, ebp
mov dword [esp + 0x28], esi
call dword [eax + 0x20]
test eax, eax
je 0x48de82
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 8
push edi
lea ecx, [esp + 0x28]
call fcn.00495fb0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 1
lea ecx, [eax + eax]
push 0x20
push ecx
lea eax, [edx + edx]
xor edi, edi
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x68], edi
call fcn.00495d60
test eax, eax
lea ecx, [esp + 0x28]
je 0x48dedd
mov dword [esp + 0x58], 0xffffffff
call fcn.00495c50
pop edi
pop esi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 8
push ebx
push edi
call fcn.00495a50
lea ecx, [esi + 0x44]
call fcn.00483070
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.0048d9a0
mov eax, dword [esi + 0x14]
movzx edx, byte [esi + 0x16]
mov ebx, eax
and ebx, 0xff
shl ebx, 0x10
and eax, 0xff00
add ebx, edx
add ebx, eax
mov eax, dword [esp + 0x14]
cmp eax, edi
mov dword [esp + 0x68], edi
jle 0x48dff0
mov eax, dword [esp + 0x34]
lea ecx, [eax*4]
lea edx, [eax*8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edx
mov eax, dword [ebp]
mov esi, dword [ebp + 8]
mov ecx, ebp
call dword [eax + 0x24]
imul esi, dword [esp + 0x68]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
lea esi, [eax + esi*4]
mov eax, dword [esp + 0x1c]
add ecx, edx
lea edx, [eax + ecx]
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x48dfc7
nop
mov eax, dword [edx + 4]
mov ebp, dword [ecx + 4]
and eax, 0xff
and ebp, 0xff
add eax, ebp
mov ebp, dword [edx]
and ebp, 0xff
add eax, ebp
mov ebp, dword [ecx]
and ebp, 0xff
add eax, ebp
and eax, 0xfffffffc
shl eax, 0x16
add eax, ebx
mov dword [esi], eax
mov eax, dword [esp + 0x10]
add esi, 4
add ecx, 8
add edx, 8
inc edi
cmp edi, eax
jl 0x48df80
mov ebp, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
inc ecx
add esi, edx
xor edi, edi
cmp ecx, eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x18], esi
jl 0x48df53
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 0x18]
or ebx, 0xffffffff
cmp ecx, ebx
je 0x48e215
push 1
push 0x20
push eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00495d60
test eax, eax
lea ecx, [esp + 0x2c]
je 0x48e03c
mov dword [esp + 0x5c], ebx
call fcn.00495c50
pop ebx
pop edi
pop esi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 8
push edi
call fcn.00495a50
mov eax, dword [esi + 0x18]
movzx edx, byte [esi + 0x1a]
mov edi, dword [esi + 0x2c]
mov ecx, eax
and ecx, 0xff
shl ecx, 0x10
and eax, 0xff00
add ecx, edx
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
cmp edi, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x64], edi
jge 0x48e100
mov eax, dword [esp + 0x34]
mov ebx, eax
imul ebx, edi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x1c], eax
lea ebx, [ebx]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
mov edx, dword [esi + 0x2c]
mov ecx, edi
sub ecx, edx
imul ecx, dword [esp + 0x28]
lea edx, [eax + ecx*4]
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x30]
add ebx, eax
lea ecx, [ecx + ebx*4]
cmp eax, dword [esp + 0x10]
jge 0x48e0e5
lea esp, [esp]
mov ebx, dword [edx]
and ebx, 0xff000000
je 0x48e0d6
mov edi, dword [esp + 0x20]
add ebx, edi
mov edi, dword [esp + 0x64]
mov dword [ecx], ebx
mov ebx, dword [esp + 0x10]
add edx, 4
add ecx, 4
inc eax
cmp eax, ebx
jl 0x48e0c0
mov ebx, dword [esp + 0x68]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
inc edi
add ebx, ecx
cmp edi, eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ebx
jl 0x48e090
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
test eax, eax
jle 0x48e215
mov dword [esp + 0x1c], eax
lea esp, [esp]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov ebp, dword [edx]
mov ecx, dword [ecx]
mov edi, ecx
shr edi, 0x18
mov esi, ebp
shr esi, 0x18
mov eax, 0xff
sub eax, edi
imul esi, eax
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
lea esi, [ebx + edi]
test esi, esi
mov dword [esp + 0x18], ebp
je 0x48e1ed
test edi, edi
jne 0x48e17a
mov ecx, dword [esp + 0x64]
mov dword [ecx], ebp
jmp 0x48e1ed
test ebx, ebx
je 0x48e1ed
mov eax, ebp
and eax, 0xff0000
imul eax, ebx
mov edx, ecx
and edx, 0xff0000
imul edx, edi
add eax, edx
xor edx, edx
div esi
mov edx, ecx
and edx, 0xff00
imul edx, edi
and ecx, 0xff
imul ecx, edi
mov ebp, eax
mov eax, dword [esp + 0x18]
and eax, 0xff00
imul eax, ebx
add eax, edx
xor edx, edx
div esi
and ebp, 0xff0000
xor edx, edx
and eax, 0xff00
add ebp, eax
mov eax, dword [esp + 0x18]
and eax, 0xff
imul eax, ebx
add eax, ecx
div esi
shl esi, 0x18
add ebp, eax
mov eax, dword [esp + 0x64]
add esi, ebp
mov dword [eax], esi
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov eax, 4
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x1c], eax
jne 0x48e130
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00495c50
mov ecx, dword [esp + 0x54]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x50
ret 8