Function at 0x4025e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Initialize winsock library
Receive data
Receive data on socket
Resolve function by parsing pe exports
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x2ec
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_printf]
push esi
push edi
push str.___Please_enter_the_password_Automatic__n
call ebp
mov edi, dword [sym.imp.MSVCRT.dll__getch]
add esp, 4
xor esi, esi
call edi
cmp al, 0xd
je 0x402611
mov byte [esp + esi + 0x3c], al
inc esi
cmp esi, 0x28
jl 0x402601
push 0x404020
mov byte [esp + esi + 0x40], 0
call ebp
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jne 0x4028c0
cmp byte [esp + 0x3e], 0x76
jne 0x4028c0
cmp byte [esp + 0x41], 0x79
jne 0x4028c0
push str.Successful_to_enter__press_Enter_key_to_continue..._n
call ebp
add esp, 4
call dword [sym.imp.MSVCRT.dll_getchar]
lea eax, [esp + 0x168]
push eax
push 0x202
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x402691
push str.Could_not_load_Windows_Sockets_DLL._n
call ebp
add esp, 4
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x2ec
ret
push str.127.0.0.1
call sub.WSOCK32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x4026bb
push str.IPAddress_is_error__nPlease_try_again__n
call ebp
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x2ec
ret
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
push 0x1e6c
mov esi, eax
call sub.WSOCK32.dll_htons
lea ecx, [esp + 0x2c]
push 0x10
push ecx
push esi
mov word [esp + 0x3a], ax
mov word [esp + 0x38], 2
mov dword [esp + 0x3c], edi
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x402705
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Fail_to_connect_to_socket__d__Press_Enter_key_to_Exit..._n
jmp 0x402788
push str.Connect_to_local_server_successfully__n
call ebp
add esp, 4
push str.Press_Enter_key_to_begin_uninstall_procedure..._n
call ebp
add esp, 4
call dword [sym.imp.MSVCRT.dll_getchar]
xor edx, edx
xor edi, edi
mov dword [esp + 0x11], edx
push edi
lea eax, [esp + 0x14]
push 1
mov dword [esp + 0x1d], edx
push eax
push esi
mov byte [esp + 0x29], dl
mov byte [esp + 0x20], 0x7e
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x402755
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Socket_send_first_segment_error__d__Press_Enter_key_to_Exit..._n
jmp 0x402788
xor ecx, ecx
push edi
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x14]
push 1
mov dword [esp + 0x1c], ecx
push edx
push esi
mov word [esp + 0x28], cx
mov byte [esp + 0x20], 6
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x4027a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Socket_send_second_segment_error__d__Press_Enter_key_to_Exit..._n
call ebp
add esp, 8
call dword [sym.imp.MSVCRT.dll_getchar]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x2ec
ret
push str.Finished_send_forehead_parts__n
call ebp
add esp, 4
push str.Waiting_for_receive_backtrace_message..._n
call ebp
add esp, 4
xor eax, eax
mov word [esp + 0xd], ax
mov byte [esp + 0xc], 0
mov byte [esp + 0xf], al
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x24]
lea edx, [esp + 0x64]
push ecx
push edi
push edi
push edx
push 1
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], 1
mov dword [esp + 0x20], edi
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x402793
cmp eax, edi
je 0x4027d2
lea eax, [esp + 0x64]
push eax
push esi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4027d2
push edi
lea ecx, [esp + 0x10]
push 4
push ecx
push esi
call sub.WSOCK32.dll_recv
test eax, eax
jl 0x4027d2
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 3
lea edx, [esp + 0x20]
push 4
lea eax, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x2c], edi
call fcn.00401210
add esp, 0x10
push str.Should_send_backtrace_message_to_server..._n
call ebp
add esp, 4
push edi
lea ecx, [esp + 0x20]
push 4
push ecx
push esi
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x402865
cmp eax, edi
jle 0x40284e
push str.Should_send_uninstall_command_code_to_server._n
call ebp
mov eax, 4
add esp, 4
mov dword [esp + 0x20], eax
push edi
lea edx, [esp + 0x24]
push 2
push edx
push esi
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x40288f
cmp eax, edi
jle 0x402878
push str.Succeed_to_finish_it__n
call ebp
add esp, 4
push str.Press_Enter_key_to_exit..._n
call ebp
add esp, 4
call dword [sym.imp.MSVCRT.dll_getchar]
push esi
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2ec
ret
push str.Password_invalid_
call ebp
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x2ec
ret