Function at 0x10029350
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
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 0x10029387
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x10029d5a
mov eax, dword [ebp - 4]
add eax, 1
xor edx, edx
div dword [0x100882e4]
mov dword [ebp - 4], edx
mov edx, dword [0x100882e8]
imul edx, dword [0x100882f0]
imul edx, dword [0x100882e8]
mov eax, dword [ebp - 4]
sub eax, edx
mov ecx, dword [0x100882f8]
imul ecx, dword [0x100882f4]
sub eax, ecx
mov edx, dword [0x100882f4]
imul edx, dword [0x100882f8]
add eax, edx
mov ecx, dword [0x100882e8]
imul ecx, dword [0x100882f0]
imul ecx, dword [0x100882e8]
sub eax, ecx
mov edx, dword [0x100882f8]
imul edx, dword [0x100882f4]
sub eax, edx
mov ecx, dword [0x100882f4]
imul ecx, dword [0x100882f8]
add eax, ecx
mov edx, dword [0x100882e8]
imul edx, dword [0x100882f0]
imul edx, dword [0x100882e8]
sub eax, edx
mov ecx, dword [0x100882f8]
imul ecx, dword [0x100882f4]
sub eax, ecx
mov edx, dword [0x100882f4]
imul edx, dword [0x100882f8]
add edx, dword [ebp + 8]
movzx eax, byte [edx + eax]
add eax, dword [ebp - 0x14]
xor edx, edx
div dword [0x100882e4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
sub eax, dword [0x100882e8]
add eax, dword [0x100882f0]
mov ecx, dword [0x100882f4]
imul ecx, dword [0x100882e8]
add eax, dword [0x100882f4]
add ecx, eax
sub ecx, dword [0x100882e8]
add ecx, dword [0x100882f0]
add ecx, dword [0x100882f4]
sub ecx, dword [0x100882ec]
mov edx, dword [0x100882f8]
imul edx, dword [0x100882f0]
sub ecx, edx
add ecx, dword [0x100882f0]
add ecx, dword [0x100882f0]
sub ecx, dword [0x100882e8]
add ecx, dword [0x100882f0]
mov eax, dword [0x100882f4]
imul eax, dword [0x100882e8]
add ecx, dword [0x100882f4]
add eax, ecx
sub eax, dword [0x100882e8]
add eax, dword [0x100882f0]
add eax, dword [0x100882f4]
sub eax, dword [0x100882ec]
mov ecx, dword [0x100882f8]
imul ecx, dword [0x100882f0]
sub eax, ecx
add eax, dword [0x100882f0]
add eax, dword [0x100882f0]
sub eax, dword [0x100882e8]
add eax, dword [0x100882f0]
mov edx, dword [0x100882f4]
imul edx, dword [0x100882e8]
add eax, dword [0x100882f4]
add edx, eax
sub edx, dword [0x100882e8]
add edx, dword [0x100882f0]
add edx, dword [0x100882f4]
sub edx, dword [0x100882ec]
mov eax, dword [0x100882f8]
imul eax, dword [0x100882f0]
sub edx, eax
add edx, dword [0x100882f0]
add edx, dword [0x100882f0]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + edx]
mov byte [ebp - 5], dl
mov eax, dword [ebp - 0x14]
add eax, dword [0x100882ec]
mov ecx, dword [0x100882f0]
imul ecx, dword [0x100882f4]
imul ecx, dword [0x100882f8]
sub eax, ecx
mov edx, dword [0x100882f8]
imul edx, dword [0x100882f8]
imul edx, dword [0x100882f0]
add eax, edx
sub eax, dword [0x100882f0]
sub eax, dword [0x100882f4]
add eax, dword [0x100882f8]
sub eax, dword [0x100882ec]
mov ecx, dword [0x100882f0]
imul ecx, dword [0x100882f8]
imul ecx, dword [0x100882f4]
sub eax, ecx
mov edx, dword [0x100882f4]
imul edx, dword [0x100882f0]
sub eax, edx
sub eax, dword [0x100882f8]
add eax, dword [0x100882e8]
sub eax, dword [0x100882f4]
mov ecx, dword [0x100882ec]
imul ecx, dword [0x100882ec]
imul ecx, dword [0x100882f4]
sub eax, ecx
add eax, dword [0x100882f4]
sub eax, dword [0x100882f8]
add eax, dword [0x100882e8]
add eax, dword [0x100882ec]
mov edx, dword [0x100882e8]
imul edx, dword [0x100882ec]
add eax, dword [0x100882ec]
add edx, eax
mov eax, dword [0x100882f0]
imul eax, dword [0x100882f4]
imul eax, dword [0x100882f8]
sub edx, eax
mov ecx, dword [0x100882f8]
imul ecx, dword [0x100882f8]
imul ecx, dword [0x100882f0]
add edx, ecx
sub edx, dword [0x100882f0]
sub edx, dword [0x100882f4]
add edx, dword [0x100882f8]
sub edx, dword [0x100882ec]
mov eax, dword [0x100882f0]
imul eax, dword [0x100882f8]
imul eax, dword [0x100882f4]
sub edx, eax
mov ecx, dword [0x100882f4]
imul ecx, dword [0x100882f0]
sub edx, ecx
sub edx, dword [0x100882f8]
add edx, dword [0x100882e8]
sub edx, dword [0x100882f4]
mov eax, dword [0x100882ec]
imul eax, dword [0x100882ec]
imul eax, dword [0x100882f4]
sub edx, eax
add edx, dword [0x100882f4]
sub edx, dword [0x100882f8]
add edx, dword [0x100882e8]
add edx, dword [0x100882ec]
mov ecx, dword [0x100882e8]
imul ecx, dword [0x100882ec]
add edx, dword [0x100882ec]
add ecx, edx
mov edx, dword [0x100882f0]
imul edx, dword [0x100882f4]
imul edx, dword [0x100882f8]
sub ecx, edx
mov eax, dword [0x100882f8]
imul eax, dword [0x100882f8]
imul eax, dword [0x100882f0]
add ecx, eax
sub ecx, dword [0x100882f0]
sub ecx, dword [0x100882f4]
add ecx, dword [0x100882f8]
sub ecx, dword [0x100882ec]
mov edx, dword [0x100882f0]
imul edx, dword [0x100882f8]
imul edx, dword [0x100882f4]
sub ecx, edx
mov eax, dword [0x100882f4]
imul eax, dword [0x100882f0]
sub ecx, eax
sub ecx, dword [0x100882f8]
add ecx, dword [0x100882e8]
sub ecx, dword [0x100882f4]
mov edx, dword [0x100882ec]
imul edx, dword [0x100882ec]
imul edx, dword [0x100882f4]
sub ecx, edx
add ecx, dword [0x100882f4]
sub ecx, dword [0x100882f8]
add ecx, dword [0x100882e8]
add ecx, dword [0x100882ec]
mov eax, dword [0x100882e8]
imul eax, dword [0x100882ec]
add ecx, eax
mov edx, dword [ebp - 4]
sub edx, dword [0x100882f4]
sub edx, dword [0x100882e8]
mov eax, dword [0x100882f0]
imul eax, dword [0x100882ec]
add edx, eax
sub edx, dword [0x100882f4]
add edx, dword [0x100882e8]
mov eax, dword [0x100882f0]
imul eax, dword [0x100882ec]
imul eax, dword [0x100882ec]
add edx, eax
mov eax, dword [0x100882f8]
imul eax, dword [0x100882f4]
imul eax, dword [0x100882f4]
add edx, eax
sub edx, dword [0x100882f4]
sub edx, dword [0x100882e8]
mov eax, dword [0x100882f0]
imul eax, dword [0x100882ec]
add edx, eax
sub edx, dword [0x100882f4]
add edx, dword [0x100882e8]
mov eax, dword [0x100882f0]
imul eax, dword [0x100882ec]
imul eax, dword [0x100882ec]
add edx, eax
mov eax, dword [0x100882f8]
imul eax, dword [0x100882f4]
imul eax, dword [0x100882f4]
add edx, eax
sub edx, dword [0x100882f4]
sub edx, dword [0x100882e8]
mov eax, dword [0x100882f0]
imul eax, dword [0x100882ec]
add edx, eax
sub edx, dword [0x100882f4]
add edx, dword [0x100882e8]
mov eax, dword [0x100882f0]
imul eax, dword [0x100882ec]
imul eax, dword [0x100882ec]
add edx, eax
mov eax, dword [0x100882f8]
imul eax, dword [0x100882f4]
imul eax, dword [0x100882f4]
add edx, eax
sub edx, dword [0x100882f4]
sub edx, dword [0x100882e8]
mov eax, dword [0x100882f0]
imul eax, dword [0x100882ec]
add edx, eax
sub edx, dword [0x100882f4]
add edx, dword [0x100882e8]
mov eax, dword [0x100882f0]
imul eax, dword [0x100882ec]
imul eax, dword [0x100882ec]
add edx, eax
mov eax, dword [0x100882f8]
imul eax, dword [0x100882f4]
imul eax, dword [0x100882f4]
add edx, eax
sub edx, dword [0x100882f4]
sub edx, dword [0x100882e8]
mov eax, dword [0x100882f0]
imul eax, dword [0x100882ec]
add edx, eax
sub edx, dword [0x100882f4]
add edx, dword [0x100882e8]
mov eax, dword [0x100882f0]
imul eax, dword [0x100882ec]
imul eax, dword [0x100882ec]
add edx, eax
mov eax, dword [0x100882f8]
imul eax, dword [0x100882f4]
imul eax, dword [0x100882f4]
add eax, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov cl, byte [esi + ecx]
mov byte [eax + edx], cl
mov edx, dword [0x100882f4]
imul edx, dword [0x100882ec]
mov eax, dword [ebp - 0x14]
sub eax, edx
mov ecx, dword [0x100882f4]
imul ecx, dword [0x100882ec]
sub eax, ecx
mov edx, dword [0x100882f4]
imul edx, dword [0x100882ec]
sub eax, edx
mov ecx, dword [ebp + 8]
mov dl, byte [ebp - 5]
mov byte [ecx + eax], dl
mov eax, dword [ebp - 4]
sub eax, dword [0x100882f0]
mov ecx, dword [0x100882e8]
imul ecx, dword [0x100882ec]
add eax, ecx
sub eax, dword [0x100882ec]
add eax, dword [0x100882f8]
add eax, dword [0x100882ec]
mov edx, dword [0x100882f0]
imul edx, dword [0x100882ec]
imul edx, dword [0x100882f8]
add eax, edx
sub eax, dword [0x100882ec]
sub eax, dword [0x100882f8]
mov ecx, dword [0x100882ec]
imul ecx, dword [0x100882e8]
add eax, dword [0x100882ec]
add ecx, eax
mov edx, dword [0x100882e8]
imul edx, dword [0x100882e8]
add ecx, dword [0x100882f4]
add edx, ecx
mov eax, dword [0x100882ec]
imul eax, dword [0x100882e8]
sub edx, eax
sub edx, dword [0x100882f4]
sub edx, dword [0x100882f0]
mov ecx, dword [0x100882e8]
imul ecx, dword [0x100882ec]
add edx, ecx
sub edx, dword [0x100882ec]
add edx, dword [0x100882f8]
add edx, dword [0x100882ec]
mov eax, dword [0x100882f0]
imul eax, dword [0x100882ec]
imul eax, dword [0x100882f8]
add edx, eax
sub edx, dword [0x100882ec]
sub edx, dword [0x100882f8]
mov ecx, dword [0x100882ec]
imul ecx, dword [0x100882e8]
add edx, dword [0x100882ec]
add ecx, edx
mov edx, dword [0x100882e8]
imul edx, dword [0x100882e8]
add ecx, dword [0x100882f4]
add edx, ecx
mov eax, dword [0x100882ec]
imul eax, dword [0x100882e8]
sub edx, eax
sub edx, dword [0x100882f4]
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + edx]
mov edx, dword [ebp - 0x14]
sub edx, dword [0x100882f8]
sub edx, dword [0x100882ec]
mov ecx, dword [0x100882f0]
imul ecx, dword [0x100882ec]
add edx, ecx
sub edx, dword [0x100882f8]
sub edx, dword [0x100882ec]
mov ecx, dword [0x100882f0]
imul ecx, dword [0x100882ec]
add edx, ecx
sub edx, dword [0x100882f8]
sub edx, dword [0x100882ec]
mov ecx, dword [0x100882f0]
imul ecx, dword [0x100882ec]
add ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
add eax, edx
xor edx, edx
div dword [0x100882e4]
mov dword [ebp - 0x10], edx
mov eax, dword [0x100882f8]
imul eax, dword [0x100882f4]
imul eax, dword [0x100882e8]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
sub ecx, dword [0x100882e8]
add ecx, dword [0x100882f0]
mov edx, dword [0x100882e8]
imul edx, dword [0x100882ec]
imul edx, dword [0x100882ec]
add ecx, edx
sub ecx, dword [0x100882f8]
add ecx, dword [0x100882ec]
add ecx, dword [0x100882ec]
sub ecx, dword [0x100882f0]
sub ecx, dword [0x100882f0]
mov eax, dword [0x100882e8]
imul eax, dword [0x100882f0]
sub ecx, eax
add ecx, dword [0x100882f8]
add ecx, dword [0x100882e8]
mov edx, dword [0x100882f0]
imul edx, dword [0x100882f0]
add ecx, edx
mov eax, dword [0x100882f8]
imul eax, dword [0x100882f4]
imul eax, dword [0x100882e8]
sub ecx, eax
sub ecx, dword [0x100882e8]
add ecx, dword [0x100882f0]
mov edx, dword [0x100882e8]
imul edx, dword [0x100882ec]
imul edx, dword [0x100882ec]
add ecx, edx
sub ecx, dword [0x100882f8]
add ecx, dword [0x100882ec]
add ecx, dword [0x100882ec]
sub ecx, dword [0x100882f0]
sub ecx, dword [0x100882f0]
mov eax, dword [0x100882e8]
imul eax, dword [0x100882f0]
sub ecx, eax
add ecx, dword [0x100882f8]
add ecx, dword [0x100882e8]
mov edx, dword [0x100882f0]
imul edx, dword [0x100882f0]
add ecx, edx
mov eax, dword [ebp - 0x10]
sub eax, dword [0x100882ec]
add eax, dword [0x100882f0]
add eax, dword [0x100882ec]
mov edx, dword [0x100882f0]
imul edx, dword [0x100882e8]
add eax, edx
sub eax, dword [0x100882ec]
add eax, dword [0x100882f0]
add eax, dword [0x100882ec]
mov edx, dword [0x100882f0]
imul edx, dword [0x100882e8]
add edx, dword [ebp + 8]
movzx eax, byte [edx + eax]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx + ecx]
xor ecx, eax
mov edx, dword [0x100882f0]
imul edx, dword [0x100882f0]
mov eax, dword [0x100882e8]
imul eax, dword [0x100882f0]
mov esi, dword [0x100882e8]
imul esi, dword [0x100882ec]
imul esi, dword [0x100882ec]
mov edi, dword [0x100882f8]
imul edi, dword [0x100882f4]
imul edi, dword [0x100882e8]
mov ebx, dword [0x100882f0]
imul ebx, dword [0x100882f0]
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x100882e8]
imul ecx, dword [0x100882f0]
mov dword [ebp - 0x1c], edx
mov edx, dword [0x100882e8]
imul edx, dword [0x100882ec]
imul edx, dword [0x100882ec]
mov dword [ebp - 0x20], eax
mov eax, dword [0x100882f8]
imul eax, dword [0x100882f4]
imul eax, dword [0x100882e8]
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0xc]
sub esi, eax
sub esi, dword [0x100882e8]
add esi, dword [0x100882f0]
add esi, edx
sub esi, dword [0x100882f8]
add esi, dword [0x100882ec]
add esi, dword [0x100882ec]
sub esi, dword [0x100882f0]
sub esi, dword [0x100882f0]
sub esi, ecx
add esi, dword [0x100882f8]
add esi, dword [0x100882e8]
add esi, ebx
sub esi, edi
sub esi, dword [0x100882e8]
add esi, dword [0x100882f0]
mov ecx, dword [ebp - 0x24]
add esi, ecx
sub esi, dword [0x100882f8]
add esi, dword [0x100882ec]
add esi, dword [0x100882ec]
sub esi, dword [0x100882f0]
sub esi, dword [0x100882f0]
mov edx, dword [ebp - 0x20]
sub esi, edx
add esi, dword [0x100882f8]
add esi, dword [0x100882e8]
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov byte [eax + esi], cl
jmp 0x1002937e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret