Function at 0x4a35d4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff38
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0xc4]
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 - 0xb4]
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 - 0xb4]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
jne 0x4a4017
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, dword [ebp - 0xac]
jge 0x4a3634
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
cmp eax, dword [ebp - 0xa8]
jge 0x4a3652
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xb4], 0
jge 0x4a3663
xor eax, eax
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb0], 0
jge 0x4a3674
xor eax, eax
mov dword [ebp - 0xb0], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x71], al
mov al, byte [ebp + 8]
mov byte [ebp - 0x79], al
lea eax, [ebp - 0xc4]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
je 0x4a36b3
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0xc4]
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.0041b3c4
lea eax, [ebp - 0xc4]
mov dl, 1
call fcn.0055b988
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0xc4]
mov dl, 1
call fcn.0055b99c
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
mov edx, dword [ebp - 0xc0]
add edx, dword [ebp - 0x38]
cmp eax, edx
jge 0x4a36fb
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
sub eax, dword [ebp - 0xc0]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
mov edx, dword [ebp - 0xc4]
add edx, dword [ebp - 0x34]
cmp eax, edx
jge 0x4a3723
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
sub eax, dword [ebp - 0xc4]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x38], 0
jl 0x4a4017
cmp dword [ebp - 0x34], 0
jl 0x4a4017
mov eax, dword [ebp - 8]
call fcn.00405b40
dec eax
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jl 0x4a4017
mov eax, dword [ebp - 8]
mov eax, dword [eax + 9]
sub eax, 1
jb 0x4a3763
je 0x4a3aee
jmp 0x4a4017
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x80]
test eax, eax
jl 0x4a4017
inc eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x20]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax + 4]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x20]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax + 8]
mov dword [ebp - 0x84], eax
mov edi, dword [ebp - 0x8c]
lea eax, [ebp - 0xb4]
xor edx, edx
call fcn.0055b99c
imul dword [ebp - 0x84]
mov ecx, 0x64
cdq
idiv ecx
add eax, edi
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x80]
jne 0x4a3816
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebp - 0xa8]
call fcn.00430c8c
dec eax
mov dword [ebp - 0x8c], eax
jmp 0x4a383f
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebp - 0xa8]
call fcn.00430c8c
mov edx, eax
dec edx
mov eax, dword [ebp - 0x8c]
call fcn.00430c8c
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
sub eax, edi
test eax, eax
jle 0x4a3ada
xor eax, eax
mov al, byte [ebp - 0x6c]
mov dword [ebp - 0xc8], eax
fild dword [ebp - 0xc8]
fstp dword [ebp - 0x3c]
wait
xor eax, eax
mov al, byte [ebp - 0x6b]
mov dword [ebp - 0xc8], eax
fild dword [ebp - 0xc8]
fstp dword [ebp - 0x40]
wait
xor eax, eax
mov al, byte [ebp - 0x6a]
mov dword [ebp - 0xc8], eax
fild dword [ebp - 0xc8]
fstp dword [ebp - 0x44]
wait
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x80]
je 0x4a38a7
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
cmp eax, dword [ebp - 0x8c]
jge 0x4a38c4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
dec edx
mov eax, dword [ebp - 0xa8]
dec eax
call fcn.00430c8c
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
sub eax, edi
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4a4017
xor eax, eax
mov al, byte [ebp - 0x70]
xor edx, edx
mov dl, byte [ebp - 0x6c]
sub eax, edx
mov dword [ebp - 0xc8], eax
fild dword [ebp - 0xc8]
fild dword [ebp - 0x30]
call fcn.00402e90
fstp qword [ebp - 0x50]
wait
xor eax, eax
mov al, byte [ebp - 0x6f]
xor edx, edx
mov dl, byte [ebp - 0x6b]
sub eax, edx
mov dword [ebp - 0xc8], eax
fild dword [ebp - 0xc8]
fild dword [ebp - 0x30]
call fcn.00402e90
fstp qword [ebp - 0x58]
wait
xor eax, eax
mov al, byte [ebp - 0x6e]
xor edx, edx
mov dl, byte [ebp - 0x6a]
sub eax, edx
mov dword [ebp - 0xc8], eax
fild dword [ebp - 0xc8]
fild dword [ebp - 0x30]
call fcn.00402e90
fstp qword [ebp - 0x60]
wait
lea ecx, [ebp - 0x94]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00503a04
test al, al
je 0x4a4017
lea ecx, [ebp - 0x98]
lea edx, [ebp - 0x18]
mov eax, dword [ebp + 0x14]
call fcn.00503a04
test al, al
je 0x4a4017
mov eax, dword [ebp - 0x8c]
sub eax, edi
jl 0x4a3ada
inc eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x90], edi
fld dword [ebp - 0x3c]
call fcn.00402c50
mov byte [ebp - 0x72], al
fld dword [ebp - 0x40]
call fcn.00402c50
mov byte [ebp - 0x73], al
fld dword [ebp - 0x44]
call fcn.00402c50
mov byte [ebp - 0x74], al
mov eax, dword [ebp - 0x94]
imul dword [ebp - 0x90]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x90]
cdq
idiv dword [ebp - 0x38]
add edx, dword [ebp - 0xc0]
imul edx, dword [ebp - 0x98]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov esi, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xac]
dec eax
sub eax, esi
jl 0x4a3aaa
inc eax
mov dword [ebp - 0xa4], eax
mov eax, esi
cdq
idiv dword [ebp - 0x34]
add edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x14]
lea eax, [eax + esi*4]
xor ecx, ecx
mov cl, byte [ebp - 0x76]
mov dl, byte [ebp - 0x72]
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 - 0x77]
mov dl, byte [ebp - 0x73]
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 - 0x78]
xor ecx, ecx
mov cl, byte [ebp - 0x74]
sub edx, ecx
xor ecx, ecx
mov cl, bl
imul edx, ecx
xor ecx, ecx
mov cl, byte [ebp - 0x74]
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 0x4a39fe
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 - 0x90]
dec dword [ebp - 0xa0]
jne 0x4a3992
inc dword [ebp - 0x20]
dec dword [ebp - 0x9c]
jne 0x4a3788
jmp 0x4a4017
lea ecx, [ebp - 0x94]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00503a04
test al, al
je 0x4a4017
lea ecx, [ebp - 0x98]
lea edx, [ebp - 0x18]
mov eax, dword [ebp + 0x14]
call fcn.00503a04
test al, al
je 0x4a4017
lea eax, [ebp - 0xb4]
xor edx, edx
call fcn.0055b988
mov dword [ebp - 0xc8], eax
fild dword [ebp - 0xc8]
fld dword [0x4a4020]
call fcn.00402e90
fstp qword [ebp - 0x68]
wait
mov eax, dword [ebp - 0x94]
imul dword [ebp - 0xb0]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x80]
test eax, eax
jl 0x4a3d52
inc eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x20]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax + 4]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x20]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax + 8]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], edi
fild dword [ebp - 0x84]
fmul qword [ebp - 0x68]
fild dword [ebp - 0x88]
faddp st(1)
call fcn.00402c50
mov edi, eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x80]
jne 0x4a3bf8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [ebp - 0xac]
call fcn.00430c8c
mov edi, eax
dec edi
jmp 0x4a3c19
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [ebp - 0xac]
call fcn.00430c8c
mov edx, eax
dec edx
mov eax, edi
call fcn.00430c8c
mov edi, eax
mov eax, edi
sub eax, dword [ebp - 0x88]
test eax, eax
jle 0x4a3d43
mov eax, edi
sub eax, dword [ebp - 0x88]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov al, byte [ebp - 0x6c]
mov dword [ebp - 0xc8], eax
fild dword [ebp - 0xc8]
fstp dword [ebp - 0x3c]
wait
xor eax, eax
mov al, byte [ebp - 0x6b]
mov dword [ebp - 0xc8], eax
fild dword [ebp - 0xc8]
fstp dword [ebp - 0x40]
wait
xor eax, eax
mov al, byte [ebp - 0x6a]
mov dword [ebp - 0xc8], eax
fild dword [ebp - 0xc8]
fstp dword [ebp - 0x44]
wait
xor eax, eax
mov al, byte [ebp - 0x70]
xor edx, edx
mov dl, byte [ebp - 0x6c]
sub eax, edx
mov dword [ebp - 0xc8], eax
fild dword [ebp - 0xc8]
fild dword [ebp - 0x2c]
call fcn.00402e90
fstp qword [ebp - 0x50]
wait
xor eax, eax
mov al, byte [ebp - 0x6f]
xor edx, edx
mov dl, byte [ebp - 0x6b]
sub eax, edx
mov dword [ebp - 0xc8], eax
fild dword [ebp - 0xc8]
fild dword [ebp - 0x2c]
call fcn.00402e90
fstp qword [ebp - 0x58]
wait
xor eax, eax
mov al, byte [ebp - 0x6e]
xor edx, edx
mov dl, byte [ebp - 0x6a]
sub eax, edx
mov dword [ebp - 0xc8], eax
fild dword [ebp - 0xc8]
fild dword [ebp - 0x2c]
call fcn.00402e90
fstp qword [ebp - 0x60]
wait
mov esi, dword [ebp - 0x88]
mov eax, edi
sub eax, esi
jl 0x4a3d43
inc eax
mov dword [ebp - 0xa0], eax
fld dword [ebp - 0x3c]
call fcn.00402c50
mov byte [ebp - 0x72], al
fld dword [ebp - 0x40]
call fcn.00402c50
mov byte [ebp - 0x73], al
fld dword [ebp - 0x44]
call fcn.00402c50
mov byte [ebp - 0x74], al
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x74]
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 - 0xa0]
jne 0x4a3cf2
inc dword [ebp - 0x20]
dec dword [ebp - 0x9c]
jne 0x4a3b79
lea eax, [ebp - 0xb4]
mov dl, 1
call fcn.0055b99c
mov edx, eax
mov eax, dword [ebp - 0x38]
call fcn.00430c8c
dec eax
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0xb0]
inc edi
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0xb0]
sub eax, edi
jl 0x4a3e7b
inc eax
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x94]
imul edi
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, edi
cdq
idiv dword [ebp - 0x38]
add edx, dword [ebp - 0xc0]
imul edx, dword [ebp - 0x98]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov esi, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xac]
dec eax
sub eax, esi
jl 0x4a3e6e
inc eax
mov dword [ebp - 0xa0], eax
mov eax, esi
cdq
idiv dword [ebp - 0x34]
add edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x14]
lea eax, [eax + esi*4]
xor edx, edx
mov dl, byte [ebp - 0x76]
xor ecx, ecx
mov cl, byte [ebp - 0x72]
sub edx, ecx
xor ecx, ecx
mov cl, bl
imul edx, ecx
xor ecx, ecx
mov cl, byte [ebp - 0x72]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax + 2], dl
xor edx, edx
mov dl, byte [ebp - 0x77]
xor ecx, ecx
mov cl, byte [ebp - 0x73]
sub edx, ecx
xor ecx, ecx
mov cl, bl
imul edx, ecx
xor ecx, ecx
mov cl, byte [ebp - 0x73]
shl ecx, 8
add edx, ecx
shr edx, 8
mov byte [eax + 1], dl
xor edx, edx
mov dl, byte [ebp - 0x78]
xor ecx, ecx
mov cl, byte [ebp - 0x74]
sub edx, ecx
xor ecx, ecx
mov cl, bl
imul edx, ecx
xor ecx, ecx
mov cl, byte [ebp - 0x74]
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 0x4a3dcf
inc edi
dec dword [ebp - 0x9c]
jne 0x4a3d8c
mov edi, dword [ebp - 0xb0]
mov eax, edi
cdq
idiv dword [ebp - 0x38]
add edx, dword [ebp - 0xc0]
imul edx, dword [ebp - 0x98]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov esi, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xac]
dec eax
sub eax, esi
jl 0x4a3f50
inc eax
mov dword [ebp - 0x9c], eax
mov eax, esi
cdq
idiv dword [ebp - 0x34]
add edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x74], eax
xor eax, eax
mov al, byte [ebp - 0x76]
xor edx, edx
mov dl, byte [ebp - 0x72]
sub eax, edx
xor edx, edx
mov dl, bl
imul edx
xor edx, edx
mov dl, byte [ebp - 0x72]
shl edx, 8
add eax, edx
shr eax, 8
mov byte [ebp - 0x72], al
xor eax, eax
mov al, byte [ebp - 0x77]
xor edx, edx
mov dl, byte [ebp - 0x73]
sub eax, edx
xor edx, edx
mov dl, bl
imul edx
xor edx, edx
mov dl, byte [ebp - 0x73]
shl edx, 8
add eax, edx
shr eax, 8
mov byte [ebp - 0x73], al
xor eax, eax
mov al, byte [ebp - 0x78]
xor edx, edx
mov dl, byte [ebp - 0x74]
sub eax, edx
xor edx, edx
mov dl, bl
imul edx
xor edx, edx
mov dl, byte [ebp - 0x74]
shl edx, 8
add eax, edx
shr eax, 8
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 - 0x9c]
jne 0x4a3eb6
mov edi, dword [ebp - 0xb0]
add edi, dword [ebp - 0x28]
lea eax, [ebp - 0xb4]
xor edx, edx
call fcn.0055b988
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jle 0x4a3fc6
jmp 0x4a3fb8
push 0xcc0020
mov eax, dword [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0xb4]
push eax
mov eax, dword [ebp - 4]
call fcn.0042ea4c
call fcn.0042a2ac
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
push edi
mov eax, dword [ebp - 0xb4]
push eax
mov eax, dword [ebp - 4]
call fcn.0042ea4c
call fcn.0042a2ac
push eax
call sub.gdi32.dll_BitBlt
add edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0xa8]
dec eax
sub eax, dword [ebp - 0x28]
cmp edi, eax
jl 0x4a3f71
cmp edi, dword [ebp - 0xa8]
jge 0x4a4017
push 0xcc0020
mov eax, dword [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0xb4]
push eax
mov eax, dword [ebp - 4]
call fcn.0042ea4c
call fcn.0042a2ac
push eax
mov eax, dword [ebp - 0xa8]
sub eax, edi
push eax
mov eax, dword [ebp - 0x24]
push eax
push edi
mov eax, dword [ebp - 0xb4]
push eax
mov eax, dword [ebp - 4]
call fcn.0042ea4c
call fcn.0042a2ac
push eax
call sub.gdi32.dll_BitBlt
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10