Function at 0x1400066d0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
push rbx
push rbp
push rsi
push r12
push r13
sub rsp, 0x50
mov r8, qword [rsp + 0xb0]
mov r13, qword [rsp + 0xa8]
mov r12, rdx
mov qword [rsp + 0x20], r8
or esi, 0xffffffff
lea r8, [rsp + 0x30]
lea edx, [rsi + 2]
mov r9, r13
xor ebp, ebp
xor ebx, ebx
call qword [sym.imp.php5ts.dll_php_network_getaddresses]
test eax, eax
jne 0x140006727
or eax, esi
add rsp, 0x50
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x80], rdi
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
cmp qword [rdi], rbx
je 0x1400068f6
mov r15, qword [rsp + 0xa0]
nop
test rbx, rbx
je 0x140006760
mov rcx, rbx
call qword [sym.imp.MSVCR110.dll_free]
xor ebx, ebx
mov rax, qword [rdi]
xor r8d, r8d
movzx ecx, word [rax]
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp eax, 0xffffffff
je 0x1400068b6
mov r14, qword [rdi]
movzx eax, word [r14]
cmp eax, 2
je 0x140006803
cmp eax, 0x17
je 0x1400067a5
movsxd rcx, esi
mov dword [r15], 0
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400068b6
mov ecx, 0x1c
call qword [sym.imp.MSVCR110.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140006937
mov eax, dword [r14]
movzx ecx, word [r12]
mov dword [rbx], eax
mov eax, dword [r14 + 4]
mov dword [rbx + 4], eax
mov eax, dword [r14 + 8]
mov dword [rbx + 8], eax
mov eax, dword [r14 + 0xc]
mov dword [rbx + 0xc], eax
mov eax, dword [r14 + 0x10]
mov dword [rbx + 0x10], eax
mov eax, dword [r14 + 0x14]
mov dword [rbx + 0x14], eax
mov eax, dword [r14 + 0x18]
mov dword [rbx + 0x18], eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 2], ax
mov dword [r15], 0x1c
jmp 0x14000684a
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.MSVCR110.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400069b1
mov eax, dword [r14]
movzx ecx, word [r12]
mov dword [rbx], eax
mov eax, dword [r14 + 4]
mov dword [rbx + 4], eax
mov eax, dword [r14 + 8]
mov dword [rbx + 8], eax
mov eax, dword [r14 + 0xc]
mov dword [rbx + 0xc], eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 2], ax
mov dword [r15], reloc.WS2_32.dll_recv
movsxd r14, esi
lea r9, [rsp + 0x90]
mov edx, 0xffff
mov r8d, 4
mov rcx, r14
mov dword [rsp + 0x90], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, dword [r15]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14000695a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp eax, 0x2726
je 0x1400068e3
cmp eax, 0x2740
je 0x1400068e3
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
add rdi, 8
cmp qword [rdi], 0
jne 0x140006750
cmp esi, 0xffffffff
je 0x1400068e3
movsxd rcx, esi
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1400068e3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
test rbx, rbx
je 0x1400068f1
mov rcx, rbx
call qword [sym.imp.MSVCR110.dll_free]
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x140006904
mov rcx, rdi
call qword [sym.imp.php5ts.dll_php_network_freeaddresses]
test ebp, ebp
je 0x1400069d4
test esi, esi
js 0x140006919
movsxd rcx, esi
call qword [sym.imp.WS2_32.dll_closesocket]
test r13, r13
je 0x14000692f
xor r8d, r8d
xor edx, edx
mov ecx, ebp
call qword [sym.imp.php5ts.dll_php_socket_strerror]
mov qword [r13], rax
or eax, 0xffffffff
jmp 0x1400069d6
call qword [sym.imp.MSVCR110.dll___iob_func]
lea rdx, str.Out_of_memory_n
lea rcx, [rax + 0x60]
call qword [sym.imp.MSVCR110.dll_fprintf]
mov ecx, 1
call qword [sym.imp.MSVCR110.dll_exit]
int3
mov rcx, qword [rsp + 0x98]
movzx eax, word [rbx]
xor ebp, ebp
mov dword [rcx], eax
cmp dword [r12], ebp
jne 0x1400068c4
movsxd rcx, esi
mov r8, r15
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400068db
movzx eax, word [rbx]
cmp eax, 2
je 0x14000699b
cmp eax, 0x17
jne 0x1400068c4
movzx ecx, word [rbx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [r12], eax
jmp 0x1400068c4
call qword [sym.imp.MSVCR110.dll___iob_func]
lea rdx, str.Out_of_memory_n
lea rcx, [rax + 0x60]
call qword [sym.imp.MSVCR110.dll_fprintf]
mov ecx, 1
call qword [sym.imp.MSVCR110.dll_exit]
int3
mov eax, esi
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x80]
mov r15, qword [rsp + 0x40]
add rsp, 0x50
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret