Function at 0x18009b730
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x680
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rax, qword [rcx]
mov qword [rsp + 0x38], 0xffffffffffffffff
mov byte [rsp + 0xe0], 0
mov rbp, rcx
xor ecx, ecx
mov esi, edx
mov qword [rsp + 0xe1], rcx
mov qword [rsp + 0xe9], rcx
mov qword [rsp + 0xf1], rcx
mov qword [rsp + 0xf9], rcx
mov qword [rsp + 0x101], rcx
mov dword [rsp + 0x109], ecx
mov word [rsp + 0x10d], cx
mov rbx, qword [rax + 0xca8]
mov qword [rsp + 0x50], rcx
mov rdi, qword [rax + 0xca8]
mov r13w, cx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], r13d
mov r14w, cx
lea r15d, [rcx + 1]
mov r12, rcx
test rdi, rdi
je 0x180097eb2
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, r15
jbe 0x180097eb2
or rcx, 0xffffffffffffffff
mov rdi, rbx
mov rdx, r15
repne scasb al, byte [rdi]
mov eax, 0x41
not rcx
dec rcx
cmp rcx, rax
cmovb rcx, rax
inc rcx
call qword [fcn.1800cc3c4]
mov r12, rax
test rax, rax
jne 0x180097d0f
lea eax, [r15 + 0x1a]
jmp 0x180098472
movzx eax, byte [rbx]
cmp al, 0x5b
jne 0x180097d4b
mov edx, 0x5d
mov rcx, rbx
lea r13, [rbx + 1]
call fcn.1800cc864
mov rdi, rax
test rax, rax
je 0x180097e50
mov r8, rax
mov rdx, r13
mov rcx, r12
sub r8, r13
call fcn.1800cc700
mov r13d, dword [rsp + 0x48]
jmp 0x180097db3
cmp al, 0x3a
jne 0x180097d54
mov rdi, rbx
jmp 0x180097db3
mov edx, Ordinal_60
mov rcx, rbx
call fcn.1800cc864
mov rdi, rax
test rax, rax
je 0x180097e33
lea r8, [rsp + 0x60]
mov rdx, rbx
mov ecx, reloc.WS2_32.dll_socket
call fcn.1800ae8e0
mov rcx, r12
cmp eax, r15d
jne 0x180097da5
xor edx, edx
sub rcx, rbx
mov r14d, edx
mov r13d, edx
movzx eax, byte [rbx]
inc rbx
mov byte [rcx + rbx - 1], al
test al, al
jne 0x180097d92
jmp 0x180097e55
mov r8, rdi
mov rdx, rbx
sub r8, rbx
call fcn.1800cc700
test rdi, rdi
je 0x180097e55
mov edx, Ordinal_60
mov rcx, rdi
call fcn.1800cc864
mov rdi, rax
test rax, rax
je 0x180097e55
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.1800cd024
mov ecx, eax
call fcn.18007dab0
mov edx, reloc.WLDAP32.dll_Ordinal_45
mov rcx, rdi
mov r13w, ax
call fcn.1800cc864
test rax, rax
je 0x180097e2d
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.1800cd024
mov ecx, eax
call fcn.18007dab0
mov r14w, ax
cmp r13w, ax
jbe 0x180097e55
xor eax, eax
mov r14w, ax
mov r13w, ax
jmp 0x180097e55
mov r14w, r13w
jmp 0x180097e55
mov rcx, r12
sub rcx, rbx
nop dword [rax]
movzx eax, byte [rbx]
inc rbx
mov byte [rcx + rbx - 1], al
test al, al
jne 0x180097e40
jmp 0x180097e55
mov r13d, dword [rsp + 0x48]
cmp byte [r12], 0
je 0x180097eb2
mov rcx, qword [rbp + 0x2e0]
mov rcx, qword [rcx + 0x20]
call fcn.1800b3c60
mov r8d, dword [rbp + 0x328]
lea rcx, [rsp + 0x260]
mov edx, eax
mov rax, qword [rbp + 0x2e0]
mov dword [rsp + 0x28], 0x401
mov qword [rsp + 0x20], rcx
mov ecx, dword [rax + 4]
mov r9, r12
call fcn.1800b3cf0
test eax, eax
je 0x180097eff
sub eax, r15d
je 0x18009846d
cmp eax, r15d
je 0x180097f3e
mov rcx, qword [rbp + 0x4c0]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x180097f04
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x160]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180070a50
lea rdx, str.getsockname___failed:__s
mov r8, rax
jmp 0x18009845a
mov rdi, r12
jmp 0x180097f46
movzx ecx, word [rsp + 0x60]
mov r9d, 0x401
lea r8, [rsp + 0x260]
cmp ecx, 0x17
je 0x180097f23
lea rdx, [rsp + 0x64]
jmp 0x180097f2d
lea rdx, [rsp + 0x68]
mov ecx, reloc.WS2_32.dll_socket
call fcn.1800b40c0
test rax, rax
je 0x18009846d
xor r15d, r15d
lea rdi, [rsp + 0x260]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1800a5fc0
cmp eax, 1
jne 0x180097f73
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.18007e2c0
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x180098450
mov rcx, qword [rsp + 0x40]
mov rbx, qword [rdx]
call fcn.1800a6290
test rbx, rbx
je 0x180098450
mov rcx, r12
call qword [fcn.1800cb340]
mov qword [rsp + 0x38], 0xffffffffffffffff
xor edi, edi
nop dword [rax + rax]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
call fcn.180085d00
mov r12d, eax
test eax, eax
je 0x180097fdd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rbx, qword [rbx + 0x28]
mov edi, eax
test rbx, rbx
jne 0x180097fb0
jmp 0x180097fe2
test rbx, rbx
jne 0x180098010
lea rdx, [rsp + 0x160]
mov r8d, pe_nt_image_headers64
mov ecx, edi
call fcn.180070a50
mov rcx, qword [rsp + 0x40]
lea rdx, str.socket_failure:__s
mov r8, rax
call fcn.180083310
jmp 0x18009846d
movsxd r8, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1800cbb10
mov edx, dword [rbx + 0x10]
movzx edi, r13w
mov dword [rsp + 0x30], edx
cmp r13w, r14w
ja 0x1800980e9
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov word [rsp + 0x62], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x18009818a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test r15d, r15d
je 0x1800980d0
cmp eax, 0x2741
jne 0x1800980d0
lea rdx, [rsp + 0x160]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180070a50
movzx r8d, di
mov rdi, qword [rsp + 0x40]
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s_n
mov rcx, rdi
mov r9, rax
call fcn.1800831b0
mov rcx, qword [rbp + 0x4c0]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x18009810c
mov di, r13w
xor r15d, r15d
jmp 0x1800980df
cmp eax, 0x2740
je 0x1800980dc
cmp eax, 0xd
jne 0x18009814b
inc di
cmp di, r14w
jbe 0x180098037
mov rcx, qword [rsp + 0x40]
lea rdx, str.bind___failed__we_ran_out_of_ports_
call fcn.180083310
mov rdx, qword [rsp + 0x38]
mov rcx, rbp
call fcn.180085c60
jmp 0x18009846d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x160]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180070a50
mov rcx, rdi
lea rdx, str.getsockname___failed:__s
mov r8, rax
call fcn.180083310
mov rdx, qword [rsp + 0x38]
mov rcx, rbp
call fcn.180085c60
jmp 0x18009846d
lea rdx, [rsp + 0x160]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180070a50
mov rcx, qword [rsp + 0x40]
lea rdx, str.bind_port_hu__failed:__s
mov r9, rax
movzx r8d, di
call fcn.180083310
mov rdx, qword [rsp + 0x38]
mov rcx, rbp
call fcn.180085c60
jmp 0x18009846d
cmp di, r14w
ja 0x1800980e9
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1800981da
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x160]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180070a50
mov rcx, qword [rsp + 0x40]
jmp 0x18009812a
mov rcx, qword [rsp + 0x38]
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x18009821a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x160]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180070a50
mov rcx, qword [rsp + 0x40]
lea rdx, str.socket_failure:__s
jmp 0x180098131
lea rdx, [rsp + 0xe0]
mov r8d, Ordinal_50
mov rcx, rbx
call fcn.1800a51a0
cmp dword [rbp + 0x6c0], 0
jne 0x18009824c
cmp dword [rbp + 0x6a4], 0
je 0x18009824c
mov dword [rbp + 0x6c0], 1
cmp esi, 2
je 0x1800982a3
movzx eax, word [rsp + 0x60]
cmp dword [rbp + 0x6c0], 0
jne 0x180098263
test esi, esi
je 0x18009829c
cmp esi, 1
jne 0x18009826e
cmp ax, 2
jne 0x18009829c
movzx ecx, ax
cmp ecx, 2
je 0x18009827b
cmp ecx, 0x17
jne 0x18009829c
movzx ecx, word [rsp + 0x62]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r11d, ax
test esi, esi
je 0x1800983c4
cmp esi, 1
je 0x180098300
mov ax, word [rsp + 0x60]
inc esi
cmp esi, 2
jne 0x180098256
lea rdi, [rbp + 0xa58]
xor ebx, ebx
mov dword [rdi + 0xb4], esi
mov rdx, qword [rbp + 0x4c8]
cmp rdx, 0xffffffffffffffff
je 0x1800982d2
mov rcx, rbp
call fcn.180085c60
mov qword [rbp + 0x4c8], 0xffffffffffffffff
mov rax, qword [rsp + 0x38]
mov dword [rbp + 0x66c], ebx
mov dword [rbp + 0x664], 1
mov qword [rbp + 0x4c8], rax
mov dword [rbp + 0xb18], Ordinal_35
mov eax, r12d
jmp 0x180098472
lea rdi, [rsp + 0x110]
lea rdx, [rsp + 0xe0]
mov r8d, Ordinal_45
movzx ecx, byte [rdx]
test cl, cl
je 0x180098333
cmp cl, 0x2e
movzx eax, cl
cmove eax, r8d
inc rdi
add rdx, 1
mov byte [rdi - 1], al
jne 0x180098316
movzx r9d, r11w
lea r8, str.__d__d
mov edx, reloc.WS2_32.dll_sendto
movzx eax, r9b
mov rcx, rdi
shr r9d, 8
mov dword [rsp + 0x20], eax
mov byte [rdi], 0
call fcn.1800883d0
lea rdi, [rbp + 0xa58]
lea r9, [rsp + 0x110]
lea r8, str.PORT
lea rdx, [0x180112dd8]
mov rcx, rdi
call fcn.1800b48e0
mov r12d, eax
test eax, eax
je 0x1800982aa
mov ecx, eax
call fcn.180070030
mov rcx, qword [rsp + 0x40]
lea rdx, str.Failure_sending_PORT_command:__s
mov r8, rax
call fcn.180083310
mov rdx, qword [rsp + 0x38]
mov rcx, rbp
call fcn.180085c60
mov dword [rbp + 0xb18], 0
mov eax, r12d
jmp 0x180098472
movzx eax, r11w
xor ebx, ebx
cmp word [rsp + 0x60], 2
mov r9d, ebx
mov dword [rsp + 0x28], eax
setne r9b
lea rax, [rsp + 0xe0]
lea rdi, [rbp + 0xa58]
lea r8, str.EPRT
lea rdx, str._s__d_s_hu
inc r9d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1800b48e0
mov r12d, eax
test eax, eax
je 0x1800982ac
mov ecx, eax
call fcn.180070030
mov rcx, qword [rsp + 0x40]
lea rdx, str.Failure_sending_EPRT_command:__s
mov r8, rax
call fcn.180083310
mov rdx, qword [rsp + 0x38]
mov rcx, rbp
call fcn.180085c60
mov dword [rdi + 0xb4], 1
mov dword [rbp + 0xb18], ebx
mov eax, r12d
jmp 0x180098472
mov r8, rdi
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, qword [rsp + 0x40]
call fcn.180083310
mov rcx, r12
call qword [fcn.1800cb340]
mov eax, reloc.WLDAP32.dll_Ordinal_30
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.1800c9b90
mov rbx, qword [rsp + 0x6d0]
add rsp, 0x680
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
mov rax, qword [rdx + 0x1a8]
cmp dword [rax + 0x10], 0
je 0x18009b766
mov edx, 1
mov dword [rcx + 0xb18], 0xd
lea r8d, [rdx + 0xc]
add rsp, 0x20
pop rbx
jmp fcn.18009aa70
cmp dword [rdx + 0xfd8], 0
je 0x18009b77b
xor edx, edx
add rsp, 0x20
pop rbx
jmp 0x180097c10
cmp dword [rdx + 0xfe4], 0
je 0x18009b81c
mov r8, qword [rcx + 0xae0]
test r8, r8
jne 0x18009b7d6
mov r8, qword [rdx + 0xc78]
test r8, r8
jne 0x18009b7b9
cmp dword [rdx + 0xfd4], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rdx, str.PRET__s
add rcx, 0xa58
call fcn.1800b48e0
test eax, eax
je 0x18009b80c
add rsp, 0x20
pop rbx
ret
add rcx, 0xa58
cmp dword [rdx + 0x1014], 0
je 0x18009b7fc
lea rdx, str.PRET_STOR__s
call fcn.1800b48e0
test eax, eax
je 0x18009b80c
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.1800b48e0
test eax, eax
jne 0x18009b821
mov dword [rbx + 0xb18], 0x1d
add rsp, 0x20
pop rbx
ret
call fcn.1800984a0
add rsp, 0x20
pop rbx
ret