Function at 0x1001d620
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
call 0x1001d631
pop eax
cmp edx, 0xa8bf
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 4]
jbe 0x1001d667
cmp eax, 1
jbe 0x1001da8e
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
add eax, 8
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0x24], ecx
jne 0x1001d684
jmp 0x1001da86
test eax, eax
je 0x1001da98
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0x24], ecx
je 0x1001da86
mov edi, dword [eax]
add dword [esp + 0x24], edi
jmp 0x1001d69e
movzx eax, byte [edi]
test al, al
js 0x1001d6c0
mov ecx, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x28], edi
mov ecx, dword [ecx + 8]
jmp 0x1001d738
movzx esi, byte [edi + 1]
mov ecx, eax
and ecx, 0x1f
and esi, 0x3f
cmp al, 0xdf
jbe 0x1001d704
movzx edx, byte [edi + 2]
shl esi, 6
and edx, 0x3f
or edx, esi
cmp al, 0xf0
jb 0x1001d710
movzx eax, byte [edi + 3]
and ecx, 7
shl edx, 6
shl ecx, 0x12
and eax, 0x3f
or eax, edx
or eax, ecx
cmp eax, 0x110000
je 0x1001da86
add edi, 4
jmp 0x1001d71a
shl ecx, 6
add edi, 2
or ecx, esi
mov eax, ecx
jmp 0x1001d71a
shl ecx, 0xc
add edi, 3
or edx, ecx
mov eax, edx
mov ecx, dword [esp + 0x1c]
cmp eax, 0x80
mov dword [esp + 0x28], edi
mov ecx, dword [ecx + 8]
mov dword [esp + 0xc], ecx
jae 0x1001d7b5
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xc], ecx
mov ch, al
xor edx, edx
add ch, 0xbf
cmp ch, 0x1a
setb dl
shl edx, 5
or eax, edx
movd xmm0, eax
mov dword [esp + 0x10], eax
mov esi, 0x110001
movss xmm2, xmm0
mov edx, dword [esp + 0xc]
mov eax, 0x110002
lea edi, [esi - 0x110000]
mov ecx, 3
movaps xmmword [esp + 0x30], xmm2
sub eax, esi
cmp edi, 3
cmovae eax, ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
sub ecx, edx
cmp ecx, eax
jb 0x1001d86b
cmp edi, 3
lea eax, [esi - 0x10ffff]
mov ecx, 0
mov edi, dword [esp + 0xc]
movaps xmm1, xmm2
cmovae eax, ecx
mov eax, dword [eax*4 + 0x1001daac]
add eax, dword [esp + 0x20]
jmp eax
xor esi, esi
mov ecx, 0x57f
mov edx, 0x57f
mov edi, 0xff
jmp 0x1001d7da
mov edx, ecx
sub ecx, esi
jbe 0x1001d74e
shr ecx, 1
xor ebx, ebx
add ecx, esi
cmp dword [ecx*8 + 0x101dc404], eax
setne bl
cmovb ebx, edi
cmp bl, 1
je 0x1001d7d0
movzx esi, bl
cmp esi, 0xff
jne 0x1001d80b
inc ecx
mov esi, ecx
mov ecx, edx
sub ecx, esi
ja 0x1001d7da
jmp 0x1001d74e
mov eax, dword [ecx*8 + 0x101dc408]
movdqa xmm0, xmmword [0x101d7ca0]
mov ecx, eax
xor ecx, 0xd800
add ecx, 0xffef0000
cmp ecx, 0xffef0800
setb cl
cmp eax, 0x110000
sete dl
or dl, cl
mov edx, 0x69
cmovne eax, edx
jne 0x1001d849
pxor xmm0, xmm0
pshufd xmm1, xmm0, 0x55
mov dword [esp + 0x10], eax
movq qword [esp + 0x14], xmm0
movd esi, xmm1
test esi, esi
je 0x1001d882
movsd xmm2, qword [esp + 0x10]
jmp 0x1001d75f
mov ecx, dword [esp + 0xc]
push eax
call fcn.1001c600
movaps xmm2, xmmword [esp + 0x34]
add esp, 4
jmp 0x1001d790
movss xmm1, dword [esp + 0x10]
movd eax, xmm0
test eax, eax
movss xmm2, xmm1
je 0x1001d8a1
unpcklps xmm2, xmm0
mov esi, 0x110000
jmp 0x1001d75f
mov esi, 0x110001
jmp 0x1001d75f
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x101d8178
push eax
push 1
jmp 0x1001daa1
push 0x101d8168
push 0
push 0
call fcn.10026930
add esp, 0xc
ud2