Function at 0x1007e910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10081e60
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
push edx
call fcn.1007f230
add esp, 4
test al, al
je 0x1007e98b
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp + 8]
mov byte [eax + 0x1a], 3
mov eax, dword [esi]
test eax, eax
je 0x1007eae7
mov eax, dword [eax + 0x10]
lea ecx, [esi + 0xc]
mov edx, dword [esi + 4]
mov esi, dword [esi + 8]
mov dword [ebp - 0x10], 0xffffffff
push esi
push edx
push ecx
call eax
add esp, 0xc
jmp 0x1007eae7
mov edi, dword [ebp + 8]
push edi
mov ebx, dword [ebp - 0x2c]
push ebx
call fcn.1007e5f0
add esp, 8
movzx ecx, word [ebx + 0x38]
mov word [ebp - 0x1e], ax
mov dword [ebp - 0x28], 0
and cx, ax
movzx esi, cx
jmp 0x1007e9c4
movzx eax, byte [eax + 4]
cmp al, byte [edi + 4]
je 0x1007eaf8
nop
inc dword [ebp - 0x28]
inc esi
cmp esi, dword [ebx + 0x1c]
jb 0x1007e9d6
mov eax, dword [ebx + 0x1c]
nop dword [eax]
test eax, eax
je 0x1007e9d0
xor esi, esi
mov eax, dword [ebx + 0x18]
movzx ecx, word [eax + esi*4]
cmp ecx, 0xffff
je 0x1007ea93
mov dword [ebp - 0x30], ecx
movzx ecx, word [ebx + 0x38]
movzx eax, word [eax + esi*4 + 2]
mov dword [ebp - 0x34], esi
mov edx, ecx
and edx, eax
sub esi, edx
and esi, ecx
cmp esi, dword [ebp - 0x28]
jb 0x1007eaa5
cmp ax, word [ebp - 0x1e]
mov esi, dword [ebp - 0x34]
jne 0x1007e9c0
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebp - 0x30]
cmp eax, ecx
jbe 0x1007eb0c
mov eax, dword [ebx + 0x24]
imul edx, ecx, 0x34
mov ecx, dword [eax + edx + 0x20]
test ecx, ecx
setne bl
cmp dword [edi], 0
sete bh
cmp bl, bh
mov ebx, dword [ebp - 0x2c]
je 0x1007e9c0
lea eax, [eax + edx + 0x20]
test ecx, ecx
je 0x1007e9b2
mov dword [ebp - 0x10], 0
push edi
push eax
call fcn.101830c0
add esp, 8
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
test al, al
je 0x1007e9c0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov byte [eax + 0x1a], 2
mov eax, dword [edi]
test eax, eax
je 0x1007eae7
mov eax, dword [eax + 0x10]
mov edx, dword [edi + 4]
mov esi, dword [edi + 8]
lea ecx, [edi + 0xc]
jmp 0x1007e977
cmp dword [ebp - 0x28], 0x200
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x24]
movsd xmm0, qword [edi]
jmp 0x1007eab8
cmp dword [ebp - 0x28], 0x200
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x24]
movsd xmm0, qword [edi]
mov esi, dword [ebp - 0x34]
setae al
xor ecx, 2
mov dword [edx], ebx
movsd qword [edx + 4], xmm0
or ecx, dword [ebx + 4]
mov ecx, dword [edi + 0xc]
mov edi, dword [edi + 8]
mov dword [edx + 0x10], ecx
mov dword [edx + 0xc], edi
mov dword [edx + 0x14], esi
movzx ecx, word [ebp - 0x1e]
setne ah
and ah, al
mov word [edx + 0x18], cx
mov byte [edx + 0x1a], ah
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov byte [eax + 0x1a], 2
jmp 0x1007eae7
mov dword [ebp - 0x10], 0
push 0x101d9ad8
push eax
push ecx
call fcn.101cb9f0
add esp, 0xc
ud2