Function at 0x4a7420
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bf733
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
mov ecx, dword [ebp + 0x48]
cmp ecx, ebx
je 0x4a7452
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [ebp + 0x48], ebx
push 0x32
call fcn.00474d10
add esp, 4
test eax, eax
je 0x4a7ac5
push 0x10
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov dword [esp + 0xb4], ebx
je 0x4a7486
mov ecx, eax
call sub.MFC42.DLL_CFile::CFile
jmp 0x4a7488
xor eax, eax
lea ecx, [esp + 0x24]
push 0x33
push ecx
mov dword [esp + 0xbc], 0xffffffff
mov dword [ebp + 0x48], eax
call fcn.004749a0
add esp, 8
mov ecx, dword [ebp + 0x48]
mov eax, dword [esp + 0x24]
push ebx
push 0x3022
mov edx, dword [ecx]
push eax
mov dword [esp + 0xc0], 1
call dword [edx + 0x28]
cmp eax, ebx
je 0x4a7a5a
mov ecx, dword [ebp + 0x48]
push esi
push edi
push ecx
call fcn.00472a50
mov ecx, eax
add esp, 4
or ecx, edx
jne 0x4a7715
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov bl, 2
push str._rtf1_ansideff0
lea ecx, [esp + 0x18]
mov byte [esp + 0xc0], bl
call sub.MFC42.DLL_CString::operator
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov edi, dword [sym.imp.GDI32.dll_GetObjectA]
mov esi, eax
lea edx, [esp + 0x78]
mov eax, dword [esi + 4]
push edx
push 0x3c
push eax
call edi
mov edx, dword [esi + 4]
lea ecx, [esp + 0x3c]
push ecx
push 0x3c
push edx
call edi
lea eax, [esp + 0x58]
lea ecx, [esp + 0x28]
push eax
call fcn.004ac198
push eax
lea ecx, [esp + 0x14]
push str._fonttbl_f0_fnil
push ecx
mov byte [esp + 0xc8], 3
call sub.MFC42.DLL_operator
push 0x4e650c
lea edx, [esp + 0x28]
push eax
push edx
mov byte [esp + 0xc8], 4
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xc0], 5
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0xbc], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0xbc], bl
call sub.MFC42.DLL_CString::CString
push str.colortbl__
lea ecx, [esp + 0x18]
call fcn.004ac20a
mov esi, 0x4c7d18
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi]
xor ecx, ecx
mov cl, byte [esi + 1]
xor edx, edx
mov dl, byte [esi]
and ecx, 0xff
shr eax, 0x10
and eax, 0xff
mov byte [esp + 0xbc], 6
push eax
push ecx
push edx
lea eax, [esp + 0x1c]
push str._red_dgreen_d_blue_d_
push eax
call sub.MFC42.DLL_CString::Format_1
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], bl
call sub.MFC42.DLL_CString::CString
add esi, 4
cmp esi, 0x4c7d58
jl 0x4a75c8
push 0x4e64e0
lea ecx, [esp + 0x18]
call fcn.004ac20a
mov edx, dword [ebp + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
test eax, eax
je 0x4a7655
mov eax, dword [eax + 4]
push 0x5a
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [esp + 0x3c]
mov esi, eax
mov eax, ecx
neg eax
shl eax, 3
sub eax, ecx
lea ecx, [esp + 0x18]
shl eax, 3
cdq
idiv esi
mov esi, eax
shl esi, 1
call sub.MFC42.DLL_CString::CString_2
push esi
lea eax, [esp + 0x1c]
mov bl, 7
push 0x4e094c
push eax
mov byte [esp + 0xc8], bl
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
push str.uc1pard_fi_1100li1100_tx1100_f0_fs
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xc0], 8
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x28]
mov byte [esp + 0xbc], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [ebp + 0x48]
not ecx
mov ebx, dword [edx]
dec ecx
push ecx
push esi
mov ecx, edx
call dword [ebx + 0x40]
lea ecx, [esp + 0x18]
mov byte [esp + 0xbc], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], 1
call sub.MFC42.DLL_CString::CString
jmp 0x4a79bd
lea edi, [eax - 1]
sub eax, 1
sbb edx, ebx
lea ecx, [esp + 0x28]
mov esi, edx
mov edx, dword [ebp + 0x48]
mov eax, esi
mov dword [esp + 0x28], esi
sar eax, 0x1f
mov eax, dword [edx + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ecx
push edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4a7749
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x48]
lea eax, [esp + 0x14]
push 1
push eax
mov edx, dword [ecx]
call dword [edx + 0x3c]
cmp byte [esp + 0x14], 0x7d
je 0x4a799d
mov ecx, dword [ebp + 0x48]
push 0
mov edx, dword [ecx]
call dword [edx + 0x34]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov bl, 9
push str._rtf1_ansi
lea ecx, [esp + 0x14]
mov byte [esp + 0xc0], bl
call sub.MFC42.DLL_CString::operator
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov edi, dword [sym.imp.GDI32.dll_GetObjectA]
mov esi, eax
lea eax, [esp + 0x78]
mov ecx, dword [esi + 4]
push eax
push 0x3c
push ecx
call edi
mov eax, dword [esi + 4]
lea edx, [esp + 0x3c]
push edx
push 0x3c
push eax
call edi
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x24]
call fcn.004ac198
push eax
lea edx, [esp + 0x3c]
push str._fonttbl_f0_fnil
push edx
mov byte [esp + 0xc8], 0xa
call sub.MFC42.DLL_operator
push 0x4e650c
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0xc4], 0xb
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xc0], 0xc
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x18]
mov byte [esp + 0xbc], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0xbc], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xbc], bl
call sub.MFC42.DLL_CString::CString
push str.colortbl__
lea ecx, [esp + 0x14]
call fcn.004ac20a
mov esi, 0x4c7d18
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi]
xor edx, edx
mov dl, byte [esi + 1]
xor eax, eax
mov al, byte [esi]
and edx, 0xff
shr ecx, 0x10
and ecx, 0xff
mov byte [esp + 0xbc], 0xd
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push str._red_dgreen_d_blue_d_
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x14
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x18]
mov byte [esp + 0xbc], bl
call sub.MFC42.DLL_CString::CString
add esi, 4
cmp esi, 0x4c7d58
jl 0x4a7852
push 0x4e64e0
lea ecx, [esp + 0x14]
call fcn.004ac20a
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
test eax, eax
je 0x4a78e0
mov eax, dword [eax + 4]
push 0x5a
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [esp + 0x3c]
mov esi, eax
mov eax, ecx
neg eax
shl eax, 3
sub eax, ecx
lea ecx, [esp + 0x24]
shl eax, 3
cdq
idiv esi
mov esi, eax
shl esi, 1
call sub.MFC42.DLL_CString::CString_2
push esi
lea ecx, [esp + 0x28]
mov bl, 0xe
push 0x4e094c
push ecx
mov byte [esp + 0xc8], bl
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
lea edx, [esp + 0x24]
lea eax, [esp + 0x20]
push edx
push str._fi_1100li1100_tx1100_fs
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xc0], 0xf
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x20]
mov byte [esp + 0xbc], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [ebp + 0x48]
not ecx
mov ebx, dword [edx]
dec ecx
push ecx
push esi
mov ecx, edx
call dword [ebx + 0x40]
lea ecx, [esp + 0x24]
mov byte [esp + 0xbc], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], 1
call sub.MFC42.DLL_CString::CString
jmp 0x4a79bd
mov edx, dword [ebp + 0x48]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
push 0
mov eax, dword [edx + 4]
push ecx
push edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4a79bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x20]
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
mov edx, dword [eax]
lea eax, [esp + 0x30]
push str._m__d__Y__H:_M:_S
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], edx
call sub.MFC42.DLL_CTime::FormatGmt
mov byte [esp + 0xbc], 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push ecx
push str.cf88uftp_started___s_par
push edx
mov byte [esp + 0xc8], 0x11
call sub.MFC42.DLL_CString::Format_1
mov esi, dword [esp + 0x28]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
add esp, 0xc
mov edx, dword [ebp + 0x48]
repne scasb al, byte es:[edi]
mov ebx, dword [edx]
not ecx
dec ecx
push ecx
push esi
mov ecx, edx
call dword [ebx + 0x40]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbc], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0xbc], 1
call sub.MFC42.DLL_CString::CString
pop edi
xor ebx, ebx
pop esi
jmp 0x4a7ab1
mov ecx, dword [ebp + 0x48]
cmp ecx, ebx
je 0x4a7a68
mov eax, dword [ecx]
push 1
call dword [eax + 4]
lea ecx, [esp + 0x14]
mov dword [ebp + 0x48], ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
push 0x83f
push edx
mov byte [esp + 0xc0], 0x12
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0xc
push ebx
push 0x30
push eax
call sub.MFC42.DLL_AfxMessageBox_1
lea ecx, [esp + 0x14]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0xb4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ebp, dword [ebp + 0x44]
cmp ebp, ebx
je 0x4a7ad3
mov ecx, ebp
call fcn.004a6b30
mov ecx, dword [esp + 0xac]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb0
ret