Function at 0x14012f220
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 [0x1402b3030]
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 0x14012f3fe
mov rax, r15
nop dword [rax]
inc rax
cmp byte [rbx + rax], cl
jne 0x14012f2d0
cmp rax, 1
jbe 0x14012f3fe
mov rax, r15
inc rax
cmp byte [rbx + rax], cl
jne 0x14012f2e5
cmp rax, 0x16
jae 0x14012f2fa
mov ecx, socket
jmp 0x14012f309
mov rcx, r15
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x14012f300
inc rcx
mov edx, 1
call qword [case.0x1400f50d8.1]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14012f32a
lea r13d, [rax + 0x1b]
jmp 0x14012fb2c
cmp byte [rbx], 0x3a
jne 0x14012f334
mov rdi, rbx
jmp 0x14012f35e
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 0x14012f3b2
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 0x14012f3ce
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 0x14012f3ad
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 0x14012f3d6
movzx edx, di
jmp 0x14012f3d6
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14012f3c0
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 0x14012f3fe
mov r12, rdi
jmp 0x14012f47c
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 0x14012f44c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x110]
call fcn.1400e24e0
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, r14
call fcn.140100cb0
jmp 0x14012fb2c
movzx ecx, word [rbp - 0x80]
lea r8, [rbp + 0x210]
mov r9d, 0x401
lea rdx, [rbp - 0x7c]
call fcn.140118fc0
test rax, rax
je 0x14012fb2c
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.14010e250
cmp eax, 1
jne 0x14012f548
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 0x14012f4d6
mov rcx, r14
call fcn.140101a60
mov r15, qword [r14 + 0xdf8]
lea rbx, [r14 + 0xdf0]
mov byte [r14 + 0xe18], 1
test r15, r15
jne 0x14012f520
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.140100cb0
mov rcx, rbx
call fcn.140101c80
cmp qword [r14 + 0xdf8], 0
jne 0x14012f54d
mov rax, qword [r14 + 0x18]
cmp byte [rax + 0x30e], 1
je 0x14012f54d
mov byte [rax + 0x30e], 1
jmp 0x14012f54d
mov r15, qword [rsp + 0x50]
test r15, r15
je 0x14012fb10
mov r9, qword [r14 + 0xe0]
mov rdi, qword [r15]
test r9, r9
je 0x14012f587
test byte [r9 + 4], 8
je 0x14012f587
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x14012f587
mov r9, qword [r9 + 0x20]
mov edx, 3
mov rcx, r14
lea r8d, [rdx - 1]
call rax
sub dword [r15 + 0x10], 1
jne 0x14012f5b1
mov rcx, qword [r15]
test rcx, rcx
je 0x14012f5a8
mov rbx, qword [rcx + 0x28]
call qword [0x1402b30c8]
mov rcx, rbx
test rbx, rbx
jne 0x14012f596
mov rcx, r15
call qword [0x1402b30c8]
mov r8, qword [r14 + 0xe0]
test r8, r8
je 0x14012f5db
test byte [r8 + 4], 8
je 0x14012f5db
mov rax, qword [r8 + 0x18]
test rax, rax
je 0x14012f5db
mov r8, qword [r8 + 0x20]
mov edx, 3
mov rcx, r14
call rax
test rdi, rdi
je 0x14012fb10
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 0x14012f633
cmp cl, 6
je 0x14012f629
mov dword [rbp + 4], 2
mov dword [rbp + 8], reloc.WS2_32.dll_recvfrom
jmp 0x14012f641
mov qword [rbp + 4], 1
jmp 0x14012f641
mov dword [rbp + 4], 1
mov dword [rbp + 8], 6
mov eax, dword [rdi + 0x10]
mov dword [rbp + 0xc], eax
cmp eax, 0x80
jbe 0x14012f656
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.14011a9d0
test eax, eax
je 0x14012f6b8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14012f600
lea rdx, [rbp + 0x110]
mov ecx, eax
call fcn.1400e24e0
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, r14
call fcn.140100cb0
mov r15, qword [rsp + 0x50]
jmp 0x14012fb2c
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 0x14012f7a2
cmp word [rbp - 0x80], 2
jne 0x14012f6fb
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 0x14012f7df
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ecx, byte [rsp + 0x40]
test cl, cl
je 0x14012f784
cmp eax, 0x2741
jne 0x14012f784
lea rdx, [rbp + 0x110]
mov ecx, eax
call fcn.1400e24e0
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s
mov rcx, r14
call fcn.140100de0
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 0x14012f421
movzx ebx, word [rsp + 0x48]
mov byte [rsp + 0x40], al
jmp 0x14012f6e7
cmp eax, 0x2740
je 0x14012f790
cmp eax, 0xd
jne 0x14012f7b6
inc bx
mov byte [rsp + 0x40], cl
cmp bx, word [rsp + 0x44]
jbe 0x14012f6e7
lea rdx, str.bind___failed__we_ran_out_of_ports
mov rcx, r14
call fcn.140100cb0
jmp 0x14012fb2c
lea rdx, [rbp + 0x110]
mov ecx, eax
call fcn.1400e24e0
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__failed:__s
mov rcx, r14
call fcn.140100cb0
jmp 0x14012fb2c
cmp bx, word [rsp + 0x44]
ja 0x14012f7a2
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 0x14012f82f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x110]
call fcn.1400e24e0
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, r14
call fcn.140100cb0
jmp 0x14012fb2c
mov edx, 1
mov rcx, r15
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14012f86c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x110]
call fcn.1400e24e0
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, r14
call fcn.140100cb0
jmp 0x14012fb2c
mov byte [rbp + 0x90], 0
cmp dword [rdi + 4], 2
jne 0x14012f897
mov rdx, qword [rdi + 0x20]
lea r8, [rbp + 0x90]
mov r9d, 0x2f
add rdx, 4
lea ecx, [r9 - 0x2d]
call fcn.140118fc0
cmp esi, 2
je 0x14012f8fa
movzx eax, word [rbp - 0x80]
cmp byte [r12 + 0x31a], 0
jne 0x14012f8af
test esi, esi
je 0x14012f8f3
cmp esi, 1
jne 0x14012f8ca
cmp ax, 2
jne 0x14012f8f3
movzx ecx, word [rbp - 0x7e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
jmp 0x14012f8e6
cmp ax, 2
jne 0x14012f8f3
movzx ecx, word [rbp - 0x7e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
test esi, esi
je 0x14012fa8c
cmp esi, 1
je 0x14012f9de
movzx eax, word [rbp - 0x80]
inc esi
cmp esi, 2
jne 0x14012f8a0
lea rdi, [r12 + 0x610]
xor ebx, ebx
mov r8d, 1
mov dword [rdi + 0xd8], esi
mov rdx, r12
mov rcx, r14
call fcn.1400f7c10
mov edx, 1
mov ecx, 0x110
call qword [case.0x1400f50d8.1]
mov rdi, rax
test rax, rax
je 0x14012faf6
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.0x1400f50d8.1]
mov rbx, rax
test rax, rax
je 0x14012faf6
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.14011b620
mov rdx, r14
mov rcx, rbx
call fcn.14011b470
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 0x14012fb37
lea r10, [rbp + 0xc0]
mov r9d, Ordinal_46
lea rdx, [rbp + 0x90]
movzx ecx, byte [rdx]
test cl, cl
je 0x14012fa0e
cmp cl, 0x2e
mov eax, ecx
cmove eax, r9d
mov byte [r10], al
inc r10
add rdx, 1
jne 0x14012f9f2
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, [0x14028d56c]
call fcn.140149990
mov r13d, eax
test eax, eax
je 0x14012f902
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.140100cb0
jmp 0x14012fb2c
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.140149990
mov r13d, eax
test eax, eax
je 0x14012f904
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.140100cb0
jmp 0x14012fb2c
mov rcx, rbx
mov r13d, reloc.WLDAP32.dll_Ordinal_27
call qword [0x1402b30c8]
mov rcx, rdi
call qword [0x1402b30c8]
jmp 0x14012fb2c
mov r8, r12
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, r14
call fcn.140100cb0
mov r15, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rax, qword [r14 + 0x18]
mov byte [rax + 0x6f6], 0
cmp r15, 0xffffffffffffffff
je 0x14012fb56
test r12, r12
je 0x14012fb4d
mov rdx, r15
mov rcx, r14
call fcn.1400f1680
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsp + 0x58]
call qword [0x1402b30c8]
mov eax, r13d
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.14014d450
mov rbx, qword [rsp + 0x780]
add rsp, 0x730
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret