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

Disassembly:
mov r11, rsp
sub rsp, 0xa28
mov rax, qword [0x0072f1d0]
mov qword [rsp + 0x9e0], rax
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 - 8], rsi
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x18], r12
mov qword [r11 - 0x20], r13
mov qword [r11 - 0x28], r14
mov r14, qword [rcx]
mov rsi, rcx
mov ebx, edx
lea rcx, [r11 - 0x957]
mov r8d, 0xff
xor edx, edx
mov qword [r11 - 0x30], r15
mov qword [rsp + 0x38], 0xffffffffffffffff
mov byte [rsp + 0xd0], 0
call sub.msvcrt.dll_memset
mov rbp, qword [r14 + 0x538]
mov qword [rsp + 0x48], 0
mov rdi, qword [r14 + 0x538]
xor r15w, r15w
xor r13w, r13w
xor r12d, r12d
test rdi, rdi
mov dword [rsp + 0x40], 1
je 0x559635
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 1
jbe 0x559635
mov rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasb al, byte [rdi]
mov eax, reloc.WS2_32.dll_shutdown
not rcx
lea edx, [rax - 0x15]
dec rcx
cmp rcx, rax
cmovb rcx, rax
inc rcx
call qword [sub.msvcrt.dll_calloc]
test rax, rax
mov r12, rax
jne 0x559500
lea eax, [r12 + 0x1b]
jmp 0x559b9a
cmp byte [rbp], 0x3a
jne 0x5595d0
mov rdi, rbp
test rdi, rdi
je 0x559583
mov edx, Ordinal_60
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
mov rdi, rax
je 0x559583
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call qword [sym.imp.msvcrt.dll_strtoul]
mov ecx, eax
call fcn.00566b70
mov edx, Ordinal_46
mov rcx, rdi
movzx r15d, ax
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x559624
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call qword [sym.imp.msvcrt.dll_strtoul]
mov ecx, eax
call fcn.00566b70
cmp r15w, ax
movzx r13d, ax
jbe 0x559583
xor r13w, r13w
xor r15w, r15w
cmp byte [r12], 0
je 0x559635
mov rax, qword [rsi + 0x58]
mov edx, dword [rsi + 0xa0]
lea r9, [rsp + 0x1d0]
mov ecx, dword [rax + 4]
mov r8, r12
mov dword [rsp + 0x20], 0x401
call fcn.0056bb40
test eax, eax
je 0x55962d
dec eax
je 0x55998c
dec eax
jne 0x559635
lea rdi, [rsp + 0x1d0]
jmp 0x5596c3
mov edx, Ordinal_60
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
mov rdi, rax
je 0x5595fd
mov r8, rax
mov rdx, rbp
mov rcx, r12
sub r8, rbp
call qword [sym.imp.msvcrt.dll_strncpy]
jmp 0x55950d
mov rcx, r12
sub rcx, rbp
nop
nop
nop
nop
movzx eax, byte [rbp]
inc rbp
test al, al
mov byte [rcx + rbp - 1], al
jne 0x559610
jmp 0x559583
mov r13w, r15w
jmp 0x559583
mov rdi, r12
jmp 0x5596c3
mov rcx, qword [rsi + 0x1a8]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x559696
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
call fcn.0052bc00
lea rdx, str.getsockname___failed:__s
mov rcx, r14
mov r8, rax
call fcn.0052eee0
test r12, r12
je 0x55998c
mov rcx, r12
call qword [sub.msvcrt.dll_free]
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x559b9a
movzx ecx, word [rsp + 0x50]
lea r8, [rsp + 0x1d0]
lea rdx, [rsp + 0x54]
mov r9d, 0x401
call fcn.00547680
lea rdi, [rsp + 0x1d0]
mov dword [rsp + 0x40], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.00530ef0
cmp eax, 1
jne 0x5596e8
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.00530480
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x559702
mov rbp, qword [rdx]
mov rcx, r14
call fcn.005311f0
test rbp, rbp
jne 0x559730
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov r8, rdi
mov rcx, r14
call fcn.0052eee0
test r12, r12
je 0x55998c
mov rcx, r12
call qword [sub.msvcrt.dll_free]
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x559b9a
test r12, r12
je 0x55973e
mov rcx, r12
call qword [sub.msvcrt.dll_free]
mov qword [rsp + 0x38], 0xffffffffffffffff
xor edi, edi
nop
nop
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call fcn.0053f4a0
test eax, eax
mov r12d, eax
je 0x55977d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rbp, qword [rbp + 0x28]
test rbp, rbp
mov edi, eax
jne 0x559750
jmp 0x559782
test rbp, rbp
jne 0x5597a8
mov edx, edi
mov rcx, rsi
call fcn.0052bc00
lea rdx, str.socket_failure:__s
mov rcx, r14
mov r8, rax
call fcn.0052eee0
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x559b9a
movsxd r8, dword [rbp + 0x10]
mov rdx, qword [rbp + 0x20]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_memcpy
cmp r15w, r13w
mov edx, dword [rbp + 0x10]
mov dword [rsp + 0x30], edx
movzx edi, r15w
ja 0x5598db
nop
cmp word [rsp + 0x50], 2
jne 0x5597e6
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x5598d5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [rsp + 0x40], 0
je 0x559864
cmp eax, 0x2741
jne 0x559864
mov edx, eax
mov rcx, rsi
call fcn.0052bc00
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s_n
movzx r8d, di
mov r9, rax
mov rcx, r14
call fcn.0052ede0
mov rcx, qword [rsi + 0x1a8]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x559891
mov di, r15w
mov dword [rsp + 0x40], eax
jmp 0x559873
cmp eax, 0x2740
je 0x559870
cmp eax, 0xd
jne 0x5598b0
inc di
cmp di, r13w
jbe 0x5597d0
lea rdx, str.bind___failed__we_ran_out_of_ports_
mov rcx, r14
call fcn.0052eee0
jmp 0x55997f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
call fcn.0052bc00
lea rdx, str.getsockname___failed:__s
mov r8, rax
jmp 0x559977
mov edx, eax
mov rcx, rsi
call fcn.0052bc00
lea rdx, str.bind_port_hu__failed:__s
movzx r8d, di
mov r9, rax
mov rcx, r14
call fcn.0052eee0
jmp 0x55997f
cmp di, r13w
jbe 0x5598ef
lea rdx, str.bind___failed__we_ran_out_of_ports_
mov rcx, r14
call fcn.0052eee0
jmp 0x55997f
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x559949
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
call fcn.0052bc00
lea rdx, str.getsockname___failed:__s
mov rcx, r14
mov r8, rax
call fcn.0052eee0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.0053f420
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x559b9a
mov rcx, qword [rsp + 0x38]
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x559996
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
call fcn.0052bc00
lea rdx, str.socket_failure:__s
mov r8, rax
mov rcx, r14
call fcn.0052eee0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.0053f420
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x559b9a
lea rdx, [rsp + 0xd0]
mov r8d, 0x100
mov rcx, rbp
call fcn.00530a90
cmp ebx, 2
je 0x559b55
movzx eax, word [rsp + 0x50]
nop
nop
cmp dword [rsi + 0x2ec], 0
jne 0x5599cd
test ebx, ebx
je 0x5599ff
cmp ebx, 1
jne 0x5599d8
cmp ax, 2
jne 0x5599ff
cmp ax, 2
jne 0x5599ff
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
test ebx, ebx
movzx r11d, ax
je 0x559a12
cmp ebx, 1
je 0x559a9e
mov ax, word [rsp + 0x50]
inc ebx
cmp ebx, 2
jne 0x5599c0
lea rdi, [rsi + 0x568]
jmp 0x559b5c
xor r9d, r9d
cmp word [rsp + 0x50], 2
movzx eax, r11w
mov dword [rsp + 0x28], eax
setne r9b
lea rax, [rsp + 0xd0]
lea rdi, [rsi + 0x568]
lea r8, str.EPRT
lea rdx, str._s__d_s_hu
inc r9d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.0056bfe0
test eax, eax
mov r12d, eax
je 0x559b5c
mov ecx, eax
call fcn.0052b2d0
lea rdx, str.Failure_sending_EPRT_command:__s
mov rcx, r14
mov r8, rax
call fcn.0052eee0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.0053f420
mov dword [rdi + 0xac], 1
mov dword [rsi + 0x620], 0
jmp 0x559b97
lea rdi, [rsp + 0x5e0]
lea rdx, [rsp + 0xd0]
mov r8d, Ordinal_46
movzx ecx, byte [rdx]
test cl, cl
je 0x559ad0
cmp cl, 0x2e
movzx eax, cl
cmove eax, r8d
inc rdi
inc rdx
mov byte [rdi - 1], al
jne 0x559ab4
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.0052c8e0
lea rdi, [rsi + 0x568]
lea r9, [rsp + 0x5e0]
lea r8, str.PORT
lea rdx, [0x006b0b3c]
mov rcx, rdi
call fcn.0056bfe0
test eax, eax
mov r12d, eax
je 0x559b5c
mov ecx, eax
call fcn.0052b2d0
lea rdx, str.Failure_sending_PORT_command:__s
mov rcx, r14
mov r8, rax
call fcn.0052eee0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.0053f420
mov dword [rsi + 0x620], 0
jmp 0x559b97
lea rdi, [rsi + 0x568]
mov dword [rdi + 0xac], ebx
mov rdx, qword [rsi + 0x1b0]
cmp rdx, 0xffffffffffffffff
je 0x559b77
mov rcx, rsi
call fcn.0053f420
mov rax, qword [rsp + 0x38]
mov dword [rsi + 0x2d0], 1
mov qword [rsi + 0x1b0], rax
mov dword [rsi + 0x620], 0x1c
mov eax, r12d
mov r15, qword [rsp + 0x9f8]
mov r14, qword [rsp + 0xa00]
mov r13, qword [rsp + 0xa08]
mov r12, qword [rsp + 0xa10]
mov rdi, qword [rsp + 0xa18]
mov rsi, qword [rsp + 0xa20]
mov rbp, qword [rsp + 0xa48]
mov rbx, qword [rsp + 0xa40]
mov rcx, qword [rsp + 0x9e0]
call fcn.00693b90
add rsp, 0xa28
ret
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x48], rdi
cmp dword [rax + 0x18], 0
je 0x55d9d6
mov dword [rbx + 0x620], 0xd
mov r9, qword [rbx]
xor eax, eax
mov r8, qword [r9 + 0x350]
mov rcx, qword [r9 + 0x1a8]
mov dword [rbx + 0x614], eax
test r8, r8
je 0x55d94f
mov r8, qword [r8]
cmp byte [r8], 0x2a
jne 0x55d915
inc r8
mov dword [rbx + 0x618], 1
jmp 0x55d91b
mov dword [rbx + 0x618], eax
lea rdx, [0x006a0bd4]
lea rcx, [rbx + 0x568]
call fcn.0056bfe0
test eax, eax
jne 0x55dac2
mov dword [rbx + 0x620], 0xd
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
cmp dword [rcx + 0x18], eax
je 0x55d969
mov dword [rbx + 0x620], eax
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
mov rdx, qword [rbx + 0x638]
cmp rdx, 0xffffffffffffffff
je 0x55d99b
mov rcx, r9
call fcn.005451a0
mov rdx, qword [rbx + 0x638]
mov rcx, rbx
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
jmp fcn.0055a240
mov r8, qword [rbx + 0x5e8]
lea rdx, str.SIZE__s
lea rcx, [rbx + 0x568]
call fcn.0056bfe0
test eax, eax
jne 0x55dac2
mov dword [rbx + 0x620], 0x18
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
cmp dword [rcx + 0x460], 0
je 0x55d9f7
xor edx, edx
mov rcx, rbx
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
jmp 0x559410
cmp dword [rcx + 0x4ac], 0
je 0x55daba
mov r8, qword [rbx + 0x5e8]
test r8, r8
jne 0x55da5b
mov r8, qword [rcx + 0x510]
test r8, r8
jne 0x55da35
cmp dword [rcx + 0x45c], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x568]
lea rdx, str.PRET__s
call fcn.0056bfe0
test eax, eax
je 0x55daa1
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
cmp dword [rcx + 0x48c], 0
je 0x55da8a
lea rcx, [rbx + 0x568]
lea rdx, str.PRET_STOR__s
call fcn.0056bfe0
test eax, eax
je 0x55daa1
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
lea rcx, [rbx + 0x568]
lea rdx, str.PRET_RETR__s
call fcn.0056bfe0
test eax, eax
jne 0x55dac2
mov dword [rbx + 0x620], 0x1d
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
mov rcx, rbx
call fcn.00559bf0
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret