Function at 0x10062a80
Capabilities:
Check for time delay via gettickcount
Create raw socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x498
mov eax, dword [0x10100230]
xor eax, esp
mov dword [esp + 0x494], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], edx
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x10062acb
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10062c8e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 1
push 0
push 0
push 1
mov ecx, 2
xorps xmm0, xmm0
push 3
movaps xmmword [esp + 0x54], xmm0
push ecx
mov word [esp + 0x58], cx
mov dword [esp + 0x5c], eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0x24]
push 4
push ecx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], 0x64
call edi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x24]
push 4
push eax
push 0x1005
push 0xffff
push esi
call edi
push 0x400
xorps xmm0, xmm0
lea eax, [esp + 0x9c]
push 0
push eax
movaps xmmword [esp + 0x6c], xmm0
movaps xmmword [esp + 0x7c], xmm0
movq qword [esp + 0x8c], xmm0
call fcn.100942c0
add esp, 0xc
mov word [esp + 0x60], 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movaps xmm0, xmmword [0x100ebe90]
xor edi, edi
mov word [esp + 0x64], ax
xor ecx, ecx
movups xmmword [esp + 0x68], xmm0
movups xmmword [esp + 0x78], xmm0
mov dword [esp + 0x10], ecx
mov edx, 0x1e
nop dword [eax]
test ecx, ecx
mov eax, 1
push 4
cmovne eax, edx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
push 4
push 0
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
xor eax, eax
mov word [esp + 0x62], ax
movzx eax, di
inc edi
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x66], ax
lea edx, [esp + 0x60]
xor esi, esi
mov edi, 0x14
movzx ecx, word [edx]
lea edx, [edx + 2]
add esi, ecx
sub edi, 1
jne 0x10062bd6
mov ecx, esi
movzx eax, si
shr ecx, 0x10
add ecx, eax
mov eax, ecx
shr eax, 0x10
add eax, ecx
not eax
mov word [esp + 0x62], ax
movzx eax, word [esp + 0x66]
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x14]
push 0x10
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x44]
push eax
push edi
push 0x28
lea eax, [esp + 0x70]
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x10
push eax
lea eax, [esp + 0x54]
push eax
push edi
push 0x400
lea eax, [esp + 0xa8]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edx, eax
cmp edx, 0xffffffff
je 0x10062d0e
nop word [eax + eax]
movzx ecx, byte [esp + 0x98]
and ecx, 0xf
shl ecx, 2
lea eax, [ecx + 8]
cmp edx, eax
jl 0x10062cdc
lea esi, [esp + 0x98]
add esi, ecx
mov al, byte [esi]
test al, al
jne 0x10062ca5
movzx edi, word [esi + 4]
movzx eax, word [esi + 6]
jmp 0x10062cc2
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.10091bd4
mov esp, ebp
pop ebp
ret
cmp al, 0xb
jne 0x10062cdc
lea eax, [esp + 0xa0]
add ecx, eax
movzx eax, byte [ecx]
and eax, 0xf
movzx edi, word [ecx + eax*4 + 4]
movzx eax, word [ecx + eax*4 + 6]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp di, ax
jne 0x10062cdc
mov eax, dword [esp + 0x34]
cmp word [esp + 0x28], ax
je 0x10062d37
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x54]
push eax
push 0
push 0x400
lea eax, [esp + 0xa8]
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edx, eax
cmp edx, 0xffffffff
jne 0x10062c60
mov esi, dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
cmp eax, 0x274c
jne 0x10062d84
test ecx, ecx
jne 0x10062d78
mov eax, dword [esp + 0x18]
inc ecx
mov edi, dword [esp + 0x20]
mov dword [eax], 0xffffffff
jmp 0x10062b84
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov cl, byte [esi]
sub eax, dword [esp + 0x38]
test cl, cl
je 0x10062d4c
cmp cl, 0xb
jne 0x10062d58
test eax, eax
mov edx, 1
cmovne edx, eax
jmp 0x10062d5c
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
test ecx, ecx
jne 0x10062d70
mov eax, dword [esp + 0x18]
mov dword [eax], edx
jmp 0x10062da6
mov eax, dword [esp + 0x1c]
mov dword [eax], edx
jmp 0x10062da6
mov eax, dword [esp + 0x1c]
mov dword [eax], 0xffffffff
jmp 0x10062da6
test ecx, ecx
jne 0x10062d9c
mov eax, dword [esp + 0x18]
inc ecx
mov edi, dword [esp + 0x20]
mov dword [eax], 0xfffffffe
jmp 0x10062b84
mov eax, dword [esp + 0x1c]
mov dword [eax], 0xfffffffe
mov esi, dword [esp + 0x14]
inc ecx
mov edi, dword [esp + 0x20]
mov edx, 0x1e
mov dword [esp + 0x10], ecx
cmp ecx, 2
jl 0x10062b90
mov ecx, dword [esp + 0x49c]
lea eax, [edx - 0x1d]
pop edi
pop esi
xor ecx, esp
call fcn.10091bd4
mov esp, ebp
pop ebp
ret