Function at 0x5e0e40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edx + 0xb], 0
mov dword [ebp - 0x28], edx
js 0x5e1060
mov word [edx], 0
mov byte [edx + 0xb], 0
cmp byte [ecx + 0xb], 0
js 0x5e1073
mov word [ecx], 0
mov byte [ecx + 0xb], 0
movzx eax, byte [esi + 0xb]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
test al, al
jns 0x5e0e9a
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x2c], eax
movzx eax, byte [0x7bb5b0]
and eax, 1
neg eax
xor ecx, ecx
cmp eax, 0xfffffffd
je 0x5e1039
xor eax, eax
dec eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ecx*8 + 0x75a144]
mov dword [ebp - 0x20], ecx
mov eax, dword [ecx*8 + 0x75a140]
mov byte [ebp - 0x11], bl
lea ecx, [ebx + ebx]
push ecx
push eax
push edi
call fcn.00650080
add esp, 0xc
mov word [ebp + ebx*2 - 0x1c], 0
movzx eax, byte [ebp - 0x11]
mov ecx, eax
test al, al
jns 0x5e0ef6
mov ecx, dword [ebp - 0x18]
xor edx, edx
cmp ecx, dword [ebp - 0x2c]
ja 0x5e0f60
test ecx, ecx
je 0x5e1042
mov edx, edi
test al, al
jns 0x5e0f0e
mov edx, dword [ebp - 0x1c]
xor edi, edi
mov ebx, esi
mov esi, dword [ebp - 0x30]
movzx esi, word [esi + edi*2]
cmp si, word [edx + edi*2]
jne 0x5e0f5c
inc edi
cmp ecx, edi
mov esi, ebx
jne 0x5e0f10
mov edi, ecx
mov dl, 1
test al, al
mov ecx, dword [ebp - 0x20]
js 0x5e1049
test dl, dl
jne 0x5e0f65
mov dword [ebp - 0x24], edi
inc ecx
movzx eax, byte [0x7bb5b0]
xor eax, 3
cmp ecx, eax
mov eax, 0xffffffff
lea edi, [ebp - 0x1c]
jb 0x5e0eb7
jmp 0x5e1039
xor edx, edx
mov esi, ebx
mov edi, dword [ebp - 0x24]
jmp 0x5e0f2a
test edi, edi
je 0x5e1039
movzx edx, byte [esi + 0xb]
mov ecx, edx
test dl, dl
jns 0x5e0f7a
mov ecx, dword [esi + 4]
cmp edi, ecx
je 0x5e1039
mov eax, esi
test dl, dl
jns 0x5e0f8a
mov eax, dword [esi]
lea edx, [eax + ecx*2]
mov ebx, edx
test ecx, ecx
jle 0x5e0fb4
and ecx, 0x7fffffff
mov ebx, eax
nop dword [eax + eax]
cmp word [ebx], 0x3d
je 0x5e0fb0
add ebx, 2
dec ecx
jne 0x5e0fa0
mov ebx, edx
jmp 0x5e0fb4
test ebx, ebx
je 0x5e0fac
mov edi, ebx
sub edi, eax
sar edi, 1
cmp ebx, edx
mov eax, 0xffffffff
cmove edi, eax
lea ebx, [esi + 0xc]
lea ecx, [ebp - 0x1c]
push ebx
push edi
push 0
push esi
call fcn.0053bb50
mov ecx, dword [ebp - 0x28]
cmp byte [ecx + 0xb], 0
js 0x5e1086
mov eax, dword [ebp - 0x14]
mov dword [ecx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ecx], xmm0
mov al, 1
mov dword [ebp - 0x20], eax
cmp edi, 0xffffffff
je 0x5e1024
inc edi
lea ecx, [ebp - 0x1c]
push ebx
push 0xffffffffffffffff
push edi
push esi
call fcn.0053bb50
mov esi, dword [ebp + 8]
cmp byte [esi + 0xb], 0
js 0x5e1098
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [esi], xmm0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064d372
mov eax, dword [ebp - 0x20]
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x20], 0
jmp 0x5e1024
xor edi, edi
jmp 0x5e0f28
push dword [ebp - 0x1c]
mov ebx, edx
call fcn.0064cd6e
mov edx, ebx
mov ecx, dword [ebp - 0x20]
add esp, 4
jmp 0x5e0f35
mov eax, dword [edx]
mov word [eax], 0
mov dword [edx + 4], 0
jmp 0x5e0e6e
mov eax, dword [ecx]
mov word [eax], 0
mov dword [ecx + 4], 0
jmp 0x5e0e81
push dword [ecx]
call fcn.0064cd6e
mov ecx, dword [ebp - 0x28]
add esp, 4
jmp 0x5e0fe1
push dword [esi]
call fcn.0064cd6e
add esp, 4
jmp 0x5e1015