Function at 0x140150800
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 [0x1402dc040]
xor rax, rsp
mov qword [rbp + 0x660], rax
mov rax, qword [rcx + 0x20]
xor r15d, r15d
mov r14, qword [rcx + 0x790]
xorps xmm0, xmm0
mov qword [rsp + 0x50], rax
mov edi, edx
mov rax, 0xffffffffffffffff
mov byte [rbp + 0x90], 0
mov qword [rsp + 0x58], rax
mov rsi, rcx
mov qword [rsp + 0x60], rax
mov r13d, 0x1e
xor eax, eax
mov qword [rsp + 0x70], 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 + 0x48], r15w
mov byte [rsp + 0x40], 1
movups xmmword [rbp + 0x91], xmm0
movups xmmword [rbp + 0xa1], xmm0
test r14, r14
je 0x1401509ce
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [r14 + rax], bl
jne 0x1401508c0
cmp rax, 1
jbe 0x1401509ce
cmp byte [r14], 0x3a
jne 0x1401508de
mov rax, r14
jmp 0x1401508fa
mov edx, 0x3a
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov r12, r14
test rax, rax
je 0x140150958
mov rbx, rax
sub rbx, r14
mov edx, 0x3a
mov rcx, rax
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov r14, rax
test rax, rax
je 0x140150969
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, r14
mov dword [rsp + 0x44], eax
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
je 0x14015094f
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 0x14015096d
mov eax, dword [rsp + 0x44]
movzx ecx, ax
jmp 0x140150971
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [r14 + rbx], r15b
jne 0x140150960
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x44]
cmp ax, cx
mov r14d, r15d
cmovbe r14w, cx
cmovbe r15w, ax
test rbx, rbx
je 0x1401509c2
cmp rbx, 0x32
jae 0x1401511c2
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 + 0x48], r14w
jmp 0x140150a85
mov word [rsp + 0x44], r15w
mov word [rsp + 0x48], r14w
mov r15, qword [rsp + 0x50]
lea r8, [rsp + 0x68]
mov dword [rsp + 0x68], Ordinal_133
lea rdx, [rbp - 0x80]
mov rcx, qword [r15 + 0x220]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140150a20
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x150]
call fcn.1400fb380
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, rsi
call fcn.140101f40
jmp 0x1401511c7
movzx eax, word [rbp - 0x80]
cmp ax, 2
je 0x140150a59
cmp ax, 0x17
je 0x140150a41
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x273f
jmp 0x1401511c7
mov r8d, 0x401
lea rdx, [rbp + 0x250]
lea rcx, [rbp - 0x7c]
call fcn.14013c060
jmp 0x140150a6f
mov r8d, 0x401
lea rdx, [rbp + 0x250]
lea rcx, [rbp - 0x7c]
call fcn.14013bf90
test rax, rax
je 0x1401511c7
xor al, al
lea r12, [rbp + 0x250]
mov byte [rsp + 0x40], al
lea rax, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, rsi
call fcn.140131620
cmp eax, 1
jne 0x140150b6d
mov r14, qword [rsi + 0xd98]
mov edx, 0xffffffff
mov rcx, qword [r14]
test rcx, rcx
je 0x140150ace
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140150af3
mov rcx, qword [r14 + 8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [r14 + 8]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r14 + 8], 0
test ebx, ebx
jne 0x140150afb
mov rcx, rsi
call fcn.14011bee0
mov r15, qword [rsi + 0xd90]
mov byte [rsi + 0xdb0], 1
test r15, r15
jne 0x140150b41
mov rax, qword [rsi + 0x20]
lea rcx, str.host
mov r9, qword [rsi + 0xd88]
lea r8, str.proxy
lea rdx, str.Could_not_resolve__s:__s
cmp byte [rax + 0x340], r15b
cmove r8, rcx
mov rcx, rsi
call fcn.140101f40
lea rcx, [rsi + 0xd88]
call fcn.14011c4f0
cmp qword [rsi + 0xd90], 0
jne 0x140150b72
mov rax, qword [rsi + 0x20]
cmp byte [rax + 0x346], 1
je 0x140150b72
mov byte [rax + 0x346], 1
jmp 0x140150b72
mov r15, qword [rsp + 0x70]
test r15, r15
je 0x1401511b0
mov r9, qword [rsi + 0xe8]
mov r14, qword [r15]
test r9, r9
je 0x140150bae
test byte [r9 + 4], 8
je 0x140150bae
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x140150bae
mov r9, qword [r9 + 0x20]
mov edx, 3
mov r8d, 2
mov rcx, rsi
call rax
sub dword [r15 + 0x10], 1
jne 0x140150bdb
mov rcx, qword [r15]
test rcx, rcx
je 0x140150bd2
nop dword [rax]
mov rbx, qword [rcx + 0x28]
call qword [fcn.14016f1de]
mov rcx, rbx
test rbx, rbx
jne 0x140150bc0
mov rcx, r15
call qword [fcn.14016f1de]
mov r8, qword [rsi + 0xe8]
test r8, r8
je 0x140150c05
test byte [r8 + 4], 8
je 0x140150c05
mov rax, qword [r8 + 0x18]
test rax, rax
je 0x140150c05
mov r8, qword [r8 + 0x20]
mov edx, 3
mov rcx, rsi
call rax
test r14, r14
je 0x1401511b0
mov r15, qword [rsp + 0x50]
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r15 + 0x772]
mov eax, dword [r14 + 4]
mov dword [rbp], eax
cmp cl, 3
je 0x140150c53
cmp cl, 6
je 0x140150c49
mov dword [rbp + 4], 2
mov dword [rbp + 8], reloc.WS2_32.dll_recvfrom
jmp 0x140150c61
mov qword [rbp + 4], 1
jmp 0x140150c61
mov dword [rbp + 4], 1
mov dword [rbp + 8], 6
mov eax, dword [r14 + 0x10]
mov dword [rbp + 0xc], eax
cmp eax, 0x80
jbe 0x140150c7b
mov dword [rbp + 0xc], Ordinal_133
mov eax, 0x80
mov rdx, qword [r14 + 0x20]
lea rcx, [rbp + 0x10]
mov r8d, eax
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsp + 0x60]
mov rcx, rsi
lea rdx, [rbp]
call fcn.140120d70
test eax, eax
je 0x140150cdd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14, qword [r14 + 0x28]
test r14, r14
jne 0x140150c20
lea rdx, [rbp + 0x150]
mov ecx, eax
call fcn.1400fb380
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, rsi
call fcn.140101f40
mov r12, qword [rsp + 0x60]
jmp 0x1401511cc
movsxd r8, dword [r14 + 0x10]
lea rcx, [rbp - 0x80]
mov rdx, qword [r14 + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [r14 + 0x10]
mov r12, qword [rsp + 0x60]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x44]
movzx ebx, ax
cmp ax, word [rsp + 0x48]
ja 0x140150dca
nop dword [rax]
cmp word [rbp - 0x80], 2
jne 0x140150d24
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x7e], ax
mov r8d, dword [rsp + 0x68]
lea rdx, [rbp - 0x80]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140150e07
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ecx, byte [rsp + 0x40]
test cl, cl
je 0x140150dac
cmp eax, 0x2741
jne 0x140150dac
lea rdx, [rbp + 0x150]
mov ecx, eax
call fcn.1400fb380
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s
mov rcx, rsi
call fcn.140102070
mov dword [rsp + 0x68], Ordinal_133
lea r8, [rsp + 0x68]
mov rcx, qword [r15 + 0x220]
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140150e25
movzx ebx, word [rsp + 0x44]
mov byte [rsp + 0x40], al
jmp 0x140150d10
cmp eax, 0x2740
je 0x140150db8
cmp eax, 0xd
jne 0x140150dde
inc bx
mov byte [rsp + 0x40], cl
cmp bx, word [rsp + 0x48]
jbe 0x140150d10
lea rdx, str.bind___failed__we_ran_out_of_ports
mov rcx, rsi
call fcn.140101f40
jmp 0x1401511cc
lea rdx, [rbp + 0x150]
mov ecx, eax
call fcn.1400fb380
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__failed:__s
mov rcx, rsi
call fcn.140101f40
jmp 0x1401511cc
lea r8, [rsp + 0x68]
mov dword [rsp + 0x68], Ordinal_133
lea rdx, [rbp - 0x80]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140150e50
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x150]
call fcn.1400fb380
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, rsi
call fcn.140101f40
jmp 0x1401511cc
mov edx, 1
mov rcx, r12
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x140150e8d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x150]
call fcn.1400fb380
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, rsi
call fcn.140101f40
jmp 0x1401511cc
mov byte [rbp + 0x90], 0
cmp dword [r14 + 4], 2
jne 0x140150eb5
mov rcx, qword [r14 + 0x20]
lea rdx, [rbp + 0x90]
add rcx, 4
mov r8d, 0x2f
call fcn.14013bf90
mov rdx, rsi
lea rcx, [r15 + 0x258]
call fcn.14010c330
mov edx, 0x188
mov ecx, 1
call qword [case.0x14015e1a2.3]
mov r14, rax
test rax, rax
jne 0x140150ef9
mov rcx, rax
mov r13d, reloc.WLDAP32.dll_Ordinal_27
call qword [fcn.14016f1de]
mov rcx, r14
call qword [fcn.14016f1de]
jmp 0x1401511cc
movzx eax, byte [r15 + 0x772]
mov edx, Ordinal_41
mov ecx, 1
mov dword [r14], eax
mov qword [r14 + 0x98], r12
mov byte [r14 + 0x17d], 0
call qword [case.0x14015e1a2.3]
mov rbx, rax
test rax, rax
je 0x140150edc
mov qword [rbx + 0x10], r14
lea rax, str.TCP_ACCEPT
mov qword [rbx], rax
lea r8, str.added
mov rax, qword [r15 + 0x258]
mov rdx, rbx
mov qword [rbx + 8], rax
mov rcx, rsi
mov qword [rbx + 0x18], r15
xor r13d, r13d
mov dword [rbx + 0x20], 1
mov qword [r15 + 0x258], rbx
call fcn.140102180
mov rax, qword [r14 + 0x98]
mov rdx, rsi
mov rcx, rbx
mov qword [r15 + 0x228], rax
call fcn.140121a40
cmp byte [0x1402df141], r13b
mov byte [r14 + 0x17f], 1
je 0x140150fcf
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x70]
mov r8, qword [0x1402df138]
mov rax, rcx
cqo
idiv r8
mov qword [rsp + 0x70], rax
mov rax, rcx
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
jmp 0x140150ff6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
mov qword [rsp + 0x70], rax
imul eax, edx, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x78], eax
lea r8, str.Curl_conn_tcp_listen_set__qd_
movups xmm0, xmmword [rsp + 0x70]
mov rdx, rbx
mov rcx, rsi
movups xmmword [r14 + 0x158], xmm0
mov byte [rbx + 0x24], 1
mov r9, qword [r14 + 0x98]
call fcn.140102180
mov r12, 0xffffffffffffffff
cmp edi, 2
je 0x140151071
cmp byte [r15 + 0x351], r13b
jne 0x14015103d
test edi, edi
je 0x14015106a
cmp word [rbp - 0x80], 2
jne 0x14015106a
movzx ecx, word [rbp - 0x7e]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp edi, 1
jne 0x140151059
movzx r8d, ax
jmp 0x140151065
movzx r8d, ax
test edi, edi
je 0x140151148
cmp edi, 1
je 0x140151097
inc edi
cmp edi, 2
jne 0x140151030
lea rbx, [r15 + 0x628]
mov dword [rbx + 0x100], edi
mov rax, qword [rsi + 0x20]
mov byte [rax + 0x736], 0x1c
test r13d, r13d
je 0x1401511d7
jmp 0x1401511cc
lea r10, [rbp + 0x100]
mov r9d, Ordinal_46
lea rdx, [rbp + 0x90]
nop dword [rax + rax]
movzx ecx, byte [rdx]
test cl, cl
je 0x1401510cc
cmp cl, 0x2e
mov eax, ecx
cmove eax, r9d
mov byte [r10], al
inc r10
add rdx, 1
jne 0x1401510b0
movzx r9d, r8w
mov edx, reloc.WS2_32.dll_sendto
movzx eax, r9b
lea r8, str.__d__d
shr r9d, 8
mov rcx, r10
mov dword [rsp + 0x20], eax
mov byte [r10], r13b
call sym.CheraxLoader.exe_curl_msnprintf
lea rax, [rbp + 0x100]
mov rcx, rsi
lea rbx, [r15 + 0x628]
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea r9, str.PORT
lea r8, [0x1402b27dc]
call fcn.14016bf40
mov r13d, eax
test eax, eax
je 0x140151078
mov ecx, eax
call sym.CheraxLoader.exe_curl_easy_strerror
mov r8, rax
lea rdx, str.Failure_sending_PORT_command:__s
mov rcx, rsi
call fcn.140101f40
jmp 0x1401511cc
cmp word [rbp - 0x80], 2
lea rax, [rbp + 0x90]
mov dword [rsp + 0x30], r8d
lea rbx, [r15 + 0x628]
mov rcx, r13
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, rsi
call fcn.14016bf40
mov r13d, eax
test eax, eax
je 0x140151078
mov ecx, eax
call sym.CheraxLoader.exe_curl_easy_strerror
mov r8, rax
lea rdx, str.Failure_sending_EPRT_command:__s
mov rcx, rsi
call fcn.140101f40
jmp 0x1401511cc
mov r8, r12
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, rsi
call fcn.140101f40
mov r15, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rax, qword [rsi + 0x20]
mov byte [rax + 0x736], 0
cmp r12, 0xffffffffffffffff
je 0x1401511f6
test r15, r15
je 0x1401511ed
mov rdx, r12
mov rcx, rsi
call fcn.14010acb0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, r13d
mov rcx, qword [rbp + 0x660]
xor rcx, rsp
call fcn.14016dfe0
mov rbx, qword [rsp + 0x7c0]
add rsp, 0x770
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret