Function at 0x140120f50
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 - 0x630]
sub rsp, 0x730
mov rax, qword [0x14025d030]
xor rax, rsp
mov qword [rbp + 0x620], rax
mov r12, qword [rcx + 0x18]
xor eax, eax
mov rbx, qword [rcx + 0x780]
xorps xmm0, xmm0
mov r14, rcx
mov qword [rsp + 0x60], r12
xor ecx, ecx
mov byte [rbp + 0x90], 0
mov qword [rbp + 0xb1], rax
mov r15, 0xffffffffffffffff
mov qword [rsp + 0x68], r15
mov esi, edx
mov dword [rbp + 0xb9], eax
mov r13d, 0x1e
mov word [rbp + 0xbd], ax
mov qword [rsp + 0x50], rcx
mov word [rsp + 0x48], cx
mov word [rsp + 0x44], cx
mov byte [rsp + 0x40], 1
mov qword [rsp + 0x58], rcx
movups xmmword [rbp + 0x91], xmm0
movups xmmword [rbp + 0xa1], xmm0
test rbx, rbx
je 0x14012112e
mov rax, r15
nop dword [rax]
inc rax
cmp byte [rbx + rax], cl
jne 0x140121000
cmp rax, 1
jbe 0x14012112e
mov rax, r15
inc rax
cmp byte [rbx + rax], cl
jne 0x140121015
cmp rax, 0x16
jae 0x14012102a
mov ecx, socket
jmp 0x140121039
mov rcx, r15
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140121030
inc rcx
mov edx, 1
call qword [case.0x1400e58f8.1]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14012105a
lea r13d, [rax + 0x1b]
jmp 0x14012185c
cmp byte [rbx], 0x3a
jne 0x140121064
mov rdi, rbx
jmp 0x14012108e
mov edx, 0x3a
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rcx, qword [rsp + 0x58]
mov rdi, rax
test rax, rax
je 0x1401210e2
mov r8, rax
mov rdx, rbx
sub r8, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov edx, 0x3a
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rbx, rax
test rax, rax
je 0x1401210fe
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, rbx
mov edi, eax
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
je 0x1401210dd
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, eax
jmp 0x140121106
movzx edx, di
jmp 0x140121106
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1401210f0
mov edi, dword [rsp + 0x48]
mov edx, dword [rsp + 0x44]
xor ecx, ecx
cmp di, dx
mov eax, ecx
cmovbe cx, di
cmovbe ax, dx
mov rdi, qword [rsp + 0x58]
mov word [rsp + 0x48], cx
mov word [rsp + 0x44], ax
cmp byte [rdi], 0
je 0x14012112e
mov r12, rdi
jmp 0x1401211ac
mov dword [rsp + 0x70], Ordinal_133
lea r8, [rsp + 0x70]
mov rcx, qword [r12 + 0x1a8]
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14012117c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x110]
call fcn.140109ce0
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, r14
call fcn.1400f1540
jmp 0x14012185c
movzx ecx, word [rbp - 0x80]
lea r8, [rbp + 0x210]
mov r9d, 0x401
lea rdx, [rbp - 0x7c]
call fcn.14010acf0
test rax, rax
je 0x14012185c
xor al, al
lea r12, [rbp + 0x210]
mov byte [rsp + 0x40], al
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, r14
call fcn.1400feb10
cmp eax, 1
jne 0x140121278
mov rdi, qword [r14 + 0xe00]
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0
test ebx, ebx
jne 0x140121206
mov rcx, r14
call fcn.1400f22f0
mov r15, qword [r14 + 0xdf8]
lea rbx, [r14 + 0xdf0]
mov byte [r14 + 0xe18], 1
test r15, r15
jne 0x140121250
mov rax, qword [r14 + 0x18]
lea rcx, str.host
mov r9, qword [rbx]
lea r8, str.proxy
lea rdx, str.Could_not_resolve__s:__s
cmp byte [rax + 0x308], r15b
cmove r8, rcx
mov rcx, r14
call fcn.1400f1540
mov rcx, rbx
call fcn.1400f2510
cmp qword [r14 + 0xdf8], 0
jne 0x14012127d
mov rax, qword [r14 + 0x18]
cmp byte [rax + 0x30e], 1
je 0x14012127d
mov byte [rax + 0x30e], 1
jmp 0x14012127d
mov r15, qword [rsp + 0x50]
test r15, r15
je 0x140121840
mov r9, qword [r14 + 0xe0]
mov rdi, qword [r15]
test r9, r9
je 0x1401212b7
test byte [r9 + 4], 8
je 0x1401212b7
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x1401212b7
mov r9, qword [r9 + 0x20]
mov edx, 3
mov rcx, r14
lea r8d, [rdx - 1]
call rax
sub dword [r15 + 0x10], 1
jne 0x1401212e1
mov rcx, qword [r15]
test rcx, rcx
je 0x1401212d8
mov rbx, qword [rcx + 0x28]
call qword [0x14025d0c8]
mov rcx, rbx
test rbx, rbx
jne 0x1401212c6
mov rcx, r15
call qword [0x14025d0c8]
mov r8, qword [r14 + 0xe0]
test r8, r8
je 0x14012130b
test byte [r8 + 4], 8
je 0x14012130b
mov rax, qword [r8 + 0x18]
test rax, rax
je 0x14012130b
mov r8, qword [r8 + 0x20]
mov edx, 3
mov rcx, r14
call rax
test rdi, rdi
je 0x140121840
mov r12, qword [rsp + 0x60]
mov qword [rsp + 0x50], 0xffffffffffffffff
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r12 + 0x73d]
mov eax, dword [rdi + 4]
mov dword [rbp], eax
cmp cl, 3
je 0x140121363
cmp cl, 6
je 0x140121359
mov dword [rbp + 4], 2
mov dword [rbp + 8], reloc.WS2_32.dll_recvfrom
jmp 0x140121371
mov qword [rbp + 4], 1
jmp 0x140121371
mov dword [rbp + 4], 1
mov dword [rbp + 8], 6
mov eax, dword [rdi + 0x10]
mov dword [rbp + 0xc], eax
cmp eax, 0x80
jbe 0x140121386
mov eax, 0x80
mov dword [rbp + 0xc], eax
mov rdx, qword [rdi + 0x20]
lea rcx, [rbp + 0x10]
mov r8d, eax
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsp + 0x50]
mov rcx, r14
lea rdx, [rbp]
call fcn.14010c700
test eax, eax
je 0x1401213e8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140121330
lea rdx, [rbp + 0x110]
mov ecx, eax
call fcn.140109ce0
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, r14
call fcn.1400f1540
mov r15, qword [rsp + 0x50]
jmp 0x14012185c
movsxd r8, dword [rdi + 0x10]
lea rcx, [rbp - 0x80]
mov rdx, qword [rdi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rdi + 0x10]
mov r15, qword [rsp + 0x50]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x48]
movzx ebx, ax
cmp ax, word [rsp + 0x44]
ja 0x1401214d2
cmp word [rbp - 0x80], 2
jne 0x14012142b
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, r15
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14012150f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ecx, byte [rsp + 0x40]
test cl, cl
je 0x1401214b4
cmp eax, 0x2741
jne 0x1401214b4
lea rdx, [rbp + 0x110]
mov ecx, eax
call fcn.140109ce0
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s
mov rcx, r14
call fcn.1400f1670
mov dword [rsp + 0x70], Ordinal_133
lea r8, [rsp + 0x70]
mov rcx, qword [r12 + 0x1a8]
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140121151
movzx ebx, word [rsp + 0x48]
mov byte [rsp + 0x40], al
jmp 0x140121417
cmp eax, 0x2740
je 0x1401214c0
cmp eax, 0xd
jne 0x1401214e6
inc bx
mov byte [rsp + 0x40], cl
cmp bx, word [rsp + 0x44]
jbe 0x140121417
lea rdx, str.bind___failed__we_ran_out_of_ports
mov rcx, r14
call fcn.1400f1540
jmp 0x14012185c
lea rdx, [rbp + 0x110]
mov ecx, eax
call fcn.140109ce0
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__failed:__s
mov rcx, r14
call fcn.1400f1540
jmp 0x14012185c
cmp bx, word [rsp + 0x44]
ja 0x1401214d2
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], Ordinal_133
lea rdx, [rbp - 0x80]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14012155f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x110]
call fcn.140109ce0
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, r14
call fcn.1400f1540
jmp 0x14012185c
mov edx, 1
mov rcx, r15
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14012159c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x110]
call fcn.140109ce0
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, r14
call fcn.1400f1540
jmp 0x14012185c
mov byte [rbp + 0x90], 0
cmp dword [rdi + 4], 2
jne 0x1401215c7
mov rdx, qword [rdi + 0x20]
lea r8, [rbp + 0x90]
mov r9d, 0x2f
add rdx, 4
lea ecx, [r9 - 0x2d]
call fcn.14010acf0
cmp esi, 2
je 0x14012162a
movzx eax, word [rbp - 0x80]
cmp byte [r12 + 0x31a], 0
jne 0x1401215df
test esi, esi
je 0x140121623
cmp esi, 1
jne 0x1401215fa
cmp ax, 2
jne 0x140121623
movzx ecx, word [rbp - 0x7e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
jmp 0x140121616
cmp ax, 2
jne 0x140121623
movzx ecx, word [rbp - 0x7e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
test esi, esi
je 0x1401217bc
cmp esi, 1
je 0x14012170e
movzx eax, word [rbp - 0x80]
inc esi
cmp esi, 2
jne 0x1401215d0
lea rdi, [r12 + 0x610]
xor ebx, ebx
mov r8d, 1
mov dword [rdi + 0xd8], esi
mov rdx, r12
mov rcx, r14
call fcn.1400e8430
mov edx, 1
mov ecx, pe_nt_image_headers64
call qword [case.0x1400e58f8.1]
mov rdi, rax
test rax, rax
je 0x140121826
movzx eax, byte [r12 + 0x73d]
mov edx, 1
mov dword [rdi], eax
mov qword [rdi + 0x98], r15
mov byte [rdi + 0x10c], 0
lea ecx, [rdx + 0x27]
call qword [case.0x1400e58f8.1]
mov rbx, rax
test rax, rax
je 0x140121826
mov qword [rbx + 0x10], rdi
lea rax, str.TCP_ACCEPT
mov qword [rbx], rax
mov rdx, r14
mov rcx, qword [r12 + 0x1e0]
xor r13d, r13d
mov qword [rbx + 8], rcx
mov qword [rbx + 0x18], r12
mov dword [rbx + 0x20], 1
mov qword [r12 + 0x1e0], rbx
mov rcx, qword [rdi + 0x98]
mov qword [r12 + 0x1b0], rcx
mov rcx, rbx
call fcn.14010d350
mov rdx, r14
mov rcx, rbx
call fcn.14010d1a0
mov byte [rdi + 0x10d], 1
lea r15, [r13 - 1]
mov byte [rbx + 0x24], 1
mov rax, qword [r14 + 0x18]
mov byte [rax + 0x6f6], 0x1c
jmp 0x140121867
lea r10, [rbp + 0xc0]
mov r9d, Ordinal_46
lea rdx, [rbp + 0x90]
movzx ecx, byte [rdx]
test cl, cl
je 0x14012173e
cmp cl, 0x2e
mov eax, ecx
cmove eax, r9d
mov byte [r10], al
inc r10
add rdx, 1
jne 0x140121722
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], 0
call sym.CheraxLoader.exe_curl_msnprintf
lea rax, [rbp + 0xc0]
mov rcx, r14
lea rdi, [r12 + 0x610]
mov qword [rsp + 0x20], rax
mov rdx, rdi
lea r9, str.PORT
lea r8, [0x1402393d4]
call fcn.14013b6c0
mov r13d, eax
test eax, eax
je 0x140121632
mov ecx, eax
call sym.CheraxLoader.exe_curl_easy_strerror
mov r8, rax
lea rdx, str.Failure_sending_PORT_command:__s
mov rcx, r14
call fcn.1400f1540
jmp 0x14012185c
mov dword [rsp + 0x30], r8d
lea rax, [rbp + 0x90]
xor ebx, ebx
mov qword [rsp + 0x28], rax
cmp word [rbp - 0x80], 2
lea rdi, [r12 + 0x610]
mov ecx, ebx
lea r9, str.EPRT
setne cl
lea r8, str._s__d_s_hu
inc ecx
mov rdx, rdi
mov dword [rsp + 0x20], ecx
mov rcx, r14
call fcn.14013b6c0
mov r13d, eax
test eax, eax
je 0x140121634
mov ecx, eax
call sym.CheraxLoader.exe_curl_easy_strerror
mov r8, rax
lea rdx, str.Failure_sending_EPRT_command:__s
mov rcx, r14
call fcn.1400f1540
jmp 0x14012185c
mov rcx, rbx
mov r13d, reloc.WLDAP32.dll_Ordinal_27
call qword [0x14025d0c8]
mov rcx, rdi
call qword [0x14025d0c8]
jmp 0x14012185c
mov r8, r12
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, r14
call fcn.1400f1540
mov r15, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rax, qword [r14 + 0x18]
mov byte [rax + 0x6f6], 0
cmp r15, 0xffffffffffffffff
je 0x140121886
test r12, r12
je 0x14012187d
mov rdx, r15
mov rcx, r14
call fcn.1400e1ea0
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsp + 0x58]
call qword [0x14025d0c8]
mov eax, r13d
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.14013ea20
mov rbx, qword [rsp + 0x780]
add rsp, 0x730
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret