Function at 0x10001d50
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov ebx, ecx
push 0x34
mov dword [ebp - 8], ebx
call dword [sym.imp.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_]
push 0x34
mov esi, eax
push 0
push esi
mov dword [ebp - 0x18], esi
call sub.MSVCRT.dll_memset
push dword [0x10005010]
call fcn.10003acf
add esp, 0x14
mov dword [esi + 0x20], eax
mov dword [esi + 0x14], ebx
mov eax, dword [0x10005010]
mov dword [esi + 0x2c], eax
push 1
push 0
push 0
push 6
push 1
push 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0x1c], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x14], eax
mov ecx, dword [eax]
mov ebx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
lea edi, [ebx*4]
lea ecx, [edi + 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
push edi
push dword [ebp - 4]
mov esi, eax
push esi
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [ebp - 0x10]
lea edx, [ebx + 1]
mov dword [edi + esi], eax
add esp, 0xc
mov eax, dword [ebp - 0x14]
push dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ecx], edx
mov eax, dword [eax]
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x1c]
cmp eax, 0xffffffff
jne 0x10001e84
push dword [ebx + 0x20]
call fcn.10003abc
push ebx
mov dword [ebx + 0x20], 0
call fcn.10003abc
mov ebx, dword [ebp - 8]
add esp, 8
mov edi, 1
mov esi, dword [ebx]
cmp esi, 0xffffffff
je 0x10001e7b
push 4
lea eax, [ebp - 4]
mov dword [ebx + 0x24], edi
push eax
push 0x80
push 0xffff
push esi
mov dword [ebx + 4], 0
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push 0x10005010
push 0x1002
push 0xffff
push eax
call esi
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x1001
push 0xffff
push dword [ebx + 0x1c]
call esi
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 4
push 0xffff
push dword [ebx + 0x1c]
call esi
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x24]
push 0
push 0
push eax
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x10
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0xb5367df1
push eax
push 0xc8000006
push dword [esi]
mov dword [ebp - 0x34], 0x11cfcbac
mov dword [ebp - 0x30], 0x8000ca95
mov dword [ebp - 0x2c], 0x92a1485f
mov dword [ebp - 0x24], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10001f92
mov eax, dword [ebx + 0x1c]
mov edi, 1
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x10001f63
push 4
lea ecx, [ebp - 8]
mov dword [ebp - 8], edi
push ecx
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebx + 0x20]
mov dword [ebx + 0x1c], 0xffffffff
call fcn.10003abc
push ebx
mov dword [ebx + 0x20], 0
call fcn.10003abc
add esp, 8
mov ecx, esi
call fcn.10002010
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0x20
push 0x20
push 0
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [esi]
call dword [ebp - 0xc]
test eax, eax
je 0x10001fed
mov ecx, dword [ebx + 0x1c]
call fcn.10001a60
push dword [ebx + 0x20]
mov dword [ebx + 0x1c], 0xffffffff
call fcn.10003abc
push ebx
mov dword [ebx + 0x20], 0
call fcn.10003abc
add esp, 8
mov ecx, esi
call fcn.10002010
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push dword [0x10005038]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret