Function at 0x10001745
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll__strnset]
push 1
push 0x73
mov esi, ecx
push str.xend
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
push eax
push str.ws2_32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
push 0x72
push str.xecv
mov dword [ebp - 0xc], eax
call edi
add esp, 0xc
push eax
push str.WS2_32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
push 0x73
push str.celect
mov dword [ebp - 0x14], eax
call edi
add esp, 0xc
push eax
push str.ws2_32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 4]
push 4
push eax
push dword [esi + 0xa8]
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 5
mov byte [ebp - 3], 2
mov byte [ebp - 2], bl
mov byte [ebp - 1], 2
call dword [ebp - 0xc]
mov edi, 0x258
lea eax, [ebp - 0x48c]
push edi
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0xa8]
add esp, 0xc
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0x130]
push ebx
push eax
push ebx
mov dword [ebp - 0x130], 1
call dword [ebp - 0x10]
test eax, eax
jle 0x10001a38
push ebx
lea eax, [ebp - 0x48c]
push edi
push eax
push dword [esi + 0xa8]
call dword [ebp - 0x14]
cmp byte [ebp - 0x48c], 5
jne 0x10001a38
cmp byte [ebp - 0x48b], bl
je 0x10001863
cmp byte [ebp - 0x48b], 2
jne 0x10001a38
cmp byte [ebp - 0x48b], 2
jne 0x1000198e
push 0x10018ce4
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x1000198e
push 0x10018ce4
call sub.MSVCRT.dll_strlen
mov dword [ebp - 8], eax
mov dword [esp], 0x10018de4
call sub.MSVCRT.dll_strlen
mov dword [ebp - 0x18], eax
mov dword [esp], 0x102
lea eax, [ebp - 0x234]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov al, byte [ebp - 8]
add esp, 0xc
mov byte [ebp - 0x233], al
lea eax, [ebp - 0x232]
push 0x10018ce4
push eax
mov byte [ebp - 0x234], 5
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x18]
push 4
push eax
mov eax, dword [ebp - 8]
lea eax, [ebp + eax - 0x232]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
lea eax, [ebp + eax - 0x231]
push 0x10018de4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
push ebx
lea eax, [eax + ecx + 3]
push eax
lea eax, [ebp - 0x234]
push eax
push dword [esi + 0xa8]
call dword [ebp - 0xc]
push edi
lea eax, [ebp - 0x48c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0xa8]
add esp, 0xc
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0x130]
push ebx
push eax
push ebx
mov dword [ebp - 0x130], 1
call dword [ebp - 0x10]
test eax, eax
jle 0x10001a38
push ebx
lea eax, [ebp - 0x48c]
push edi
push eax
push dword [esi + 0xa8]
call dword [ebp - 0x14]
cmp byte [ebp - 0x48c], 5
jne 0x10001a38
cmp byte [ebp - 0x48b], bl
jne 0x10001a38
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x10001a44
push dword [ebp + 0xc]
mov byte [ebp - 0x2c], 5
mov byte [ebp - 0x2b], 1
mov byte [ebp - 0x2a], bl
mov byte [ebp - 0x29], 1
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x24], ax
push ebx
lea eax, [ebp - 0x2c]
push 0xa
push eax
push dword [esi + 0xa8]
call dword [ebp - 0xc]
push edi
lea eax, [ebp - 0x48c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0xa8]
add esp, 0xc
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0x130]
push ebx
push eax
push ebx
mov dword [ebp - 0x130], 1
call dword [ebp - 0x10]
test eax, eax
jle 0x10001a38
push ebx
lea eax, [ebp - 0x48c]
push edi
push eax
push dword [esi + 0xa8]
call dword [ebp - 0x14]
cmp byte [ebp - 0x48c], 5
jne 0x10001a38
cmp byte [ebp - 0x48b], bl
jne 0x10001a38
mov al, 1
jmp 0x10001a46
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8