Function at 0x4b8720
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 0x4b91aa
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 0x4b8798
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc0]
cmp eax, dword [ebp - 0x88]
jle 0x4b87b2
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xcc], 0
jge 0x4b87c3
xor eax, eax
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xc8], 0
jge 0x4b87d4
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 0x4b87fe
lea edx, [ebp - 0xdc]
mov eax, dword [ebp + 0x14]
call fcn.0057b430
lea eax, [ebp - 0xdc]
mov dl, 1
call fcn.0057b590
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0xdc]
mov dl, 1
call fcn.0057b5a4
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 0x4b8845
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 0x4b886c
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 0x4b91aa
cmp dword [ebp - 0x7c], 0
jl 0x4b91aa
mov eax, dword [ebp - 8]
call fcn.00406e58
dec eax
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x4b91aa
mov eax, dword [ebp - 8]
mov eax, dword [eax + 2]
and eax, 3
sub eax, 1
jb 0x4b88b5
je 0x4b8c16
jmp 0x4b91aa
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x8c]
test eax, eax
jle 0x4b91aa
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.0057b5a4
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 0x4b8967
mov edx, dword [ebp - 0x88]
dec edx
mov eax, dword [ebp - 0xc0]
call fcn.0043a5dc
mov dword [ebp - 0xa0], eax
jmp 0x4b898c
mov edx, dword [ebp - 0x88]
dec edx
mov eax, dword [ebp - 0xc0]
call fcn.0043a5dc
mov edx, eax
mov eax, dword [ebp - 0xa0]
call fcn.0043a5dc
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0x9c]
test eax, eax
jle 0x4b8c04
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 0x4b89f5
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0x88]
jl 0x4b8a0d
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0xc0]
call fcn.0043a5dc
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 0x4b8c04
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]
fdivp st(1)
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]
fdivp st(1)
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]
fdivp st(1)
fstp qword [ebp - 0x48]
wait
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.00561c24
test al, al
je 0x4b8c04
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 0x14]
call fcn.00561c24
test al, al
je 0x4b8c04
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa0]
sub edx, eax
jl 0x4b8c04
inc edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x60], eax
fld dword [ebp - 0x14]
call fcn.004039dc
mov byte [ebp - 0x26], al
fld dword [ebp - 0x18]
call fcn.004039dc
mov byte [ebp - 0x27], al
fld dword [ebp - 0x1c]
call fcn.004039dc
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 0x4b8bd7
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 0x4b8b33
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 0x4b8ad3
inc edi
dec dword [ebp - 0xa4]
jne 0x4b88da
jmp 0x4b91aa
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.00561c24
test al, al
je 0x4b91aa
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 0x14]
call fcn.00561c24
test al, al
je 0x4b91aa
lea eax, [ebp - 0xcc]
xor edx, edx
call fcn.0057b590
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fdiv dword [0x4b91b4]
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 0x4b8e8e
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.004039dc
mov dword [ebp - 0x98], eax
cmp edi, dword [ebp - 0x8c]
jne 0x4b8d1b
mov edx, dword [ebp - 0x84]
dec edx
mov eax, dword [ebp - 0xc4]
call fcn.0043a5dc
mov dword [ebp - 0x98], eax
jmp 0x4b8d40
mov edx, dword [ebp - 0x84]
dec edx
mov eax, dword [ebp - 0xc4]
call fcn.0043a5dc
mov edx, eax
mov eax, dword [ebp - 0x98]
call fcn.0043a5dc
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x94]
test eax, eax
jle 0x4b8e81
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]
fdivp st(1)
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]
fdivp st(1)
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]
fdivp st(1)
fstp qword [ebp - 0x48]
wait
mov esi, dword [ebp - 0x94]
mov eax, dword [ebp - 0x98]
sub eax, esi
jl 0x4b8e81
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.004039dc
mov edx, dword [ebp - 0xb4]
mov byte [edx + 2], al
fld dword [ebp - 0x18]
call fcn.004039dc
mov edx, dword [ebp - 0xb4]
mov byte [edx + 1], al
fld dword [ebp - 0x1c]
call fcn.004039dc
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 0x4b8e1c
inc edi
dec dword [ebp - 0xa4]
jne 0x4b8c99
lea eax, [ebp - 0xcc]
mov dl, 1
call fcn.0057b5a4
mov edx, eax
mov eax, dword [ebp - 0x80]
call fcn.0043a5dc
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 0x4b8fd6
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 0x4b8fc4
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 0x4b8f13
inc dword [ebp - 0x9c]
dec dword [ebp - 0xa4]
jne 0x4b8ece
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 0x4b90bd
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 0x4b9018
mov eax, dword [ebp - 0xc8]
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xcc]
xor edx, edx
call fcn.0057b590
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jle 0x4b9149
jmp 0x4b9137
push 0xcc0020
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 4]
call fcn.00438268
call fcn.00433af0
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.00438268
call fcn.00433af0
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 0x4b90e4
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0xc0]
jge 0x4b91aa
push 0xcc0020
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 4]
call fcn.00438268
call fcn.00433af0
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.00438268
call fcn.00433af0
push eax
call sub.gdi32.dll_BitBlt
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10