Function at 0x6e5370
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40
call fcn.004d28e0
push esi
mov eax, dword [ebp + 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
jmp 0x6e53b5
mov edx, dword [ebp - 0x10]
add edx, 1
mov eax, dword [ebp - 0xc]
adc eax, 0
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
push 0
push 0x20
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004d3110
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x2c]
ja 0x6e544b
jb 0x6e53de
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x30]
jae 0x6e544b
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax]
mov edx, dword [ebp - 4]
mov dword [edx], ecx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx]
shl edx, 8
mov eax, dword [ebp - 4]
or edx, dword [eax]
mov ecx, dword [ebp - 4]
mov dword [ecx], edx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax]
shl ecx, 0x10
mov edx, dword [ebp - 4]
or ecx, dword [edx]
mov eax, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx]
shl eax, 0x18
mov ecx, dword [ebp - 4]
or eax, dword [ecx]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x6e539a
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
jmp 0x6e548f
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov edx, dword [ebp - 0xc]
adc edx, 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
push 0
push 0x20
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004d3110
push 0
push 4
push edx
push eax
call fcn.004d3110
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0x18]
ja 0x6e54d9
jb 0x6e54a1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x14]
jae 0x6e54d9
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0x20
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004d3110
push 0
push 4
push edx
push eax
call fcn.004d3110
mov edx, dword [ebp - 4]
sub edx, eax
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.006e5760
add esp, 0x10
jmp 0x6e545b
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x14]
sub eax, 1
mov ecx, dword [ebp + 0x18]
sbb ecx, 0
push 0
push 0x20
push ecx
push eax
call fcn.004d3110
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push edx
push eax
call fcn.004d3110
push 0
push 4
push edx
push eax
call fcn.004d3110
add eax, dword [ebp + 0x24]
push eax
mov edx, dword [ebp + 0x1c]
push edx
call fcn.006e5760
add esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
jmp 0x6e5544
mov eax, dword [ebp - 0x10]
add eax, 1
mov ecx, dword [ebp - 0xc]
adc ecx, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0x18]
ja 0x6e567b
jb 0x6e555e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x14]
jae 0x6e567b
push 0
push 2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004d3110
sub eax, 1
sbb edx, 0
push 0
push 0x10
push edx
push eax
call fcn.004d3110
push 0
push 4
push edx
push eax
call fcn.004d3110
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + eax]
xor eax, eax
mov ecx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
push eax
push edx
call fcn.004d8800
mov dword [ebp - 0x24], eax
push 0
push 0x20
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004d3110
mov ecx, dword [ebp - 0x24]
xor esi, esi
push esi
push ecx
push edx
push eax
call fcn.004d3110
push 0
push 4
push edx
push eax
call fcn.004d3110
add eax, dword [ebp + 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x6e55f7
mov edx, dword [ebp - 0x20]
add edx, 1
mov eax, dword [ebp - 0x1c]
adc eax, 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
push 0
push 0x20
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004d3110
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x34]
ja 0x6e565e
jb 0x6e5620
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x38]
jae 0x6e565e
push 0
push 4
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004d3110
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 4]
mov esi, dword [ecx + eax]
xor esi, dword [edx]
push 0
push 4
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004d3110
mov edx, dword [ebp + 0x20]
mov dword [edx + eax], esi
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
jmp 0x6e55e5
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.006e5760
add esp, 0x10
jmp 0x6e5532
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
jmp 0x6e56a3
mov eax, dword [ebp - 0x10]
add eax, 1
mov ecx, dword [ebp - 0xc]
adc ecx, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
push 0
push 0x20
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004d3110
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x3c]
ja 0x6e5758
jb 0x6e56d4
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x40]
jae 0x6e5758
push 0
push 4
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004d3110
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + eax]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
and ecx, 0xff
mov edx, dword [ebp - 0x14]
mov byte [edx], cl
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x28]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ebp - 0x14]
mov byte [edx], cl
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x28]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0x14]
mov byte [edx], cl
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x28]
shr ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp - 0x14]
mov byte [edx], cl
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x6e5691
pop esi
mov esp, ebp
pop ebp
ret