Function at 0x47f73c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff24
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0xd8]
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 - 0xc8]
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 - 0xc8]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
jne 0x4801dc
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xc0]
cmp eax, dword [ebp - 0x88]
jle 0x47f7b4
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xbc]
cmp eax, dword [ebp - 0x8c]
jle 0x47f7ce
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xc8], 0
jge 0x47f7df
xor eax, eax
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc4], 0
jge 0x47f7f0
xor eax, eax
mov dword [ebp - 0xc4], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x4d], al
mov al, byte [ebp + 8]
mov byte [ebp - 0x51], al
lea eax, [ebp - 0xd8]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
je 0x47f81a
lea edx, [ebp - 0xd8]
mov eax, dword [ebp + 0x14]
call fcn.005117f0
lea eax, [ebp - 0xd8]
mov dl, 1
call fcn.00511908
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0xd8]
mov dl, 1
call fcn.0051191c
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp - 0xd4]
add edx, dword [ebp - 0x70]
cmp eax, edx
jg 0x47f861
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
sub eax, dword [ebp - 0xd4]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 0xd8]
add edx, dword [ebp - 0x6c]
cmp eax, edx
jg 0x47f888
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
sub eax, dword [ebp - 0xd8]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x70], 0
jl 0x4801dc
cmp dword [ebp - 0x6c], 0
jl 0x4801dc
mov eax, dword [ebp - 8]
call fcn.004054fc
dec eax
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jl 0x4801dc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 9]
sub eax, 1
jb 0x47f8ce
je 0x47fc40
jmp 0x4801dc
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x90]
test eax, eax
jl 0x4801dc
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x58]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x58]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax + 8]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xc8]
xor edx, edx
call fcn.0051191c
imul dword [ebp - 0x94]
mov ecx, 0x64
cdq
idiv ecx
add eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x90]
jne 0x47f98d
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0xbc]
call fcn.00429414
dec eax
mov dword [ebp - 0xa4], eax
jmp 0x47f9b2
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0xbc]
call fcn.00429414
mov edx, eax
dec edx
mov eax, dword [ebp - 0xa4]
call fcn.00429414
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0xa0]
test eax, eax
jle 0x47fc2c
xor eax, eax
mov al, byte [ebp - 0x18]
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
fstp dword [ebp - 0xc]
wait
xor eax, eax
mov al, byte [ebp - 0x17]
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
fstp dword [ebp - 0x10]
wait
xor eax, eax
mov al, byte [ebp - 0x16]
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
fstp dword [ebp - 0x14]
wait
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x90]
je 0x47fa1e
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0x8c]
jl 0x47fa36
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0xbc]
call fcn.00429414
dec eax
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0xa0]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jle 0x47fc2c
xor eax, eax
mov al, byte [ebp - 0x1c]
xor edx, edx
mov dl, byte [ebp - 0x18]
sub eax, edx
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
fild dword [ebp - 0x68]
call fcn.00402d5c
fstp qword [ebp - 0x28]
wait
xor eax, eax
mov al, byte [ebp - 0x1b]
xor edx, edx
mov dl, byte [ebp - 0x17]
sub eax, edx
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
fild dword [ebp - 0x68]
call fcn.00402d5c
fstp qword [ebp - 0x30]
wait
xor eax, eax
mov al, byte [ebp - 0x1a]
xor edx, edx
mov dl, byte [ebp - 0x16]
sub eax, edx
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
fild dword [ebp - 0x68]
call fcn.00402d5c
fstp qword [ebp - 0x38]
wait
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
call fcn.004cd7b4
test al, al
je 0x47fc2c
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x84]
mov eax, dword [ebp + 0x14]
call fcn.004cd7b4
test al, al
je 0x47fc2c
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xa4]
sub edx, eax
jl 0x47fc2c
inc edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0x44], eax
fld dword [ebp - 0xc]
call fcn.00402b4c
mov byte [ebp - 0x4e], al
fld dword [ebp - 0x10]
call fcn.00402b4c
mov byte [ebp - 0x4f], al
fld dword [ebp - 0x14]
call fcn.00402b4c
mov byte [ebp - 0x50], al
mov eax, dword [ebp - 0x48]
imul dword [ebp - 0x44]
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x44]
cdq
idiv dword [ebp - 0x70]
add edx, dword [ebp - 0xd4]
imul edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x84]
mov dword [ebp - 0x78], edx
mov esi, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xc0]
dec eax
sub eax, esi
jl 0x47fbff
inc eax
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x74]
lea ecx, [eax + esi*4]
mov eax, esi
cdq
idiv dword [ebp - 0x6c]
add edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x78]
lea eax, [eax + edx*4]
xor edx, edx
mov dl, byte [eax + 2]
movzx edi, byte [ebp - 0x4e]
sub edx, edi
mov edi, ebx
and edi, 0xff
imul edx, edi
movzx edi, byte [ebp - 0x4e]
shl edi, 8
add edx, edi
shr edx, 8
mov byte [ecx + 2], dl
xor edx, edx
mov dl, byte [eax + 1]
movzx edi, byte [ebp - 0x4f]
sub edx, edi
mov edi, ebx
and edi, 0xff
imul edx, edi
movzx edi, byte [ebp - 0x4f]
shl edi, 8
add edx, edi
shr edx, 8
mov byte [ecx + 1], dl
movzx eax, byte [eax]
xor edx, edx
mov dl, byte [ebp - 0x50]
sub eax, edx
xor edx, edx
mov dl, bl
imul edx
xor edx, edx
mov dl, byte [ebp - 0x50]
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 - 0xb0]
jne 0x47fb6b
fld dword [ebp - 0xc]
fadd qword [ebp - 0x28]
fstp dword [ebp - 0xc]
wait
fld dword [ebp - 0x10]
fadd qword [ebp - 0x30]
fstp dword [ebp - 0x10]
wait
fld dword [ebp - 0x14]
fadd qword [ebp - 0x38]
fstp dword [ebp - 0x14]
wait
inc dword [ebp - 0x44]
dec dword [ebp - 0xac]
jne 0x47fb08
inc dword [ebp - 0x58]
dec dword [ebp - 0xa8]
jne 0x47f8f6
jmp 0x4801dc
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
call fcn.004cd7b4
test al, al
je 0x4801dc
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x84]
mov eax, dword [ebp + 0x14]
call fcn.004cd7b4
test al, al
je 0x4801dc
lea eax, [ebp - 0xc8]
xor edx, edx
call fcn.00511908
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
fld dword [0x4801e8]
call fcn.00402d5c
fstp qword [ebp - 0x40]
wait
mov eax, dword [ebp - 0x48]
imul dword [ebp - 0xc4]
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x90]
test eax, eax
jl 0x47fec0
inc eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x58]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x58]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax + 8]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x98], eax
fild dword [ebp - 0x94]
fmul qword [ebp - 0x40]
fild dword [ebp - 0x98]
faddp st(1)
call fcn.00402b4c
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x90]
jne 0x47fd5a
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0xc0]
call fcn.00429414
dec eax
mov dword [ebp - 0x9c], eax
jmp 0x47fd7f
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0xc0]
call fcn.00429414
mov edx, eax
dec edx
mov eax, dword [ebp - 0x9c]
call fcn.00429414
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0x98]
test eax, eax
jle 0x47feb1
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0x98]
mov dword [ebp - 0x64], eax
xor eax, eax
mov al, byte [ebp - 0x18]
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
fstp dword [ebp - 0xc]
wait
xor eax, eax
mov al, byte [ebp - 0x17]
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
fstp dword [ebp - 0x10]
wait
xor eax, eax
mov al, byte [ebp - 0x16]
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
fstp dword [ebp - 0x14]
wait
xor eax, eax
mov al, byte [ebp - 0x1c]
xor edx, edx
mov dl, byte [ebp - 0x18]
sub eax, edx
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
fild dword [ebp - 0x64]
call fcn.00402d5c
fstp qword [ebp - 0x28]
wait
xor eax, eax
mov al, byte [ebp - 0x1b]
xor edx, edx
mov dl, byte [ebp - 0x17]
sub eax, edx
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
fild dword [ebp - 0x64]
call fcn.00402d5c
fstp qword [ebp - 0x30]
wait
xor eax, eax
mov al, byte [ebp - 0x1a]
xor edx, edx
mov dl, byte [ebp - 0x16]
sub eax, edx
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
fild dword [ebp - 0x64]
call fcn.00402d5c
fstp qword [ebp - 0x38]
wait
mov esi, dword [ebp - 0x98]
mov eax, dword [ebp - 0x9c]
sub eax, esi
jl 0x47feb1
inc eax
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x80]
lea edi, [eax + esi*4]
fld dword [ebp - 0xc]
call fcn.00402b4c
mov byte [edi + 2], al
fld dword [ebp - 0x10]
call fcn.00402b4c
mov byte [edi + 1], al
fld dword [ebp - 0x14]
call fcn.00402b4c
mov byte [edi], al
fld dword [ebp - 0xc]
fadd qword [ebp - 0x28]
fstp dword [ebp - 0xc]
wait
fld dword [ebp - 0x10]
fadd qword [ebp - 0x30]
fstp dword [ebp - 0x10]
wait
fld dword [ebp - 0x14]
fadd qword [ebp - 0x38]
fstp dword [ebp - 0x14]
wait
inc esi
dec dword [ebp - 0xac]
jne 0x47fe64
inc dword [ebp - 0x58]
dec dword [ebp - 0xa8]
jne 0x47fcce
lea eax, [ebp - 0xc8]
mov dl, 1
call fcn.0051191c
mov edx, eax
mov eax, dword [ebp - 0x70]
call fcn.00429414
dec eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xc4]
inc eax
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0xc4]
sub edx, eax
jl 0x48000b
inc edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x48]
imul dword [ebp - 0xa0]
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xa0]
cdq
idiv dword [ebp - 0x70]
add edx, dword [ebp - 0xd4]
imul edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x84]
mov dword [ebp - 0x78], edx
mov esi, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xc0]
dec eax
sub eax, esi
jl 0x47fff9
inc eax
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x74]
lea ecx, [eax + esi*4]
mov eax, esi
cdq
idiv dword [ebp - 0x6c]
add edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x78]
lea eax, [eax + edx*4]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x80]
lea eax, [eax + esi*4]
mov edx, dword [ebp - 0xb4]
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 - 0xb4]
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 - 0xb4]
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 - 0xac]
jne 0x47ff48
inc dword [ebp - 0xa0]
dec dword [ebp - 0xa8]
jne 0x47ff00
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
cdq
idiv dword [ebp - 0x70]
add edx, dword [ebp - 0xd4]
imul edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x84]
mov dword [ebp - 0x78], edx
mov esi, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xc0]
dec eax
sub eax, esi
jl 0x4800ef
inc eax
mov dword [ebp - 0xa8], eax
mov eax, esi
cdq
idiv dword [ebp - 0x6c]
add edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x78]
lea eax, [eax + edx*4]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x80]
lea eax, [eax + esi*4]
mov edx, dword [ebp - 0xb8]
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 - 0xb8]
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 - 0xb8]
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
inc esi
dec dword [ebp - 0xa8]
jne 0x480050
mov eax, dword [ebp - 0xc4]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xc8]
xor edx, edx
call fcn.00511908
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jle 0x48017b
jmp 0x480169
push 0xcc0020
mov eax, dword [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 4]
call fcn.00427250
call fcn.00422dc0
push eax
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 4]
call fcn.00427250
call fcn.00422dc0
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x60]
add dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xbc]
dec eax
sub eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0xa0]
jg 0x480116
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0xbc]
jge 0x4801dc
push 0xcc0020
mov eax, dword [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 4]
call fcn.00427250
call fcn.00422dc0
push eax
mov eax, dword [ebp - 0xbc]
sub eax, dword [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 4]
call fcn.00427250
call fcn.00422dc0
push eax
call sub.gdi32.dll_BitBlt
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10