Function at 0x10002a90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100c19f0
push 0x10074820
mov eax, dword fs:[0]
push eax
add esp, 0xffffffd0
push ebx
push esi
push edi
mov eax, dword [0x100c4054]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
cmp dword [ebp + 0x10], 0
je 0x10002ad9
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.10002720
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x10002af2
xor eax, eax
jmp 0x10002d62
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x40
jb 0x10002b13
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0x727444
je 0x10002b34
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x2c]
jmp 0x10002d62
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
add eax, dword [edx + 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + 0xc]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x34]
jae 0x10002d13
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 8]
cmp edx, dword [ecx]
jne 0x10002d03
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 0xc]
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 4]
cmp ecx, eax
jne 0x10002d03
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 0xe]
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 6]
cmp edx, ecx
jne 0x10002d03
mov edx, 1
imul edx, edx, 0
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax + edx + 0x10]
mov edx, 1
imul edx, edx, 0
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax + edx + 8]
cmp ecx, edx
jne 0x10002d03
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + eax + 0x10]
mov eax, 1
shl eax, 0
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx + eax + 8]
cmp edx, eax
jne 0x10002d03
mov ecx, 1
shl ecx, 1
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx + ecx + 0x10]
mov ecx, 1
shl ecx, 1
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx + ecx + 8]
cmp eax, ecx
jne 0x10002d03
mov edx, 1
imul edx, edx, 3
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax + edx + 0x10]
mov edx, 1
imul edx, edx, 3
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax + edx + 8]
cmp ecx, edx
jne 0x10002d03
mov eax, 1
shl eax, 2
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + eax + 0x10]
mov eax, 1
shl eax, 2
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx + eax + 8]
cmp edx, eax
jne 0x10002d03
mov ecx, 1
imul ecx, ecx, 5
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx + ecx + 0x10]
mov ecx, 1
imul ecx, ecx, 5
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx + ecx + 8]
cmp eax, ecx
jne 0x10002d03
mov edx, 1
imul edx, edx, 6
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax + edx + 0x10]
mov edx, 1
imul edx, edx, 6
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax + edx + 8]
cmp ecx, edx
jne 0x10002d03
mov eax, 1
imul eax, eax, 7
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + eax + 0x10]
mov eax, 1
imul eax, eax, 7
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx + eax + 8]
cmp edx, eax
jne 0x10002d03
cmp dword [ebp + 0x10], 0
je 0x10002d03
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
sub edx, 0x18
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x1c]
add ecx, 0x18
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x38]
jmp 0x10002d62
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx]
mov dword [ebp - 0x24], eax
jmp 0x10002b52
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x3c]
jmp 0x10002d62
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc