Function at 0x495780
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0xdc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, edx
lea edi, [ebp - 0xcc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0xcc]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
jne 0x496221
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xc4]
cmp eax, dword [ebp - 0x84]
jle 0x4957f8
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc0]
cmp eax, dword [ebp - 0x88]
jle 0x495812
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xcc], 0
jge 0x495823
xor eax, eax
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xc8], 0
jge 0x495834
xor eax, eax
mov dword [ebp - 0xc8], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x25], al
mov al, byte [ebp + 8]
mov byte [ebp - 0x29], al
lea eax, [ebp - 0xdc]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
je 0x49585e
lea edx, [ebp - 0xdc]
mov eax, dword [ebp + 0x14]
call fcn.0053d884
lea eax, [ebp - 0xdc]
mov dl, 1
call fcn.0053d99c
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0xdc]
mov dl, 1
call fcn.0053d9b0
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp - 0xd8]
add edx, dword [ebp - 0x80]
cmp eax, edx
jg 0x4958a5
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
sub eax, dword [ebp - 0xd8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 0xdc]
add edx, dword [ebp - 0x7c]
cmp eax, edx
jg 0x4958cc
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
sub eax, dword [ebp - 0xdc]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x80], 0
jl 0x496221
cmp dword [ebp - 0x7c], 0
jl 0x496221
mov eax, dword [ebp - 8]
call fcn.00406240
dec eax
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x496221
mov eax, dword [ebp - 8]
mov eax, dword [eax + 2]
and eax, 3
sub eax, 1
jb 0x495915
je 0x495c7f
jmp 0x496221
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x8c]
test eax, eax
jle 0x496221
mov dword [ebp - 0xa4], eax
mov edi, 1
imul eax, edi, 0xb
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax - 5]
mov dword [ebp - 0x20], eax
imul eax, edi, 0xb
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax + 6]
mov dword [ebp - 0x24], eax
imul eax, edi, 0xb
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax + 0xa]
imul edx, edi, 0xb
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx - 1]
sub eax, edx
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xcc]
xor edx, edx
call fcn.0053d9b0
imul dword [ebp - 0x90]
mov ecx, 0x64
cdq
idiv ecx
add eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
cmp edi, dword [ebp - 0x8c]
jne 0x4959c7
mov edx, dword [ebp - 0x88]
dec edx
mov eax, dword [ebp - 0xc0]
call fcn.0042d688
mov dword [ebp - 0xa0], eax
jmp 0x4959ec
mov edx, dword [ebp - 0x88]
dec edx
mov eax, dword [ebp - 0xc0]
call fcn.0042d688
mov edx, eax
mov eax, dword [ebp - 0xa0]
call fcn.0042d688
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0x9c]
test eax, eax
jle 0x495c6d
xor eax, eax
mov al, byte [ebp - 0x20]
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fstp dword [ebp - 0x14]
wait
xor eax, eax
mov al, byte [ebp - 0x1f]
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fstp dword [ebp - 0x18]
wait
xor eax, eax
mov al, byte [ebp - 0x1e]
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fstp dword [ebp - 0x1c]
wait
cmp edi, dword [ebp - 0x8c]
je 0x495a55
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0x88]
jl 0x495a6d
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0xc0]
call fcn.0042d688
dec eax
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0x9c]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jle 0x495c6d
xor eax, eax
mov al, byte [ebp - 0x24]
xor edx, edx
mov dl, byte [ebp - 0x20]
sub eax, edx
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fild dword [ebp - 0x78]
call fcn.004035b4
fstp qword [ebp - 0x38]
wait
xor eax, eax
mov al, byte [ebp - 0x23]
xor edx, edx
mov dl, byte [ebp - 0x1f]
sub eax, edx
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fild dword [ebp - 0x78]
call fcn.004035b4
fstp qword [ebp - 0x40]
wait
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
mov dl, byte [ebp - 0x1e]
sub eax, edx
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fild dword [ebp - 0x78]
call fcn.004035b4
fstp qword [ebp - 0x48]
wait
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.004e6744
test al, al
je 0x495c6d
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 0x14]
call fcn.004e6744
test al, al
je 0x495c6d
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa0]
sub edx, eax
jl 0x495c6d
inc edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x60], eax
fld dword [ebp - 0x14]
call fcn.00403024
mov byte [ebp - 0x26], al
fld dword [ebp - 0x18]
call fcn.00403024
mov byte [ebp - 0x27], al
fld dword [ebp - 0x1c]
call fcn.00403024
mov byte [ebp - 0x28], al
mov eax, dword [ebp - 0x64]
imul dword [ebp - 0x60]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x60]
cdq
idiv dword [ebp - 0x80]
add edx, dword [ebp - 0xd8]
imul edx, dword [ebp - 0x68]
add edx, dword [ebp - 0x5c]
mov dword [ebp - 0x10], edx
mov esi, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xc4]
dec eax
sub eax, esi
jl 0x495c40
inc eax
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + esi*4]
mov eax, esi
cdq
idiv dword [ebp - 0x7c]
add edx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0x10]
lea eax, [eax + edx*4]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
movzx eax, byte [eax + 2]
xor edx, edx
mov dl, byte [ebp - 0x26]
sub eax, edx
xor edx, edx
mov dl, bl
imul edx
xor edx, edx
mov dl, byte [ebp - 0x26]
shl edx, 8
add eax, edx
shr eax, 8
mov byte [ecx + 2], al
mov eax, dword [ebp - 0xb0]
movzx eax, byte [eax + 1]
xor edx, edx
mov dl, byte [ebp - 0x27]
sub eax, edx
xor edx, edx
mov dl, bl
imul edx
xor edx, edx
mov dl, byte [ebp - 0x27]
shl edx, 8
add eax, edx
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [ebp - 0xb0]
movzx eax, byte [eax]
xor edx, edx
mov dl, byte [ebp - 0x28]
sub eax, edx
xor edx, edx
mov dl, bl
imul edx
xor edx, edx
mov dl, byte [ebp - 0x28]
shl edx, 8
add eax, edx
shr eax, 8
mov byte [ecx], al
mov al, byte [ebp + 8]
mov byte [ecx + 3], al
inc esi
dec dword [ebp - 0xac]
jne 0x495b9c
fld dword [ebp - 0x14]
fadd qword [ebp - 0x38]
fstp dword [ebp - 0x14]
wait
fld dword [ebp - 0x18]
fadd qword [ebp - 0x40]
fstp dword [ebp - 0x18]
wait
fld dword [ebp - 0x1c]
fadd qword [ebp - 0x48]
fstp dword [ebp - 0x1c]
wait
inc dword [ebp - 0x60]
dec dword [ebp - 0xa8]
jne 0x495b3c
inc edi
dec dword [ebp - 0xa4]
jne 0x49593a
jmp 0x496221
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.004e6744
test al, al
je 0x496221
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 0x14]
call fcn.004e6744
test al, al
je 0x496221
lea eax, [ebp - 0xcc]
xor edx, edx
call fcn.0053d99c
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fld dword [0x49622c]
call fcn.004035b4
fstp qword [ebp - 0x50]
wait
mov eax, dword [ebp - 0x64]
imul dword [ebp - 0xc8]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x8c]
test eax, eax
jle 0x495f05
mov dword [ebp - 0xa4], eax
mov edi, 1
imul eax, edi, 0xb
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax - 5]
mov dword [ebp - 0x20], eax
imul eax, edi, 0xb
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax + 6]
mov dword [ebp - 0x24], eax
imul eax, edi, 0xb
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax + 0xa]
imul edx, edi, 0xb
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx - 1]
sub eax, edx
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x94], eax
fild dword [ebp - 0x90]
fmul qword [ebp - 0x50]
fild dword [ebp - 0x94]
faddp st(1)
call fcn.00403024
mov dword [ebp - 0x98], eax
cmp edi, dword [ebp - 0x8c]
jne 0x495d89
mov edx, dword [ebp - 0x84]
dec edx
mov eax, dword [ebp - 0xc4]
call fcn.0042d688
mov dword [ebp - 0x98], eax
jmp 0x495dae
mov edx, dword [ebp - 0x84]
dec edx
mov eax, dword [ebp - 0xc4]
call fcn.0042d688
mov edx, eax
mov eax, dword [ebp - 0x98]
call fcn.0042d688
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x94]
test eax, eax
jle 0x495ef8
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x94]
mov dword [ebp - 0x74], eax
xor eax, eax
mov al, byte [ebp - 0x20]
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fstp dword [ebp - 0x14]
wait
xor eax, eax
mov al, byte [ebp - 0x1f]
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fstp dword [ebp - 0x18]
wait
xor eax, eax
mov al, byte [ebp - 0x1e]
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fstp dword [ebp - 0x1c]
wait
xor eax, eax
mov al, byte [ebp - 0x24]
xor edx, edx
mov dl, byte [ebp - 0x20]
sub eax, edx
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fild dword [ebp - 0x74]
call fcn.004035b4
fstp qword [ebp - 0x38]
wait
xor eax, eax
mov al, byte [ebp - 0x23]
xor edx, edx
mov dl, byte [ebp - 0x1f]
sub eax, edx
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fild dword [ebp - 0x74]
call fcn.004035b4
fstp qword [ebp - 0x40]
wait
xor eax, eax
mov al, byte [ebp - 0x22]
xor edx, edx
mov dl, byte [ebp - 0x1e]
sub eax, edx
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fild dword [ebp - 0x74]
call fcn.004035b4
fstp qword [ebp - 0x48]
wait
mov esi, dword [ebp - 0x94]
mov eax, dword [ebp - 0x98]
sub eax, esi
jl 0x495ef8
inc eax
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x58]
lea eax, [eax + esi*4]
mov dword [ebp - 0xb4], eax
fld dword [ebp - 0x14]
call fcn.00403024
mov edx, dword [ebp - 0xb4]
mov byte [edx + 2], al
fld dword [ebp - 0x18]
call fcn.00403024
mov edx, dword [ebp - 0xb4]
mov byte [edx + 1], al
fld dword [ebp - 0x1c]
call fcn.00403024
mov edx, dword [ebp - 0xb4]
mov byte [edx], al
fld dword [ebp - 0x14]
fadd qword [ebp - 0x38]
fstp dword [ebp - 0x14]
wait
fld dword [ebp - 0x18]
fadd qword [ebp - 0x40]
fstp dword [ebp - 0x18]
wait
fld dword [ebp - 0x1c]
fadd qword [ebp - 0x48]
fstp dword [ebp - 0x1c]
wait
inc esi
dec dword [ebp - 0xa8]
jne 0x495e93
inc edi
dec dword [ebp - 0xa4]
jne 0x495d07
lea eax, [ebp - 0xcc]
mov dl, 1
call fcn.0053d9b0
mov edx, eax
mov eax, dword [ebp - 0x80]
call fcn.0042d688
dec eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xc8]
inc eax
mov edx, dword [ebp - 0x70]
add edx, dword [ebp - 0xc8]
sub edx, eax
jl 0x49604d
inc edx
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x64]
imul dword [ebp - 0x9c]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x9c]
cdq
idiv dword [ebp - 0x80]
add edx, dword [ebp - 0xd8]
imul edx, dword [ebp - 0x68]
add edx, dword [ebp - 0x5c]
mov dword [ebp - 0x10], edx
mov esi, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xc4]
dec eax
sub eax, esi
jl 0x49603b
inc eax
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + esi*4]
mov eax, esi
cdq
idiv dword [ebp - 0x7c]
add edx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0x10]
lea eax, [eax + edx*4]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x58]
lea eax, [eax + esi*4]
mov edx, dword [ebp - 0xb8]
movzx edx, byte [edx + 2]
movzx edi, byte [eax + 2]
sub edx, edi
mov edi, ebx
and edi, 0xff
imul edx, edi
movzx edi, byte [eax + 2]
shl edi, 8
add edx, edi
shr edx, 8
mov byte [ecx + 2], dl
mov edx, dword [ebp - 0xb8]
movzx edx, byte [edx + 1]
movzx edi, byte [eax + 1]
sub edx, edi
mov edi, ebx
and edi, 0xff
imul edx, edi
movzx edi, byte [eax + 1]
shl edi, 8
add edx, edi
shr edx, 8
mov byte [ecx + 1], dl
mov edx, dword [ebp - 0xb8]
movzx edx, byte [edx]
movzx edi, byte [eax]
sub edx, edi
mov edi, ebx
and edi, 0xff
imul edx, edi
movzx eax, byte [eax]
shl eax, 8
add edx, eax
shr edx, 8
mov byte [ecx], dl
mov al, byte [ebp + 8]
mov byte [ecx + 3], al
inc esi
dec dword [ebp - 0xa8]
jne 0x495f8a
inc dword [ebp - 0x9c]
dec dword [ebp - 0xa4]
jne 0x495f45
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
cdq
idiv dword [ebp - 0x80]
add edx, dword [ebp - 0xd8]
imul edx, dword [ebp - 0x68]
add edx, dword [ebp - 0x5c]
mov dword [ebp - 0x10], edx
mov esi, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xc4]
dec eax
sub eax, esi
jl 0x496134
inc eax
mov dword [ebp - 0xa4], eax
mov eax, esi
cdq
idiv dword [ebp - 0x7c]
add edx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0x10]
lea eax, [eax + edx*4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x58]
lea eax, [eax + esi*4]
mov edx, dword [ebp - 0xbc]
movzx edx, byte [edx + 2]
xor ecx, ecx
mov cl, byte [eax + 2]
sub edx, ecx
xor ecx, ecx
mov cl, bl
imul edx, ecx
xor ecx, ecx
mov cl, byte [eax + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax + 2], dl
mov edx, dword [ebp - 0xbc]
movzx edx, byte [edx + 1]
xor ecx, ecx
mov cl, byte [eax + 1]
sub edx, ecx
xor ecx, ecx
mov cl, bl
imul edx, ecx
xor ecx, ecx
mov cl, byte [eax + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax + 1], dl
mov edx, dword [ebp - 0xbc]
movzx edx, byte [edx]
xor ecx, ecx
mov cl, byte [eax]
sub edx, ecx
xor ecx, ecx
mov cl, bl
imul edx, ecx
xor ecx, ecx
mov cl, byte [eax]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax], dl
mov dl, byte [ebp + 8]
mov byte [eax + 3], dl
inc esi
dec dword [ebp - 0xa4]
jne 0x49608f
mov eax, dword [ebp - 0xc8]
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xcc]
xor edx, edx
call fcn.0053d99c
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jle 0x4961c0
jmp 0x4961ae
push 0xcc0020
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 4]
call fcn.0042b4a8
call fcn.00426e98
push eax
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 4]
call fcn.0042b4a8
call fcn.00426e98
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x70]
add dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xc0]
dec eax
sub eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x9c]
jg 0x49615b
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0xc0]
jge 0x496221
push 0xcc0020
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 4]
call fcn.0042b4a8
call fcn.00426e98
push eax
mov eax, dword [ebp - 0xc0]
sub eax, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 4]
call fcn.0042b4a8
call fcn.00426e98
push eax
call sub.gdi32.dll_BitBlt
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10