Function at 0x4a2768
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 0x4a3209
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 0x4a27e0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc0]
cmp eax, dword [ebp - 0x88]
jle 0x4a27fa
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xcc], 0
jge 0x4a280b
xor eax, eax
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xc8], 0
jge 0x4a281c
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 0x4a2846
lea edx, [ebp - 0xdc]
mov eax, dword [ebp + 0x14]
call fcn.005573ec
lea eax, [ebp - 0xdc]
mov dl, 1
call fcn.00557504
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0xdc]
mov dl, 1
call fcn.00557518
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 0x4a288d
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 0x4a28b4
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 0x4a3209
cmp dword [ebp - 0x7c], 0
jl 0x4a3209
mov eax, dword [ebp - 8]
call fcn.00406010
dec eax
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x4a3209
mov eax, dword [ebp - 8]
mov eax, dword [eax + 2]
and eax, 3
sub eax, 1
jb 0x4a28fd
je 0x4a2c67
jmp 0x4a3209
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x8c]
test eax, eax
jle 0x4a3209
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.00557518
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 0x4a29af
mov edx, dword [ebp - 0x88]
dec edx
mov eax, dword [ebp - 0xc0]
call fcn.0042e13c
mov dword [ebp - 0xa0], eax
jmp 0x4a29d4
mov edx, dword [ebp - 0x88]
dec edx
mov eax, dword [ebp - 0xc0]
call fcn.0042e13c
mov edx, eax
mov eax, dword [ebp - 0xa0]
call fcn.0042e13c
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0x9c]
test eax, eax
jle 0x4a2c55
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 0x4a2a3d
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0x88]
jl 0x4a2a55
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0xc0]
call fcn.0042e13c
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 0x4a2c55
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.00403600
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.00403600
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.00403600
fstp qword [ebp - 0x48]
wait
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.0050009c
test al, al
je 0x4a2c55
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 0x14]
call fcn.0050009c
test al, al
je 0x4a2c55
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa0]
sub edx, eax
jl 0x4a2c55
inc edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x60], eax
fld dword [ebp - 0x14]
call fcn.00403040
mov byte [ebp - 0x26], al
fld dword [ebp - 0x18]
call fcn.00403040
mov byte [ebp - 0x27], al
fld dword [ebp - 0x1c]
call fcn.00403040
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 0x4a2c28
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 0x4a2b84
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 0x4a2b24
inc edi
dec dword [ebp - 0xa4]
jne 0x4a2922
jmp 0x4a3209
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.0050009c
test al, al
je 0x4a3209
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 0x14]
call fcn.0050009c
test al, al
je 0x4a3209
lea eax, [ebp - 0xcc]
xor edx, edx
call fcn.00557504
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fld dword [0x4a3214]
call fcn.00403600
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 0x4a2eed
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.00403040
mov dword [ebp - 0x98], eax
cmp edi, dword [ebp - 0x8c]
jne 0x4a2d71
mov edx, dword [ebp - 0x84]
dec edx
mov eax, dword [ebp - 0xc4]
call fcn.0042e13c
mov dword [ebp - 0x98], eax
jmp 0x4a2d96
mov edx, dword [ebp - 0x84]
dec edx
mov eax, dword [ebp - 0xc4]
call fcn.0042e13c
mov edx, eax
mov eax, dword [ebp - 0x98]
call fcn.0042e13c
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x94]
test eax, eax
jle 0x4a2ee0
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.00403600
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.00403600
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.00403600
fstp qword [ebp - 0x48]
wait
mov esi, dword [ebp - 0x94]
mov eax, dword [ebp - 0x98]
sub eax, esi
jl 0x4a2ee0
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.00403040
mov edx, dword [ebp - 0xb4]
mov byte [edx + 2], al
fld dword [ebp - 0x18]
call fcn.00403040
mov edx, dword [ebp - 0xb4]
mov byte [edx + 1], al
fld dword [ebp - 0x1c]
call fcn.00403040
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 0x4a2e7b
inc edi
dec dword [ebp - 0xa4]
jne 0x4a2cef
lea eax, [ebp - 0xcc]
mov dl, 1
call fcn.00557518
mov edx, eax
mov eax, dword [ebp - 0x80]
call fcn.0042e13c
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 0x4a3035
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 0x4a3023
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 0x4a2f72
inc dword [ebp - 0x9c]
dec dword [ebp - 0xa4]
jne 0x4a2f2d
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 0x4a311c
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 0x4a3077
mov eax, dword [ebp - 0xc8]
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xcc]
xor edx, edx
call fcn.00557504
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jle 0x4a31a8
jmp 0x4a3196
push 0xcc0020
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 4]
call fcn.0042bf5c
call fcn.0042794c
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.0042bf5c
call fcn.0042794c
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 0x4a3143
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0xc0]
jge 0x4a3209
push 0xcc0020
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 4]
call fcn.0042bf5c
call fcn.0042794c
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.0042bf5c
call fcn.0042794c
push eax
call sub.GDI32.DLL_BitBlt
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10