Function at 0x5e0090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
call 0x5e009e
pop eax
mov byte [ebp - 0x4c], 0x81
mov byte [ebp - 0x40], 0x81
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x24], ecx
mov cl, 0x81
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
movzx eax, byte [ebp - 0x41]
mov esi, dword [ebp - 0x46]
movzx ebx, byte [ebp - 0x42]
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebp - 0x4b]
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x4a]
mov dword [ebp - 0x10], eax
jmp 0x5e0107
mov al, 2
mov dword [ebp - 0x14], ecx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x1c], eax
xor eax, eax
mov ecx, dword [ebp - 0x14]
shld esi, ebx, 0x10
shl ebx, 0x10
mov dword [ebp - 0x18], esi
movzx esi, ax
or esi, ebx
mov ebx, edi
cmp cl, 0x81
je 0x5e0123
movzx eax, cl
cmp eax, 0x80
je 0x5e0305
cmp bl, byte [ebp - 0x1c]
jb 0x5e0340
test edx, edx
je 0x5e0380
cmp edx, dword [ebp - 0x2c]
je 0x5e0380
movzx ecx, byte [edx]
movzx ebx, cl
test cl, cl
js 0x5e0150
inc edx
cmp ebx, 0x27
jbe 0x5e01c0
jmp 0x5e01fe
mov esi, edx
movzx edx, byte [edx + 1]
and ebx, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x5e01a2
movzx eax, byte [esi + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x5e01ef
movzx ecx, byte [esi + 3]
and ebx, 7
shl eax, 6
mov edx, ebx
shl edx, 0x12
and ecx, 0x3f
or ecx, eax
mov ebx, ecx
or ebx, edx
cmp ebx, 0x110000
je 0x5e0380
mov edx, esi
add edx, 4
cmp ebx, 0x27
jbe 0x5e01c0
jmp 0x5e01fe
shl ebx, 6
add esi, 2
or ebx, edx
mov edx, esi
cmp ebx, 0x27
ja 0x5e01fe
nop word cs:[eax + eax]
nop dword [eax + eax]
mov esi, dword [ebx*4 + 0x5e038c]
mov al, 0x30
mov cl, 0x5c
mov dword [ebp - 0x10], eax
add esi, dword [ebp - 0x28]
jmp esi
shl ebx, 0xc
add esi, 3
or ebx, eax
mov edx, esi
cmp ebx, 0x27
jbe 0x5e01c0
cmp ebx, 0x5c
jne 0x5e0211
mov al, 0x5c
xor ebx, ebx
mov cl, 0x5c
mov dword [ebp - 0x10], eax
jmp 0x5e00e5
mov esi, edx
cmp ebx, 0x2ff
jbe 0x5e022b
push ebx
call fcn.005f4980
add esp, 4
test al, al
lea eax, [ebp - 0x58]
jne 0x5e0247
push ebx
call fcn.005f2250
add esp, 4
test al, al
lea eax, [ebp - 0x64]
je 0x5e0247
mov edx, esi
mov cl, 0x80
mov dword [ebp - 0x10], eax
jmp 0x5e00e5
mov ecx, ebx
mov byte [eax + 2], 0
mov word [eax], 0
or ecx, 1
bsr edi, ecx
mov ecx, ebx
shr ecx, 0x14
xor edi, 0x1c
movzx ecx, byte [ecx + 0x610f64]
shr edi, 2
mov byte [eax + 3], cl
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xf
movzx ecx, byte [ecx + 0x610f64]
mov byte [eax + 4], cl
mov ecx, ebx
shr ecx, 0xc
and ecx, 0xf
movzx ecx, byte [ecx + 0x610f64]
mov byte [eax + 5], cl
mov ecx, ebx
shr ecx, 8
and ecx, 0xf
movzx ecx, byte [ecx + 0x610f64]
mov byte [eax + 6], cl
mov ecx, ebx
and ebx, 0xf
shr ecx, 4
and ecx, 0xf
movzx ecx, byte [ecx + 0x610f64]
mov byte [eax + 7], cl
movzx ecx, byte [ebx + 0x610f64]
mov byte [eax + 8], cl
mov byte [eax + 9], 0x7d
mov word [eax + edi - 2], 0x755c
mov byte [eax + edi], 0x7b
movzx ecx, byte [eax]
cmp cl, 0x81
je 0x5e0380
mov edx, esi
movzx ebx, byte [eax + 1]
mov esi, dword [eax + 6]
mov eax, dword [eax + 2]
mov dword [ebp - 0x14], ecx
mov cl, 0xa
add edi, 0xfffffffe
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], ebx
mov ebx, eax
shrd ebx, esi, 0x10
shr esi, 0x10
jmp 0x5e00f3
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
xor ebx, ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
movsd qword [ebp - 0x4c], xmm0
shld eax, esi, 0x10
xor esi, esi
jmp 0x5e0362
mov eax, dword [ebp - 0x10]
mov byte [ebp - 0x4c], cl
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x4b], al
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4a], esi
mov dword [ebp - 0x46], eax
movzx eax, bl
inc bl
movzx eax, byte [ebp + eax - 0x4c]
push eax
push dword [ebp - 0x24]
call fcn.005f04b0
add esp, 8
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
test al, al
je 0x5e0107
mov al, 1
jmp 0x5e0382
xor eax, eax
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret