Function at 0x4cc9b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
mov eax, 0x4ea90c
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
call fcn.0049c448
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0xb58]
cmp ecx, dword [eax + 0xb54]
jne 0x4cc9eb
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x4cce58
lea ecx, [ebp - 0x64]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call sub.USER32.DLL_GetClientRect
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp + 8]
push dword [eax + 0xb60]
mov eax, dword [ebp - 0x50]
pop edx
mov ecx, edx
xor edx, edx
div ecx
mov edi, eax
test edi, edi
jne 0x4cca35
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb5c]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x4cce58
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0xb5c]
mov dword [edx + 0xb64], eax
xor edx, edx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xb5c]
mov eax, ecx
div edi
test al, 1
mov eax, ecx
sete bl
xor edx, edx
mov ecx, dword [ebp + 8]
div edi
and ebx, 1
mov eax, dword [ebp + 0xc]
imul edx, dword [ecx + 0xb60]
mov edi, edx
push eax
call sub.USER32.DLL_GetDC
mov dword [ebp - 0x30], eax
mov edx, esi
movzx eax, si
xor ecx, ecx
mov cl, dl
xor edx, edx
sar eax, 8
mov dword [ebp - 0x44], ecx
shr esi, 0x10
mov dl, al
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x48], edx
mov al, cl
mov dword [ebp - 0x4c], eax
mov eax, dword [0x42e770]
mov dl, 1
call fcn.0043045c
mov esi, eax
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.004d52e8
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xb5c]
mov edx, eax
mov ecx, eax
shr edx, 0x18
shr ecx, 0x10
mov byte [ebp - 0x39], dl
shr eax, 8
mov byte [ebp - 0x3a], cl
mov byte [ebp - 0x3b], al
test bl, bl
je 0x4ccba8
xor ebx, ebx
cmp edi, ebx
jbe 0x4ccc76
xor eax, eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], eax
lea edx, [edi + 1]
fild qword [ebp - 0x6c]
xor ecx, ecx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], ecx
xor eax, eax
fild qword [ebp - 0x74]
fdivp st(1)
fstp qword [ebp - 0x38]
mov al, byte [ebp - 0x39]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x38]
fild dword [ebp - 0x44]
faddp st(1)
call fcn.0049f730
mov byte [ebp - 0x3c], al
xor edx, edx
mov dl, byte [ebp - 0x3a]
sub edx, dword [ebp - 0x48]
mov dword [ebp - 0x68], edx
fild dword [ebp - 0x68]
fmul qword [ebp - 0x38]
fild dword [ebp - 0x48]
faddp st(1)
call fcn.0049f730
mov byte [ebp - 0x3d], al
xor edx, edx
mov dl, byte [ebp - 0x3b]
sub edx, dword [ebp - 0x4c]
mov dword [ebp - 0x68], edx
fild dword [ebp - 0x68]
fmul qword [ebp - 0x38]
fild dword [ebp - 0x4c]
faddp st(1)
call fcn.0049f730
xor ecx, ecx
xor edx, edx
mov cl, byte [ebp - 0x3d]
and eax, 0xff
movzx ecx, cx
shl ecx, 8
mov dl, byte [ebp - 0x3c]
shl eax, 0x10
or edx, ecx
or edx, eax
mov eax, edx
mov edx, dword [esi + 0x10]
xchg edx, eax
call fcn.00430028
xor ecx, ecx
mov edx, ebx
mov eax, esi
call fcn.004307d0
mov ecx, dword [ebp - 0x54]
mov edx, ebx
mov eax, esi
call fcn.00430770
inc ebx
cmp edi, ebx
ja 0x4ccae7
jmp 0x4ccc76
xor ebx, ebx
cmp edi, ebx
jbe 0x4ccc76
xor eax, eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], eax
lea edx, [edi + 1]
fild qword [ebp - 0x6c]
xor ecx, ecx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], ecx
xor eax, eax
fild qword [ebp - 0x74]
fdivp st(1)
fstp qword [ebp - 0x38]
mov al, byte [ebp - 0x39]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x38]
fild dword [ebp - 0x44]
faddp st(1)
call fcn.0049f730
mov byte [ebp - 0x3c], al
xor edx, edx
mov dl, byte [ebp - 0x3a]
sub edx, dword [ebp - 0x48]
mov dword [ebp - 0x68], edx
fild dword [ebp - 0x68]
fmul qword [ebp - 0x38]
fild dword [ebp - 0x48]
faddp st(1)
call fcn.0049f730
mov byte [ebp - 0x3d], al
xor edx, edx
mov dl, byte [ebp - 0x3b]
sub edx, dword [ebp - 0x4c]
mov dword [ebp - 0x68], edx
fild dword [ebp - 0x68]
fmul qword [ebp - 0x38]
fild dword [ebp - 0x4c]
faddp st(1)
call fcn.0049f730
xor ecx, ecx
xor edx, edx
mov cl, byte [ebp - 0x3d]
and eax, 0xff
movzx ecx, cx
shl ecx, 8
mov dl, byte [ebp - 0x3c]
shl eax, 0x10
or edx, ecx
or edx, eax
mov eax, edx
mov edx, dword [esi + 0x10]
xchg edx, eax
call fcn.00430028
mov edx, dword [ebp - 0x50]
sub edx, ebx
dec edx
xor ecx, ecx
mov eax, esi
call fcn.004307d0
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
sub edx, ebx
mov eax, esi
dec edx
call fcn.00430770
inc ebx
cmp edi, ebx
ja 0x4ccbb2
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
call sub.USER32.DLL_ReleaseDC
xor eax, eax
xor ecx, ecx
mov al, byte [ebp + 0x18]
mov dword [ebp - 0x44], eax
movzx edx, word [ebp + 0x18]
sar edx, 8
mov cl, dl
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x64]
mov eax, dword [ebp + 0x18]
shr eax, 0x10
xor edx, edx
mov dl, al
mov dword [ebp - 0x4c], edx
push ecx
mov eax, dword [ebp + 0x10]
push eax
call sub.USER32.DLL_GetClientRect
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], edx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0xb54]
mov eax, dword [eax + 0xb5c]
sub eax, ecx
shr eax, 3
imul dword [ebp - 0x50]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0xb58]
sub edx, ecx
shr edx, 3
inc edx
mov ecx, edx
xor edx, edx
div ecx
mov edi, eax
mov eax, dword [ebp - 0x64]
add edi, 5
add eax, edi
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp + 0x10]
push edx
call sub.USER32.DLL_GetDC
mov dword [ebp - 0x30], eax
mov eax, esi
mov edx, dword [ebp - 0x30]
call fcn.004d52e8
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ecx + 0xb58]
mov edx, eax
mov ecx, eax
shr edx, 0x18
shr ecx, 0x10
mov byte [ebp - 0x39], dl
shr eax, 8
mov byte [ebp - 0x3a], cl
mov byte [ebp - 0x3b], al
cmp edi, ebx
jbe 0x4ccdf0
xor eax, eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], eax
lea edx, [edi + 1]
fild qword [ebp - 0x6c]
xor ecx, ecx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], ecx
xor eax, eax
fild qword [ebp - 0x74]
fdivp st(1)
fstp qword [ebp - 0x38]
mov al, byte [ebp - 0x39]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fmul qword [ebp - 0x38]
fild dword [ebp - 0x44]
faddp st(1)
call fcn.0049f730
mov byte [ebp - 0x3c], al
xor edx, edx
mov dl, byte [ebp - 0x3a]
sub edx, dword [ebp - 0x48]
mov dword [ebp - 0x68], edx
fild dword [ebp - 0x68]
fmul qword [ebp - 0x38]
fild dword [ebp - 0x48]
faddp st(1)
call fcn.0049f730
mov byte [ebp - 0x3d], al
xor edx, edx
mov dl, byte [ebp - 0x3b]
sub edx, dword [ebp - 0x4c]
mov dword [ebp - 0x68], edx
fild dword [ebp - 0x68]
fmul qword [ebp - 0x38]
fild dword [ebp - 0x4c]
faddp st(1)
call fcn.0049f730
xor ecx, ecx
xor edx, edx
mov cl, byte [ebp - 0x3d]
and eax, 0xff
movzx ecx, cx
shl ecx, 8
mov dl, byte [ebp - 0x3c]
shl eax, 0x10
or edx, ecx
or edx, eax
mov eax, edx
mov edx, dword [esi + 0x10]
xchg edx, eax
call fcn.00430028
xor ecx, ecx
mov edx, ebx
mov eax, esi
call fcn.004307d0
mov ecx, dword [ebp - 0x54]
mov edx, ebx
mov eax, esi
call fcn.00430770
inc ebx
cmp edi, ebx
ja 0x4ccd34
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call sub.USER32.DLL_ReleaseDC
mov ebx, esi
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x4cce24
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov word [ebp - 0x1c], 0x14
mov edx, 3
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x1c], 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xb5c]
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 0xb58]
mov eax, dword [ebp + 8]
setb cl
and ecx, 1
add dword [eax + 0xb5c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xb5c]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret