Function at 0x406cd0
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a45b
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x814], 0xf
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x828], 0
lea eax, [esi + 0xac]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x834], eax
mov eax, 2
mov word [ebp - 0x838], ax
movzx eax, word [esi]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x836], ax
lea eax, [ebp - 0x838]
push 0x10
push eax
push dword [esi + 0xcc]
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.connect_return:
push 0x40a8e0
push dword [esi + 0xcc]
push eax
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov edx, str.__fd:
mov ecx, eax
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call ebx
mov edi, dword [sym.imp.WS2_32.dll_recv]
lea eax, [ebp - 0x810]
push 0
push 0x800
push eax
push dword [esi + 0xcc]
call edi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.connect_recv:
push 0x40a8e0
call fcn.0040a6a0
lea edx, [ebp - 0x810]
mov ecx, eax
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 3
lea eax, [ebp - 0x810]
push 0x41f2fc
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x406e63
cmp byte [ebp - 0x810], 0
jne 0x406e35
xor ecx, ecx
jmp 0x406e49
lea ecx, [ebp - 0x810]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406e40
sub ecx, edx
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [esi + 0xf4]
call fcn.004098a0
xor bl, bl
jmp 0x4071de
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x828]
push 0xd
push str.ehlo_qq.com_r_n
call fcn.004098a0
cmp dword [ebp - 0x814], 0x10
lea eax, [ebp - 0x828]
push 0
push dword [ebp - 0x818]
cmovae eax, dword [ebp - 0x828]
push eax
push dword [esi + 0xcc]
call dword [sym.imp.WS2_32.dll_send]
push 0x32
call ebx
push 0
push 0x800
lea eax, [ebp - 0x810]
push eax
push dword [esi + 0xcc]
call edi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.ehlo:
push 0x40a8e0
call fcn.0040a6a0
lea edx, [ebp - 0x810]
mov ecx, eax
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x828]
push 0xc
push str.auth_login_r_n
call fcn.004098a0
cmp dword [ebp - 0x814], 0x10
lea eax, [ebp - 0x828]
push 0
push dword [ebp - 0x818]
cmovae eax, dword [ebp - 0x828]
push eax
push dword [esi + 0xcc]
call dword [sym.imp.WS2_32.dll_send]
push 0x32
call ebx
push 0
push 0x800
lea eax, [ebp - 0x810]
push eax
push dword [esi + 0xcc]
call edi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.auth_login:
push 0x40a8e0
call fcn.0040a6a0
lea edx, [ebp - 0x810]
mov ecx, eax
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [esi + 0x1c]
add esp, 0xc
lea ecx, [ebp - 0x828]
cmp ecx, eax
je 0x406fba
push 0xffffffffffffffff
push 0
push eax
call fcn.004099a0
mov edi, dword [ebp - 0x814]
lea edx, [ebp - 0x828]
mov ebx, dword [ebp - 0x828]
cmp edi, 0x10
cmovae edx, ebx
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x406fd5
sub edx, ecx
cmp edi, 0x10
lea ecx, [ebp - 0x828]
cmovae ecx, ebx
call fcn.004061b0
mov edi, eax
cmp byte [edi], 0
jne 0x406ffa
xor ecx, ecx
jmp 0x407009
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407000
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x828]
call fcn.004098a0
push 2
push 0x41f1c4
lea ecx, [ebp - 0x828]
call fcn.00409b70
push edi
call fcn.00418db0
add esp, 4
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], 0x10
cmovae eax, dword [ebp - 0x828]
push 0
push dword [ebp - 0x818]
push eax
push dword [esi + 0xcc]
call dword [sym.imp.WS2_32.dll_send]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x800
lea eax, [ebp - 0x810]
push eax
push dword [esi + 0xcc]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.usrname:
push 0x40a8e0
call fcn.0040a6a0
lea edx, [ebp - 0x810]
mov ecx, eax
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [esi + 0x34]
add esp, 0xc
lea ecx, [ebp - 0x828]
cmp ecx, eax
je 0x4070d3
push 0xffffffffffffffff
push 0
push eax
call fcn.004099a0
mov edi, dword [ebp - 0x814]
lea edx, [ebp - 0x828]
mov ebx, dword [ebp - 0x828]
cmp edi, 0x10
cmovae edx, ebx
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4070f0
sub edx, ecx
cmp edi, 0x10
lea ecx, [ebp - 0x828]
cmovae ecx, ebx
call fcn.004061b0
mov edi, eax
cmp byte [edi], 0
jne 0x407115
xor ecx, ecx
jmp 0x407129
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407120
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x828]
call fcn.004098a0
push edi
call fcn.00418db0
add esp, 4
lea ecx, [ebp - 0x828]
push 2
push 0x41f1c4
call fcn.00409b70
cmp dword [ebp - 0x814], 0x10
lea eax, [ebp - 0x828]
push 0
push dword [ebp - 0x818]
cmovae eax, dword [ebp - 0x828]
push eax
push dword [esi + 0xcc]
call dword [sym.imp.WS2_32.dll_send]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x800
lea eax, [ebp - 0x810]
push eax
push dword [esi + 0xcc]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.password:
push 0x40a8e0
call fcn.0040a6a0
lea edx, [ebp - 0x810]
mov ecx, eax
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov bl, 1
mov ecx, dword [ebp - 0x814]
cmp ecx, 0x10
jb 0x4071f6
inc ecx
push ecx
push dword [ebp - 0x828]
call fcn.0040a320
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418d36
mov esp, ebp
pop ebp
ret