Function at 0x490500
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 0x490fa1
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 0x490578
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc0]
cmp eax, dword [ebp - 0x88]
jle 0x490592
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xcc], 0
jge 0x4905a3
xor eax, eax
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xc8], 0
jge 0x4905b4
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 0x4905de
lea edx, [ebp - 0xdc]
mov eax, dword [ebp + 0x14]
call fcn.00535638
lea eax, [ebp - 0xdc]
mov dl, 1
call fcn.00535750
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0xdc]
mov dl, 1
call fcn.00535764
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 0x490625
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 0x49064c
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 0x490fa1
cmp dword [ebp - 0x7c], 0
jl 0x490fa1
mov eax, dword [ebp - 8]
call fcn.00405ba4
dec eax
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x490fa1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 2]
and eax, 3
sub eax, 1
jb 0x490695
je 0x4909ff
jmp 0x490fa1
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x8c]
test eax, eax
jle 0x490fa1
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.00535764
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 0x490747
mov edx, dword [ebp - 0x88]
dec edx
mov eax, dword [ebp - 0xc0]
call fcn.0042cf2c
mov dword [ebp - 0xa0], eax
jmp 0x49076c
mov edx, dword [ebp - 0x88]
dec edx
mov eax, dword [ebp - 0xc0]
call fcn.0042cf2c
mov edx, eax
mov eax, dword [ebp - 0xa0]
call fcn.0042cf2c
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0x9c]
test eax, eax
jle 0x4909ed
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 0x4907d5
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0x88]
jl 0x4907ed
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0xc0]
call fcn.0042cf2c
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 0x4909ed
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.0040328c
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.0040328c
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.0040328c
fstp qword [ebp - 0x48]
wait
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.004dc240
test al, al
je 0x4909ed
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 0x14]
call fcn.004dc240
test al, al
je 0x4909ed
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa0]
sub edx, eax
jl 0x4909ed
inc edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x60], eax
fld dword [ebp - 0x14]
call fcn.0040307c
mov byte [ebp - 0x26], al
fld dword [ebp - 0x18]
call fcn.0040307c
mov byte [ebp - 0x27], al
fld dword [ebp - 0x1c]
call fcn.0040307c
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 0x4909c0
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 0x49091c
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 0x4908bc
inc edi
dec dword [ebp - 0xa4]
jne 0x4906ba
jmp 0x490fa1
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.004dc240
test al, al
je 0x490fa1
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 0x14]
call fcn.004dc240
test al, al
je 0x490fa1
lea eax, [ebp - 0xcc]
xor edx, edx
call fcn.00535750
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fld dword [0x490fac]
call fcn.0040328c
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 0x490c85
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.0040307c
mov dword [ebp - 0x98], eax
cmp edi, dword [ebp - 0x8c]
jne 0x490b09
mov edx, dword [ebp - 0x84]
dec edx
mov eax, dword [ebp - 0xc4]
call fcn.0042cf2c
mov dword [ebp - 0x98], eax
jmp 0x490b2e
mov edx, dword [ebp - 0x84]
dec edx
mov eax, dword [ebp - 0xc4]
call fcn.0042cf2c
mov edx, eax
mov eax, dword [ebp - 0x98]
call fcn.0042cf2c
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x94]
test eax, eax
jle 0x490c78
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.0040328c
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.0040328c
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.0040328c
fstp qword [ebp - 0x48]
wait
mov esi, dword [ebp - 0x94]
mov eax, dword [ebp - 0x98]
sub eax, esi
jl 0x490c78
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.0040307c
mov edx, dword [ebp - 0xb4]
mov byte [edx + 2], al
fld dword [ebp - 0x18]
call fcn.0040307c
mov edx, dword [ebp - 0xb4]
mov byte [edx + 1], al
fld dword [ebp - 0x1c]
call fcn.0040307c
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 0x490c13
inc edi
dec dword [ebp - 0xa4]
jne 0x490a87
lea eax, [ebp - 0xcc]
mov dl, 1
call fcn.00535764
mov edx, eax
mov eax, dword [ebp - 0x80]
call fcn.0042cf2c
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 0x490dcd
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 0x490dbb
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 0x490d0a
inc dword [ebp - 0x9c]
dec dword [ebp - 0xa4]
jne 0x490cc5
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 0x490eb4
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 0x490e0f
mov eax, dword [ebp - 0xc8]
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xcc]
xor edx, edx
call fcn.00535750
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jle 0x490f40
jmp 0x490f2e
push 0xcc0020
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 4]
call fcn.0042ad4c
call fcn.0042673c
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.0042ad4c
call fcn.0042673c
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 0x490edb
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0xc0]
jge 0x490fa1
push 0xcc0020
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 4]
call fcn.0042ad4c
call fcn.0042673c
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.0042ad4c
call fcn.0042673c
push eax
call sub.gdi32.dll_BitBlt
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10