Function at 0x53de94
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff34
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0xc8]
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 - 0xb8]
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 + 8]
lea edi, [ebp - 0x74]
lea eax, [ebp - 0xb8]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
jne 0x53e8ca
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
cmp eax, dword [ebp - 0xb0]
jge 0x53def7
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
cmp eax, dword [ebp - 0xac]
jge 0x53df15
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xb8], 0
jge 0x53df26
xor eax, eax
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb4], 0
jge 0x53df37
xor eax, eax
mov dword [ebp - 0xb4], eax
mov byte [edi + 3], 0xff
mov byte [ebp - 0x79], 0xff
lea eax, [ebp - 0xc8]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
je 0x53df72
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00434c3c
lea eax, [ebp - 0xc8]
mov dl, 1
call fcn.005b681c
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0xc8]
mov dl, 1
call fcn.005b6830
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x24]
dec eax
mov edx, dword [ebp - 0xc4]
add edx, dword [ebp - 0x38]
cmp eax, edx
jge 0x53dfba
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x24]
dec eax
sub eax, dword [ebp - 0xc4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
mov edx, dword [ebp - 0xc8]
add edx, dword [ebp - 0x34]
cmp eax, edx
jge 0x53dfe2
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
sub eax, dword [ebp - 0xc8]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x38], 0
jl 0x53e8ca
cmp dword [ebp - 0x34], 0
jl 0x53e8ca
mov eax, dword [ebp - 8]
call fcn.00408af4
dec eax
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jl 0x53e8ca
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
sub eax, 1
jb 0x53e028
je 0x53e398
jmp 0x53e8ca
mov byte [ebp - 0x7d], 0xff
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x84]
test eax, eax
jl 0x53e8ca
inc eax
mov dword [ebp - 0xa0], 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 - 0x6c], 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 - 0x70], 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 - 0x88], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0xb8]
xor edx, edx
call fcn.005b6830
imul dword [ebp - 0x88]
mov ecx, 0x64
cdq
idiv ecx
add eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x84]
jne 0x53e0e3
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
mov eax, dword [ebp - 0xac]
call fcn.0040eb14
dec eax
mov dword [ebp - 0x98], eax
jmp 0x53e10c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
mov eax, dword [ebp - 0xac]
call fcn.0040eb14
mov edx, eax
dec edx
mov eax, dword [ebp - 0x98]
call fcn.0040eb14
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x94]
test eax, eax
jle 0x53e384
movzx eax, byte [ebp - 0x6c]
mov dword [ebp - 0xcc], eax
fild dword [ebp - 0xcc]
fstp dword [ebp - 0x3c]
wait
movzx eax, byte [ebp - 0x6b]
mov dword [ebp - 0xcc], eax
fild dword [ebp - 0xcc]
fstp dword [ebp - 0x40]
wait
movzx eax, byte [ebp - 0x6a]
mov dword [ebp - 0xcc], eax
fild dword [ebp - 0xcc]
fstp dword [ebp - 0x44]
wait
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x84]
je 0x53e178
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
dec eax
cmp eax, dword [ebp - 0x98]
jge 0x53e195
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
dec edx
mov eax, dword [ebp - 0xac]
dec eax
call fcn.0040eb14
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x94]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x53e8ca
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
lea eax, [ebp - 0xb8]
xor edx, edx
call fcn.005b681c
add eax, dword [ebp - 0xb8]
pop edx
call fcn.0040eb14
dec eax
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebp - 0x70]
movzx edx, byte [ebp - 0x6c]
sub eax, edx
mov dword [ebp - 0xcc], eax
fild dword [ebp - 0xcc]
fild dword [ebp - 0x28]
call fcn.004048d8
fstp qword [ebp - 0x50]
wait
movzx eax, byte [ebp - 0x6f]
movzx edx, byte [ebp - 0x6b]
sub eax, edx
mov dword [ebp - 0xcc], eax
fild dword [ebp - 0xcc]
fild dword [ebp - 0x28]
call fcn.004048d8
fstp qword [ebp - 0x58]
wait
movzx eax, byte [ebp - 0x6e]
movzx edx, byte [ebp - 0x6a]
sub eax, edx
mov dword [ebp - 0xcc], eax
fild dword [ebp - 0xcc]
fild dword [ebp - 0x28]
call fcn.004048d8
fstp qword [ebp - 0x60]
wait
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x98]
sub edx, eax
jl 0x53e384
inc edx
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0x9c], eax
fld dword [ebp - 0x3c]
call fcn.0040474c
mov byte [edi + 2], al
fld dword [ebp - 0x40]
call fcn.0040474c
mov byte [edi + 1], al
fld dword [ebp - 0x44]
call fcn.0040474c
mov byte [edi], al
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 4]
call fcn.0045f468
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x9c]
cdq
idiv dword [ebp - 0x38]
add edx, dword [ebp - 0xc4]
mov eax, dword [ebp + 0x10]
call fcn.0045f468
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xb0]
dec eax
sub eax, esi
jl 0x53e354
inc eax
mov dword [ebp - 0xa8], eax
mov eax, esi
cdq
idiv dword [ebp - 0x34]
add edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x78], eax
movzx edx, byte [ebp - 0x76]
movzx eax, byte [edi + 2]
movzx ecx, al
sub edx, ecx
movzx ecx, bl
imul edx, ecx
movzx eax, al
shl eax, 8
add edx, eax
shr edx, 8
and dl, 0xff
mov byte [ebp - 0x7a], dl
movzx edx, byte [ebp - 0x77]
movzx eax, byte [edi + 1]
movzx ecx, al
sub edx, ecx
movzx ecx, bl
imul edx, ecx
movzx eax, al
shl eax, 8
add edx, eax
shr edx, 8
and dl, 0xff
mov byte [ebp - 0x7b], dl
movzx eax, byte [ebp - 0x78]
movzx edx, byte [edi]
sub eax, edx
movzx edx, bl
imul edx
movzx edx, byte [edi]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [ebp - 0x7c], al
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x7c]
mov dword [eax + esi*4], edx
inc esi
dec dword [ebp - 0xa8]
jne 0x53e2c3
fld dword [ebp - 0x3c]
fadd qword [ebp - 0x50]
fstp dword [ebp - 0x3c]
wait
fld dword [ebp - 0x40]
fadd qword [ebp - 0x58]
fstp dword [ebp - 0x40]
wait
fld dword [ebp - 0x44]
fadd qword [ebp - 0x60]
fstp dword [ebp - 0x44]
wait
inc dword [ebp - 0x9c]
dec dword [ebp - 0xa4]
jne 0x53e25b
inc dword [ebp - 0x18]
dec dword [ebp - 0xa0]
jne 0x53e054
jmp 0x53e8ca
lea eax, [ebp - 0xb8]
xor edx, edx
call fcn.005b681c
mov dword [ebp - 0xcc], eax
fild dword [ebp - 0xcc]
fld dword [0x53e8d4]
call fcn.004048d8
fstp qword [ebp - 0x68]
wait
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 4]
call fcn.0045f468
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x84]
test eax, eax
jl 0x53e5e0
inc eax
mov dword [ebp - 0xa0], 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 - 0x6c], 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 - 0x70], 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 - 0x88], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x88]
fmul qword [ebp - 0x68]
fild dword [ebp - 0x8c]
faddp st(1)
call fcn.0040474c
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x84]
jne 0x53e47d
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
mov eax, dword [ebp - 0xb0]
call fcn.0040eb14
dec eax
mov dword [ebp - 0x90], eax
jmp 0x53e4a6
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
mov eax, dword [ebp - 0xb0]
call fcn.0040eb14
mov edx, eax
dec edx
mov eax, dword [ebp - 0x90]
call fcn.0040eb14
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp - 0x8c]
test eax, eax
jle 0x53e5d1
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp - 0x8c]
mov dword [ebp - 0x24], eax
movzx eax, byte [ebp - 0x6c]
mov dword [ebp - 0xcc], eax
fild dword [ebp - 0xcc]
fstp dword [ebp - 0x3c]
wait
movzx eax, byte [ebp - 0x6b]
mov dword [ebp - 0xcc], eax
fild dword [ebp - 0xcc]
fstp dword [ebp - 0x40]
wait
movzx eax, byte [ebp - 0x6a]
mov dword [ebp - 0xcc], eax
fild dword [ebp - 0xcc]
fstp dword [ebp - 0x44]
wait
movzx eax, byte [ebp - 0x70]
movzx edx, byte [ebp - 0x6c]
sub eax, edx
mov dword [ebp - 0xcc], eax
fild dword [ebp - 0xcc]
fild dword [ebp - 0x24]
call fcn.004048d8
fstp qword [ebp - 0x50]
wait
movzx eax, byte [ebp - 0x6f]
movzx edx, byte [ebp - 0x6b]
sub eax, edx
mov dword [ebp - 0xcc], eax
fild dword [ebp - 0xcc]
fild dword [ebp - 0x24]
call fcn.004048d8
fstp qword [ebp - 0x58]
wait
movzx eax, byte [ebp - 0x6e]
movzx edx, byte [ebp - 0x6a]
sub eax, edx
mov dword [ebp - 0xcc], eax
fild dword [ebp - 0xcc]
fild dword [ebp - 0x24]
call fcn.004048d8
fstp qword [ebp - 0x60]
wait
mov esi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x90]
sub eax, esi
jl 0x53e5d1
inc eax
mov dword [ebp - 0xa4], eax
fld dword [ebp - 0x3c]
call fcn.0040474c
mov byte [edi + 2], al
fld dword [ebp - 0x40]
call fcn.0040474c
mov byte [edi + 1], al
fld dword [ebp - 0x44]
call fcn.0040474c
mov byte [edi], al
mov eax, dword [ebp - 0xc]
mov edx, dword [edi]
mov dword [eax + esi*4], edx
fld dword [ebp - 0x3c]
fadd qword [ebp - 0x50]
fstp dword [ebp - 0x3c]
wait
fld dword [ebp - 0x40]
fadd qword [ebp - 0x58]
fstp dword [ebp - 0x40]
wait
fld dword [ebp - 0x44]
fadd qword [ebp - 0x60]
fstp dword [ebp - 0x44]
wait
inc esi
dec dword [ebp - 0xa4]
jne 0x53e582
inc dword [ebp - 0x18]
dec dword [ebp - 0xa0]
jne 0x53e3f9
lea eax, [ebp - 0xb8]
mov dl, 1
call fcn.005b6830
mov edx, eax
mov eax, dword [ebp - 0x38]
call fcn.0040eb14
dec eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xb4]
inc eax
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0xb4]
sub edx, eax
jl 0x53e709
inc edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 4]
call fcn.0045f468
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x94]
cdq
idiv dword [ebp - 0x38]
add edx, dword [ebp - 0xc4]
mov eax, dword [ebp + 0x10]
call fcn.0045f468
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xb0]
dec eax
sub eax, esi
jl 0x53e6f7
inc eax
mov dword [ebp - 0xa4], eax
mov eax, esi
cdq
idiv dword [ebp - 0x34]
add edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
mov dword [edi], eax
movzx edx, byte [ebp - 0x76]
movzx ecx, byte [edi + 2]
sub edx, ecx
movzx eax, bl
imul edx, eax
movzx ecx, byte [edi + 2]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [edi + 2], dl
movzx edx, byte [ebp - 0x77]
movzx ecx, byte [edi + 1]
sub edx, ecx
imul edx, eax
movzx ecx, byte [edi + 1]
shl ecx, 8
add edx, ecx
shr edx, 8
and dl, 0xff
mov byte [edi + 1], dl
movzx edx, byte [ebp - 0x78]
movzx ecx, byte [edi]
sub edx, ecx
imul edx, eax
movzx eax, 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 - 0xa4]
jne 0x53e668
inc dword [ebp - 0x94]
dec dword [ebp - 0xa0]
jne 0x53e620
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
cdq
idiv dword [ebp - 0x38]
add edx, dword [ebp - 0xc4]
mov eax, dword [ebp + 0x10]
call fcn.0045f468
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xb0]
dec eax
sub eax, esi
jl 0x53e7db
inc eax
mov dword [ebp - 0xa0], eax
mov eax, esi
cdq
idiv dword [ebp - 0x34]
add edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
mov dword [edi], eax
movzx eax, byte [ebp - 0x76]
movzx edx, byte [edi + 2]
sub eax, edx
movzx edx, bl
imul edx
movzx edx, byte [edi + 2]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [edi + 2], al
movzx eax, byte [ebp - 0x77]
movzx edx, byte [edi + 1]
sub eax, edx
movzx edx, bl
imul edx
movzx edx, byte [edi + 1]
shl edx, 8
add eax, edx
shr eax, 8
and al, 0xff
mov byte [edi + 1], al
movzx eax, byte [ebp - 0x78]
movzx edx, byte [edi]
sub eax, edx
movzx edx, bl
imul edx
movzx edx, 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 - 0xa0]
jne 0x53e74c
mov eax, dword [ebp - 0xb4]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0xb8]
xor edx, edx
call fcn.005b681c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x53e867
jmp 0x53e855
push 0xcc0020
mov eax, dword [ebp - 0xb4]
push eax
mov eax, dword [ebp - 0xb8]
push eax
mov eax, dword [ebp - 4]
call fcn.0045f2e4
call fcn.00459a4c
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x94]
push eax
mov eax, dword [ebp - 0xb8]
push eax
mov eax, dword [ebp - 4]
call fcn.0045f2e4
call fcn.00459a4c
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xac]
dec eax
sub eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x94]
jg 0x53e802
mov eax, dword [ebp - 0xac]
dec eax
cmp eax, dword [ebp - 0x94]
jle 0x53e8ca
push 0xcc0020
mov eax, dword [ebp - 0xb4]
push eax
mov eax, dword [ebp - 0xb8]
push eax
mov eax, dword [ebp - 4]
call fcn.0045f2e4
call fcn.00459a4c
push eax
mov eax, dword [ebp - 0xac]
dec eax
sub eax, dword [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x94]
push eax
mov eax, dword [ebp - 0xb8]
push eax
mov eax, dword [ebp - 4]
call fcn.0045f2e4
call fcn.00459a4c
push eax
call sub.gdi32.dll_BitBlt
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc