Function at 0x14007a97c
Capabilities:
Create tcp socket
Create udp socket
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x14007b068
lea rsi, str.127.0.0.1:34254
lea rcx, [rsp + 0x38]
mov qword [rcx], rsi
mov qword [rcx + 8], 0xf
call fcn.14000b9d6
mov rdi, rax
test dil, 1
je 0x14007a9f9
lea rcx, [rsp + 0x38]
call fcn.14000c034
cmp ax, 1
jne 0x14007a9f9
movabs rax, 0xffffffff00
and rdi, rax
shr rdi, 8
movzx eax, dx
shl rax, 0x30
shl rdi, 0x10
or rdi, rax
mov eax, 1
jmp 0x14007a9fd
xor edi, edi
xor eax, eax
or rax, rdi
test al, 1
jne 0x14007aa12
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 0xf
test ax, ax
je 0x14007ad09
cmp qword [rsp + 0x40], 0
jne 0x14007aeae
mov esi, edi
shr esi, 0x10
shr rdi, 0x18
xor r14d, r14d
mov rax, qword [rsp + 0x78]
cmp rax, qword [rsp + 0x88]
je 0x14007add8
lea rcx, [rax + 0x20]
mov qword [rsp + 0x78], rcx
movzx esi, word [rax]
cmp si, 2
je 0x14007add8
mov qword [rsp + 0x30], r14
mov r12d, dword [rax + 2]
movzx r13d, word [rax + 6]
mov r15d, dword [rax + 8]
mov rcx, qword [rax + 0xc]
mov qword [rsp + 0x58], rcx
mov r14d, dword [rax + 0x14]
mov ecx, dword [rax + 0x18]
mov dword [rsp + 0x6c], ecx
movzx edi, word [rax + 0x1c]
call fcn.1400815a7
mov ebp, 0x17
test sil, 1
jne 0x14007ab6b
mov ebp, 2
mov dword [rsp + 0x28], 0x81
and dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007abd7
shl r13, 0x20
or r13, r12
test sil, 1
je 0x14007ac47
movabs rax, 0xffffffff0000
and r13, rax
shr r13, 0x10
mov r8d, 0x1c
mov cx, 0x17
mov rdx, qword [rsp + 0x58]
mov r9d, dword [rsp + 0x6c]
mov rax, r13
mov rsi, qword [rsp + 0x30]
jmp 0x14007ac72
mov dword [rsp + 0x64], r14d
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x14007abf7
mov r14d, eax
cmp eax, 0x2726
jne 0x14007acd2
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14007acdc
mov rbx, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x14007ace6
mov r14d, dword [rsp + 0x64]
jmp 0x14007ab94
mov rdi, r13
shr rdi, 0x20
mov r8d, 0x10
mov cx, 2
xor eax, eax
xor r15d, r15d
mov r14d, r13d
mov rsi, qword [rsp + 0x30]
mov rdx, qword [rsp + 0xf8]
mov r9d, dword [rsp + 0x68]
rol di, 8
mov word [rsp + 0x38], cx
mov word [rsp + 0x3a], di
mov dword [rsp + 0x3c], r14d
shl r15, 0x20
or r15, rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x68], r9d
mov dword [rsp + 0x50], r9d
mov rcx, rbx
lea rdx, [rsp + 0x38]
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14007adf5
call fcn.14008166e
mov r14, rax
mov rcx, rbx
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x14007acfc
shl r14, 0x20
or r14, 2
jmp 0x14007acf7
call fcn.14008166e
mov r14, rax
jmp 0x14007acf7
call fcn.140034637
mov r14, rax
mov rcx, rbx
call qword [sym.imp.ws2_32.dll_closesocket]
mov rsi, qword [rsp + 0x30]
mov rcx, rsi
call fcn.140034084
jmp 0x14007ab03
lea rcx, [rsp + 0x38]
mov r14, qword [rcx]
mov r15, qword [rcx + 8]
mov edx, 0x5b
call fcn.14000bd4f
test al, al
je case.0x140040186.431
lea rdi, [rsp + 0x70]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14000baef
cmp byte [rdi], 1
jne case.0x140040186.431
mov edi, dword [rsp + 0x71]
mov rax, qword [rsp + 0x75]
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0x7d]
mov dword [rsp + 0xd0], eax
lea rcx, [rsp + 0x38]
mov rax, qword [rcx]
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x58], rax
mov edx, 0x25
call fcn.14000bd4f
test al, al
je 0x14007ae33
invalid
mov rbp, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
and al, 0x40
xor ebx, ebx
xor r13d, r13d
test r12, r12
je 0x14007adb7
movzx ecx, byte [rbp]
mov edx, 0xa
call fcn.14000beb3
mov ecx, edx
ror dword [rcx + 0x1e283c2], 1
add rbp, rdx
sub r12, rdx
jmp 0x14007adb9
xor eax, eax
cmp eax, 1
jne 0x14007ae24
mov eax, ebx
mov edx, 0xa
add bh, dh
loop case.0x14003d634.458
invalid
mov edx, eax
add edx, ecx
jb 0x14007ae33
add ecx, eax
inc r13
mov ebx, ecx
jmp 0x14007ad95
lea rcx, [rsp + 0x70]
call fcn.14007a956
test r14, r14
lea rcx, str.could_not_resolve_to_any_addresses
cmovne rcx, r14
jmp 0x14007af2b
lea rcx, [rsp + 0x70]
call fcn.14007a956
mov rcx, rsi
call fcn.140034084
mov rcx, rbx
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.ws2_32.dll_closesocket]
cmpsb byte [rsi], byte [rdi]
add dword [rax], eax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x38], ebp
test r13, r13
jne 0x14007ae49
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rsp + 0x58]
mov qword [rsp + 0x40], rax
and al, 0x40
xor ebx, ebx
lea rcx, [rsp + 0x38]
mov edx, 0x5d
add byte [rax], al
call fcn.14000bd4f
test al, al
invalid
je case.0x140040186.431
lea rcx, [rsp + 0x38]
call fcn.14000c034
jmp qword [rsi - 0x7d]
clc
add dword [rbp + 0x38], esi
mov eax, dword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0xc8]
mov word [rax + rcx*8], fs
add byte [rax], al
add byte [rax - 0x77], cl
mov word [rax + rdi*4], fs
add byte [rax], al
add byte [rcx + 0xc02484], cl
add byte [rax], al
invalid
call fcn.14003408e
nop
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop rsp
pop r13
pop r14
pop r15
ret
ud2