Function at 0x140007140
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x56
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov byte [rbp + 0x44], 0
mov qword [rbp + 0x68], 0
mov rax, qword [0x140015908]
sub rax, 8
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
jne 0x14000718f
xor eax, eax
jmp 0x1400073d3
mov rax, qword [rbp + 0xb8]
mov r8d, 4
mov rdx, rax
lea rcx, [rbp + 4]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + 0x44], 0
jmp 0x1400071b7
movzx eax, byte [rbp + 0x44]
inc al
mov byte [rbp + 0x44], al
movzx eax, byte [rbp + 0x44]
cmp eax, 0xff
jge 0x14000737b
mov eax, 1
imul rax, rax, 3
movzx ecx, byte [rbp + 0x44]
mov byte [rbp + rax + 4], cl
mov r8d, 4
lea rdx, [rbp + 4]
lea rcx, [rbp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov edx, 0x40
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14000720a
jmp 0x14000737b
mov rax, qword [rbp + 0x68]
mov ecx, dword [rbp + 0x24]
mov dword [rax + 0x28], ecx
mov rax, qword [rbp + 0x68]
mov byte [rax + 0x2c], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rcx, qword [rbp + 0x68]
mov qword [rcx + 0x20], rax
mov rax, qword [rbp + 0x68]
cmp qword [rax + 0x20], 0xffffffffffffffff
jne 0x140007267
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400071ae
mov edx, 0x10
lea rcx, [rbp + 0x88]
call fcn.140005570
mov eax, 2
mov word [rbp + 0x88], ax
xor eax, eax
mov word [rbp + 0x8a], ax
mov dword [rbp + 0x8c], 0
mov r8d, setsockopt
lea rdx, [rbp + 0x88]
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1400072d3
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400071ae
xor r9d, r9d
mov r8d, 2
mov rdx, qword [0x140015938]
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x140007313
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400071ae
lea rax, [0x140015928]
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0xf8]
mov rax, qword [rax + 8]
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0xf8]
mov qword [rax + 0x30], rcx
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0xd8]
mov qword [rax + 0x38], rcx
mov rax, qword [rbp + 0x68]
add rax, 0x30
mov rcx, qword [rbp + 0xd8]
mov qword [rcx], rax
mov rax, qword [rbp + 0x68]
add rax, 0x30
mov rcx, qword [rbp + 0xf8]
mov qword [rcx + 8], rax
jmp 0x1400071ae
mov rax, qword [0x140015908]
mov rax, qword [rax]
mov qword [rbp + 0x138], rax
mov rax, qword [0x140015908]
mov rax, qword [rax + 8]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x118]
mov rcx, qword [rbp + 0x138]
mov qword [rax], rcx
mov rax, qword [rbp + 0x138]
mov rcx, qword [rbp + 0x118]
mov qword [rax + 8], rcx
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14000a0a0
mov rax, rdi
lea rsp, [rbp + 0x218]
pop rdi
pop rbp
ret