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 [0x1004c158]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
add edx, dword [0x1004c168]
mov eax, dword [0x1004c15c]
imul eax, dword [0x1004c160]
sub edx, eax
sub edx, dword [0x1004c16c]
mov ecx, dword [0x1004c160]
imul ecx, dword [0x1004c160]
sub edx, ecx
mov eax, dword [0x1004c16c]
imul eax, dword [0x1004c164]
sub edx, eax
sub edx, dword [0x1004c160]
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + edx]
add eax, dword [ebp - 0x14]
xor edx, edx
div dword [0x1004c158]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 4]
sub edx, dword [0x1004c168]
sub edx, dword [0x1004c168]
add edx, dword [0x1004c160]
sub edx, dword [0x1004c15c]
mov eax, dword [0x1004c168]
imul eax, dword [0x1004c160]
sub edx, eax
sub edx, dword [0x1004c160]
mov ecx, dword [0x1004c164]
imul ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c16c]
sub edx, ecx
sub edx, dword [0x1004c168]
sub edx, dword [0x1004c168]
add edx, dword [0x1004c160]
sub edx, dword [0x1004c15c]
mov eax, dword [0x1004c168]
imul eax, dword [0x1004c160]
sub edx, eax
sub edx, dword [0x1004c160]
mov ecx, dword [0x1004c164]
imul ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c16c]
sub edx, ecx
sub edx, dword [0x1004c168]
sub edx, dword [0x1004c168]
add edx, dword [0x1004c160]
sub edx, dword [0x1004c15c]
mov eax, dword [0x1004c168]
imul eax, dword [0x1004c160]
sub edx, eax
sub edx, dword [0x1004c160]
mov ecx, dword [0x1004c164]
imul ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c16c]
sub edx, ecx
sub edx, dword [0x1004c168]
sub edx, dword [0x1004c168]
add edx, dword [0x1004c160]
sub edx, dword [0x1004c15c]
mov eax, dword [0x1004c168]
imul eax, dword [0x1004c160]
sub edx, eax
sub edx, dword [0x1004c160]
mov ecx, dword [0x1004c164]
imul ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c16c]
sub edx, ecx
mov eax, dword [ebp + 8]
mov cl, byte [eax + edx]
mov byte [ebp - 5], cl
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c168]
imul edx, dword [0x1004c15c]
mov eax, dword [ebp - 0x14]
sub eax, edx
sub eax, dword [0x1004c164]
sub eax, dword [0x1004c15c]
mov ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c164]
add eax, ecx
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c168]
imul edx, dword [0x1004c168]
sub eax, edx
mov ecx, dword [0x1004c160]
imul ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c16c]
sub eax, ecx
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c168]
imul edx, dword [0x1004c160]
add eax, edx
sub eax, dword [0x1004c164]
sub eax, dword [0x1004c160]
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c160]
add eax, ecx
sub eax, dword [0x1004c15c]
sub eax, dword [0x1004c16c]
sub eax, dword [0x1004c16c]
add eax, dword [0x1004c168]
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c168]
imul edx, dword [0x1004c15c]
sub eax, edx
sub eax, dword [0x1004c164]
sub eax, dword [0x1004c15c]
mov ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c164]
add eax, ecx
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c168]
imul edx, dword [0x1004c168]
sub eax, edx
mov ecx, dword [0x1004c160]
imul ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c16c]
sub eax, ecx
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c168]
imul edx, dword [0x1004c160]
add eax, edx
sub eax, dword [0x1004c164]
sub eax, dword [0x1004c160]
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c160]
add eax, ecx
sub eax, dword [0x1004c15c]
sub eax, dword [0x1004c16c]
sub eax, dword [0x1004c16c]
add eax, dword [0x1004c168]
mov edx, dword [ebp - 4]
add edx, dword [0x1004c16c]
add edx, dword [0x1004c168]
mov ecx, dword [0x1004c164]
imul ecx, dword [0x1004c164]
sub edx, ecx
sub edx, dword [0x1004c160]
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c164]
add edx, ecx
sub edx, dword [0x1004c164]
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c160]
imul ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c164]
add edx, dword [0x1004c164]
add ecx, edx
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c15c]
add ecx, dword [0x1004c160]
add edx, ecx
sub edx, dword [0x1004c15c]
add edx, dword [0x1004c16c]
add edx, dword [0x1004c15c]
sub edx, dword [0x1004c164]
sub edx, dword [0x1004c164]
add edx, dword [0x1004c16c]
add edx, dword [0x1004c168]
mov ecx, dword [0x1004c164]
imul ecx, dword [0x1004c164]
sub edx, ecx
sub edx, dword [0x1004c160]
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c164]
add edx, ecx
sub edx, dword [0x1004c164]
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c160]
imul ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c164]
add edx, dword [0x1004c164]
add ecx, edx
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c15c]
add ecx, dword [0x1004c160]
add edx, ecx
sub edx, dword [0x1004c15c]
add edx, dword [0x1004c16c]
add edx, dword [0x1004c15c]
sub edx, dword [0x1004c164]
sub edx, dword [0x1004c164]
add edx, dword [0x1004c16c]
add edx, dword [0x1004c168]
mov ecx, dword [0x1004c164]
imul ecx, dword [0x1004c164]
sub edx, ecx
sub edx, dword [0x1004c160]
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c164]
add edx, ecx
sub edx, dword [0x1004c164]
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c160]
imul ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c164]
add edx, dword [0x1004c164]
add ecx, edx
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c15c]
add ecx, dword [0x1004c160]
add edx, ecx
sub edx, dword [0x1004c15c]
add edx, dword [0x1004c16c]
add edx, dword [0x1004c15c]
sub edx, dword [0x1004c164]
sub edx, dword [0x1004c164]
add edx, dword [0x1004c16c]
add edx, dword [0x1004c168]
mov ecx, dword [0x1004c164]
imul ecx, dword [0x1004c164]
sub edx, ecx
sub edx, dword [0x1004c160]
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c164]
add edx, ecx
sub edx, dword [0x1004c164]
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c160]
imul ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c164]
add edx, dword [0x1004c164]
add ecx, edx
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c15c]
add ecx, dword [0x1004c160]
add edx, ecx
sub edx, dword [0x1004c15c]
add edx, dword [0x1004c16c]
add edx, dword [0x1004c15c]
sub edx, dword [0x1004c164]
sub edx, dword [0x1004c164]
add edx, dword [0x1004c16c]
add edx, dword [0x1004c168]
mov ecx, dword [0x1004c164]
imul ecx, dword [0x1004c164]
sub edx, ecx
sub edx, dword [0x1004c160]
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c164]
add edx, ecx
sub edx, dword [0x1004c164]
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c160]
imul ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c164]
add edx, dword [0x1004c164]
add ecx, edx
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c15c]
add ecx, dword [0x1004c160]
add edx, ecx
sub edx, dword [0x1004c15c]
add edx, dword [0x1004c16c]
add edx, dword [0x1004c15c]
sub edx, dword [0x1004c164]
sub edx, dword [0x1004c164]
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 [0x1004c16c]
sub ecx, dword [0x1004c16c]
sub ecx, dword [0x1004c16c]
sub ecx, dword [0x1004c16c]
sub ecx, dword [0x1004c16c]
sub ecx, dword [0x1004c16c]
sub ecx, dword [0x1004c16c]
sub ecx, dword [0x1004c16c]
mov edx, dword [ebp + 8]
mov al, byte [ebp - 5]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 4]
sub ecx, dword [0x1004c16c]
add ecx, dword [0x1004c164]
mov edx, dword [0x1004c164]
imul edx, dword [0x1004c160]
add ecx, dword [0x1004c168]
add edx, ecx
sub edx, dword [0x1004c16c]
sub edx, dword [0x1004c168]
sub edx, dword [0x1004c16c]
mov eax, dword [0x1004c164]
imul eax, dword [0x1004c16c]
sub edx, eax
sub edx, dword [0x1004c160]
add edx, dword [0x1004c164]
sub edx, dword [0x1004c160]
sub edx, dword [0x1004c16c]
add edx, dword [0x1004c164]
mov ecx, dword [0x1004c164]
imul ecx, dword [0x1004c160]
add edx, dword [0x1004c168]
add ecx, edx
sub ecx, dword [0x1004c16c]
sub ecx, dword [0x1004c168]
sub ecx, dword [0x1004c16c]
mov edx, dword [0x1004c164]
imul edx, dword [0x1004c16c]
sub ecx, edx
sub ecx, dword [0x1004c160]
add ecx, dword [0x1004c164]
sub ecx, dword [0x1004c160]
sub ecx, dword [0x1004c16c]
add ecx, dword [0x1004c164]
mov eax, dword [0x1004c164]
imul eax, dword [0x1004c160]
add ecx, dword [0x1004c168]
add eax, ecx
sub eax, dword [0x1004c16c]
sub eax, dword [0x1004c168]
sub eax, dword [0x1004c16c]
mov ecx, dword [0x1004c164]
imul ecx, dword [0x1004c16c]
sub eax, ecx
sub eax, dword [0x1004c160]
add eax, dword [0x1004c164]
sub eax, dword [0x1004c160]
sub eax, dword [0x1004c16c]
add eax, dword [0x1004c164]
mov edx, dword [0x1004c164]
imul edx, dword [0x1004c160]
add eax, dword [0x1004c168]
add edx, eax
sub edx, dword [0x1004c16c]
sub edx, dword [0x1004c168]
sub edx, dword [0x1004c16c]
mov eax, dword [0x1004c164]
imul eax, dword [0x1004c16c]
sub edx, eax
sub edx, dword [0x1004c160]
add edx, dword [0x1004c164]
sub edx, dword [0x1004c160]
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + edx]
mov edx, dword [ebp - 0x14]
sub edx, dword [0x1004c15c]
add edx, dword [0x1004c164]
mov ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c164]
sub edx, ecx
sub edx, dword [0x1004c15c]
add edx, dword [0x1004c168]
sub edx, dword [0x1004c164]
sub edx, dword [0x1004c164]
add edx, dword [0x1004c16c]
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c168]
imul ecx, dword [0x1004c15c]
sub edx, ecx
sub edx, dword [0x1004c15c]
sub edx, dword [0x1004c164]
add edx, dword [0x1004c168]
add edx, dword [0x1004c16c]
sub edx, dword [0x1004c15c]
add edx, dword [0x1004c164]
mov ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c164]
sub edx, ecx
sub edx, dword [0x1004c15c]
add edx, dword [0x1004c168]
sub edx, dword [0x1004c164]
sub edx, dword [0x1004c164]
add edx, dword [0x1004c16c]
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c168]
imul ecx, dword [0x1004c15c]
sub edx, ecx
sub edx, dword [0x1004c15c]
sub edx, dword [0x1004c164]
add edx, dword [0x1004c168]
add edx, dword [0x1004c16c]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
add eax, edx
xor edx, edx
div dword [0x1004c158]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
sub eax, dword [0x1004c16c]
sub eax, dword [0x1004c15c]
add eax, dword [0x1004c16c]
add eax, dword [0x1004c164]
mov ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c164]
imul ecx, dword [0x1004c164]
add eax, ecx
sub eax, dword [0x1004c16c]
sub eax, dword [0x1004c160]
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c168]
imul edx, dword [0x1004c16c]
sub eax, edx
sub eax, dword [0x1004c160]
mov ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c164]
sub eax, ecx
sub eax, dword [0x1004c16c]
sub eax, dword [0x1004c15c]
add eax, dword [0x1004c16c]
add eax, dword [0x1004c164]
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c164]
imul edx, dword [0x1004c164]
add eax, edx
sub eax, dword [0x1004c16c]
sub eax, dword [0x1004c160]
mov ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c168]
imul ecx, dword [0x1004c16c]
sub eax, ecx
sub eax, dword [0x1004c160]
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c164]
sub eax, edx
sub eax, dword [0x1004c16c]
sub eax, dword [0x1004c15c]
add eax, dword [0x1004c16c]
add eax, dword [0x1004c164]
mov ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c164]
imul ecx, dword [0x1004c164]
add eax, ecx
sub eax, dword [0x1004c16c]
sub eax, dword [0x1004c160]
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c168]
imul edx, dword [0x1004c16c]
sub eax, edx
sub eax, dword [0x1004c160]
mov ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c164]
sub eax, ecx
sub eax, dword [0x1004c16c]
sub eax, dword [0x1004c15c]
add eax, dword [0x1004c16c]
add eax, dword [0x1004c164]
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c164]
imul edx, dword [0x1004c164]
add eax, edx
sub eax, dword [0x1004c16c]
sub eax, dword [0x1004c160]
mov ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c168]
imul ecx, dword [0x1004c16c]
sub eax, ecx
sub eax, dword [0x1004c160]
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c164]
sub eax, edx
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c164]
add ecx, dword [ebp - 0x10]
add ecx, dword [0x1004c160]
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c16c]
add ecx, edx
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c164]
imul edx, dword [0x1004c164]
add ecx, edx
sub ecx, dword [0x1004c160]
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c16c]
sub ecx, edx
mov edx, dword [0x1004c16c]
imul edx, dword [0x1004c16c]
add ecx, edx
sub ecx, dword [0x1004c15c]
sub ecx, dword [0x1004c15c]
add ecx, dword [0x1004c168]
sub ecx, dword [0x1004c16c]
mov edx, dword [0x1004c16c]
imul edx, dword [0x1004c164]
add ecx, dword [0x1004c160]
add edx, ecx
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c16c]
add edx, ecx
mov ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c164]
imul ecx, dword [0x1004c164]
add edx, ecx
sub edx, dword [0x1004c160]
mov ecx, dword [0x1004c168]
imul ecx, dword [0x1004c16c]
sub edx, ecx
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c16c]
add edx, ecx
sub edx, dword [0x1004c15c]
sub edx, dword [0x1004c15c]
add edx, dword [0x1004c168]
sub edx, dword [0x1004c16c]
mov ecx, dword [0x1004c16c]
imul ecx, dword [0x1004c164]
add edx, dword [0x1004c160]
add ecx, edx
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c16c]
add ecx, edx
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c164]
imul edx, dword [0x1004c164]
add ecx, edx
sub ecx, dword [0x1004c160]
mov edx, dword [0x1004c168]
imul edx, dword [0x1004c16c]
sub ecx, edx
mov edx, dword [0x1004c16c]
imul edx, dword [0x1004c16c]
add ecx, edx
sub ecx, dword [0x1004c15c]
sub ecx, dword [0x1004c15c]
add ecx, dword [0x1004c168]
sub ecx, dword [0x1004c16c]
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 [0x1004c15c]
imul ecx, dword [0x1004c164]
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c168]
imul edx, dword [0x1004c16c]
mov esi, dword [0x1004c15c]
imul esi, dword [0x1004c164]
imul esi, dword [0x1004c164]
mov edi, dword [0x1004c15c]
imul edi, dword [0x1004c164]
mov ebx, dword [0x1004c15c]
imul ebx, dword [0x1004c168]
imul ebx, dword [0x1004c16c]
mov dword [ebp - 0x18], eax
mov eax, dword [0x1004c15c]
imul eax, dword [0x1004c164]
imul eax, dword [0x1004c164]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x1004c15c]
imul ecx, dword [0x1004c164]
mov dword [ebp - 0x20], edx
mov edx, dword [0x1004c15c]
imul edx, dword [0x1004c168]
imul edx, dword [0x1004c16c]
mov dword [ebp - 0x24], esi
mov esi, dword [0x1004c15c]
imul esi, dword [0x1004c164]
imul esi, dword [0x1004c164]
mov dword [ebp - 0x28], edi
mov edi, dword [0x1004c15c]
imul edi, dword [0x1004c164]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [0x1004c15c]
imul ebx, dword [0x1004c168]
imul ebx, dword [0x1004c16c]
mov dword [ebp - 0x30], eax
mov eax, dword [0x1004c15c]
imul eax, dword [0x1004c164]
imul eax, dword [0x1004c164]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0xc]
sub ecx, dword [0x1004c16c]
sub ecx, dword [0x1004c15c]
add ecx, dword [0x1004c16c]
add ecx, dword [0x1004c164]
add ecx, eax
sub ecx, dword [0x1004c16c]
sub ecx, dword [0x1004c160]
sub ecx, ebx
sub ecx, dword [0x1004c160]
sub ecx, edi
sub ecx, dword [0x1004c16c]
sub ecx, dword [0x1004c15c]
add ecx, dword [0x1004c16c]
add ecx, dword [0x1004c164]
add ecx, esi
sub ecx, dword [0x1004c16c]
sub ecx, dword [0x1004c160]
sub ecx, edx
sub ecx, dword [0x1004c160]
mov eax, dword [ebp - 0x34]
sub ecx, eax
sub ecx, dword [0x1004c16c]
sub ecx, dword [0x1004c15c]
add ecx, dword [0x1004c16c]
add ecx, dword [0x1004c164]
mov edx, dword [ebp - 0x30]
add ecx, edx
sub ecx, dword [0x1004c16c]
sub ecx, dword [0x1004c160]
mov eax, dword [ebp - 0x2c]
sub ecx, eax
sub ecx, dword [0x1004c160]
mov edx, dword [ebp - 0x28]
sub ecx, edx
sub ecx, dword [0x1004c16c]
sub ecx, dword [0x1004c15c]
add ecx, dword [0x1004c16c]
add ecx, dword [0x1004c164]
mov eax, dword [ebp - 0x24]
add ecx, eax
sub ecx, dword [0x1004c16c]
sub ecx, dword [0x1004c160]
mov edx, dword [ebp - 0x20]
sub ecx, edx
sub ecx, dword [0x1004c160]
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