Function at 0x140134490
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 [0x1402ba030]
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 0x14013466e
mov rax, r15
nop dword [rax]
inc rax
cmp byte [rbx + rax], cl
jne 0x140134540
cmp rax, 1
jbe 0x14013466e
mov rax, r15
inc rax
cmp byte [rbx + rax], cl
jne 0x140134555
cmp rax, 0x16
jae 0x14013456a
mov ecx, Ordinal_26
jmp 0x140134579
mov rcx, r15
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140134570
inc rcx
mov edx, 1
call qword [case.0x1400fa348.1]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14013459a
lea r13d, [rax + 0x1b]
jmp 0x140134d9c
cmp byte [rbx], 0x3a
jne 0x1401345a4
mov rdi, rbx
jmp 0x1401345ce
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 0x140134622
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 0x14013463e
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 0x14013461d
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 0x140134646
movzx edx, di
jmp 0x140134646
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140134630
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 0x14013466e
mov r12, rdi
jmp 0x1401346ec
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 0x1401346bc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x110]
call fcn.1400e7750
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, r14
call fcn.140105f20
jmp 0x140134d9c
movzx ecx, word [rbp - 0x80]
lea r8, [rbp + 0x210]
mov r9d, 0x401
lea rdx, [rbp - 0x7c]
call fcn.14011e230
test rax, rax
je 0x140134d9c
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.1401134c0
cmp eax, 1
jne 0x1401347b8
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 0x140134746
mov rcx, r14
call fcn.140106cd0
mov r15, qword [r14 + 0xdf8]
lea rbx, [r14 + 0xdf0]
mov byte [r14 + 0xe18], 1
test r15, r15
jne 0x140134790
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.140105f20
mov rcx, rbx
call fcn.140106ef0
cmp qword [r14 + 0xdf8], 0
jne 0x1401347bd
mov rax, qword [r14 + 0x18]
cmp byte [rax + 0x30e], 1
je 0x1401347bd
mov byte [rax + 0x30e], 1
jmp 0x1401347bd
mov r15, qword [rsp + 0x50]
test r15, r15
je 0x140134d80
mov r9, qword [r14 + 0xe0]
mov rdi, qword [r15]
test r9, r9
je 0x1401347f7
test byte [r9 + 4], 8
je 0x1401347f7
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x1401347f7
mov r9, qword [r9 + 0x20]
mov edx, 3
mov rcx, r14
lea r8d, [rdx - 1]
call rax
sub dword [r15 + 0x10], 1
jne 0x140134821
mov rcx, qword [r15]
test rcx, rcx
je 0x140134818
mov rbx, qword [rcx + 0x28]
call qword [0x1402ba0c8]
mov rcx, rbx
test rbx, rbx
jne 0x140134806
mov rcx, r15
call qword [0x1402ba0c8]
mov r8, qword [r14 + 0xe0]
test r8, r8
je 0x14013484b
test byte [r8 + 4], 8
je 0x14013484b
mov rax, qword [r8 + 0x18]
test rax, rax
je 0x14013484b
mov r8, qword [r8 + 0x20]
mov edx, 3
mov rcx, r14
call rax
test rdi, rdi
je 0x140134d80
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 0x1401348a3
cmp cl, 6
je 0x140134899
mov dword [rbp + 4], 2
mov dword [rbp + 8], reloc.WS2_32.dll_recvfrom
jmp 0x1401348b1
mov qword [rbp + 4], 1
jmp 0x1401348b1
mov dword [rbp + 4], 1
mov dword [rbp + 8], 6
mov eax, dword [rdi + 0x10]
mov dword [rbp + 0xc], eax
cmp eax, 0x80
jbe 0x1401348c6
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.14011fc40
test eax, eax
je 0x140134928
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140134870
lea rdx, [rbp + 0x110]
mov ecx, eax
call fcn.1400e7750
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, r14
call fcn.140105f20
mov r15, qword [rsp + 0x50]
jmp 0x140134d9c
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 0x140134a12
cmp word [rbp - 0x80], 2
jne 0x14013496b
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 0x140134a4f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ecx, byte [rsp + 0x40]
test cl, cl
je 0x1401349f4
cmp eax, 0x2741
jne 0x1401349f4
lea rdx, [rbp + 0x110]
mov ecx, eax
call fcn.1400e7750
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s
mov rcx, r14
call fcn.140106050
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 0x140134691
movzx ebx, word [rsp + 0x48]
mov byte [rsp + 0x40], al
jmp 0x140134957
cmp eax, 0x2740
je 0x140134a00
cmp eax, 0xd
jne 0x140134a26
inc bx
mov byte [rsp + 0x40], cl
cmp bx, word [rsp + 0x44]
jbe 0x140134957
lea rdx, str.bind___failed__we_ran_out_of_ports
mov rcx, r14
call fcn.140105f20
jmp 0x140134d9c
lea rdx, [rbp + 0x110]
mov ecx, eax
call fcn.1400e7750
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__failed:__s
mov rcx, r14
call fcn.140105f20
jmp 0x140134d9c
cmp bx, word [rsp + 0x44]
ja 0x140134a12
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 0x140134a9f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x110]
call fcn.1400e7750
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, r14
call fcn.140105f20
jmp 0x140134d9c
mov edx, 1
mov rcx, r15
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x140134adc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rbp + 0x110]
call fcn.1400e7750
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, r14
call fcn.140105f20
jmp 0x140134d9c
mov byte [rbp + 0x90], 0
cmp dword [rdi + 4], 2
jne 0x140134b07
mov rdx, qword [rdi + 0x20]
lea r8, [rbp + 0x90]
mov r9d, 0x2f
add rdx, 4
lea ecx, [r9 - 0x2d]
call fcn.14011e230
cmp esi, 2
je 0x140134b6a
movzx eax, word [rbp - 0x80]
cmp byte [r12 + 0x31a], 0
jne 0x140134b1f
test esi, esi
je 0x140134b63
cmp esi, 1
jne 0x140134b3a
cmp ax, 2
jne 0x140134b63
movzx ecx, word [rbp - 0x7e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
jmp 0x140134b56
cmp ax, 2
jne 0x140134b63
movzx ecx, word [rbp - 0x7e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
test esi, esi
je 0x140134cfc
cmp esi, 1
je 0x140134c4e
movzx eax, word [rbp - 0x80]
inc esi
cmp esi, 2
jne 0x140134b10
lea rdi, [r12 + 0x610]
xor ebx, ebx
mov r8d, 1
mov dword [rdi + 0xd8], esi
mov rdx, r12
mov rcx, r14
call fcn.1400fce80
mov edx, 1
mov ecx, 0x110
call qword [case.0x1400fa348.1]
mov rdi, rax
test rax, rax
je 0x140134d66
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.0x1400fa348.1]
mov rbx, rax
test rax, rax
je 0x140134d66
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.140120890
mov rdx, r14
mov rcx, rbx
call fcn.1401206e0
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 0x140134da7
lea r10, [rbp + 0xc0]
mov r9d, Ordinal_46
lea rdx, [rbp + 0x90]
movzx ecx, byte [rdx]
test cl, cl
je 0x140134c7e
cmp cl, 0x2e
mov eax, ecx
cmove eax, r9d
mov byte [r10], al
inc r10
add rdx, 1
jne 0x140134c62
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, [0x140293698]
call fcn.14014ec00
mov r13d, eax
test eax, eax
je 0x140134b72
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.140105f20
jmp 0x140134d9c
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.14014ec00
mov r13d, eax
test eax, eax
je 0x140134b74
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.140105f20
jmp 0x140134d9c
mov rcx, rbx
mov r13d, reloc.WLDAP32.dll_Ordinal_27
call qword [0x1402ba0c8]
mov rcx, rdi
call qword [0x1402ba0c8]
jmp 0x140134d9c
mov r8, r12
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, r14
call fcn.140105f20
mov r15, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rax, qword [r14 + 0x18]
mov byte [rax + 0x6f6], 0
cmp r15, 0xffffffffffffffff
je 0x140134dc6
test r12, r12
je 0x140134dbd
mov rdx, r15
mov rcx, r14
call fcn.1400f68f0
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsp + 0x58]
call qword [0x1402ba0c8]
mov eax, r13d
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.1401526c0
mov rbx, qword [rsp + 0x780]
add rsp, 0x730
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret