Function at 0x10006780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0xc], 0
jmp 0x100067b5
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x10006bbe
mov eax, dword [ebp - 4]
add eax, 1
xor edx, edx
div dword [0x10074474]
mov dword [ebp - 4], edx
mov edx, dword [0x10074478]
imul edx, dword [0x10074484]
imul edx, dword [0x10074480]
imul edx, dword [0x10074484]
imul edx, dword [0x10074488]
imul edx, dword [0x10074480]
imul edx, dword [0x10074478]
mov eax, dword [ebp - 4]
sub eax, edx
add eax, dword [0x1007447c]
sub eax, dword [0x10074478]
mov ecx, dword [0x10074480]
imul ecx, dword [0x10074484]
imul ecx, dword [0x10074478]
sub eax, ecx
add eax, dword [0x1007447c]
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax]
add eax, dword [ebp - 0x14]
xor edx, edx
div dword [0x10074474]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
sub eax, dword [0x10074478]
sub eax, dword [0x10074478]
add eax, dword [0x10074484]
add eax, dword [0x1007447c]
mov ecx, dword [0x10074478]
imul ecx, dword [0x10074480]
sub eax, ecx
mov edx, dword [0x10074480]
imul edx, dword [0x10074480]
sub eax, edx
add eax, dword [0x10074478]
mov ecx, dword [0x1007447c]
imul ecx, dword [0x1007447c]
add eax, dword [0x10074488]
add ecx, eax
mov edx, dword [0x10074484]
imul edx, dword [0x10074488]
add edx, dword [ebp + 8]
mov al, byte [edx + ecx]
mov byte [ebp - 5], al
mov ecx, dword [ebp - 0x14]
sub ecx, dword [0x1007447c]
mov edx, dword [0x10074484]
imul edx, dword [0x10074478]
imul edx, dword [0x10074488]
add ecx, edx
mov eax, dword [0x10074488]
imul eax, dword [0x10074480]
add ecx, eax
mov edx, dword [0x10074484]
imul edx, dword [0x1007447c]
sub ecx, edx
sub ecx, dword [0x10074484]
mov eax, dword [0x10074478]
imul eax, dword [0x1007447c]
imul eax, dword [0x10074478]
imul eax, dword [0x10074478]
imul eax, dword [0x10074480]
sub ecx, eax
add ecx, dword [0x10074484]
sub ecx, dword [0x10074488]
mov edx, dword [0x10074488]
imul edx, dword [0x10074488]
sub ecx, edx
sub ecx, dword [0x10074484]
sub ecx, dword [0x10074484]
add ecx, dword [0x10074488]
add ecx, dword [0x10074480]
mov eax, dword [ebp - 4]
sub eax, dword [0x1007447c]
mov edx, dword [0x10074484]
imul edx, dword [0x10074478]
imul edx, dword [0x10074488]
add eax, edx
mov edx, dword [0x10074488]
imul edx, dword [0x10074480]
add eax, edx
mov edx, dword [0x10074484]
imul edx, dword [0x1007447c]
sub eax, edx
sub eax, dword [0x10074484]
mov edx, dword [0x10074478]
imul edx, dword [0x1007447c]
imul edx, dword [0x10074478]
imul edx, dword [0x10074478]
imul edx, dword [0x10074480]
sub eax, edx
add eax, dword [0x10074484]
sub eax, dword [0x10074488]
mov edx, dword [0x10074488]
imul edx, dword [0x10074488]
sub eax, edx
sub eax, dword [0x10074484]
sub eax, dword [0x10074484]
add eax, dword [0x10074488]
add eax, dword [0x10074480]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov cl, byte [esi + ecx]
mov byte [edx + eax], cl
mov edx, dword [ebp - 0x14]
add edx, dword [0x10074484]
add edx, dword [0x10074478]
add edx, dword [0x10074478]
add edx, dword [0x10074478]
mov eax, dword [0x10074488]
imul eax, dword [0x10074480]
sub edx, eax
sub edx, dword [0x10074488]
sub edx, dword [0x10074478]
sub edx, dword [0x10074488]
sub edx, dword [0x10074488]
add edx, dword [0x10074484]
sub edx, dword [0x10074480]
add edx, dword [0x1007447c]
mov ecx, dword [0x10074480]
imul ecx, dword [0x10074488]
sub edx, ecx
sub edx, dword [0x10074484]
sub edx, dword [0x1007447c]
mov eax, dword [0x10074488]
imul eax, dword [0x10074480]
imul eax, dword [0x1007447c]
add edx, eax
sub edx, dword [0x10074478]
add edx, dword [0x1007447c]
sub edx, dword [0x10074480]
sub edx, dword [0x10074488]
mov ecx, dword [0x10074478]
imul ecx, dword [0x10074488]
imul ecx, dword [0x10074480]
add edx, dword [0x1007447c]
add ecx, edx
sub ecx, dword [0x10074478]
mov edx, dword [ebp + 8]
mov al, byte [ebp - 5]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 4]
add ecx, dword [0x10074488]
mov edx, dword [0x10074478]
imul edx, dword [0x10074488]
add edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
mov ecx, dword [ebp - 0x14]
add ecx, dword [0x1007447c]
add ecx, dword [0x1007447c]
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx]
add eax, ecx
xor edx, edx
div dword [0x10074474]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0xc]
sub edx, dword [0x10074484]
mov eax, dword [0x10074478]
imul eax, dword [0x1007447c]
imul eax, dword [0x10074480]
sub edx, eax
sub edx, dword [0x10074478]
add edx, dword [0x1007447c]
add edx, dword [0x10074484]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x1007447c]
sub ecx, dword [0x1007447c]
mov eax, dword [0x10074488]
imul eax, dword [0x10074478]
sub ecx, eax
sub ecx, dword [0x10074484]
add ecx, dword [0x1007447c]
sub ecx, dword [0x10074478]
sub ecx, dword [0x10074484]
mov eax, dword [0x10074478]
imul eax, dword [0x10074480]
add ecx, eax
mov eax, dword [0x10074478]
imul eax, dword [0x10074478]
sub ecx, eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + ecx]
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax + edx]
xor edx, ecx
mov eax, dword [0x10074478]
imul eax, dword [0x1007447c]
imul eax, dword [0x10074480]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [0x10074484]
sub ecx, eax
sub ecx, dword [0x10074478]
add ecx, dword [0x1007447c]
add ecx, dword [0x10074484]
mov eax, dword [ebp + 0xc]
mov byte [eax + ecx], dl
jmp 0x100067ac
pop esi
mov esp, ebp
pop ebp
ret