Function at 0x100367c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
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 0x100367f7
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x10037479
mov edx, dword [ebp - 4]
add edx, 1
sub edx, dword [0x100589b0]
mov eax, dword [0x100589a4]
imul eax, dword [0x100589a0]
add edx, dword [0x100589a4]
add eax, edx
sub eax, dword [0x100589b0]
mov ecx, dword [0x100589a4]
imul ecx, dword [0x100589a0]
add eax, dword [0x100589a4]
add eax, ecx
cdq
mov ecx, 0x3e4b
idiv ecx
sub edx, dword [0x100589a0]
add edx, dword [0x100589ac]
add edx, dword [0x100589a4]
sub edx, dword [0x100589a0]
add edx, dword [0x100589ac]
add edx, dword [0x100589a4]
sub edx, dword [0x100589a0]
add edx, dword [0x100589ac]
add edx, dword [0x100589a4]
sub edx, dword [0x100589a0]
add edx, dword [0x100589ac]
add edx, dword [0x100589a4]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
sub edx, dword [0x100589a8]
sub edx, dword [0x100589ac]
sub edx, dword [0x100589a8]
sub edx, dword [0x100589ac]
sub edx, dword [0x100589a8]
sub edx, dword [0x100589ac]
sub edx, dword [0x100589a8]
sub edx, dword [0x100589ac]
sub edx, dword [0x100589a8]
sub edx, dword [0x100589ac]
sub edx, dword [0x100589a8]
sub edx, dword [0x100589ac]
mov eax, dword [ebp + 8]
movzx eax, byte [eax + edx]
add eax, dword [ebp - 0x14]
cdq
mov ecx, 0x3e4b
idiv ecx
sub edx, dword [0x100589a0]
mov eax, dword [0x100589ac]
imul eax, dword [0x100589a0]
sub edx, eax
mov ecx, dword [0x100589a4]
imul ecx, dword [0x100589ac]
sub edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 4]
add edx, dword [0x100589ac]
sub edx, dword [0x100589a4]
sub edx, dword [0x100589ac]
add edx, dword [0x100589a0]
mov eax, dword [0x100589b0]
imul eax, dword [0x100589a0]
imul eax, dword [0x100589a0]
add edx, eax
sub edx, dword [0x100589a8]
add edx, dword [0x100589a4]
add edx, dword [0x100589a8]
sub edx, dword [0x100589ac]
sub edx, dword [0x100589a0]
mov ecx, dword [0x100589b0]
imul ecx, dword [0x1005899c]
sub edx, ecx
mov eax, dword [0x100589a0]
imul eax, dword [0x100589ac]
sub edx, eax
sub edx, dword [0x100589a8]
add edx, dword [0x100589a0]
mov ecx, dword [0x100589b0]
imul ecx, dword [0x1005899c]
imul ecx, dword [0x1005899c]
add edx, dword [0x100589ac]
add ecx, edx
sub ecx, dword [0x100589a4]
sub ecx, dword [0x100589ac]
add ecx, dword [0x100589a0]
mov edx, dword [0x100589b0]
imul edx, dword [0x100589a0]
imul edx, dword [0x100589a0]
add ecx, edx
sub ecx, dword [0x100589a8]
add ecx, dword [0x100589a4]
add ecx, dword [0x100589a8]
sub ecx, dword [0x100589ac]
sub ecx, dword [0x100589a0]
mov eax, dword [0x100589b0]
imul eax, dword [0x1005899c]
sub ecx, eax
mov edx, dword [0x100589a0]
imul edx, dword [0x100589ac]
sub ecx, edx
sub ecx, dword [0x100589a8]
add ecx, dword [0x100589a0]
mov eax, dword [0x100589b0]
imul eax, dword [0x1005899c]
imul eax, dword [0x1005899c]
add ecx, dword [0x100589ac]
add eax, ecx
sub eax, dword [0x100589a4]
sub eax, dword [0x100589ac]
add eax, dword [0x100589a0]
mov ecx, dword [0x100589b0]
imul ecx, dword [0x100589a0]
imul ecx, dword [0x100589a0]
add eax, ecx
sub eax, dword [0x100589a8]
add eax, dword [0x100589a4]
add eax, dword [0x100589a8]
sub eax, dword [0x100589ac]
sub eax, dword [0x100589a0]
mov edx, dword [0x100589b0]
imul edx, dword [0x1005899c]
sub eax, edx
mov ecx, dword [0x100589a0]
imul ecx, dword [0x100589ac]
sub eax, ecx
sub eax, dword [0x100589a8]
add eax, dword [0x100589a0]
mov edx, dword [0x100589b0]
imul edx, dword [0x1005899c]
imul edx, dword [0x1005899c]
add edx, dword [ebp + 8]
mov al, byte [edx + eax]
mov byte [ebp - 5], al
mov ecx, dword [ebp - 0x14]
add ecx, dword [0x100589ac]
sub ecx, dword [0x100589b0]
add ecx, dword [0x100589a4]
mov edx, dword [ebp - 4]
sub edx, dword [0x100589ac]
sub edx, dword [0x100589b0]
mov eax, dword [0x100589a4]
imul eax, dword [0x100589a0]
sub edx, eax
sub edx, dword [0x100589ac]
sub edx, dword [0x100589b0]
mov eax, dword [0x100589ac]
imul eax, dword [0x100589ac]
add edx, eax
mov eax, dword [0x100589a4]
imul eax, dword [0x100589a0]
imul eax, dword [0x100589b0]
add edx, dword [0x100589ac]
add eax, edx
add eax, dword [0x100589a4]
sub eax, dword [0x100589ac]
sub eax, dword [0x100589b0]
mov edx, dword [0x100589a4]
imul edx, dword [0x100589a0]
sub eax, edx
sub eax, dword [0x100589ac]
sub eax, dword [0x100589b0]
mov edx, dword [0x100589ac]
imul edx, dword [0x100589ac]
add eax, edx
mov edx, dword [0x100589a4]
imul edx, dword [0x100589a0]
imul edx, dword [0x100589b0]
add eax, dword [0x100589ac]
add edx, eax
add edx, dword [0x100589a4]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov cl, byte [esi + ecx]
mov byte [eax + edx], cl
mov edx, dword [ebp - 0x14]
sub edx, dword [0x100589a0]
sub edx, dword [0x100589a0]
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 5]
mov byte [eax + edx], cl
mov edx, dword [ebp - 4]
sub edx, dword [0x100589b0]
mov eax, dword [0x100589a8]
imul eax, dword [0x100589ac]
imul eax, dword [0x100589a4]
imul eax, dword [0x1005899c]
sub edx, eax
add edx, dword [0x100589ac]
sub edx, dword [0x100589a0]
mov ecx, dword [0x100589ac]
imul ecx, dword [0x100589ac]
sub edx, ecx
mov eax, dword [0x100589a0]
imul eax, dword [0x100589ac]
add edx, eax
sub edx, dword [0x100589a0]
sub edx, dword [0x100589a8]
add edx, dword [0x100589a0]
add edx, dword [0x100589a0]
add edx, dword [0x100589a0]
mov ecx, dword [0x100589a8]
imul ecx, dword [0x100589a4]
add edx, ecx
sub edx, dword [0x100589a0]
mov eax, dword [0x100589a4]
imul eax, dword [0x100589a4]
imul eax, dword [0x100589a8]
sub edx, eax
add edx, dword [0x100589b0]
add edx, dword [0x100589ac]
sub edx, dword [0x100589b0]
mov ecx, dword [0x100589a8]
imul ecx, dword [0x100589ac]
imul ecx, dword [0x100589a4]
imul ecx, dword [0x1005899c]
sub edx, ecx
add edx, dword [0x100589ac]
sub edx, dword [0x100589a0]
mov eax, dword [0x100589ac]
imul eax, dword [0x100589ac]
sub edx, eax
mov ecx, dword [0x100589a0]
imul ecx, dword [0x100589ac]
add edx, ecx
sub edx, dword [0x100589a0]
sub edx, dword [0x100589a8]
add edx, dword [0x100589a0]
add edx, dword [0x100589a0]
add edx, dword [0x100589a0]
mov eax, dword [0x100589a8]
imul eax, dword [0x100589a4]
add edx, eax
sub edx, dword [0x100589a0]
mov ecx, dword [0x100589a4]
imul ecx, dword [0x100589a4]
imul ecx, dword [0x100589a8]
sub edx, ecx
add edx, dword [0x100589b0]
add edx, dword [0x100589ac]
mov eax, dword [ebp + 8]
movzx eax, byte [eax + edx]
mov ecx, dword [0x100589ac]
imul ecx, dword [0x100589ac]
add ecx, dword [ebp - 0x14]
sub ecx, dword [0x100589a0]
sub ecx, dword [0x100589a0]
mov edx, dword [0x100589a0]
imul edx, dword [0x100589ac]
add ecx, edx
mov edx, dword [0x100589ac]
imul edx, dword [0x100589ac]
add ecx, edx
sub ecx, dword [0x100589a0]
sub ecx, dword [0x100589a0]
mov edx, dword [0x100589a0]
imul edx, dword [0x100589ac]
add ecx, edx
mov edx, dword [0x100589ac]
imul edx, dword [0x100589ac]
add ecx, edx
sub ecx, dword [0x100589a0]
sub ecx, dword [0x100589a0]
mov edx, dword [0x100589a0]
imul edx, dword [0x100589ac]
add edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx]
add eax, ecx
cdq
mov ecx, 0x3e4b
idiv ecx
sub edx, dword [0x100589ac]
add edx, dword [0x100589b0]
mov eax, dword [0x100589b0]
imul eax, dword [0x100589a4]
imul eax, dword [0x100589a0]
sub edx, eax
mov ecx, dword [0x100589a0]
imul ecx, dword [0x100589a4]
add edx, ecx
sub edx, dword [0x100589ac]
add edx, dword [0x100589b0]
mov eax, dword [0x100589a4]
imul eax, dword [0x100589a0]
imul eax, dword [0x100589a4]
add edx, eax
mov ecx, dword [0x100589a8]
imul ecx, dword [0x100589a4]
imul ecx, dword [0x100589a8]
sub edx, ecx
add edx, dword [0x100589ac]
mov eax, dword [0x100589a4]
imul eax, dword [0x100589ac]
imul eax, dword [0x100589a4]
add edx, dword [0x1005899c]
add eax, edx
sub eax, dword [0x100589ac]
add eax, dword [0x1005899c]
mov ecx, dword [0x100589b0]
imul ecx, dword [0x1005899c]
imul ecx, dword [0x1005899c]
add eax, ecx
sub eax, dword [0x100589b0]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
sub edx, dword [0x100589ac]
add edx, dword [0x100589a0]
sub edx, dword [0x100589a8]
sub edx, dword [0x100589a4]
sub edx, dword [0x100589a8]
mov eax, dword [0x100589a8]
imul eax, dword [0x100589b0]
add edx, eax
mov ecx, dword [0x100589a8]
imul ecx, dword [0x1005899c]
add edx, ecx
mov eax, dword [0x100589a0]
imul eax, dword [0x100589ac]
add edx, dword [0x100589ac]
add eax, edx
add eax, dword [0x100589b0]
mov ecx, dword [0x1005899c]
imul ecx, dword [0x1005899c]
add eax, ecx
sub eax, dword [0x100589ac]
add eax, dword [0x100589a0]
sub eax, dword [0x100589a8]
sub eax, dword [0x100589a4]
sub eax, dword [0x100589a8]
mov edx, dword [0x100589a8]
imul edx, dword [0x100589b0]
add eax, edx
mov ecx, dword [0x100589a8]
imul ecx, dword [0x1005899c]
add eax, ecx
mov edx, dword [0x100589a0]
imul edx, dword [0x100589ac]
add eax, dword [0x100589ac]
add edx, eax
add edx, dword [0x100589b0]
mov eax, dword [0x1005899c]
imul eax, dword [0x1005899c]
add edx, eax
sub edx, dword [0x100589ac]
add edx, dword [0x100589a0]
sub edx, dword [0x100589a8]
sub edx, dword [0x100589a4]
sub edx, dword [0x100589a8]
mov ecx, dword [0x100589a8]
imul ecx, dword [0x100589b0]
add edx, ecx
mov eax, dword [0x100589a8]
imul eax, dword [0x1005899c]
add edx, eax
mov ecx, dword [0x100589a0]
imul ecx, dword [0x100589ac]
add edx, dword [0x100589ac]
add ecx, edx
add ecx, dword [0x100589b0]
mov edx, dword [0x1005899c]
imul edx, dword [0x1005899c]
add ecx, edx
sub ecx, dword [0x100589ac]
add ecx, dword [0x100589a0]
sub ecx, dword [0x100589a8]
sub ecx, dword [0x100589a4]
sub ecx, dword [0x100589a8]
mov eax, dword [0x100589a8]
imul eax, dword [0x100589b0]
add ecx, eax
mov edx, dword [0x100589a8]
imul edx, dword [0x1005899c]
add ecx, edx
mov eax, dword [0x100589a0]
imul eax, dword [0x100589ac]
add ecx, dword [0x100589ac]
add eax, ecx
add eax, dword [0x100589b0]
mov ecx, dword [0x1005899c]
imul ecx, dword [0x1005899c]
add eax, ecx
sub eax, dword [0x100589ac]
add eax, dword [0x100589a0]
sub eax, dword [0x100589a8]
sub eax, dword [0x100589a4]
sub eax, dword [0x100589a8]
mov edx, dword [0x100589a8]
imul edx, dword [0x100589b0]
add eax, edx
mov ecx, dword [0x100589a8]
imul ecx, dword [0x1005899c]
add eax, ecx
mov edx, dword [0x100589a0]
imul edx, dword [0x100589ac]
add eax, dword [0x100589ac]
add edx, eax
add edx, dword [0x100589b0]
mov eax, dword [0x1005899c]
imul eax, dword [0x1005899c]
add edx, eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x100589a8]
mov eax, dword [0x100589b0]
imul eax, dword [0x100589ac]
imul eax, dword [0x1005899c]
sub ecx, eax
mov eax, dword [0x100589ac]
imul eax, dword [0x100589a8]
imul eax, dword [0x1005899c]
sub ecx, eax
mov eax, dword [0x1005899c]
imul eax, dword [0x1005899c]
add ecx, eax
mov eax, dword [0x100589ac]
imul eax, dword [0x100589a0]
add ecx, eax
mov eax, dword [0x100589a0]
imul eax, dword [0x100589b0]
add ecx, dword [0x100589b0]
add eax, ecx
sub eax, dword [0x100589a8]
add eax, dword [0x100589a0]
sub eax, dword [0x100589b0]
mov ecx, dword [0x100589b0]
imul ecx, dword [0x100589a4]
add eax, ecx
sub eax, dword [0x100589a8]
add eax, dword [0x100589a0]
mov ecx, dword [0x100589a0]
imul ecx, dword [0x1005899c]
add eax, ecx
sub eax, dword [0x100589a8]
mov ecx, dword [0x100589b0]
imul ecx, dword [0x100589ac]
imul ecx, dword [0x1005899c]
sub eax, ecx
mov ecx, dword [0x100589ac]
imul ecx, dword [0x100589a8]
imul ecx, dword [0x1005899c]
sub eax, ecx
mov ecx, dword [0x1005899c]
imul ecx, dword [0x1005899c]
add eax, ecx
mov ecx, dword [0x100589ac]
imul ecx, dword [0x100589a0]
add eax, ecx
mov ecx, dword [0x100589a0]
imul ecx, dword [0x100589b0]
add eax, dword [0x100589b0]
add ecx, eax
sub ecx, dword [0x100589a8]
add ecx, dword [0x100589a0]
sub ecx, dword [0x100589b0]
mov eax, dword [0x100589b0]
imul eax, dword [0x100589a4]
add ecx, eax
sub ecx, dword [0x100589a8]
add ecx, dword [0x100589a0]
mov eax, dword [0x100589a0]
imul eax, dword [0x1005899c]
add ecx, eax
sub ecx, dword [0x100589a8]
mov eax, dword [0x100589b0]
imul eax, dword [0x100589ac]
imul eax, dword [0x1005899c]
sub ecx, eax
mov eax, dword [0x100589ac]
imul eax, dword [0x100589a8]
imul eax, dword [0x1005899c]
sub ecx, eax
mov eax, dword [0x1005899c]
imul eax, dword [0x1005899c]
add ecx, eax
mov eax, dword [0x100589ac]
imul eax, dword [0x100589a0]
add ecx, eax
mov eax, dword [0x100589a0]
imul eax, dword [0x100589b0]
add ecx, dword [0x100589b0]
add eax, ecx
sub eax, dword [0x100589a8]
add eax, dword [0x100589a0]
sub eax, dword [0x100589b0]
mov ecx, dword [0x100589b0]
imul ecx, dword [0x100589a4]
add eax, ecx
sub eax, dword [0x100589a8]
add eax, dword [0x100589a0]
mov ecx, dword [0x100589a0]
imul ecx, dword [0x1005899c]
add ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + edx]
xor edx, eax
mov eax, dword [0x1005899c]
imul eax, dword [0x1005899c]
mov ecx, dword [0x100589a0]
imul ecx, dword [0x100589ac]
mov esi, dword [0x100589a8]
imul esi, dword [0x1005899c]
mov edi, dword [0x100589a8]
imul edi, dword [0x100589b0]
mov ebx, dword [0x1005899c]
imul ebx, dword [0x1005899c]
mov dword [ebp - 0x18], edx
mov edx, dword [0x100589a0]
imul edx, dword [0x100589ac]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x100589a8]
imul eax, dword [0x1005899c]
mov dword [ebp - 0x20], ecx
mov ecx, dword [0x100589a8]
imul ecx, dword [0x100589b0]
mov dword [ebp - 0x24], esi
mov esi, dword [0x1005899c]
imul esi, dword [0x1005899c]
mov dword [ebp - 0x28], edi
mov edi, dword [0x100589a0]
imul edi, dword [0x100589ac]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [0x100589a8]
imul ebx, dword [0x1005899c]
mov dword [ebp - 0x30], edx
mov edx, dword [0x100589a8]
imul edx, dword [0x100589b0]
mov dword [ebp - 0x34], eax
mov eax, dword [0x1005899c]
imul eax, dword [0x1005899c]
mov dword [ebp - 0x38], ecx
mov ecx, dword [0x100589a0]
imul ecx, dword [0x100589ac]
mov dword [ebp - 0x3c], esi
mov esi, dword [0x100589a8]
imul esi, dword [0x1005899c]
mov dword [ebp - 0x40], edi
mov edi, dword [0x100589a8]
imul edi, dword [0x100589b0]
mov dword [ebp - 0x44], ebx
mov ebx, dword [0x1005899c]
imul ebx, dword [0x1005899c]
mov dword [ebp - 0x48], edx
mov edx, dword [0x100589a0]
imul edx, dword [0x100589ac]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x100589a8]
imul eax, dword [0x1005899c]
mov dword [ebp - 0x50], ecx
mov ecx, dword [0x100589a8]
imul ecx, dword [0x100589b0]
mov dword [ebp - 0x54], esi
mov esi, dword [ebp - 0xc]
sub esi, dword [0x100589ac]
add esi, dword [0x100589a0]
sub esi, dword [0x100589a8]
sub esi, dword [0x100589a4]
sub esi, dword [0x100589a8]
add esi, ecx
add eax, dword [0x100589ac]
add eax, esi
add edx, eax
add edx, dword [0x100589b0]
add edx, ebx
sub edx, dword [0x100589ac]
add edx, dword [0x100589a0]
sub edx, dword [0x100589a8]
sub edx, dword [0x100589a4]
sub edx, dword [0x100589a8]
add edx, edi
mov eax, dword [ebp - 0x54]
add eax, dword [0x100589ac]
add eax, edx
mov ecx, dword [ebp - 0x50]
add ecx, eax
add ecx, dword [0x100589b0]
mov edx, dword [ebp - 0x4c]
add ecx, edx
sub ecx, dword [0x100589ac]
add ecx, dword [0x100589a0]
sub ecx, dword [0x100589a8]
sub ecx, dword [0x100589a4]
sub ecx, dword [0x100589a8]
mov eax, dword [ebp - 0x48]
add ecx, eax
mov edx, dword [ebp - 0x44]
add edx, dword [0x100589ac]
add edx, ecx
mov eax, dword [ebp - 0x40]
add eax, edx
add eax, dword [0x100589b0]
mov ecx, dword [ebp - 0x3c]
add eax, ecx
sub eax, dword [0x100589ac]
add eax, dword [0x100589a0]
sub eax, dword [0x100589a8]
sub eax, dword [0x100589a4]
sub eax, dword [0x100589a8]
mov edx, dword [ebp - 0x38]
add eax, edx
mov ecx, dword [ebp - 0x34]
add ecx, dword [0x100589ac]
add ecx, eax
mov edx, dword [ebp - 0x30]
add edx, ecx
add edx, dword [0x100589b0]
mov eax, dword [ebp - 0x2c]
add edx, eax
sub edx, dword [0x100589ac]
add edx, dword [0x100589a0]
sub edx, dword [0x100589a8]
sub edx, dword [0x100589a4]
sub edx, dword [0x100589a8]
mov ecx, dword [ebp - 0x28]
add edx, ecx
mov eax, dword [ebp - 0x24]
add eax, dword [0x100589ac]
add eax, edx
mov ecx, dword [ebp - 0x20]
add ecx, eax
add ecx, dword [0x100589b0]
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov byte [edx + ecx], al
jmp 0x100367ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret