Function at 0x4d3e40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x2c
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
push ebx
movzx eax, dx
mov ebx, dword [ecx]
push esi
mov esi, dword [ecx + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x18]
push edi
mov edi, dword [ecx + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x24]
sar ecx, 1
sar esi, 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ecx
test edi, edi
je 0x4d4118
movzx ecx, dx
not edx
mov dword [esp + 0x3c], ecx
push ebp
mov ebp, ecx
movzx edi, dx
lea ecx, [esi + esi]
movzx edx, dx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
add ecx, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], edx
mov esi, dword [esp + 0x14]
dec ecx
mov dword [esp + 0x20], ecx
mov ecx, eax
xor ecx, ebx
test cl, 2
je 0x4d3ffd
movzx ecx, dx
test al, 2
je 0x4d3f0f
movzx ebx, word [ebx]
movzx esi, word [eax]
mov edi, ebx
mov ebp, dword [esp + 0x2c]
mov edx, esi
movzx ecx, bp
and ebx, esi
mov esi, dword [esp + 0x14]
and edi, ecx
movzx ecx, bp
mov ebp, dword [esp + 0x40]
and edx, ecx
add edi, edx
mov edx, dword [esp + 0x10]
and ebx, edx
shr edi, 1
add edi, ebx
movzx ecx, dx
mov ebx, dword [esp + 0x1c]
mov word [eax], di
add ebx, 2
add eax, 2
dec esi
jmp 0x4d3f13
mov edx, dword [esp + 0x10]
mov edi, dword [ebx - 2]
add ebx, 2
movzx ecx, cx
mov dword [esp + 0x18], ecx
cmp esi, 1
jle 0x4d3faa
mov ebp, dword [esp + 0x40]
mov edx, ebp
mov ecx, ebp
shl edx, 0xf
shr ecx, 1
or edx, ecx
mov dword [esp + 0x1c], ebp
mov ecx, ebp
mov dword [esp + 0x18], edx
shl ecx, 0x10
or ecx, ebp
not ecx
mov dword [esp + 0x34], ecx
lea ecx, [esi - 2]
shr ecx, 1
inc ecx
mov dword [esp + 0x30], ecx
neg ecx
mov ebp, dword [esp + 0x30]
lea esi, [esi + ecx*2]
mov dword [esp + 0x38], esi
mov ecx, dword [ebx]
mov esi, dword [eax]
mov edx, dword [esp + 0x34]
shl ecx, 0x10
shr edi, 0x10
add ecx, edi
mov edi, dword [ebx]
and edx, ecx
add ebx, 4
and edx, esi
shr ecx, 1
and ecx, dword [esp + 0x18]
shr esi, 1
add edx, ecx
and esi, dword [esp + 0x18]
add edx, esi
mov dword [eax], edx
add eax, 4
sub ebp, 1
jne 0x4d3f64
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x38]
movzx ecx, dx
mov dword [esp + 0x18], ecx
test esi, esi
je 0x4d3fe8
movzx esi, word [eax]
add ebx, 2
shr edi, 0x10
mov ecx, esi
and ecx, ebp
mov edx, edi
and edx, ebp
add edx, ecx
mov ecx, dword [esp + 0x18]
and ecx, edi
shr edx, 1
and ecx, esi
add edx, ecx
mov ecx, dword [esp + 0x18]
mov word [eax], dx
add eax, 2
mov edx, dword [esp + 0x24]
add edx, 0xfffffffe
movzx ecx, cx
add ebx, edx
jmp 0x4d40f5
mov ebp, dword [esp + 0x40]
movzx ecx, dx
mov edx, dword [esp + 0x24]
add edx, 0xfffffffe
add ebx, edx
jmp 0x4d40f5
test bl, 2
je 0x4d4038
movzx esi, word [eax]
movzx edx, word [ebx]
mov ecx, esi
and ecx, ebp
mov edi, edx
and edi, ebp
add ebx, 2
mov ebp, dword [esp + 0x40]
add edi, ecx
mov ecx, dword [esp + 0x18]
and ecx, edx
shr edi, 1
mov edx, dword [esp + 0x18]
and ecx, esi
mov esi, dword [esp + 0x14]
add edi, ecx
mov word [eax], di
add eax, 2
mov edi, dword [esp + 0x10]
dec esi
movzx ecx, dx
mov dword [esp + 0x18], ecx
cmp esi, 1
jle 0x4d40b8
mov ebp, dword [esp + 0x40]
mov edx, ebp
mov ecx, ebp
shl edx, 0xf
shr ecx, 1
or edx, ecx
mov dword [esp + 0x1c], ebp
mov ecx, ebp
shl ecx, 0x10
or ecx, ebp
not ecx
mov dword [esp + 0x34], ecx
lea ecx, [esi - 2]
shr ecx, 1
inc ecx
mov dword [esp + 0x38], ecx
neg ecx
mov ebp, dword [esp + 0x38]
lea esi, [esi + ecx*2]
mov dword [esp + 0x30], esi
nop dword [eax + eax]
mov edi, dword [eax]
mov ecx, dword [ebx]
shr ecx, 1
shr edi, 1
and ecx, edx
and edi, edx
add edi, ecx
mov ecx, dword [esp + 0x34]
and ecx, dword [eax]
and ecx, dword [ebx]
add ebx, 4
add edi, ecx
mov dword [eax], edi
add eax, 4
sub ebp, 1
jne 0x4d4080
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
movzx ecx, di
mov dword [esp + 0x18], ecx
test esi, esi
je 0x4d40ea
movzx esi, word [eax]
movzx edx, word [ebx]
mov ecx, esi
and ecx, ebp
mov edi, edx
and edi, ebp
add ebx, 2
add edi, ecx
mov ecx, dword [esp + 0x18]
and ecx, edx
shr edi, 1
and ecx, esi
add edi, ecx
mov ecx, dword [esp + 0x18]
mov word [eax], di
add eax, 2
movzx ecx, cx
jmp 0x4d40f1
mov ebp, dword [esp + 0x40]
movzx ecx, di
add ebx, dword [esp + 0x24]
add eax, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
movzx ecx, cx
movzx edx, cx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
test ecx, ecx
jne 0x4d3eb1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2c
ret