Function at 0x1001a8f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009e538
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x100cc144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x1001aae4
cmp dword [eax + 0x10], 0
jne 0x1001a94a
cmp dword [eax + 0x14], 0
jne 0x1001a94a
mov esi, dword [eax + 0x30]
mov ecx, dword [eax + 0x34]
test esi, esi
jne 0x1001a945
test ecx, ecx
je 0x1001a94a
mov dword [edx], esi
mov dword [edx + 4], ecx
movzx esi, word [eax + 0x20]
xorps xmm0, xmm0
add esi, eax
movlpd qword [ebp - 0x34], xmm0
mov al, byte [esi]
test al, al
je 0x1001aae4
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
nop
movzx edi, al
inc esi
mov eax, edi
xorps xmm0, xmm0
shr eax, 4
mov dword [ebp - 0x14], eax
movlpd qword [ebp - 0x2c], xmm0
and edi, 0xf
je 0x1001a9c6
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
nop word [eax + eax]
movzx eax, byte [esi]
inc esi
cdq
call fcn.1003a410
mov ecx, dword [ebp - 0x10]
or dword [ebp - 0x18], eax
add ecx, 8
or dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], ecx
sub edi, 1
jne 0x1001a9a0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
jmp 0x1001a9d2
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x1001aa63
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
movlpd qword [ebp - 0x34], xmm0
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x10], eax
movzx eax, byte [esi]
inc esi
cdq
call fcn.1003a410
mov ecx, dword [ebp - 0x38]
or edi, eax
or dword [ebp - 0x10], edx
add ecx, 8
sub dword [ebp - 0x28], 1
mov dword [ebp - 0x38], ecx
jne 0x1001a9f3
mov eax, dword [ebp - 0x14]
xor edx, edx
shl eax, 3
xor ecx, ecx
mov dword [ebp - 0x14], eax
dec eax
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
mov eax, dword [ebp - 0x10]
cmovae ecx, edx
cmp eax, ecx
jl 0x1001aa51
jg 0x1001aa3d
cmp edi, edx
jb 0x1001aa51
mov ecx, dword [ebp - 0x14]
or eax, 0xffffffff
or edx, eax
call fcn.1003a410
add edi, eax
mov eax, dword [ebp - 0x10]
adc eax, edx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
add ecx, edi
mov dword [ebp - 0x24], ecx
adc edx, eax
mov dword [ebp - 0x20], edx
jmp 0x1001aa66
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
push 0x10
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x40], eax
call fcn.10039c0d
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1001aa91
movups xmm0, xmmword [ebp - 0x4c]
movups xmmword [ecx], xmm0
jmp 0x1001aa93
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 4], 0
mov edx, dword [edi + 4]
cmp dword [edi + 8], edx
je 0x1001aab2
xor eax, eax
mov dword [edx], ecx
add dword [edi + 4], 4
jmp 0x1001aac1
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
push edx
call fcn.10010b60
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1001aad7
push 0x10
push eax
call fcn.10039c3d
add esp, 8
mov al, byte [esi]
mov edx, dword [ebp - 0x20]
test al, al
jne 0x1001a970
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc