Function at 0x1800643c0
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
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rbp + 0x970], rax
mov rdi, qword [rcx]
mov r12, rcx
mov esi, edx
lea rcx, [rbp + 0x61]
xor edx, edx
mov r8d, 0xff
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], 0xffffffffffffffff
mov byte [rbp + 0x60], 0
call fcn.180037c60
mov rbx, qword [rdi + 0xc78]
xor eax, eax
mov qword [rsp + 0x58], rax
mov rdi, qword [rdi + 0xc78]
movzx r14d, ax
mov dword [rsp + 0x40], r14d
movzx r15d, ax
mov dword [rsp + 0x50], 1
mov r13d, eax
test rdi, rdi
je 0x180064658
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 1
jbe 0x180064658
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 0x41
jae 0x180064481
lea ecx, [rax + 0x41]
jmp 0x180064490
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
inc rcx
mov edx, 1
call qword [fcn.180033824]
mov r13, rax
test rax, rax
jne 0x1800644af
lea eax, [r13 + 0x1b]
jmp 0x180064bdc
movzx eax, byte [rbx]
cmp al, 0x5b
jne 0x1800644de
mov edx, 0x5d
mov rcx, rbx
lea r14, [rbx + 1]
call fcn.1800435c8
mov rdi, rax
test rax, rax
je 0x1800645ee
mov r8, rax
mov rdx, r14
sub r8, r14
jmp 0x18006454c
cmp al, 0x3a
jne 0x1800644e7
mov rdi, rbx
jmp 0x180064554
mov edx, 0x3a
mov rcx, rbx
call fcn.1800435c8
mov rdi, rax
test rax, rax
je 0x1800645da
lea r8, [rsp + 0x60]
mov rdx, rbx
mov ecx, reloc.WS2_32.dll_socket
call fcn.180075d30
cmp eax, 1
jne 0x180064543
xor edx, edx
mov rcx, r13
mov r15d, edx
mov dword [rsp + 0x40], edx
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
inc rbx
mov byte [rcx + rbx - 1], al
test al, al
jne 0x180064530
jmp 0x1800645ee
mov r8, rdi
mov rdx, rbx
sub r8, rbx
mov rcx, r13
call fcn.180034590
test rdi, rdi
je 0x1800645ee
mov edx, 0x3a
mov rcx, rdi
call fcn.1800435c8
mov rdi, rax
test rax, rax
je 0x1800645ee
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.18003ab40
mov ecx, eax
call fcn.18004edf0
mov edx, Ordinal_46
mov rcx, rdi
movzx r14d, ax
mov dword [rsp + 0x40], r14d
call fcn.1800435c8
test rax, rax
je 0x1800645d4
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.18003ab40
mov ecx, eax
call fcn.18004edf0
movzx r15d, ax
cmp r14w, ax
jbe 0x1800645ee
xor eax, eax
movzx r15d, ax
mov word [rsp + 0x40], ax
jmp 0x1800645ee
movzx r15d, r14w
jmp 0x1800645ee
mov rcx, r13
sub rcx, rbx
movzx eax, byte [rbx]
inc rbx
mov byte [rcx + rbx - 1], al
test al, al
jne 0x1800645e0
cmp byte [r13], 0
je 0x180064658
mov rcx, qword [r12 + 0x70]
mov rcx, qword [rcx + 0x20]
call fcn.18007ac20
mov r8d, dword [r12 + 0xb8]
lea rcx, [rbp + 0x160]
mov edx, eax
mov rax, qword [r12 + 0x70]
mov dword [rsp + 0x28], 0x401
mov qword [rsp + 0x20], rcx
mov ecx, dword [rax + 4]
mov r9, r13
call sym.srcore.dll_SpInitInstance
test eax, eax
je 0x18006464b
dec eax
je 0x180064bd7
dec eax
jne 0x180064658
mov r14d, dword [rsp + 0x50]
jmp 0x1800646d2
mov r14d, dword [rsp + 0x50]
mov rdi, r13
jmp 0x1800646d9
mov rcx, qword [r12 + 0x258]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x30], pe_nt_image_headers64
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1800646a2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rbp - 0x20]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180079630
lea rdx, str.getsockname___failed:__s
mov r8, rax
jmp 0x180064bc4
movzx ecx, word [rsp + 0x60]
mov r9d, 0x401
lea r8, [rbp + 0x160]
cmp ecx, 0x17
je 0x1800646c0
lea rdx, [rsp + 0x64]
jmp 0x1800646ca
lea rdx, [rsp + 0x68]
mov ecx, reloc.WS2_32.dll_socket
call fcn.18007b070
xor r14d, r14d
lea rdi, [rbp + 0x160]
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.180072450
cmp eax, 1
jne 0x180064706
lea rdx, [rsp + 0x58]
mov rcx, r12
call fcn.18004fd70
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x180064bba
mov rcx, qword [rsp + 0x48]
mov rbx, qword [rdx]
call fcn.180072680
test rbx, rbx
je 0x180064bba
mov rcx, r13
call qword [fcn.1800337e4]
mov qword [rsp + 0x38], 0xffffffffffffffff
xor edi, edi
nop
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call fcn.1800560a0
mov r13d, eax
test eax, eax
je 0x18006476d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rbx, qword [rbx + 0x28]
mov edi, eax
test rbx, rbx
jne 0x180064740
jmp 0x180064772
test rbx, rbx
jne 0x18006479c
lea rdx, [rbp - 0x20]
mov r8d, pe_nt_image_headers64
mov ecx, edi
call fcn.180079630
mov rcx, qword [rsp + 0x48]
lea rdx, str.socket_failure:__s
mov r8, rax
call fcn.180053b90
jmp 0x180064bd7
movsxd r8, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x60]
call fcn.180033ff0
mov eax, dword [rsp + 0x40]
mov edx, dword [rbx + 0x10]
mov dword [rsp + 0x30], edx
movzx edi, ax
cmp ax, r15w
ja 0x180064876
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 0x18006490f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test r14d, r14d
je 0x18006485d
cmp eax, 0x2741
jne 0x18006485d
lea rdx, [rbp - 0x20]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180079630
movzx r8d, di
mov rdi, qword [rsp + 0x48]
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s_n
mov rcx, rdi
mov r9, rax
call fcn.180053a90
mov rcx, qword [r12 + 0x258]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x30], pe_nt_image_headers64
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x180064899
movzx edi, word [rsp + 0x40]
xor r14d, r14d
jmp 0x18006486c
cmp eax, 0x2740
je 0x180064869
cmp eax, 0xd
jne 0x1800648d4
inc di
cmp di, r15w
jbe 0x1800647c6
mov rcx, qword [rsp + 0x48]
lea rdx, str.bind___failed__we_ran_out_of_ports_
call fcn.180053b90
mov rdx, qword [rsp + 0x38]
mov rcx, r12
call fcn.180056010
jmp 0x180064bd7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rbp - 0x20]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180079630
mov rcx, rdi
lea rdx, str.getsockname___failed:__s
mov r8, rax
call fcn.180053b90
mov rdx, qword [rsp + 0x38]
mov rcx, r12
call fcn.180056010
jmp 0x180064bd7
lea rdx, [rbp - 0x20]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180079630
mov rcx, qword [rsp + 0x48]
lea rdx, str.bind_port_hu__failed:__s
mov r9, rax
movzx r8d, di
call fcn.180053b90
mov rdx, qword [rsp + 0x38]
mov rcx, r12
call fcn.180056010
jmp 0x180064bd7
cmp di, r15w
ja 0x180064876
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x30], pe_nt_image_headers64
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x18006495b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rbp - 0x20]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180079630
mov rcx, qword [rsp + 0x48]
jmp 0x1800648b3
mov rcx, qword [rsp + 0x38]
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x180064997
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rbp - 0x20]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180079630
mov rcx, qword [rsp + 0x48]
lea rdx, str.socket_failure:__s
jmp 0x1800648ba
lea rdx, [rbp + 0x60]
mov r8d, 0x100
mov rcx, rbx
call fcn.180071880
cmp dword [r12 + 0x41c], 0
jne 0x1800649cb
cmp dword [r12 + 0x3fc], 0
je 0x1800649cb
mov dword [r12 + 0x41c], 1
cmp esi, 2
je 0x180064a24
movzx eax, word [rsp + 0x60]
cmp dword [r12 + 0x41c], 0
jne 0x1800649e4
test esi, esi
je 0x180064a1d
cmp esi, 1
jne 0x1800649ef
cmp ax, 2
jne 0x180064a1d
movzx ecx, ax
cmp ecx, 2
je 0x1800649fc
cmp ecx, 0x17
jne 0x180064a1d
movzx ecx, word [rsp + 0x62]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r11d, ax
test esi, esi
je 0x180064b2d
cmp esi, 1
je 0x180064a68
movzx eax, word [rsp + 0x60]
inc esi
cmp esi, 2
jne 0x1800649d5
lea rdi, [r12 + 0x5c0]
mov rcx, r12
mov dword [rdi + 0xb4], esi
call fcn.180063ec0
mov rdx, qword [rsp + 0x38]
mov rcx, r12
mov qword [r12 + 0x260], rdx
mov edx, 0x1c
mov dword [r12 + 0x3cc], 1
call fcn.180064280
mov eax, r13d
jmp 0x180064bdc
lea rdi, [rbp + 0x570]
lea rdx, [rbp + 0x60]
mov r8d, Ordinal_46
nop dword [rax]
movzx ecx, byte [rdx]
test cl, cl
je 0x180064a9c
cmp cl, 0x2e
movzx eax, cl
cmove eax, r8d
inc rdi
inc rdx
mov byte [rdi - 1], al
jne 0x180064a80
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.1800703c0
lea rdi, [r12 + 0x5c0]
lea r9, [rbp + 0x570]
lea r8, str.PORT
lea rdx, [0x180091bd8]
mov rcx, rdi
call fcn.18007c140
mov r13d, eax
test eax, eax
je 0x180064a2c
mov ecx, eax
call fcn.180078d60
mov rcx, qword [rsp + 0x48]
lea rdx, str.Failure_sending_PORT_command:__s
mov r8, rax
call fcn.180053b90
mov rdx, qword [rsp + 0x38]
mov rcx, r12
call fcn.180056010
xor edx, edx
mov rcx, r12
call fcn.180064280
mov eax, r13d
jmp 0x180064bdc
cmp word [rsp + 0x60], 2
movzx eax, r11w
mov ecx, 0
setne cl
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x60]
lea r9d, [rcx + 1]
lea rdi, [r12 + 0x5c0]
lea r8, str.EPRT
lea rdx, str._s__d_s_hu
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.18007c140
mov r13d, eax
test eax, eax
je 0x180064a2c
mov ecx, eax
call fcn.180078d60
mov rcx, qword [rsp + 0x48]
lea rdx, str.Failure_sending_EPRT_command:__s
mov r8, rax
call fcn.180053b90
mov rdx, qword [rsp + 0x38]
mov rcx, r12
call fcn.180056010
xor edx, edx
mov rcx, r12
mov dword [rdi + 0xb4], 1
call fcn.180064280
mov eax, r13d
jmp 0x180064bdc
mov r8, rdi
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, qword [rsp + 0x48]
call fcn.180053b90
mov rcx, r13
call qword [fcn.1800337e4]
mov eax, 0x1e
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.1800334b0
mov rbx, qword [rsp + 0xad0]
add rsp, 0xa80
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 + 0x1e0]
cmp dword [rax + 0x20], 0
je 0x180067986
mov edx, reloc.WS2_32.dll_listen
call fcn.180064280
mov edx, 1
lea r8d, [rdx + 0xc]
add rsp, 0x20
pop rbx
jmp fcn.180066ef0
cmp dword [rdx + 0xf08], 0
je 0x18006799b
xor edx, edx
add rsp, 0x20
pop rbx
jmp 0x1800643c0
cmp dword [rdx + 0xf14], 0
je 0x180067a3e
mov r8, qword [rcx + 0x648]
test r8, r8
jne 0x1800679f6
mov r8, qword [rdx + 0xc48]
test r8, r8
jne 0x1800679d9
cmp dword [rdx + 0xf04], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rdx, str.PRET__s
add rcx, 0x5c0
call fcn.18007c140
test eax, eax
je 0x180067a2c
add rsp, 0x20
pop rbx
ret
add rcx, 0x5c0
cmp dword [rdx + 0xf44], 0
je 0x180067a1c
lea rdx, str.PRET_STOR__s
call fcn.18007c140
test eax, eax
je 0x180067a2c
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.18007c140
test eax, eax
jne 0x180067a43
mov edx, 0x1d
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.180064280
call fcn.180064c10
add rsp, 0x20
pop rbx
ret