Function at 0x14014a190
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 [0x1402d9040]
xor rax, rsp
mov qword [rbp + 0x660], rax
mov rax, qword [rcx + 0x20]
xorps xmm0, xmm0
mov r14, qword [rcx + 0x790]
mov rsi, rcx
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov rax, 0xffffffffffffffff
mov byte [rbp + 0x90], 0
mov qword [rsp + 0x58], rax
movzx r15d, cx
mov qword [rsp + 0x60], rax
mov edi, edx
xor eax, eax
mov qword [rsp + 0x78], rcx
mov qword [rbp + 0xb1], rax
mov r13d, 0x1e
mov dword [rbp + 0xb9], eax
mov r12d, ecx
mov word [rbp + 0xbd], ax
mov ebx, ecx
mov word [rsp + 0x44], cx
mov dword [rsp + 0x50], r15d
mov byte [rsp + 0x40], 1
movups xmmword [rbp + 0x91], xmm0
movups xmmword [rbp + 0xa1], xmm0
test r14, r14
je 0x14014a36d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [r14 + rax], cl
jne 0x14014a250
cmp rax, 1
jbe 0x14014a36d
cmp byte [r14], 0x3a
jne 0x14014a26e
mov rax, r14
jmp 0x14014a28a
mov edx, 0x3a
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov r12, r14
test rax, rax
je 0x14014a2ea
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 0x14014a2fb
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov edx, Ordinal_46
mov rcx, r14
mov r15d, eax
mov dword [rsp + 0x44], eax
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
je 0x14014a2e3
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov r15d, eax
mov dword [rsp + 0x50], eax
jmp 0x14014a2fb
mov dword [rsp + 0x50], r15d
jmp 0x14014a2fb
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [r14 + rbx], 0
jne 0x14014a2f1
mov ecx, dword [rsp + 0x44]
xor eax, eax
cmp cx, r15w
mov r14d, eax
cmovbe r14w, r15w
mov r15d, eax
mov eax, dword [rsp + 0x50]
cmp cx, ax
cmovbe r15w, cx
test rbx, rbx
je 0x14014a35f
cmp rbx, 0x32
jae 0x14014aba2
mov r8, rbx
lea rcx, [rbp + 0xc0]
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx eax, r14w
mov byte [rbp + rbx + 0xc0], 0
mov dword [rsp + 0x50], eax
lea r12, [rbp + 0xc0]
mov word [rsp + 0x44], r15w
jmp 0x14014a424
movzx eax, r14w
mov word [rsp + 0x44], r15w
mov dword [rsp + 0x50], eax
mov r15, qword [rsp + 0x48]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], Ordinal_133
lea rdx, [rbp - 0x80]
mov rcx, qword [r15 + 0x220]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14014a3bf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x150]
call fcn.1400f5c00
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, rsi
call fcn.140115830
jmp 0x14014aba7
movzx eax, word [rbp - 0x80]
cmp ax, 2
je 0x14014a3f8
cmp ax, 0x17
je 0x14014a3e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x273f
jmp 0x14014aba7
mov r8d, 0x401
lea rdx, [rbp + 0x250]
lea rcx, [rbp - 0x7c]
call fcn.14012f7e0
jmp 0x14014a40e
mov r8d, 0x401
lea rdx, [rbp + 0x250]
lea rcx, [rbp - 0x7c]
call fcn.14012f710
test rax, rax
je 0x14014aba7
xor al, al
lea r12, [rbp + 0x250]
mov byte [rsp + 0x40], al
lea rax, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, rsi
call fcn.140123db0
cmp eax, 1
jne 0x14014a50c
mov r14, qword [rsi + 0xd98]
mov edx, 0xffffffff
mov rcx, qword [r14]
test rcx, rcx
je 0x14014a46d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14014a492
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 0x14014a49a
mov rcx, rsi
call fcn.140116bc0
mov r15, qword [rsi + 0xd90]
mov byte [rsi + 0xdb0], 1
test r15, r15
jne 0x14014a4e0
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.140115830
lea rcx, [rsi + 0xd88]
call fcn.1401170b0
cmp qword [rsi + 0xd90], 0
jne 0x14014a511
mov rax, qword [rsi + 0x20]
cmp byte [rax + 0x346], 1
je 0x14014a511
mov byte [rax + 0x346], 1
jmp 0x14014a511
mov r15, qword [rsp + 0x78]
test r15, r15
je 0x14014ab90
mov r9, qword [rsi + 0xe8]
mov r14, qword [r15]
test r9, r9
je 0x14014a54b
test byte [r9 + 4], 8
je 0x14014a54b
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x14014a54b
mov r9, qword [r9 + 0x20]
mov edx, 3
mov rcx, rsi
lea r8d, [rdx - 1]
call rax
sub dword [r15 + 0x10], 1
jne 0x14014a57b
mov rcx, qword [r15]
test rcx, rcx
je 0x14014a572
nop word [rax + rax]
mov rbx, qword [rcx + 0x28]
call qword [fcn.14016c458]
mov rcx, rbx
test rbx, rbx
jne 0x14014a560
mov rcx, r15
call qword [fcn.14016c458]
mov r8, qword [rsi + 0xe8]
test r8, r8
je 0x14014a5a5
test byte [r8 + 4], 8
je 0x14014a5a5
mov rax, qword [r8 + 0x18]
test rax, rax
je 0x14014a5a5
mov r8, qword [r8 + 0x20]
mov edx, 3
mov rcx, rsi
call rax
test r14, r14
je 0x14014ab90
mov r15, qword [rsp + 0x48]
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 0x14014a5f3
cmp cl, 6
je 0x14014a5e9
mov dword [rbp + 4], 2
mov dword [rbp + 8], reloc.WS2_32.dll_recvfrom
jmp 0x14014a601
mov qword [rbp + 4], 1
jmp 0x14014a601
mov dword [rbp + 4], 1
mov dword [rbp + 8], 6
mov eax, dword [r14 + 0x10]
mov dword [rbp + 0xc], eax
cmp eax, 0x80
jbe 0x14014a617
mov eax, 0x80
mov dword [rbp + 0xc], eax
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.140131ef0
test eax, eax
je 0x14014a679
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14, qword [r14 + 0x28]
test r14, r14
jne 0x14014a5c0
lea rdx, [rbp + 0x150]
mov ecx, eax
call fcn.1400f5c00
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, rsi
call fcn.140115830
mov r12, qword [rsp + 0x60]
jmp 0x14014abac
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 r15d, dword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x44]
movzx ebx, ax
cmp ax, r15w
ja 0x14014a76e
nop dword [rax]
cmp word [rbp - 0x80], 2
jne 0x14014a6c4
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x7e], ax
mov r8d, dword [rsp + 0x70]
lea rdx, [rbp - 0x80]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14014a7b5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ecx, byte [rsp + 0x40]
test cl, cl
je 0x14014a751
cmp eax, 0x2741
jne 0x14014a751
lea rdx, [rbp + 0x150]
mov ecx, eax
call fcn.1400f5c00
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s
mov rcx, rsi
call fcn.140115960
mov rax, qword [rsp + 0x48]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], Ordinal_133
lea rdx, [rbp - 0x80]
mov rcx, qword [rax + 0x220]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14014a7d9
movzx ebx, word [rsp + 0x44]
mov byte [rsp + 0x40], al
jmp 0x14014a6b0
cmp eax, 0x2740
je 0x14014a75d
cmp eax, 0xd
jne 0x14014a787
inc bx
mov byte [rsp + 0x40], cl
cmp bx, r15w
jbe 0x14014a6b0
lea rdx, str.bind___failed__we_ran_out_of_ports
mov rcx, rsi
call fcn.140115830
mov r15, qword [rsp + 0x48]
jmp 0x14014abac
lea rdx, [rbp + 0x150]
mov ecx, eax
call fcn.1400f5c00
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__failed:__s
mov rcx, rsi
call fcn.140115830
mov r15, qword [rsp + 0x48]
jmp 0x14014abac
cmp bx, r15w
ja 0x14014a76e
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], Ordinal_133
lea rdx, [rbp - 0x80]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14014a809
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x150]
call fcn.1400f5c00
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, rsi
call fcn.140115830
mov r15, qword [rsp + 0x48]
jmp 0x14014abac
mov edx, 1
mov rcx, r12
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14014a84b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x150]
call fcn.1400f5c00
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, rsi
call fcn.140115830
mov r15, qword [rsp + 0x48]
jmp 0x14014abac
mov byte [rbp + 0x90], 0
cmp dword [r14 + 4], 2
jne 0x14014a873
mov rcx, qword [r14 + 0x20]
lea rdx, [rbp + 0x90]
add rcx, 4
mov r8d, 0x2f
call fcn.14012f710
mov rbx, qword [rsp + 0x48]
mov rdx, rsi
lea r15, [rbx + 0x258]
mov rcx, r15
call fcn.1401063f0
mov edx, 0x188
mov ecx, 1
call qword [case.0x14010f187.1]
mov r14, rax
test rax, rax
jne 0x14014a8c4
mov rcx, rax
mov r13d, reloc.WLDAP32.dll_Ordinal_27
call qword [fcn.14016c458]
mov rcx, r14
call qword [fcn.14016c458]
mov r15, qword [rsp + 0x48]
jmp 0x14014abac
movzx eax, byte [rbx + 0x772]
mov edx, Ordinal_41
mov dword [r14], eax
mov qword [r14 + 0x98], r12
mov byte [r14 + 0x17d], 0
lea ecx, [rdx - 0x27]
call qword [case.0x14010f187.1]
mov rbx, rax
test rax, rax
je 0x14014a8a2
mov qword [rbx + 0x10], r14
lea rax, str.TCP_ACCEPT
mov qword [rbx], rax
lea r8, str.added
mov rax, qword [r15]
mov rdx, rbx
mov qword [rbx + 8], rax
mov rcx, rsi
mov rax, qword [rsp + 0x48]
xor r13d, r13d
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x20], 1
mov qword [r15], rbx
call fcn.140115a70
mov rax, qword [r14 + 0x98]
mov rdx, rsi
mov r15, qword [rsp + 0x48]
mov rcx, rbx
mov qword [r15 + 0x228], rax
call fcn.140132bc0
cmp byte [0x1402dbf21], r13b
mov byte [r14 + 0x17f], 1
je 0x14014a998
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [0x1402dbf18]
mov rax, qword [rsp + 0x78]
cqo
idiv r8
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x78]
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
jmp 0x14014a9bf
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
mov qword [rsp + 0x60], rax
imul eax, edx, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x68], eax
lea r8, str.Curl_conn_tcp_listen_set__qd_
movups xmm0, xmmword [rsp + 0x60]
mov rdx, rbx
mov rcx, rsi
movups xmmword [r14 + 0x158], xmm0
mov byte [rbx + 0x24], 1
mov r9, qword [r14 + 0x98]
call fcn.140115a70
mov r12, 0xffffffffffffffff
cmp edi, 2
je 0x14014aa54
movzx eax, word [rbp - 0x80]
nop dword [rax]
cmp byte [r15 + 0x351], r13b
jne 0x14014aa0d
test edi, edi
je 0x14014aa4d
cmp edi, 1
jne 0x14014aa28
cmp ax, 2
jne 0x14014aa4d
movzx ecx, word [rbp - 0x7e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
jmp 0x14014aa44
cmp ax, 2
jne 0x14014aa4d
movzx ecx, word [rbp - 0x7e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
test edi, edi
je 0x14014ab28
cmp edi, 1
je 0x14014aa7a
movzx eax, word [rbp - 0x80]
inc edi
cmp edi, 2
jne 0x14014aa00
lea rbx, [r15 + 0x628]
mov dword [rbx + 0x100], edi
mov rax, qword [rsi + 0x20]
mov byte [rax + 0x736], 0x1c
test r13d, r13d
je 0x14014abb7
jmp 0x14014abac
lea r10, [rbp + 0x100]
mov r9d, Ordinal_46
lea rdx, [rbp + 0x90]
nop
movzx ecx, byte [rdx]
test cl, cl
je 0x14014aaac
cmp cl, 0x2e
mov eax, ecx
cmove eax, r9d
mov byte [r10], al
inc r10
add rdx, 1
jne 0x14014aa90
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, [0x1402afdac]
call fcn.1401692a0
mov r13d, eax
test eax, eax
je 0x14014aa5b
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.140115830
jmp 0x14014abac
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.1401692a0
mov r13d, eax
test eax, eax
je 0x14014aa5b
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.140115830
jmp 0x14014abac
mov r8, r12
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, rsi
call fcn.140115830
mov r15, qword [rsp + 0x48]
mov r12, qword [rsp + 0x58]
mov rax, qword [rsi + 0x20]
mov byte [rax + 0x736], 0
cmp r12, 0xffffffffffffffff
je 0x14014abd6
test r15, r15
je 0x14014abcd
mov rdx, r12
mov rcx, rsi
call fcn.140104d60
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, r13d
mov rcx, qword [rbp + 0x660]
xor rcx, rsp
call fcn.14016b380
mov rbx, qword [rsp + 0x7c0]
add rsp, 0x770
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret