Function at 0x1000f5bf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, ecx
push ebx
mov dword [ebp - 0xc], eax
xor ebx, ebx
push esi
mov al, byte [eax]
mov esi, edx
or edx, 0xbd5e19ac
mov dword [ebp - 8], esi
mov ah, al
mov byte [ebp - 1], al
push edi
mov byte [ebp - 2], ah
mov edi, ebx
mov dword [ebp - 0x10], edx
mov dword [0x1003f974], edx
inc edi
cmp byte [edi + str.max_page_count], bl
jne 0x1000f5ef
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edi
cmp ecx, edi
jae 0x1000f6ea
cmp ecx, 0x1401
jne 0x1000f67b
lea ecx, [esi + 0x292826fe]
mov dword [ebp - 0x10], ebx
mov esi, str.LogLuvVSetField
mov dword [ebp - 0x18], ecx
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp al, byte [ebp - 0x30]
jne 0x1000f655
mov esi, dword [ebp - 0xc]
mov al, ah
mov byte [ebp - 1], ah
test al, al
je 0x1000f650
cmp byte [ebp + ebx - 0x30], 0
mov cl, ah
mov byte [ebp - 1], cl
je 0x1000f650
inc ebx
mov byte [ebp - 1], cl
mov al, byte [esi + ebx]
cmp al, byte [ebp + ebx - 0x30]
je 0x1000f630
mov dword [ebp - 0x10], ebx
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [eax + ecx]
movzx eax, byte [ebp + eax - 0x30]
sub ecx, eax
cmp ecx, 0x247
jbe 0x1000f67b
imul edx, dword [ebp - 0x18], 0x34008eb5
mov dword [0x1003f974], edx
push 0xd
pop ecx
mov esi, str.Failed_to_terminate_the_advise_loop_with_DDE_server
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0x6c], 0x46
mov eax, ebx
jne 0x1000f6aa
mov cl, 0x46
test cl, cl
je 0x1000f6aa
cmp byte [ebp + eax - 0x6c], 0
je 0x1000f6aa
mov cl, byte [eax + 0x10035f41]
inc eax
cmp cl, byte [ebp + eax - 0x6c]
je 0x1000f692
movzx ecx, byte [eax + str.FillConsoleOutputCharacter]
movzx eax, byte [ebp + eax - 0x6c]
mov esi, dword [ebp - 8]
sub ecx, eax
cmp ecx, 0xde8
je 0x1000f6d1
mov edx, esi
xor edx, 0x82fe6e97
mov dword [0x1003f974], edx
mov ecx, dword [ebp - 0x14]
mov al, byte [ebp - 1]
inc ecx
mov ah, byte [ebp - 2]
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x1c]
jb 0x1000f606
mov dword [ebp - 0x10], edx
push 6
pop ecx
mov esi, 0x10035940
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
cmp al, byte [ebp - 0x38]
jne 0x1000f73b
mov edx, dword [ebp - 0xc]
mov cl, ah
mov eax, ebx
test cl, cl
je 0x1000f71b
cmp byte [ebp + eax - 0x38], 0
je 0x1000f71b
inc eax
mov cl, byte [edx + eax]
cmp cl, byte [ebp + eax - 0x38]
je 0x1000f706
mov ch, byte [ebp - 2]
mov cl, ch
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
cmp dword [ebp - 0x1c], eax
jae 0x1000f741
mov edx, esi
or edx, 0xf9d8a811
mov dword [0x1003f974], edx
jmp 0x1000f741
mov cl, byte [ebp - 1]
mov esi, dword [ebp - 8]
mov eax, esi
or eax, 0x55479319
mov dword [0x1003f9e4], eax
test cl, cl
je 0x1000f792
mov eax, edx
or eax, 0xb7f5d6b3
mov dword [0x1003f9e4], eax
mov eax, dword [ebp - 0xc]
inc ebx
cmp byte [ebx + eax], 0
jne 0x1000f760
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
jae 0x1000f792
lea eax, [esi - 0x603563ce]
mov dword [0x1003f9e4], eax
cmp ecx, 0xb7a
jne 0x1000f78d
imul edx, edx, 0xa23edd11
mov dword [0x1003f974], edx
inc ecx
cmp ecx, ebx
jb 0x1000f779
imul ecx, esi, 0x5e4e6b25
mov eax, edx
pop edi
pop esi
pop ebx
mov dword [0x1003f840], ecx
leave
ret