Function at 0x101a1cd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x101ab1f0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x44], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x38], 0
movzx eax, byte [esi + 0xc]
mov byte [esi + 0xc], 0
movzx edi, word [esi + 8]
mov byte [ebp - 0x1d], al
mov eax, dword [esi + 4]
mov dword [ebp - 0x30], eax
mov edx, dword [esi]
test di, di
je 0x101a1d60
jmp 0x101a1d90
mov ecx, dword [ebp - 0x44]
mov word [ecx + eax*2], di
inc eax
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [esi]
test di, di
jne 0x101a1d90
nop
cmp edx, eax
je 0x101a1ed2
lea ecx, [edx + 1]
mov dword [ebp - 0x24], ebx
mov dword [esi], ecx
movzx ebx, byte [edx]
movzx edi, bl
test bl, bl
js 0x101a1db0
mov ebx, dword [ebp - 0x24]
jmp 0x101a1e1f
mov word [esi + 8], 0
mov dword [ebp - 0x34], 0
cmp di, 0x22
je 0x101a1e2e
jmp 0x101a1e89
lea ecx, [edx + 2]
and edi, 0x1f
mov eax, esi
mov dword [esi], ecx
mov esi, edi
movzx edi, byte [edx + 1]
and edi, 0x3f
cmp bl, 0xdf
jbe 0x101a1e10
lea ecx, [edx + 3]
mov dword [ebp - 0x2c], esi
shl edi, 6
mov dword [eax], ecx
movzx esi, byte [edx + 2]
and esi, 0x3f
or esi, edi
cmp bl, 0xf0
jb 0x101a1e42
lea ecx, [edx + 4]
mov edi, dword [ebp - 0x2c]
shl esi, 6
mov dword [eax], ecx
movzx edx, byte [edx + 3]
and edi, 7
shl edi, 0x12
and edx, 0x3f
or edx, esi
or edi, edx
mov ebx, dword [ebp - 0x24]
cmp edi, 0xffff
ja 0x101a1e55
mov esi, dword [ebp + 0xc]
jmp 0x101a1e1c
mov ebx, dword [ebp - 0x24]
shl esi, 6
or esi, edi
mov edi, esi
mov esi, eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
mov edx, ecx
cmp di, 0x22
jne 0x101a1e89
mov edi, dword [ebp - 0x34]
xor bl, 1
test di, di
je 0x101a1d60
jmp 0x101a1d90
mov edi, dword [ebp - 0x2c]
shl edi, 0xc
or edi, esi
mov ebx, dword [ebp - 0x24]
cmp edi, 0xffff
jbe 0x101a1e08
mov eax, dword [ebp + 0xc]
lea esi, [edi + 0xff0000]
and edi, 0x3ff
mov edx, ecx
shr esi, 0xa
or edi, 0xdc00
or esi, 0xd800
mov word [eax + 8], di
mov dword [ebp - 0x34], edi
mov edi, esi
mov esi, eax
mov eax, dword [ebp - 0x30]
cmp di, 0x22
je 0x101a1e2e
movzx ecx, di
cmp ecx, 0x3b
jne 0x101a1e96
test bl, 1
je 0x101a1ece
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x40]
jne 0x101a1d43
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], 0
call fcn.10192470
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
jmp 0x101a1d43
mov byte [esi + 0xc], 1
mov edx, dword [ebp - 0x28]
test edx, edx
setne al
or byte [ebp - 0x1d], al
je 0x101a1f16
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x54]
push edx
push eax
push ecx
call fcn.10197bd0
add esp, 0xc
movsd xmm0, qword [ebp - 0x54]
mov eax, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x4c]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x101a1f26
jmp 0x101a1f36
mov eax, dword [ebp + 8]
mov dword [eax], 0x80000000
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x101a1f36
add eax, eax
push 2
push eax
push dword [ebp - 0x3c]
call fcn.10013870
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret