Function at 0x5e1520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40
call fcn.006499b0
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 0x5e1565
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.0064edb0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x2c]
ja 0x5e15fb
jb 0x5e158e
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x30]
jae 0x5e15fb
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 0x5e154a
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
jmp 0x5e163f
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.0064edb0
push 0
push 4
push edx
push eax
call fcn.0064edb0
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0x18]
ja 0x5e1689
jb 0x5e1651
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x14]
jae 0x5e1689
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.0064edb0
push 0
push 4
push edx
push eax
call fcn.0064edb0
mov edx, dword [ebp - 4]
sub edx, eax
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.005e1910
add esp, 0x10
jmp 0x5e160b
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.0064edb0
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push edx
push eax
call fcn.0064edb0
push 0
push 4
push edx
push eax
call fcn.0064edb0
add eax, dword [ebp + 0x24]
push eax
mov edx, dword [ebp + 0x1c]
push edx
call fcn.005e1910
add esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
jmp 0x5e16f4
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 0x5e182b
jb 0x5e170e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x14]
jae 0x5e182b
push 0
push 2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0064edb0
sub eax, 1
sbb edx, 0
push 0
push 0x10
push edx
push eax
call fcn.0064edb0
push 0
push 4
push edx
push eax
call fcn.0064edb0
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.00651610
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.0064edb0
mov ecx, dword [ebp - 0x24]
xor esi, esi
push esi
push ecx
push edx
push eax
call fcn.0064edb0
push 0
push 4
push edx
push eax
call fcn.0064edb0
add eax, dword [ebp + 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x5e17a7
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.0064edb0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x34]
ja 0x5e180e
jb 0x5e17d0
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x38]
jae 0x5e180e
push 0
push 4
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.0064edb0
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.0064edb0
mov edx, dword [ebp + 0x20]
mov dword [edx + eax], esi
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
jmp 0x5e1795
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.005e1910
add esp, 0x10
jmp 0x5e16e2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
jmp 0x5e1853
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.0064edb0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x3c]
ja 0x5e1908
jb 0x5e1884
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x40]
jae 0x5e1908
push 0
push 4
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0064edb0
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 0x5e1841
pop esi
mov esp, ebp
pop ebp
ret