Function at 0x10004f40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
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 0x10004f77
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x10005c8c
mov eax, dword [ebp - 4]
add eax, 1
xor edx, edx
div dword [0x1004c164]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
add edx, dword [0x1004c174]
mov eax, dword [0x1004c168]
imul eax, dword [0x1004c16c]
sub edx, eax
sub edx, dword [0x1004c178]
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c16c]
sub edx, ecx
mov eax, dword [0x1004c178]
imul eax, dword [0x1004c170]
sub edx, eax
sub edx, dword [0x1004c16c]
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + edx]
add eax, dword [ebp - 0x14]
xor edx, edx
div dword [0x1004c164]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 4]
sub edx, dword [0x1004c174]
sub edx, dword [0x1004c174]
add edx, dword [0x1004c16c]
sub edx, dword [0x1004c168]
mov eax, dword [0x1004c174]
imul eax, dword [0x1004c16c]
sub edx, eax
sub edx, dword [0x1004c16c]
mov ecx, dword [0x1004c170]
imul ecx, dword [0x1004c178]
imul ecx, dword [0x1004c178]
sub edx, ecx
sub edx, dword [0x1004c174]
sub edx, dword [0x1004c174]
add edx, dword [0x1004c16c]
sub edx, dword [0x1004c168]
mov eax, dword [0x1004c174]
imul eax, dword [0x1004c16c]
sub edx, eax
sub edx, dword [0x1004c16c]
mov ecx, dword [0x1004c170]
imul ecx, dword [0x1004c178]
imul ecx, dword [0x1004c178]
sub edx, ecx
sub edx, dword [0x1004c174]
sub edx, dword [0x1004c174]
add edx, dword [0x1004c16c]
sub edx, dword [0x1004c168]
mov eax, dword [0x1004c174]
imul eax, dword [0x1004c16c]
sub edx, eax
sub edx, dword [0x1004c16c]
mov ecx, dword [0x1004c170]
imul ecx, dword [0x1004c178]
imul ecx, dword [0x1004c178]
sub edx, ecx
sub edx, dword [0x1004c174]
sub edx, dword [0x1004c174]
add edx, dword [0x1004c16c]
sub edx, dword [0x1004c168]
mov eax, dword [0x1004c174]
imul eax, dword [0x1004c16c]
sub edx, eax
sub edx, dword [0x1004c16c]
mov ecx, dword [0x1004c170]
imul ecx, dword [0x1004c178]
imul ecx, dword [0x1004c178]
sub edx, ecx
mov eax, dword [ebp + 8]
mov cl, byte [eax + edx]
mov byte [ebp - 5], cl
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c174]
imul edx, dword [0x1004c168]
mov eax, dword [ebp - 0x14]
sub eax, edx
sub eax, dword [0x1004c170]
sub eax, dword [0x1004c168]
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c170]
add eax, ecx
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c174]
imul edx, dword [0x1004c174]
sub eax, edx
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c168]
imul ecx, dword [0x1004c178]
sub eax, ecx
mov edx, dword [0x1004c174]
imul edx, dword [0x1004c174]
imul edx, dword [0x1004c16c]
add eax, edx
sub eax, dword [0x1004c170]
sub eax, dword [0x1004c16c]
mov ecx, dword [0x1004c174]
imul ecx, dword [0x1004c16c]
add eax, ecx
sub eax, dword [0x1004c168]
sub eax, dword [0x1004c178]
sub eax, dword [0x1004c178]
add eax, dword [0x1004c174]
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c174]
imul edx, dword [0x1004c168]
sub eax, edx
sub eax, dword [0x1004c170]
sub eax, dword [0x1004c168]
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c170]
add eax, ecx
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c174]
imul edx, dword [0x1004c174]
sub eax, edx
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c168]
imul ecx, dword [0x1004c178]
sub eax, ecx
mov edx, dword [0x1004c174]
imul edx, dword [0x1004c174]
imul edx, dword [0x1004c16c]
add eax, edx
sub eax, dword [0x1004c170]
sub eax, dword [0x1004c16c]
mov ecx, dword [0x1004c174]
imul ecx, dword [0x1004c16c]
add eax, ecx
sub eax, dword [0x1004c168]
sub eax, dword [0x1004c178]
sub eax, dword [0x1004c178]
add eax, dword [0x1004c174]
mov edx, dword [ebp - 4]
add edx, dword [0x1004c178]
add edx, dword [0x1004c174]
mov ecx, dword [0x1004c170]
imul ecx, dword [0x1004c170]
sub edx, ecx
sub edx, dword [0x1004c16c]
mov ecx, dword [0x1004c178]
imul ecx, dword [0x1004c170]
add edx, ecx
sub edx, dword [0x1004c170]
mov ecx, dword [0x1004c178]
imul ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c178]
imul ecx, dword [0x1004c168]
imul ecx, dword [0x1004c170]
add edx, dword [0x1004c170]
add ecx, edx
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c168]
add ecx, dword [0x1004c16c]
add edx, ecx
sub edx, dword [0x1004c168]
add edx, dword [0x1004c178]
add edx, dword [0x1004c168]
sub edx, dword [0x1004c170]
sub edx, dword [0x1004c170]
add edx, dword [0x1004c178]
add edx, dword [0x1004c174]
mov ecx, dword [0x1004c170]
imul ecx, dword [0x1004c170]
sub edx, ecx
sub edx, dword [0x1004c16c]
mov ecx, dword [0x1004c178]
imul ecx, dword [0x1004c170]
add edx, ecx
sub edx, dword [0x1004c170]
mov ecx, dword [0x1004c178]
imul ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c178]
imul ecx, dword [0x1004c168]
imul ecx, dword [0x1004c170]
add edx, dword [0x1004c170]
add ecx, edx
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c168]
add ecx, dword [0x1004c16c]
add edx, ecx
sub edx, dword [0x1004c168]
add edx, dword [0x1004c178]
add edx, dword [0x1004c168]
sub edx, dword [0x1004c170]
sub edx, dword [0x1004c170]
add edx, dword [0x1004c178]
add edx, dword [0x1004c174]
mov ecx, dword [0x1004c170]
imul ecx, dword [0x1004c170]
sub edx, ecx
sub edx, dword [0x1004c16c]
mov ecx, dword [0x1004c178]
imul ecx, dword [0x1004c170]
add edx, ecx
sub edx, dword [0x1004c170]
mov ecx, dword [0x1004c178]
imul ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c178]
imul ecx, dword [0x1004c168]
imul ecx, dword [0x1004c170]
add edx, dword [0x1004c170]
add ecx, edx
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c168]
add ecx, dword [0x1004c16c]
add edx, ecx
sub edx, dword [0x1004c168]
add edx, dword [0x1004c178]
add edx, dword [0x1004c168]
sub edx, dword [0x1004c170]
sub edx, dword [0x1004c170]
add edx, dword [0x1004c178]
add edx, dword [0x1004c174]
mov ecx, dword [0x1004c170]
imul ecx, dword [0x1004c170]
sub edx, ecx
sub edx, dword [0x1004c16c]
mov ecx, dword [0x1004c178]
imul ecx, dword [0x1004c170]
add edx, ecx
sub edx, dword [0x1004c170]
mov ecx, dword [0x1004c178]
imul ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c178]
imul ecx, dword [0x1004c168]
imul ecx, dword [0x1004c170]
add edx, dword [0x1004c170]
add ecx, edx
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c168]
add ecx, dword [0x1004c16c]
add edx, ecx
sub edx, dword [0x1004c168]
add edx, dword [0x1004c178]
add edx, dword [0x1004c168]
sub edx, dword [0x1004c170]
sub edx, dword [0x1004c170]
add edx, dword [0x1004c178]
add edx, dword [0x1004c174]
mov ecx, dword [0x1004c170]
imul ecx, dword [0x1004c170]
sub edx, ecx
sub edx, dword [0x1004c16c]
mov ecx, dword [0x1004c178]
imul ecx, dword [0x1004c170]
add edx, ecx
sub edx, dword [0x1004c170]
mov ecx, dword [0x1004c178]
imul ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c178]
imul ecx, dword [0x1004c168]
imul ecx, dword [0x1004c170]
add edx, dword [0x1004c170]
add ecx, edx
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c168]
add ecx, dword [0x1004c16c]
add edx, ecx
sub edx, dword [0x1004c168]
add edx, dword [0x1004c178]
add edx, dword [0x1004c168]
sub edx, dword [0x1004c170]
sub edx, dword [0x1004c170]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov al, byte [esi + eax]
mov byte [ecx + edx], al
mov ecx, dword [ebp - 0x14]
sub ecx, dword [0x1004c178]
sub ecx, dword [0x1004c178]
sub ecx, dword [0x1004c178]
sub ecx, dword [0x1004c178]
sub ecx, dword [0x1004c178]
sub ecx, dword [0x1004c178]
sub ecx, dword [0x1004c178]
sub ecx, dword [0x1004c178]
mov edx, dword [ebp + 8]
mov al, byte [ebp - 5]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 4]
sub ecx, dword [0x1004c178]
add ecx, dword [0x1004c170]
mov edx, dword [0x1004c170]
imul edx, dword [0x1004c16c]
add ecx, dword [0x1004c174]
add edx, ecx
sub edx, dword [0x1004c178]
sub edx, dword [0x1004c174]
sub edx, dword [0x1004c178]
mov eax, dword [0x1004c170]
imul eax, dword [0x1004c178]
sub edx, eax
sub edx, dword [0x1004c16c]
add edx, dword [0x1004c170]
sub edx, dword [0x1004c16c]
sub edx, dword [0x1004c178]
add edx, dword [0x1004c170]
mov ecx, dword [0x1004c170]
imul ecx, dword [0x1004c16c]
add edx, dword [0x1004c174]
add ecx, edx
sub ecx, dword [0x1004c178]
sub ecx, dword [0x1004c174]
sub ecx, dword [0x1004c178]
mov edx, dword [0x1004c170]
imul edx, dword [0x1004c178]
sub ecx, edx
sub ecx, dword [0x1004c16c]
add ecx, dword [0x1004c170]
sub ecx, dword [0x1004c16c]
sub ecx, dword [0x1004c178]
add ecx, dword [0x1004c170]
mov eax, dword [0x1004c170]
imul eax, dword [0x1004c16c]
add ecx, dword [0x1004c174]
add eax, ecx
sub eax, dword [0x1004c178]
sub eax, dword [0x1004c174]
sub eax, dword [0x1004c178]
mov ecx, dword [0x1004c170]
imul ecx, dword [0x1004c178]
sub eax, ecx
sub eax, dword [0x1004c16c]
add eax, dword [0x1004c170]
sub eax, dword [0x1004c16c]
sub eax, dword [0x1004c178]
add eax, dword [0x1004c170]
mov edx, dword [0x1004c170]
imul edx, dword [0x1004c16c]
add eax, dword [0x1004c174]
add edx, eax
sub edx, dword [0x1004c178]
sub edx, dword [0x1004c174]
sub edx, dword [0x1004c178]
mov eax, dword [0x1004c170]
imul eax, dword [0x1004c178]
sub edx, eax
sub edx, dword [0x1004c16c]
add edx, dword [0x1004c170]
sub edx, dword [0x1004c16c]
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + edx]
mov edx, dword [ebp - 0x14]
sub edx, dword [0x1004c168]
add edx, dword [0x1004c170]
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c170]
sub edx, ecx
sub edx, dword [0x1004c168]
add edx, dword [0x1004c174]
sub edx, dword [0x1004c170]
sub edx, dword [0x1004c170]
add edx, dword [0x1004c178]
mov ecx, dword [0x1004c178]
imul ecx, dword [0x1004c174]
imul ecx, dword [0x1004c168]
sub edx, ecx
sub edx, dword [0x1004c168]
sub edx, dword [0x1004c170]
add edx, dword [0x1004c174]
add edx, dword [0x1004c178]
sub edx, dword [0x1004c168]
add edx, dword [0x1004c170]
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c170]
sub edx, ecx
sub edx, dword [0x1004c168]
add edx, dword [0x1004c174]
sub edx, dword [0x1004c170]
sub edx, dword [0x1004c170]
add edx, dword [0x1004c178]
mov ecx, dword [0x1004c178]
imul ecx, dword [0x1004c174]
imul ecx, dword [0x1004c168]
sub edx, ecx
sub edx, dword [0x1004c168]
sub edx, dword [0x1004c170]
add edx, dword [0x1004c174]
add edx, dword [0x1004c178]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
add eax, edx
xor edx, edx
div dword [0x1004c164]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
sub eax, dword [0x1004c178]
sub eax, dword [0x1004c168]
add eax, dword [0x1004c178]
add eax, dword [0x1004c170]
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c170]
imul ecx, dword [0x1004c170]
add eax, ecx
sub eax, dword [0x1004c178]
sub eax, dword [0x1004c16c]
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c174]
imul edx, dword [0x1004c178]
sub eax, edx
sub eax, dword [0x1004c16c]
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c170]
sub eax, ecx
sub eax, dword [0x1004c178]
sub eax, dword [0x1004c168]
add eax, dword [0x1004c178]
add eax, dword [0x1004c170]
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c170]
imul edx, dword [0x1004c170]
add eax, edx
sub eax, dword [0x1004c178]
sub eax, dword [0x1004c16c]
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c174]
imul ecx, dword [0x1004c178]
sub eax, ecx
sub eax, dword [0x1004c16c]
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c170]
sub eax, edx
sub eax, dword [0x1004c178]
sub eax, dword [0x1004c168]
add eax, dword [0x1004c178]
add eax, dword [0x1004c170]
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c170]
imul ecx, dword [0x1004c170]
add eax, ecx
sub eax, dword [0x1004c178]
sub eax, dword [0x1004c16c]
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c174]
imul edx, dword [0x1004c178]
sub eax, edx
sub eax, dword [0x1004c16c]
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c170]
sub eax, ecx
sub eax, dword [0x1004c178]
sub eax, dword [0x1004c168]
add eax, dword [0x1004c178]
add eax, dword [0x1004c170]
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c170]
imul edx, dword [0x1004c170]
add eax, edx
sub eax, dword [0x1004c178]
sub eax, dword [0x1004c16c]
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c174]
imul ecx, dword [0x1004c178]
sub eax, ecx
sub eax, dword [0x1004c16c]
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c170]
sub eax, edx
mov ecx, dword [0x1004c178]
imul ecx, dword [0x1004c170]
add ecx, dword [ebp - 0x10]
add ecx, dword [0x1004c16c]
mov edx, dword [0x1004c174]
imul edx, dword [0x1004c178]
add ecx, edx
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c170]
imul edx, dword [0x1004c170]
add ecx, edx
sub ecx, dword [0x1004c16c]
mov edx, dword [0x1004c174]
imul edx, dword [0x1004c178]
sub ecx, edx
mov edx, dword [0x1004c178]
imul edx, dword [0x1004c178]
add ecx, edx
sub ecx, dword [0x1004c168]
sub ecx, dword [0x1004c168]
add ecx, dword [0x1004c174]
sub ecx, dword [0x1004c178]
mov edx, dword [0x1004c178]
imul edx, dword [0x1004c170]
add ecx, dword [0x1004c16c]
add edx, ecx
mov ecx, dword [0x1004c174]
imul ecx, dword [0x1004c178]
add edx, ecx
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c170]
imul ecx, dword [0x1004c170]
add edx, ecx
sub edx, dword [0x1004c16c]
mov ecx, dword [0x1004c174]
imul ecx, dword [0x1004c178]
sub edx, ecx
mov ecx, dword [0x1004c178]
imul ecx, dword [0x1004c178]
add edx, ecx
sub edx, dword [0x1004c168]
sub edx, dword [0x1004c168]
add edx, dword [0x1004c174]
sub edx, dword [0x1004c178]
mov ecx, dword [0x1004c178]
imul ecx, dword [0x1004c170]
add edx, dword [0x1004c16c]
add ecx, edx
mov edx, dword [0x1004c174]
imul edx, dword [0x1004c178]
add ecx, edx
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c170]
imul edx, dword [0x1004c170]
add ecx, edx
sub ecx, dword [0x1004c16c]
mov edx, dword [0x1004c174]
imul edx, dword [0x1004c178]
sub ecx, edx
mov edx, dword [0x1004c178]
imul edx, dword [0x1004c178]
add ecx, edx
sub ecx, dword [0x1004c168]
sub ecx, dword [0x1004c168]
add ecx, dword [0x1004c174]
sub ecx, dword [0x1004c178]
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx]
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + eax]
xor eax, ecx
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c170]
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c174]
imul edx, dword [0x1004c178]
mov esi, dword [0x1004c168]
imul esi, dword [0x1004c170]
imul esi, dword [0x1004c170]
mov edi, dword [0x1004c168]
imul edi, dword [0x1004c170]
mov ebx, dword [0x1004c168]
imul ebx, dword [0x1004c174]
imul ebx, dword [0x1004c178]
mov dword [ebp - 0x18], eax
mov eax, dword [0x1004c168]
imul eax, dword [0x1004c170]
imul eax, dword [0x1004c170]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c170]
mov dword [ebp - 0x20], edx
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c174]
imul edx, dword [0x1004c178]
mov dword [ebp - 0x24], esi
mov esi, dword [0x1004c168]
imul esi, dword [0x1004c170]
imul esi, dword [0x1004c170]
mov dword [ebp - 0x28], edi
mov edi, dword [0x1004c168]
imul edi, dword [0x1004c170]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [0x1004c168]
imul ebx, dword [0x1004c174]
imul ebx, dword [0x1004c178]
mov dword [ebp - 0x30], eax
mov eax, dword [0x1004c168]
imul eax, dword [0x1004c170]
imul eax, dword [0x1004c170]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0xc]
sub ecx, dword [0x1004c178]
sub ecx, dword [0x1004c168]
add ecx, dword [0x1004c178]
add ecx, dword [0x1004c170]
add ecx, eax
sub ecx, dword [0x1004c178]
sub ecx, dword [0x1004c16c]
sub ecx, ebx
sub ecx, dword [0x1004c16c]
sub ecx, edi
sub ecx, dword [0x1004c178]
sub ecx, dword [0x1004c168]
add ecx, dword [0x1004c178]
add ecx, dword [0x1004c170]
add ecx, esi
sub ecx, dword [0x1004c178]
sub ecx, dword [0x1004c16c]
sub ecx, edx
sub ecx, dword [0x1004c16c]
mov eax, dword [ebp - 0x34]
sub ecx, eax
sub ecx, dword [0x1004c178]
sub ecx, dword [0x1004c168]
add ecx, dword [0x1004c178]
add ecx, dword [0x1004c170]
mov edx, dword [ebp - 0x30]
add ecx, edx
sub ecx, dword [0x1004c178]
sub ecx, dword [0x1004c16c]
mov eax, dword [ebp - 0x2c]
sub ecx, eax
sub ecx, dword [0x1004c16c]
mov edx, dword [ebp - 0x28]
sub ecx, edx
sub ecx, dword [0x1004c178]
sub ecx, dword [0x1004c168]
add ecx, dword [0x1004c178]
add ecx, dword [0x1004c170]
mov eax, dword [ebp - 0x24]
add ecx, eax
sub ecx, dword [0x1004c178]
sub ecx, dword [0x1004c16c]
mov edx, dword [ebp - 0x20]
sub ecx, edx
sub ecx, dword [0x1004c16c]
mov eax, dword [ebp - 0x1c]
sub ecx, eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov byte [edx + ecx], al
jmp 0x10004f6e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret