Function at 0x10007940
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 0x10007977
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x100086b6
mov eax, dword [ebp - 4]
add eax, 1
add eax, dword [0x1004219c]
sub eax, dword [0x100421ac]
cdq
mov ecx, 0x4973
idiv ecx
sub edx, dword [0x100421ac]
mov eax, dword [0x1004219c]
imul eax, dword [0x100421a4]
imul eax, dword [0x100421ac]
imul eax, dword [0x100421ac]
add edx, eax
mov ecx, dword [0x1004219c]
imul ecx, dword [0x100421a4]
add edx, ecx
sub edx, dword [0x100421ac]
mov eax, dword [0x100421a0]
imul eax, dword [0x100421a4]
add edx, eax
sub edx, dword [0x100421b0]
mov ecx, dword [0x100421a4]
imul ecx, dword [0x100421a8]
imul ecx, dword [0x100421b0]
add edx, ecx
mov eax, dword [0x100421b0]
imul eax, dword [0x100421ac]
imul eax, dword [0x100421a4]
add edx, dword [0x100421a0]
add eax, edx
mov ecx, dword [0x100421a8]
imul ecx, dword [0x100421a0]
imul ecx, dword [0x100421a0]
sub eax, ecx
mov edx, dword [0x100421a8]
imul edx, dword [0x100421b0]
imul edx, dword [0x100421ac]
sub eax, edx
sub eax, dword [0x100421ac]
mov ecx, dword [0x1004219c]
imul ecx, dword [0x100421a4]
imul ecx, dword [0x100421ac]
imul ecx, dword [0x100421ac]
add eax, ecx
mov edx, dword [0x1004219c]
imul edx, dword [0x100421a4]
add eax, edx
sub eax, dword [0x100421ac]
mov ecx, dword [0x100421a0]
imul ecx, dword [0x100421a4]
add eax, ecx
sub eax, dword [0x100421b0]
mov edx, dword [0x100421a4]
imul edx, dword [0x100421a8]
imul edx, dword [0x100421b0]
add eax, edx
mov ecx, dword [0x100421b0]
imul ecx, dword [0x100421ac]
imul ecx, dword [0x100421a4]
add eax, dword [0x100421a0]
add ecx, eax
mov edx, dword [0x100421a8]
imul edx, dword [0x100421a0]
imul edx, dword [0x100421a0]
sub ecx, edx
mov eax, dword [0x100421a8]
imul eax, dword [0x100421b0]
imul eax, dword [0x100421ac]
sub ecx, eax
sub ecx, dword [0x100421ac]
mov edx, dword [0x1004219c]
imul edx, dword [0x100421a4]
imul edx, dword [0x100421ac]
imul edx, dword [0x100421ac]
add ecx, edx
mov eax, dword [0x1004219c]
imul eax, dword [0x100421a4]
add ecx, eax
sub ecx, dword [0x100421ac]
mov edx, dword [0x100421a0]
imul edx, dword [0x100421a4]
add ecx, edx
sub ecx, dword [0x100421b0]
mov eax, dword [0x100421a4]
imul eax, dword [0x100421a8]
imul eax, dword [0x100421b0]
add ecx, eax
mov edx, dword [0x100421b0]
imul edx, dword [0x100421ac]
imul edx, dword [0x100421a4]
add ecx, dword [0x100421a0]
add edx, ecx
mov eax, dword [0x100421a8]
imul eax, dword [0x100421a0]
imul eax, dword [0x100421a0]
sub edx, eax
mov ecx, dword [0x100421a8]
imul ecx, dword [0x100421b0]
imul ecx, dword [0x100421ac]
sub edx, ecx
mov dword [ebp - 4], edx
mov edx, dword [0x100421a0]
imul edx, dword [0x100421a0]
imul edx, dword [0x100421a4]
imul edx, dword [0x100421a8]
imul edx, dword [0x100421b0]
imul edx, dword [0x100421a8]
mov eax, dword [ebp - 4]
sub eax, edx
sub eax, dword [0x100421b0]
mov ecx, dword [0x100421ac]
imul ecx, dword [0x100421a8]
add eax, ecx
mov edx, dword [0x100421a0]
imul edx, dword [0x100421a0]
imul edx, dword [0x100421a4]
imul edx, dword [0x100421a8]
imul edx, dword [0x100421b0]
imul edx, dword [0x100421a8]
sub eax, edx
sub eax, dword [0x100421b0]
mov ecx, dword [0x100421ac]
imul ecx, dword [0x100421a8]
add eax, ecx
mov edx, dword [0x100421a0]
imul edx, dword [0x100421a0]
imul edx, dword [0x100421a4]
imul edx, dword [0x100421a8]
imul edx, dword [0x100421b0]
imul edx, dword [0x100421a8]
sub eax, edx
sub eax, dword [0x100421b0]
mov ecx, dword [0x100421ac]
imul ecx, dword [0x100421a8]
add ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax]
add eax, dword [ebp - 0x14]
cdq
mov ecx, 0x4973
idiv ecx
mov eax, dword [0x1004219c]
imul eax, dword [0x1004219c]
imul eax, dword [0x100421a8]
add edx, eax
sub edx, dword [0x100421b0]
sub edx, dword [0x100421a0]
mov ecx, dword [0x1004219c]
imul ecx, dword [0x1004219c]
imul ecx, dword [0x100421a8]
add edx, ecx
sub edx, dword [0x100421b0]
sub edx, dword [0x100421a0]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 4]
sub edx, dword [0x1004219c]
add edx, dword [0x100421a0]
add edx, dword [0x100421ac]
mov eax, dword [0x100421a4]
imul eax, dword [0x100421a4]
sub edx, eax
sub edx, dword [0x1004219c]
add edx, dword [0x100421a0]
add edx, dword [0x100421ac]
mov ecx, dword [0x100421a4]
imul ecx, dword [0x100421a4]
sub edx, ecx
sub edx, dword [0x1004219c]
add edx, dword [0x100421a0]
add edx, dword [0x100421ac]
mov eax, dword [0x100421a4]
imul eax, dword [0x100421a4]
sub edx, eax
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + edx]
mov byte [ebp - 5], dl
mov eax, dword [ebp - 0x14]
add eax, dword [0x100421b0]
mov ecx, dword [0x100421a4]
imul ecx, dword [0x1004219c]
imul ecx, dword [0x100421b0]
add eax, ecx
sub eax, dword [0x100421b0]
mov edx, dword [ebp - 4]
sub edx, dword [0x100421b0]
sub edx, dword [0x100421b0]
add edx, dword [0x100421a8]
add edx, dword [0x100421a4]
sub edx, dword [0x100421ac]
mov ecx, dword [0x100421a8]
imul ecx, dword [0x100421a4]
imul ecx, dword [0x100421a0]
imul ecx, dword [0x100421ac]
add edx, dword [0x100421a8]
add ecx, edx
sub ecx, dword [0x100421b0]
mov edx, dword [0x100421ac]
imul edx, dword [0x100421a4]
sub ecx, edx
sub ecx, dword [0x100421b0]
add ecx, dword [0x100421a0]
add ecx, dword [0x100421a0]
add ecx, dword [0x100421a4]
mov edx, dword [0x100421a8]
imul edx, dword [0x100421b0]
imul edx, dword [0x100421a0]
imul edx, dword [0x1004219c]
sub ecx, edx
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 0x14]
sub ecx, dword [0x100421a4]
sub ecx, dword [0x100421a0]
mov edx, dword [0x100421a8]
imul edx, dword [0x100421a4]
imul edx, dword [0x100421a4]
add ecx, edx
mov eax, dword [0x100421ac]
imul eax, dword [0x1004219c]
sub ecx, eax
sub ecx, dword [0x100421a8]
sub ecx, dword [0x100421a4]
sub ecx, dword [0x100421a0]
mov edx, dword [0x100421a8]
imul edx, dword [0x100421a4]
imul edx, dword [0x100421a4]
add ecx, edx
mov eax, dword [0x100421ac]
imul eax, dword [0x1004219c]
sub ecx, eax
sub ecx, dword [0x100421a8]
sub ecx, dword [0x100421a4]
sub ecx, dword [0x100421a0]
mov edx, dword [0x100421a8]
imul edx, dword [0x100421a4]
imul edx, dword [0x100421a4]
add ecx, edx
mov eax, dword [0x100421ac]
imul eax, dword [0x1004219c]
sub ecx, eax
sub ecx, dword [0x100421a8]
mov edx, dword [ebp + 8]
mov al, byte [ebp - 5]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 4]
sub ecx, dword [0x100421a0]
mov edx, dword [0x100421b0]
imul edx, dword [0x100421ac]
imul edx, dword [0x100421b0]
imul edx, dword [0x1004219c]
imul edx, dword [0x1004219c]
add ecx, dword [0x100421ac]
add edx, ecx
sub edx, dword [0x100421a0]
sub edx, dword [0x100421ac]
sub edx, dword [0x100421b0]
sub edx, dword [0x100421a0]
sub edx, dword [0x100421a8]
mov eax, dword [0x100421a0]
imul eax, dword [0x100421a0]
add edx, dword [0x100421a4]
add eax, edx
sub eax, dword [0x100421a0]
mov ecx, dword [0x100421b0]
imul ecx, dword [0x100421ac]
imul ecx, dword [0x100421b0]
imul ecx, dword [0x1004219c]
imul ecx, dword [0x1004219c]
add eax, dword [0x100421ac]
add ecx, eax
sub ecx, dword [0x100421a0]
sub ecx, dword [0x100421ac]
sub ecx, dword [0x100421b0]
sub ecx, dword [0x100421a0]
sub ecx, dword [0x100421a8]
mov edx, dword [0x100421a0]
imul edx, dword [0x100421a0]
add ecx, dword [0x100421a4]
add edx, ecx
sub edx, dword [0x100421a0]
mov eax, dword [0x100421b0]
imul eax, dword [0x100421ac]
imul eax, dword [0x100421b0]
imul eax, dword [0x1004219c]
imul eax, dword [0x1004219c]
add edx, dword [0x100421ac]
add eax, edx
sub eax, dword [0x100421a0]
sub eax, dword [0x100421ac]
sub eax, dword [0x100421b0]
sub eax, dword [0x100421a0]
sub eax, dword [0x100421a8]
mov ecx, dword [0x100421a0]
imul ecx, dword [0x100421a0]
add eax, dword [0x100421a4]
add ecx, eax
sub ecx, dword [0x100421a0]
mov edx, dword [0x100421b0]
imul edx, dword [0x100421ac]
imul edx, dword [0x100421b0]
imul edx, dword [0x1004219c]
imul edx, dword [0x1004219c]
add ecx, dword [0x100421ac]
add edx, ecx
sub edx, dword [0x100421a0]
sub edx, dword [0x100421ac]
sub edx, dword [0x100421b0]
sub edx, dword [0x100421a0]
sub edx, dword [0x100421a8]
mov eax, dword [0x100421a0]
imul eax, dword [0x100421a0]
add edx, dword [0x100421a4]
add eax, edx
sub eax, dword [0x100421a0]
mov ecx, dword [0x100421b0]
imul ecx, dword [0x100421ac]
imul ecx, dword [0x100421b0]
imul ecx, dword [0x1004219c]
imul ecx, dword [0x1004219c]
add eax, dword [0x100421ac]
add ecx, eax
sub ecx, dword [0x100421a0]
sub ecx, dword [0x100421ac]
sub ecx, dword [0x100421b0]
sub ecx, dword [0x100421a0]
sub ecx, dword [0x100421a8]
mov edx, dword [0x100421a0]
imul edx, dword [0x100421a0]
add ecx, dword [0x100421a4]
add edx, ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax + edx]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [0x100421a4]
mov edx, dword [0x100421a4]
imul edx, dword [0x100421b0]
sub ecx, edx
sub ecx, dword [0x100421a0]
add ecx, dword [0x1004219c]
mov edx, dword [0x100421b0]
imul edx, dword [0x1004219c]
sub ecx, edx
add ecx, dword [0x1004219c]
add ecx, dword [0x100421ac]
mov edx, dword [0x100421b0]
imul edx, dword [0x100421b0]
sub ecx, edx
add ecx, dword [0x100421a4]
sub ecx, dword [0x100421a0]
add ecx, dword [0x100421b0]
add ecx, dword [0x100421a4]
sub ecx, dword [0x100421b0]
sub ecx, dword [0x100421a4]
mov edx, dword [0x100421a4]
imul edx, dword [0x100421b0]
sub ecx, edx
sub ecx, dword [0x100421a0]
add ecx, dword [0x1004219c]
mov edx, dword [0x100421b0]
imul edx, dword [0x1004219c]
sub ecx, edx
add ecx, dword [0x1004219c]
add ecx, dword [0x100421ac]
mov edx, dword [0x100421b0]
imul edx, dword [0x100421b0]
sub ecx, edx
add ecx, dword [0x100421a4]
sub ecx, dword [0x100421a0]
add ecx, dword [0x100421b0]
add ecx, dword [0x100421a4]
sub ecx, dword [0x100421b0]
sub ecx, dword [0x100421a4]
mov edx, dword [0x100421a4]
imul edx, dword [0x100421b0]
sub ecx, edx
sub ecx, dword [0x100421a0]
add ecx, dword [0x1004219c]
mov edx, dword [0x100421b0]
imul edx, dword [0x1004219c]
sub ecx, edx
add ecx, dword [0x1004219c]
add ecx, dword [0x100421ac]
mov edx, dword [0x100421b0]
imul edx, dword [0x100421b0]
sub ecx, edx
add ecx, dword [0x100421a4]
sub ecx, dword [0x100421a0]
add ecx, dword [0x100421b0]
add ecx, dword [0x100421a4]
sub ecx, dword [0x100421b0]
sub ecx, dword [0x100421a4]
mov edx, dword [0x100421a4]
imul edx, dword [0x100421b0]
sub ecx, edx
sub ecx, dword [0x100421a0]
add ecx, dword [0x1004219c]
mov edx, dword [0x100421b0]
imul edx, dword [0x1004219c]
sub ecx, edx
add ecx, dword [0x1004219c]
add ecx, dword [0x100421ac]
mov edx, dword [0x100421b0]
imul edx, dword [0x100421b0]
sub ecx, edx
add ecx, dword [0x100421a4]
sub ecx, dword [0x100421a0]
add ecx, dword [0x100421b0]
add ecx, dword [0x100421a4]
sub ecx, dword [0x100421b0]
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx]
add eax, ecx
cdq
mov ecx, 0x4973
idiv ecx
mov eax, dword [0x100421a0]
imul eax, dword [0x100421ac]
add edx, dword [0x100421a4]
add eax, edx
add eax, dword [0x100421a0]
sub eax, dword [0x100421ac]
sub eax, dword [0x100421b0]
sub eax, dword [0x100421ac]
mov ecx, dword [0x100421a8]
imul ecx, dword [0x100421ac]
sub eax, ecx
mov edx, dword [0x100421a4]
imul edx, dword [0x100421ac]
add eax, edx
sub eax, dword [0x100421a8]
sub eax, dword [0x100421a8]
mov ecx, dword [0x100421a0]
imul ecx, dword [0x100421ac]
add eax, dword [0x100421a4]
add ecx, eax
add ecx, dword [0x100421a0]
sub ecx, dword [0x100421ac]
sub ecx, dword [0x100421b0]
sub ecx, dword [0x100421ac]
mov edx, dword [0x100421a8]
imul edx, dword [0x100421ac]
sub ecx, edx
mov eax, dword [0x100421a4]
imul eax, dword [0x100421ac]
add ecx, eax
sub ecx, dword [0x100421a8]
sub ecx, dword [0x100421a8]
mov edx, dword [0x100421a0]
imul edx, dword [0x100421ac]
add ecx, dword [0x100421a4]
add edx, ecx
add edx, dword [0x100421a0]
sub edx, dword [0x100421ac]
sub edx, dword [0x100421b0]
sub edx, dword [0x100421ac]
mov eax, dword [0x100421a8]
imul eax, dword [0x100421ac]
sub edx, eax
mov ecx, dword [0x100421a4]
imul ecx, dword [0x100421ac]
add edx, ecx
sub edx, dword [0x100421a8]
sub edx, dword [0x100421a8]
mov eax, dword [0x100421a0]
imul eax, dword [0x100421ac]
add edx, dword [0x100421a4]
add eax, edx
add eax, dword [0x100421a0]
sub eax, dword [0x100421ac]
sub eax, dword [0x100421b0]
sub eax, dword [0x100421ac]
mov ecx, dword [0x100421a8]
imul ecx, dword [0x100421ac]
sub eax, ecx
mov edx, dword [0x100421a4]
imul edx, dword [0x100421ac]
add eax, edx
sub eax, dword [0x100421a8]
sub eax, dword [0x100421a8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [0x100421ac]
sub eax, dword [0x100421a8]
add eax, dword [0x100421a4]
sub eax, dword [0x100421ac]
mov ecx, dword [0x100421a0]
imul ecx, dword [0x100421b0]
imul ecx, dword [0x1004219c]
sub eax, ecx
sub eax, dword [0x100421b0]
sub eax, dword [0x100421ac]
add eax, dword [0x100421b0]
add eax, dword [0x100421a0]
add eax, dword [0x100421a4]
sub eax, dword [0x100421ac]
add eax, dword [0x100421a0]
mov edx, dword [0x100421a4]
imul edx, dword [0x100421a0]
add eax, dword [0x100421a4]
add edx, eax
add edx, dword [0x100421a4]
mov eax, dword [0x100421a0]
imul eax, dword [0x100421a4]
add edx, eax
sub edx, dword [0x100421b0]
sub edx, dword [0x100421a8]
sub edx, dword [0x100421b0]
mov ecx, dword [0x100421a4]
imul ecx, dword [0x100421ac]
sub edx, ecx
sub edx, dword [0x100421ac]
add edx, dword [0x100421a4]
sub edx, dword [0x100421ac]
sub edx, dword [0x100421a8]
add edx, dword [0x100421a4]
sub edx, dword [0x100421ac]
mov eax, dword [0x100421a0]
imul eax, dword [0x100421b0]
imul eax, dword [0x1004219c]
sub edx, eax
sub edx, dword [0x100421b0]
sub edx, dword [0x100421ac]
add edx, dword [0x100421b0]
add edx, dword [0x100421a0]
add edx, dword [0x100421a4]
sub edx, dword [0x100421ac]
add edx, dword [0x100421a0]
mov ecx, dword [0x100421a4]
imul ecx, dword [0x100421a0]
add edx, dword [0x100421a4]
add ecx, edx
add ecx, dword [0x100421a4]
mov edx, dword [0x100421a0]
imul edx, dword [0x100421a4]
add ecx, edx
sub ecx, dword [0x100421b0]
sub ecx, dword [0x100421a8]
sub ecx, dword [0x100421b0]
mov eax, dword [0x100421a4]
imul eax, dword [0x100421ac]
sub ecx, eax
sub ecx, dword [0x100421ac]
add ecx, dword [0x100421a4]
mov edx, dword [0x100421b0]
imul edx, dword [0x100421ac]
mov eax, dword [ebp - 0x10]
sub eax, edx
mov edx, dword [0x100421b0]
imul edx, dword [0x100421ac]
sub eax, edx
mov edx, dword [0x100421b0]
imul edx, dword [0x100421ac]
sub eax, edx
mov 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 [0x100421a4]
imul edx, dword [0x100421ac]
mov eax, dword [0x100421a0]
imul eax, dword [0x100421a4]
mov esi, dword [0x100421a4]
imul esi, dword [0x100421a0]
mov edi, dword [0x100421a0]
imul edi, dword [0x100421b0]
imul edi, dword [0x1004219c]
mov ebx, dword [0x100421a4]
imul ebx, dword [0x100421ac]
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x100421a0]
imul ecx, dword [0x100421a4]
mov dword [ebp - 0x1c], edx
mov edx, dword [0x100421a4]
imul edx, dword [0x100421a0]
mov dword [ebp - 0x20], eax
mov eax, dword [0x100421a0]
imul eax, dword [0x100421b0]
imul eax, dword [0x1004219c]
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0xc]
sub esi, dword [0x100421ac]
sub esi, dword [0x100421a8]
add esi, dword [0x100421a4]
sub esi, dword [0x100421ac]
sub esi, eax
sub esi, dword [0x100421b0]
sub esi, dword [0x100421ac]
add esi, dword [0x100421b0]
add esi, dword [0x100421a0]
add esi, dword [0x100421a4]
sub esi, dword [0x100421ac]
add esi, dword [0x100421a0]
add esi, dword [0x100421a4]
add edx, esi
add edx, dword [0x100421a4]
add edx, ecx
sub edx, dword [0x100421b0]
sub edx, dword [0x100421a8]
sub edx, dword [0x100421b0]
sub edx, ebx
sub edx, dword [0x100421ac]
add edx, dword [0x100421a4]
sub edx, dword [0x100421ac]
sub edx, dword [0x100421a8]
add edx, dword [0x100421a4]
sub edx, dword [0x100421ac]
sub edx, edi
sub edx, dword [0x100421b0]
sub edx, dword [0x100421ac]
add edx, dword [0x100421b0]
add edx, dword [0x100421a0]
add edx, dword [0x100421a4]
sub edx, dword [0x100421ac]
add edx, dword [0x100421a0]
add edx, dword [0x100421a4]
mov ecx, dword [ebp - 0x24]
add ecx, edx
add ecx, dword [0x100421a4]
mov edx, dword [ebp - 0x20]
add ecx, edx
sub ecx, dword [0x100421b0]
sub ecx, dword [0x100421a8]
sub ecx, dword [0x100421b0]
mov eax, dword [ebp - 0x1c]
sub ecx, eax
sub ecx, dword [0x100421ac]
add ecx, dword [0x100421a4]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov byte [edx + ecx], al
jmp 0x1000796e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret