Function at 0x1401539b0
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 - 0x670]
sub rsp, 0x770
mov rax, qword [0x1402e1040]
xor rax, rsp
mov qword [rbp + 0x660], rax
mov rax, qword [rcx + 0x20]
xor r15d, r15d
mov rsi, qword [rcx + 0x838]
xorps xmm0, xmm0
mov qword [rsp + 0x48], rax
mov r14d, edx
mov rax, 0xffffffffffffffff
mov byte [rbp + 0x90], 0
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x58], rax
mov r13b, 1
xor eax, eax
mov qword [rsp + 0x68], r15
mov qword [rbp + 0xb1], rax
mov r12d, r15d
mov dword [rbp + 0xb9], eax
mov ebx, r15d
mov word [rbp + 0xbd], ax
mov word [rsp + 0x44], r15w
mov word [rsp + 0x40], r15w
movups xmmword [rbp + 0x91], xmm0
movups xmmword [rbp + 0xa1], xmm0
test rsi, rsi
je 0x140153b6b
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], bl
jne 0x140153a62
cmp rax, 1
jbe 0x140153b6b
cmp byte [rsi], 0x3a
jne 0x140153a7e
mov rax, rsi
jmp 0x140153a9a
mov edx, 0x3a
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov r12, rsi
test rax, rax
je 0x140153af8
mov rbx, rax
sub rbx, rsi
mov edx, 0x3a
mov rcx, rax
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rsi, rax
test rax, rax
je 0x140153b09
lea rcx, [rax + 1]
xor edx, edx
mov r8d, 0xa
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov edx, Ordinal_46
mov rcx, rsi
mov dword [rsp + 0x44], eax
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
je 0x140153aef
lea rcx, [rax + 1]
xor edx, edx
mov r8d, 0xa
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov ecx, eax
jmp 0x140153b0d
mov eax, dword [rsp + 0x44]
movzx ecx, ax
jmp 0x140153b11
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rsi + rbx], r15b
jne 0x140153b00
mov ecx, dword [rsp + 0x40]
mov eax, dword [rsp + 0x44]
cmp ax, cx
mov esi, r15d
cmovbe si, cx
cmovbe r15w, ax
test rbx, rbx
je 0x140153b60
cmp rbx, 0x32
jae 0x1401544a4
mov r8, rbx
lea rcx, [rbp + 0xc0]
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rbx + 0xc0], 0
lea r12, [rbp + 0xc0]
mov word [rsp + 0x44], r15w
mov word [rsp + 0x40], si
jmp 0x140153c1f
mov word [rsp + 0x44], r15w
mov word [rsp + 0x40], si
mov r13, qword [rsp + 0x48]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], Ordinal_133
lea rdx, [rbp - 0x80]
mov rcx, qword [r13 + 0x220]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140153bbd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x150]
call fcn.1400fae60
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, rdi
call fcn.140101e00
jmp 0x1401544a9
movzx eax, word [rbp - 0x80]
cmp ax, 2
je 0x140153bf6
cmp ax, 0x17
je 0x140153bde
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x273f
jmp 0x1401544a9
mov r8d, 0x401
lea rdx, [rbp + 0x250]
lea rcx, [rbp - 0x7c]
call fcn.14013f580
jmp 0x140153c0c
mov r8d, 0x401
lea rdx, [rbp + 0x250]
lea rcx, [rbp - 0x7c]
call fcn.14013f4b0
test rax, rax
je 0x1401544a9
lea r12, [rbp + 0x250]
xor r13b, r13b
lea rax, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, rdi
call fcn.140133f10
cmp eax, 1
jne 0x140153d13
mov rbx, qword [rdi + 0xd38]
mov edx, 0xffffffff
mov rcx, qword [rbx]
test rcx, rcx
je 0x140153c6f
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
jmp 0x140153c99
mov rcx, qword [rbx + 8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [rbx + 8]
mov esi, eax
test rcx, rcx
je 0x140153c8d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0
test esi, esi
jne 0x140153ca1
mov rcx, rdi
call fcn.14011c450
mov r15, qword [rdi + 0xd30]
mov byte [rdi + 0xd50], 1
test r15, r15
jne 0x140153ce7
mov rax, qword [rdi + 0x20]
lea rcx, str.host
mov r9, qword [rdi + 0xd28]
lea r8, str.proxy
lea rdx, str.Could_not_resolve__s:__s
cmp byte [rax + 0x3a0], r15b
cmove r8, rcx
mov rcx, rdi
call fcn.140101e00
lea rcx, [rdi + 0xd28]
call fcn.14011ca60
cmp qword [rdi + 0xd30], 0
jne 0x140153d18
mov rax, qword [rdi + 0x20]
cmp byte [rax + 0x3a6], 1
je 0x140153d18
mov byte [rax + 0x3a6], 1
jmp 0x140153d18
mov r15, qword [rsp + 0x68]
test r15, r15
je 0x140154492
mov r9, qword [rdi + 0xe8]
mov rsi, qword [r15]
test r9, r9
je 0x140153d54
test byte [r9 + 4], 8
je 0x140153d54
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x140153d54
mov r9, qword [r9 + 0x20]
mov edx, 3
mov r8d, 2
mov rcx, rdi
call rax
sub dword [r15 + 0x10], 1
jne 0x140153d7e
mov rcx, qword [r15]
test rcx, rcx
je 0x140153d75
mov rbx, qword [rcx + 0x28]
call qword [0x1402e1138]
mov rcx, rbx
test rbx, rbx
jne 0x140153d63
mov rcx, r15
call qword [0x1402e1138]
mov r8, qword [rdi + 0xe8]
test r8, r8
je 0x140153da8
test byte [r8 + 4], 8
je 0x140153da8
mov rax, qword [r8 + 0x18]
test rax, rax
je 0x140153da8
mov r8, qword [r8 + 0x20]
mov edx, 3
mov rcx, rdi
call rax
test rsi, rsi
je 0x140154492
mov rbx, qword [rsp + 0x48]
nop word [rax + rax]
movzx ecx, byte [rbx + 0x7ca]
xor r12d, r12d
mov eax, dword [rsi + 4]
mov dword [rbp], eax
cmp cl, 3
je 0x140153df4
cmp cl, 6
je 0x140153dea
mov dword [rbp + 4], 2
mov dword [rbp + 8], reloc.WS2_32.dll_recvfrom
jmp 0x140153e02
mov qword [rbp + 4], 1
jmp 0x140153e02
mov dword [rbp + 4], 1
mov dword [rbp + 8], 6
mov eax, dword [rsi + 0x10]
mov dword [rbp + 0xc], eax
cmp eax, 0x80
jbe 0x140153e1b
mov dword [rbp + 0xc], Ordinal_133
mov eax, 0x80
mov rdx, qword [rsi + 0x20]
lea rcx, [rbp + 0x10]
mov r8d, eax
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsp + 0x58]
mov rcx, rdi
lea rdx, [rbp]
call fcn.140120f00
test eax, eax
je 0x140153e80
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140153dc0
lea rdx, [rbp + 0x150]
mov ecx, eax
call fcn.1400fae60
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, rdi
call fcn.140101e00
mov r15, qword [rsp + 0x58]
mov r13, rbx
jmp 0x1401544ae
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x140153e9d
movzx eax, byte [rax + 0x78e]
lea r8, str.STOP
mov r8, qword [r8 + rax*8]
jmp 0x140153ea4
lea r8, [0x1402acbd4]
lea rdx, str.__s__ftp_state_use_port____opened_socket
mov rcx, rdi
call fcn.140102410
movsxd r8, dword [rsi + 0x10]
lea rcx, [rbp - 0x80]
mov rdx, qword [rsi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsi + 0x10]
mov r15, qword [rsp + 0x58]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x44]
movzx ebx, ax
mov qword [rsp + 0x50], r15
cmp ax, word [rsp + 0x40]
ja 0x140153f99
cmp word [rbp - 0x80], 2
jne 0x140153efb
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x7e], ax
mov r8d, dword [rsp + 0x60]
lea rdx, [rbp - 0x80]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14015400b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test r13b, r13b
je 0x140153f7f
cmp eax, 0x2741
jne 0x140153f7f
lea rdx, [rbp + 0x150]
mov ecx, eax
call fcn.1400fae60
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s
mov rcx, rdi
call fcn.140101ff0
mov r13, qword [rsp + 0x48]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], Ordinal_133
lea rdx, [rbp - 0x80]
mov rcx, qword [r13 + 0x220]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140153fb2
movzx ebx, word [rsp + 0x44]
xor r13b, r13b
jmp 0x140153ee7
cmp eax, 0x2740
je 0x140153f8b
cmp eax, 0xd
jne 0x140153fdd
inc bx
cmp bx, word [rsp + 0x40]
jbe 0x140153ee7
lea rdx, str.bind___failed__we_ran_out_of_ports
mov rcx, rdi
call fcn.140101e00
mov r13, qword [rsp + 0x48]
jmp 0x1401544ae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x150]
call fcn.1400fae60
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, rdi
call fcn.140101e00
jmp 0x1401544ae
lea rdx, [rbp + 0x150]
mov ecx, eax
call fcn.1400fae60
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__failed:__s
mov rcx, rdi
call fcn.140101e00
mov r13, qword [rsp + 0x48]
jmp 0x1401544ae
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], Ordinal_133
lea rdx, [rbp - 0x80]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140154059
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x150]
call fcn.1400fae60
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, rdi
call fcn.140101e00
mov r13, qword [rsp + 0x48]
jmp 0x1401544ae
mov rax, qword [rdi + 0x20]
lea r13, str.STOP
test rax, rax
je 0x140154077
movzx eax, byte [rax + 0x78e]
mov r8, qword [r13 + rax*8]
jmp 0x14015407e
lea r8, [0x1402acbd4]
movzx ebx, bx
lea rdx, str.__s__ftp_state_use_port____socket_bound_to_port__d
mov r9d, ebx
mov rcx, rdi
call fcn.140102410
mov edx, 1
mov rcx, r15
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1401540d5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x150]
call fcn.1400fae60
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, rdi
call fcn.140101e00
mov r13, qword [rsp + 0x48]
jmp 0x1401544ae
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x1401540ec
movzx eax, byte [rax + 0x78e]
mov r8, qword [r13 + rax*8]
jmp 0x1401540f3
lea r8, [0x1402acbd4]
mov r9d, ebx
lea rdx, str.__s__ftp_state_use_port____listening_on__d
mov rcx, rdi
call fcn.140102410
mov byte [rbp + 0x90], 0
cmp dword [rsi + 4], 2
jne 0x14015412c
mov rcx, qword [rsi + 0x20]
lea rdx, [rbp + 0x90]
add rcx, 4
mov r8d, 0x2f
call fcn.14013f4b0
mov r13, qword [rsp + 0x48]
mov rdx, rdi
lea rcx, [r13 + 0x258]
call fcn.14010ce30
mov edx, 0x158
mov ecx, 1
call qword [case.0x140161b02.3]
mov rsi, rax
test rax, rax
je 0x14015446c
movzx eax, byte [r13 + 0x7ca]
mov edx, Ordinal_41
mov dword [rsi], eax
mov ecx, 1
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x98], rax
mov byte [rsi + 0x151], 0
call qword [case.0x140161b02.3]
mov rbx, rax
test rax, rax
je 0x140154469
mov qword [rbx + 0x10], rsi
lea rax, str.TCP_ACCEPT
mov qword [rbx], rax
lea r8, str.added
mov rax, qword [r13 + 0x258]
mov rdx, rbx
mov qword [rbx + 8], rax
mov rcx, rdi
mov qword [rbx + 0x18], r13
mov dword [rbx + 0x20], 1
mov qword [r13 + 0x258], rbx
call fcn.140102040
mov rax, qword [rsi + 0x98]
mov rdx, rdi
mov rcx, rbx
mov qword [r13 + 0x228], rax
call fcn.140121da0
cmp byte [0x1402e3f79], 0
mov byte [rsi + 0x153], 1
je 0x140154235
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x68]
mov r8, qword [0x1402e3f70]
mov rax, rcx
cqo
idiv r8
mov qword [rsp + 0x68], rax
mov rax, rcx
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
jmp 0x14015425c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
mov qword [rsp + 0x68], rax
imul eax, edx, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x70], eax
lea r8, str.Curl_conn_tcp_listen_set__qd_
movups xmm0, xmmword [rsp + 0x68]
mov rdx, rbx
mov rcx, rdi
movups xmmword [rsi + 0x118], xmm0
mov byte [rbx + 0x24], 1
mov r9, qword [rsi + 0x98]
call fcn.140102040
mov r15, 0xffffffffffffffff
cmp r14d, 2
je 0x1401542de
cmp byte [r13 + 0x3b1], 0
jne 0x1401542a5
test r14d, r14d
je 0x1401542d5
cmp word [rbp - 0x80], 2
jne 0x1401542d5
movzx ecx, word [rbp - 0x7e]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp r14d, 1
jne 0x1401542c2
movzx r8d, ax
jmp 0x1401542cf
movzx r8d, ax
test r14d, r14d
je 0x1401543d0
cmp r14d, 1
je 0x140154318
inc r14d
cmp r14d, 2
jne 0x140154296
lea rbx, [r13 + 0x680]
mov dword [rbx + 0x100], r14d
mov rbx, qword [rdi + 0x20]
movzx eax, byte [rbx + 0x78e]
cmp al, 0x1c
je 0x140154457
test rbx, rbx
je 0x14015443a
lea r8, str.STOP
mov r8, qword [r8 + rax*8]
jmp 0x140154441
movzx eax, byte [rbp + 0x90]
lea rcx, [rbp + 0x100]
test al, al
je 0x140154357
lea rdx, [rbp + 0x90]
lea r9, [rbp + 0x100]
sub rdx, r9
nop dword [rax + rax]
cmp al, 0x2e
mov al, 0x2c
je 0x14015434a
movzx eax, byte [rdx + rcx]
mov byte [rcx], al
inc rcx
movzx eax, byte [rdx + rcx]
test al, al
jne 0x140154340
movzx r9d, r8w
mov edx, reloc.WS2_32.dll_sendto
movzx eax, r9b
lea r8, str.__d__d
shr r9d, 8
mov dword [rsp + 0x20], eax
mov byte [rcx], 0
call sym.CheraxLoader.exe_curl_msnprintf
lea rax, [rbp + 0x100]
mov rcx, rdi
lea rbx, [r13 + 0x680]
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea r9, [0x14027161d]
lea r8, [0x1402b74d8]
call fcn.14016fa70
mov r12d, eax
test eax, eax
je 0x1401542e5
mov ecx, eax
call sym.CheraxLoader.exe_curl_easy_strerror
mov r8, rax
lea rdx, str.Failure_sending_PORT_command:__s
mov rcx, rdi
call fcn.140101e00
jmp 0x1401544b4
cmp word [rbp - 0x80], 2
lea rax, [rbp + 0x90]
mov dword [rsp + 0x30], r8d
lea rbx, [r13 + 0x680]
mov ecx, 0
mov qword [rsp + 0x28], rax
setne cl
lea r9, str.EPRT
inc ecx
lea r8, str._s__d_s_hu
mov dword [rsp + 0x20], ecx
mov rdx, rbx
mov rcx, rdi
call fcn.14016fa70
mov r12d, eax
test eax, eax
je 0x1401542e5
mov ecx, eax
call sym.CheraxLoader.exe_curl_easy_strerror
mov r8, rax
lea rdx, str.Failure_sending_EPRT_command:__s
mov rcx, rdi
call fcn.140101e00
jmp 0x1401544b4
lea r8, [0x1402acbd4]
lea r9, str.PORT
mov rcx, rdi
lea rdx, str.__s_______s_
call fcn.140102410
mov byte [rbx + 0x78e], 0x1c
test r12d, r12d
je 0x1401544fc
jmp 0x1401544b4
mov r12, rbx
mov rcx, r12
mov dword [rsp + 0x40], reloc.WLDAP32.dll_Ordinal_27
call qword [0x1402e1138]
mov rcx, rsi
call qword [0x1402e1138]
mov r12d, dword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
jmp 0x1401544b4
mov r8, r12
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, rdi
call fcn.140101e00
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x50]
mov r12d, 0x1e
mov rbx, qword [rdi + 0x20]
movzx eax, byte [rbx + 0x78e]
test al, al
je 0x1401544f5
test rbx, rbx
je 0x1401544d5
lea rcx, str.STOP
mov rax, qword [rcx + rax*8]
jmp 0x1401544dc
lea rax, [0x1402acbd4]
lea r9, str.STOP
mov r8, rax
lea rdx, str.__s_______s_
mov rcx, rdi
call fcn.140102410
mov byte [rbx + 0x78e], 0
cmp r15, 0xffffffffffffffff
je 0x14015451b
test r13, r13
je 0x140154512
mov rdx, r15
mov rcx, rdi
call fcn.14010b730
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, r12d
mov rcx, qword [rbp + 0x660]
xor rcx, rsp
call fcn.140171bd0
mov rbx, qword [rsp + 0x7c0]
add rsp, 0x770
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret