Function at 0x4b78c4
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 0x4b834e
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 0x4b793c
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc0]
cmp eax, dword [ebp - 0x88]
jle 0x4b7956
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xcc], 0
jge 0x4b7967
xor eax, eax
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xc8], 0
jge 0x4b7978
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 0x4b79a2
lea edx, [ebp - 0xdc]
mov eax, dword [ebp + 0x14]
call fcn.0057a538
lea eax, [ebp - 0xdc]
mov dl, 1
call fcn.0057a698
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0xdc]
mov dl, 1
call fcn.0057a6ac
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 0x4b79e9
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 0x4b7a10
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 0x4b834e
cmp dword [ebp - 0x7c], 0
jl 0x4b834e
mov eax, dword [ebp - 8]
call fcn.00406f9c
dec eax
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x4b834e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 2]
and eax, 3
sub eax, 1
jb 0x4b7a59
je 0x4b7dba
jmp 0x4b834e
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x8c]
test eax, eax
jle 0x4b834e
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.0057a6ac
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 0x4b7b0b
mov edx, dword [ebp - 0x88]
dec edx
mov eax, dword [ebp - 0xc0]
call fcn.0043a268
mov dword [ebp - 0xa0], eax
jmp 0x4b7b30
mov edx, dword [ebp - 0x88]
dec edx
mov eax, dword [ebp - 0xc0]
call fcn.0043a268
mov edx, eax
mov eax, dword [ebp - 0xa0]
call fcn.0043a268
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0x9c]
test eax, eax
jle 0x4b7da8
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 0x4b7b99
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0x88]
jl 0x4b7bb1
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0xc0]
call fcn.0043a268
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 0x4b7da8
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.00560d2c
test al, al
je 0x4b7da8
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 0x14]
call fcn.00560d2c
test al, al
je 0x4b7da8
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa0]
sub edx, eax
jl 0x4b7da8
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 0x4b7d7b
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 0x4b7cd7
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 0x4b7c77
inc edi
dec dword [ebp - 0xa4]
jne 0x4b7a7e
jmp 0x4b834e
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.00560d2c
test al, al
je 0x4b834e
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 0x14]
call fcn.00560d2c
test al, al
je 0x4b834e
lea eax, [ebp - 0xcc]
xor edx, edx
call fcn.0057a698
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
fdiv dword [0x4b8358]
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 0x4b8032
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 0x4b7ebf
mov edx, dword [ebp - 0x84]
dec edx
mov eax, dword [ebp - 0xc4]
call fcn.0043a268
mov dword [ebp - 0x98], eax
jmp 0x4b7ee4
mov edx, dword [ebp - 0x84]
dec edx
mov eax, dword [ebp - 0xc4]
call fcn.0043a268
mov edx, eax
mov eax, dword [ebp - 0x98]
call fcn.0043a268
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x94]
test eax, eax
jle 0x4b8025
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 0x4b8025
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 0x4b7fc0
inc edi
dec dword [ebp - 0xa4]
jne 0x4b7e3d
lea eax, [ebp - 0xcc]
mov dl, 1
call fcn.0057a6ac
mov edx, eax
mov eax, dword [ebp - 0x80]
call fcn.0043a268
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 0x4b817a
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 0x4b8168
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 0x4b80b7
inc dword [ebp - 0x9c]
dec dword [ebp - 0xa4]
jne 0x4b8072
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 0x4b8261
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 0x4b81bc
mov eax, dword [ebp - 0xc8]
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xcc]
xor edx, edx
call fcn.0057a698
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jle 0x4b82ed
jmp 0x4b82db
push 0xcc0020
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 4]
call fcn.00437ef4
call fcn.0043377c
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.00437ef4
call fcn.0043377c
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 0x4b8288
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0xc0]
jge 0x4b834e
push 0xcc0020
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 4]
call fcn.00437ef4
call fcn.0043377c
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.00437ef4
call fcn.0043377c
push eax
call sub.gdi32.dll_BitBlt
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10