Function at 0x4ac78c
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 eax, [ebp - 0xb0]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
jne 0x4ad1a8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, dword [ebp - 0xa8]
jge 0x4ac7ec
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 0x4ac80a
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xb0], 0
jge 0x4ac81b
xor eax, eax
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xac], 0
jge 0x4ac82c
xor eax, eax
mov dword [ebp - 0xac], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x4d], al
mov al, byte [ebp + 8]
mov byte [ebp - 0x55], al
lea eax, [ebp - 0xc0]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
je 0x4ac856
lea edx, [ebp - 0xc0]
mov eax, dword [ebp + 0x14]
call fcn.0051be8c
lea eax, [ebp - 0xc0]
mov dl, 1
call fcn.0051bfa4
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0xc0]
mov dl, 1
call fcn.0051bfb8
mov dword [ebp - 0x74], 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 - 0x74]
cmp eax, edx
jge 0x4ac89e
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
sub eax, dword [ebp - 0xbc]
mov dword [ebp - 0x74], 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 - 0x70]
cmp eax, edx
jge 0x4ac8c6
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
sub eax, dword [ebp - 0xc0]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x74], 0
jl 0x4ad1a8
cmp dword [ebp - 0x70], 0
jl 0x4ad1a8
mov eax, dword [ebp - 8]
call fcn.0040568c
dec eax
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x4ad1a8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 9]
sub eax, 1
jb 0x4ac90c
je 0x4acc76
jmp 0x4ad1a8
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x8c]
test eax, eax
jl 0x4ad1a8
inc eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x5c]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 8]
mov edx, dword [edx + eax]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 8]
mov edx, dword [edx + eax + 4]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 8]
movzx esi, byte [edx + eax + 8]
mov edi, dword [ebp - 0x94]
lea eax, [ebp - 0xb0]
xor edx, edx
call fcn.0051bfb8
imul esi
mov ecx, 0x64
cdq
idiv ecx
add eax, edi
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x8c]
jne 0x4ac9a7
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebp - 0xa4]
call fcn.0042de18
dec eax
mov dword [ebp - 0x94], eax
jmp 0x4ac9d0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebp - 0xa4]
call fcn.0042de18
mov edx, eax
dec edx
mov eax, dword [ebp - 0x94]
call fcn.0042de18
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
sub eax, edi
test eax, eax
jle 0x4acc62
xor eax, eax
mov al, byte [ebp - 0x18]
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fstp dword [ebp - 0xc]
wait
xor eax, eax
mov al, byte [ebp - 0x17]
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fstp dword [ebp - 0x10]
wait
xor eax, eax
mov al, byte [ebp - 0x16]
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fstp dword [ebp - 0x14]
wait
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x8c]
je 0x4aca3b
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
cmp eax, dword [ebp - 0x94]
jge 0x4aca58
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.0042de18
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
sub eax, edi
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jle 0x4acc62
xor eax, eax
mov al, byte [ebp - 0x1c]
xor edx, edx
mov dl, byte [ebp - 0x18]
sub eax, edx
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fild dword [ebp - 0x6c]
call fcn.00402e70
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 - 0xc4], eax
fild dword [ebp - 0xc4]
fild dword [ebp - 0x6c]
call fcn.00402e70
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 - 0xc4], eax
fild dword [ebp - 0xc4]
fild dword [ebp - 0x6c]
call fcn.00402e70
fstp qword [ebp - 0x38]
wait
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
call fcn.0051cd24
test al, al
je 0x4acc62
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x84]
mov eax, dword [ebp + 0x14]
call fcn.0051cd24
test al, al
je 0x4acc62
mov eax, dword [ebp - 0x94]
sub eax, edi
jl 0x4acc62
inc eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x44], edi
fld dword [ebp - 0xc]
call fcn.00402c30
mov byte [ebp - 0x4e], al
fld dword [ebp - 0x10]
call fcn.00402c30
mov byte [ebp - 0x4f], al
fld dword [ebp - 0x14]
call fcn.00402c30
mov byte [ebp - 0x50], al
mov eax, dword [ebp - 0x48]
imul dword [ebp - 0x44]
add eax, dword [ebp - 0x78]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x44]
cdq
idiv dword [ebp - 0x74]
add edx, dword [ebp - 0xbc]
imul edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x84]
mov dword [ebp - 0x88], edx
mov esi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xa8]
dec eax
sub eax, esi
jl 0x4acc35
inc eax
mov dword [ebp - 0xa0], eax
mov eax, esi
cdq
idiv dword [ebp - 0x70]
add edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x88]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x80]
lea eax, [eax + esi*4]
xor ecx, ecx
mov cl, byte [ebp - 0x52]
mov dl, byte [ebp - 0x4e]
mov edi, edx
and edi, 0xff
sub ecx, edi
mov edi, ebx
and edi, 0xff
imul ecx, edi
and edx, 0xff
shl edx, 8
add ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
xor ecx, ecx
mov cl, byte [ebp - 0x53]
mov dl, byte [ebp - 0x4f]
mov edi, edx
and edi, 0xff
sub ecx, edi
mov edi, ebx
and edi, 0xff
imul ecx, edi
and edx, 0xff
shl edx, 8
add ecx, edx
shr ecx, 8
mov byte [eax + 1], cl
xor edx, edx
mov dl, byte [ebp - 0x54]
xor ecx, ecx
mov cl, byte [ebp - 0x50]
sub edx, ecx
xor ecx, ecx
mov cl, bl
imul edx, ecx
xor ecx, ecx
mov cl, byte [ebp - 0x50]
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 - 0xa0]
jne 0x4acb86
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 - 0x9c]
jne 0x4acb20
inc dword [ebp - 0x5c]
dec dword [ebp - 0x98]
jne 0x4ac934
jmp 0x4ad1a8
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
call fcn.0051cd24
test al, al
je 0x4ad1a8
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x84]
mov eax, dword [ebp + 0x14]
call fcn.0051cd24
test al, al
je 0x4ad1a8
lea eax, [ebp - 0xb0]
xor edx, edx
call fcn.0051bfa4
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fld dword [0x4ad1b4]
call fcn.00402e70
fstp qword [ebp - 0x40]
wait
mov eax, dword [ebp - 0x48]
imul dword [ebp - 0xac]
add eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov edi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0x8c]
test eax, eax
jl 0x4aceda
inc eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x5c]
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 - 0x5c]
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 - 0x5c]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 8]
movzx esi, byte [edx + eax + 8]
mov dword [ebp - 0x90], edi
mov dword [ebp - 0xc4], esi
fild dword [ebp - 0xc4]
fmul qword [ebp - 0x40]
fild dword [ebp - 0x90]
faddp st(1)
call fcn.00402c30
mov edi, eax
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x8c]
jne 0x4acd80
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [ebp - 0xa8]
call fcn.0042de18
mov edi, eax
dec edi
jmp 0x4acda1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [ebp - 0xa8]
call fcn.0042de18
mov edx, eax
dec edx
mov eax, edi
call fcn.0042de18
mov edi, eax
mov eax, edi
sub eax, dword [ebp - 0x90]
test eax, eax
jle 0x4acecb
mov eax, edi
sub eax, dword [ebp - 0x90]
mov dword [ebp - 0x68], eax
xor eax, eax
mov al, byte [ebp - 0x18]
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fstp dword [ebp - 0xc]
wait
xor eax, eax
mov al, byte [ebp - 0x17]
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
fstp dword [ebp - 0x10]
wait
xor eax, eax
mov al, byte [ebp - 0x16]
mov dword [ebp - 0xc4], eax
fild dword [ebp - 0xc4]
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 - 0xc4], eax
fild dword [ebp - 0xc4]
fild dword [ebp - 0x68]
call fcn.00402e70
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 - 0xc4], eax
fild dword [ebp - 0xc4]
fild dword [ebp - 0x68]
call fcn.00402e70
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 - 0xc4], eax
fild dword [ebp - 0xc4]
fild dword [ebp - 0x68]
call fcn.00402e70
fstp qword [ebp - 0x38]
wait
mov esi, dword [ebp - 0x90]
mov eax, edi
sub eax, esi
jl 0x4acecb
inc eax
mov dword [ebp - 0x9c], eax
fld dword [ebp - 0xc]
call fcn.00402c30
mov byte [ebp - 0x4e], al
fld dword [ebp - 0x10]
call fcn.00402c30
mov byte [ebp - 0x4f], al
fld dword [ebp - 0x14]
call fcn.00402c30
mov byte [ebp - 0x50], al
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x50]
mov dword [eax + esi*4], edx
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 - 0x9c]
jne 0x4ace7a
inc dword [ebp - 0x5c]
dec dword [ebp - 0x98]
jne 0x4accfe
lea eax, [ebp - 0xb0]
mov dl, 1
call fcn.0051bfb8
mov edx, eax
mov eax, dword [ebp - 0x74]
call fcn.0042de18
dec eax
mov dword [ebp - 0x64], eax
mov edi, dword [ebp - 0xac]
inc edi
mov eax, dword [ebp - 0x64]
add eax, dword [ebp - 0xac]
sub eax, edi
jl 0x4ad006
inc eax
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x48]
imul edi
add eax, dword [ebp - 0x78]
mov dword [ebp - 0x80], eax
mov eax, edi
cdq
idiv dword [ebp - 0x74]
add edx, dword [ebp - 0xbc]
imul edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x84]
mov dword [ebp - 0x88], edx
mov esi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xa8]
dec eax
sub eax, esi
jl 0x4acff9
inc eax
mov dword [ebp - 0x9c], eax
mov eax, esi
cdq
idiv dword [ebp - 0x70]
add edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x88]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x80]
lea eax, [eax + esi*4]
xor edx, edx
mov dl, byte [ebp - 0x52]
xor ecx, ecx
mov cl, byte [ebp - 0x4e]
sub edx, ecx
xor ecx, ecx
mov cl, bl
imul edx, ecx
xor ecx, ecx
mov cl, byte [ebp - 0x4e]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax + 2], dl
xor edx, edx
mov dl, byte [ebp - 0x53]
xor ecx, ecx
mov cl, byte [ebp - 0x4f]
sub edx, ecx
xor ecx, ecx
mov cl, bl
imul edx, ecx
xor ecx, ecx
mov cl, byte [ebp - 0x4f]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax + 1], dl
xor edx, edx
mov dl, byte [ebp - 0x54]
xor ecx, ecx
mov cl, byte [ebp - 0x50]
sub edx, ecx
xor ecx, ecx
mov cl, bl
imul edx, ecx
xor ecx, ecx
mov cl, byte [ebp - 0x50]
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 - 0x9c]
jne 0x4acf57
inc edi
dec dword [ebp - 0x98]
jne 0x4acf14
mov edi, dword [ebp - 0xac]
mov eax, edi
cdq
idiv dword [ebp - 0x74]
add edx, dword [ebp - 0xbc]
imul edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x84]
mov dword [ebp - 0x88], edx
mov esi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xa8]
dec eax
sub eax, esi
jl 0x4ad0e1
inc eax
mov dword [ebp - 0x98], eax
mov eax, esi
cdq
idiv dword [ebp - 0x70]
add edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x88]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x50], eax
xor eax, eax
mov al, byte [ebp - 0x52]
xor edx, edx
mov dl, byte [ebp - 0x4e]
sub eax, edx
xor edx, edx
mov dl, bl
imul edx
xor edx, edx
mov dl, byte [ebp - 0x4e]
shl edx, 8
add eax, edx
shr eax, 8
mov byte [ebp - 0x4e], al
xor eax, eax
mov al, byte [ebp - 0x53]
xor edx, edx
mov dl, byte [ebp - 0x4f]
sub eax, edx
xor edx, edx
mov dl, bl
imul edx
xor edx, edx
mov dl, byte [ebp - 0x4f]
shl edx, 8
add eax, edx
shr eax, 8
mov byte [ebp - 0x4f], al
xor eax, eax
mov al, byte [ebp - 0x54]
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 [ebp - 0x50], al
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x50]
mov dword [eax + esi*4], edx
inc esi
dec dword [ebp - 0x98]
jne 0x4ad044
mov edi, dword [ebp - 0xac]
add edi, dword [ebp - 0x64]
lea eax, [ebp - 0xb0]
xor edx, edx
call fcn.0051bfa4
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jle 0x4ad157
jmp 0x4ad149
push 0xcc0020
mov eax, dword [ebp - 0xac]
push eax
mov eax, dword [ebp - 0xb0]
push eax
mov eax, dword [ebp - 4]
call fcn.0042bbfc
call fcn.00427080
push eax
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x60]
push eax
push edi
mov eax, dword [ebp - 0xb0]
push eax
mov eax, dword [ebp - 4]
call fcn.0042bbfc
call fcn.00427080
push eax
call sub.gdi32.dll_BitBlt
add edi, dword [ebp - 0x64]
mov eax, dword [ebp - 0xa4]
dec eax
sub eax, dword [ebp - 0x64]
cmp edi, eax
jl 0x4ad102
cmp edi, dword [ebp - 0xa4]
jge 0x4ad1a8
push 0xcc0020
mov eax, dword [ebp - 0xac]
push eax
mov eax, dword [ebp - 0xb0]
push eax
mov eax, dword [ebp - 4]
call fcn.0042bbfc
call fcn.00427080
push eax
mov eax, dword [ebp - 0xa4]
sub eax, edi
push eax
mov eax, dword [ebp - 0x60]
push eax
push edi
mov eax, dword [ebp - 0xb0]
push eax
mov eax, dword [ebp - 4]
call fcn.0042bbfc
call fcn.00427080
push eax
call sub.gdi32.dll_BitBlt
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10