Function at 0x4af08c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff3c
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0xc0]
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 - 0xb0]
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 edi, [ebp - 0x6c]
lea eax, [ebp - 0xb0]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
jne 0x4afa9a
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, dword [ebp - 0xa8]
jge 0x4af0ef
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
cmp eax, dword [ebp - 0xa4]
jge 0x4af10d
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xb0], 0
jge 0x4af11e
xor eax, eax
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xac], 0
jge 0x4af12f
xor eax, eax
mov dword [ebp - 0xac], eax
mov al, byte [ebp + 8]
mov byte [edi + 3], al
mov al, byte [ebp + 8]
mov byte [ebp - 0x71], al
lea eax, [ebp - 0xc0]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
je 0x4af16e
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0xc0]
push eax
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00417680
lea eax, [ebp - 0xc0]
mov dl, 1
call fcn.00528eb0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xc0]
mov dl, 1
call fcn.00528ec4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
mov edx, dword [ebp - 0xbc]
add edx, dword [ebp - 0x30]
cmp eax, edx
jge 0x4af1b6
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
sub eax, dword [ebp - 0xbc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
mov edx, dword [ebp - 0xc0]
add edx, dword [ebp - 0x2c]
cmp eax, edx
jge 0x4af1de
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
sub eax, dword [ebp - 0xc0]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x30], 0
jl 0x4afa9a
cmp dword [ebp - 0x2c], 0
jl 0x4afa9a
mov eax, dword [ebp - 8]
call fcn.0040589c
dec eax
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jl 0x4afa9a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
sub eax, 1
jb 0x4af21e
je 0x4af565
jmp 0x4afa9a
mov byte [ebp - 0x75], 0xff
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x7c]
test eax, eax
jl 0x4afa9a
inc eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*4 + 4]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0xb0]
xor edx, edx
call fcn.00528ec4
imul dword [ebp - 0x80]
mov ecx, 0x64
cdq
idiv ecx
add eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x7c]
jne 0x4af2cd
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebp - 0xa4]
call fcn.0042a6d8
dec eax
mov dword [ebp - 0x90], eax
jmp 0x4af2f6
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebp - 0xa4]
call fcn.0042a6d8
mov edx, eax
dec edx
mov eax, dword [ebp - 0x90]
call fcn.0042a6d8
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp - 0x8c]
test eax, eax
jle 0x4af551
xor eax, eax
mov al, byte [ebp - 0x64]
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fstp dword [ebp - 0x34]
wait
xor eax, eax
mov al, byte [ebp - 0x63]
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fstp dword [ebp - 0x38]
wait
xor eax, eax
mov al, byte [ebp - 0x62]
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fstp dword [ebp - 0x3c]
wait
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x7c]
je 0x4af362
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
cmp eax, dword [ebp - 0x90]
jge 0x4af37f
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
dec edx
mov eax, dword [ebp - 0xa4]
dec eax
call fcn.0042a6d8
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp - 0x8c]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4afa9a
xor eax, eax
mov al, byte [ebp - 0x68]
xor edx, edx
mov dl, byte [ebp - 0x64]
sub eax, edx
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fild dword [ebp - 0x28]
fdivp st(1)
fstp qword [ebp - 0x48]
wait
xor eax, eax
mov al, byte [ebp - 0x67]
xor edx, edx
mov dl, byte [ebp - 0x63]
sub eax, edx
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fild dword [ebp - 0x28]
fdivp st(1)
fstp qword [ebp - 0x50]
wait
xor eax, eax
mov al, byte [ebp - 0x66]
xor edx, edx
mov dl, byte [ebp - 0x62]
sub eax, edx
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fild dword [ebp - 0x28]
fdivp st(1)
fstp qword [ebp - 0x58]
wait
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x90]
sub edx, eax
jl 0x4af551
inc edx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x94], eax
fld dword [ebp - 0x34]
call fcn.00402ba0
mov byte [edi + 2], al
fld dword [ebp - 0x38]
call fcn.00402ba0
mov byte [edi + 1], al
fld dword [ebp - 0x3c]
call fcn.00402ba0
mov byte [edi], al
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 4]
call fcn.00428634
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x94]
cdq
idiv dword [ebp - 0x30]
add edx, dword [ebp - 0xbc]
mov eax, dword [ebp + 0x14]
call fcn.00428634
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xa8]
dec eax
sub eax, esi
jl 0x4af521
inc eax
mov dword [ebp - 0xa0], eax
mov eax, esi
cdq
idiv dword [ebp - 0x2c]
add edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x70], eax
xor edx, edx
mov dl, byte [ebp - 0x6e]
mov al, byte [edi + 2]
xor ecx, ecx
mov cl, al
sub edx, ecx
xor ecx, ecx
mov cl, bl
imul edx, ecx
and eax, 0xff
shl eax, 8
add edx, eax
shr edx, 8
and dl, 0xff
mov byte [ebp - 0x72], dl
xor edx, edx
mov dl, byte [ebp - 0x6f]
mov al, byte [edi + 1]
xor ecx, ecx
mov cl, al
sub edx, ecx
xor ecx, ecx
mov cl, bl
imul edx, ecx
and eax, 0xff
shl eax, 8
add edx, eax
shr edx, 8
and dl, 0xff
mov byte [ebp - 0x73], dl
xor eax, eax
mov al, byte [ebp - 0x70]
xor edx, edx
mov dl, byte [edi]
sub eax, edx
xor edx, edx
mov dl, bl
imul edx
xor edx, edx
mov dl, byte [edi]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [ebp - 0x74], al
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x74]
mov dword [eax + esi*4], edx
inc esi
dec dword [ebp - 0xa0]
jne 0x4af484
fld dword [ebp - 0x34]
fadd qword [ebp - 0x48]
fstp dword [ebp - 0x34]
wait
fld dword [ebp - 0x38]
fadd qword [ebp - 0x50]
fstp dword [ebp - 0x38]
wait
fld dword [ebp - 0x3c]
fadd qword [ebp - 0x58]
fstp dword [ebp - 0x3c]
wait
inc dword [ebp - 0x94]
dec dword [ebp - 0x9c]
jne 0x4af41c
inc dword [ebp - 0x18]
dec dword [ebp - 0x98]
jne 0x4af247
jmp 0x4afa9a
lea eax, [ebp - 0xb0]
xor edx, edx
call fcn.00528eb0
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fdiv dword [0x4afaa4]
fstp qword [ebp - 0x60]
wait
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 4]
call fcn.00428634
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x7c]
test eax, eax
jl 0x4af79c
inc eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*4 + 4]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax*4 + 8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x84], eax
fild dword [ebp - 0x80]
fmul qword [ebp - 0x60]
fild dword [ebp - 0x84]
faddp st(1)
call fcn.00402ba0
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x7c]
jne 0x4af639
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [ebp - 0xa8]
call fcn.0042a6d8
dec eax
mov dword [ebp - 0x88], eax
jmp 0x4af662
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [ebp - 0xa8]
call fcn.0042a6d8
mov edx, eax
dec edx
mov eax, dword [ebp - 0x88]
call fcn.0042a6d8
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x84]
test eax, eax
jle 0x4af78d
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x84]
mov dword [ebp - 0x24], eax
xor eax, eax
mov al, byte [ebp - 0x64]
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fstp dword [ebp - 0x34]
wait
xor eax, eax
mov al, byte [ebp - 0x63]
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fstp dword [ebp - 0x38]
wait
xor eax, eax
mov al, byte [ebp - 0x62]
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fstp dword [ebp - 0x3c]
wait
xor eax, eax
mov al, byte [ebp - 0x68]
xor edx, edx
mov dl, byte [ebp - 0x64]
sub eax, edx
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fild dword [ebp - 0x24]
fdivp st(1)
fstp qword [ebp - 0x48]
wait
xor eax, eax
mov al, byte [ebp - 0x67]
xor edx, edx
mov dl, byte [ebp - 0x63]
sub eax, edx
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fild dword [ebp - 0x24]
fdivp st(1)
fstp qword [ebp - 0x50]
wait
xor eax, eax
mov al, byte [ebp - 0x66]
xor edx, edx
mov dl, byte [ebp - 0x62]
sub eax, edx
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fild dword [ebp - 0x24]
fdivp st(1)
fstp qword [ebp - 0x58]
wait
mov esi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x88]
sub eax, esi
jl 0x4af78d
inc eax
mov dword [ebp - 0x9c], eax
fld dword [ebp - 0x34]
call fcn.00402ba0
mov byte [edi + 2], al
fld dword [ebp - 0x38]
call fcn.00402ba0
mov byte [edi + 1], al
fld dword [ebp - 0x3c]
call fcn.00402ba0
mov byte [edi], al
mov eax, dword [ebp - 0xc]
mov edx, dword [edi]
mov dword [eax + esi*4], edx
fld dword [ebp - 0x34]
fadd qword [ebp - 0x48]
fstp dword [ebp - 0x34]
wait
fld dword [ebp - 0x38]
fadd qword [ebp - 0x50]
fstp dword [ebp - 0x38]
wait
fld dword [ebp - 0x3c]
fadd qword [ebp - 0x58]
fstp dword [ebp - 0x3c]
wait
inc esi
dec dword [ebp - 0x9c]
jne 0x4af73e
inc dword [ebp - 0x18]
dec dword [ebp - 0x98]
jne 0x4af5be
lea eax, [ebp - 0xb0]
mov dl, 1
call fcn.00528ec4
mov edx, eax
mov eax, dword [ebp - 0x30]
call fcn.0042a6d8
dec eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xac]
inc eax
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0xac]
sub edx, eax
jl 0x4af8cf
inc edx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 4]
call fcn.00428634
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x8c]
cdq
idiv dword [ebp - 0x30]
add edx, dword [ebp - 0xbc]
mov eax, dword [ebp + 0x14]
call fcn.00428634
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xa8]
dec eax
sub eax, esi
jl 0x4af8bd
inc eax
mov dword [ebp - 0x9c], eax
mov eax, esi
cdq
idiv dword [ebp - 0x2c]
add edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
mov dword [edi], eax
xor edx, edx
mov dl, byte [ebp - 0x6e]
xor ecx, ecx
mov cl, byte [edi + 2]
sub edx, ecx
xor eax, eax
mov al, bl
imul edx, eax
xor ecx, ecx
mov cl, byte [edi + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [edi + 2], dl
xor edx, edx
mov dl, byte [ebp - 0x6f]
xor ecx, ecx
mov cl, byte [edi + 1]
sub edx, ecx
imul edx, eax
xor ecx, ecx
mov cl, byte [edi + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [edi + 1], dl
xor edx, edx
mov dl, byte [ebp - 0x70]
xor ecx, ecx
mov cl, byte [edi]
sub edx, ecx
imul edx, eax
xor eax, eax
mov al, byte [edi]
shl eax, 8
add edx, eax
shr edx, 8
and dl, 0xff
mov byte [edi], dl
mov eax, dword [ebp - 0x10]
mov edx, dword [edi]
mov dword [eax + esi*4], edx
inc esi
dec dword [ebp - 0x9c]
jne 0x4af824
inc dword [ebp - 0x8c]
dec dword [ebp - 0x98]
jne 0x4af7dc
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
cdq
idiv dword [ebp - 0x30]
add edx, dword [ebp - 0xbc]
mov eax, dword [ebp + 0x14]
call fcn.00428634
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xa8]
dec eax
sub eax, esi
jl 0x4af9ad
inc eax
mov dword [ebp - 0x98], eax
mov eax, esi
cdq
idiv dword [ebp - 0x2c]
add edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
mov dword [edi], eax
xor eax, eax
mov al, byte [ebp - 0x6e]
xor edx, edx
mov dl, byte [edi + 2]
sub eax, edx
xor edx, edx
mov dl, bl
imul edx
xor edx, edx
mov dl, byte [edi + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [edi + 2], al
xor eax, eax
mov al, byte [ebp - 0x6f]
xor edx, edx
mov dl, byte [edi + 1]
sub eax, edx
xor edx, edx
mov dl, bl
imul edx
xor edx, edx
mov dl, byte [edi + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [edi + 1], al
xor eax, eax
mov al, byte [ebp - 0x70]
xor edx, edx
mov dl, byte [edi]
sub eax, edx
xor edx, edx
mov dl, bl
imul edx
xor edx, edx
mov dl, byte [edi]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [edi], al
mov eax, dword [ebp - 0xc]
mov edx, dword [edi]
mov dword [eax + esi*4], edx
inc esi
dec dword [ebp - 0x98]
jne 0x4af912
mov eax, dword [ebp - 0xac]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0xb0]
xor edx, edx
call fcn.00528eb0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x4afa39
jmp 0x4afa27
push 0xcc0020
mov eax, dword [ebp - 0xac]
push eax
mov eax, dword [ebp - 0xb0]
push eax
mov eax, dword [ebp - 4]
call fcn.004284c4
call fcn.00423b38
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0xb0]
push eax
mov eax, dword [ebp - 4]
call fcn.004284c4
call fcn.00423b38
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xa4]
dec eax
sub eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x8c]
jg 0x4af9d4
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0xa4]
jge 0x4afa9a
push 0xcc0020
mov eax, dword [ebp - 0xac]
push eax
mov eax, dword [ebp - 0xb0]
push eax
mov eax, dword [ebp - 4]
call fcn.004284c4
call fcn.00423b38
push eax
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0xb0]
push eax
mov eax, dword [ebp - 4]
call fcn.004284c4
call fcn.00423b38
push eax
call sub.gdi32.dll_BitBlt
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10