Function at 0x1402a66d8
Capabilities:
Get local ipv4 addresses
Initialize winsock library

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x390
mov qword [rax - 0x2e8], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov qword [rsp + 0x78], rdx
mov r14, rcx
mov rcx, qword [rcx + 0x10]
mov r8d, dword [rcx + 0x14]
mov dword [rsp + 0x30], r8d
mov eax, dword [rcx + 0x18]
mov dword [rsp + 0x3c], eax
mov eax, dword [rcx + 0x20]
mov dword [rsp + 0x40], eax
mov eax, dword [rcx + 0x24]
mov dword [rsp + 0x44], eax
xor r15d, r15d
test r8d, r8d
jne 0x1402a67ac
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x1402a6792
lea rax, str.Machine_info___ip_addresses_for_current_ip_interface_are_capped
mov qword [rsp + 0x370], rax
mov qword [rsp + 0x378], 0x80
lea rax, [rsp + 0x350]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403e67ff]
call fcn.140001158
lea r8, [rsp + 0x30]
lea rdx, str.interfaces
mov rcx, qword [r14 + 0x20]
call fcn.1402ab178
jmp 0x1402a6b46
xorps xmm0, xmm0
movss dword [rsp + 0x90], xmm0
mov qword [rsp + 0x98], r15
mov qword [rsp + 0xa0], r15
xor r8d, r8d
xor edx, edx
call fcn.14006c4a8
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa8], r15
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xb0], xmm0
movss xmm0, dword [0x14038abb0]
movss dword [rsp + 0x90], xmm0
mov edx, 8
lea rcx, [rsp + 0x90]
call fcn.1400591e0
nop
lea r8, [0x1402a73d0]
lea rdx, [rsp + 0x90]
mov rcx, r14
call fcn.1402a5fd4
mov ebx, eax
mov r12d, 7
test eax, eax
jns 0x1402a68cb
mov qword [rsp + 0x2d0], r15
mov qword [rsp + 0x2d8], r12
mov word [rsp + 0x2c0], r15w
lea rdx, str.Machine_info___Failed_to_map_networks_by_adapters.
lea rcx, [rsp + 0x2c0]
call fcn.14004d5c4
nop
mov qword [rsp + 0xe8], r15
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xd8], r15w
lea rdx, str.AdapterNetworks
lea rcx, [rsp + 0xd8]
call fcn.14004d5c4
lea r9, [rsp + 0x2c0]
mov r8d, ebx
lea rdx, [rsp + 0xd8]
mov rcx, r14
call fcn.1402a9cc4
lea rcx, [rsp + 0xd8]
call fcn.14004e0f0
nop
lea rcx, [rsp + 0x2c0]
call fcn.14004e0f0
nop
mov ecx, 0x202
lea rdx, [rsp + 0x120]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1402a73a6
movzx eax, word [rsp + 0x120]
cmp al, 2
jne 0x1402a7353
shr ax, 8
cmp al, 2
jne 0x1402a7353
mov byte [rsp + 0x34], 1
mov dword [rsp + 0x38], r15d
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140076f04
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edi, 0xc6
mov edx, edi
xor ecx, ecx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov ebx, eax
cmp eax, 0x6f
jne 0x1402a696b
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.1400657b4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x58]
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov ebx, eax
test ebx, ebx
je 0x1402a6a81
mov qword [rsp + 0x2d0], r15
mov qword [rsp + 0x2d8], r12
mov word [rsp + 0x2c0], r15w
lea rdx, str.Failure_while_calling_GetAdaptersAddresses
lea rcx, [rsp + 0x2c0]
call fcn.14004d5c4
nop
mov qword [rsp + 0xe8], r15
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xd8], r15w
lea rdx, str.ipInterfaces
lea rcx, [rsp + 0xd8]
call fcn.14004d5c4
movzx r8d, bx
or r8d, 0x80070000
test ebx, ebx
cmovle r8d, ebx
lea r9, [rsp + 0x2c0]
lea rdx, [rsp + 0xd8]
mov rcx, r14
call fcn.1402a9cc4
lea rcx, [rsp + 0xd8]
call fcn.14004e0f0
nop
lea rcx, [rsp + 0x2c0]
call fcn.14004e0f0
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1402a6a68
mov rax, qword [rsp + 0x68]
sub rax, rcx
mov rdx, rcx
mov r13d, 0x1000
cmp rax, r13
jb 0x1402a6a55
test dl, 0x1f
jne 0x1402a6a4e
mov rcx, qword [rcx - 8]
cmp rcx, rdx
jae 0x1402a6a4e
sub rdx, rcx
sub rdx, 8
cmp rdx, 0x1f
jbe 0x1402a6a55
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402e0278
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rsp + 0x90]
call fcn.1402a75a4
jmp 0x1402a6b46
mov rbx, qword [rsp + 0x58]
mov eax, r15d
mov r13d, 0x1000
test rbx, rbx
je 0x1402a6b27
inc eax
mov dword [rsp + 0x48], eax
cmp eax, dword [rsp + 0x30]
jbe 0x1402a6b73
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x1402a6b11
lea rax, str.Machine_info___adapter_addresses_are_capped
mov qword [rsp + 0x2e0], rax
mov qword [rsp + 0x2e8], 0x58
lea rax, [rsp + 0x30]
mov qword [rsp + 0x2f0], rax
mov qword [rsp + 0x2f8], 4
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403e6823]
call fcn.140001158
lea r8, [rsp + 0x30]
lea rdx, str.interfaces
mov rcx, qword [r14 + 0x20]
call fcn.1402ab178
nop
lea rcx, [rsp + 0x58]
call fcn.14006749c
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rsp + 0x90]
call fcn.1402a75a4
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.1402dfdb0
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [rsp + 0x120]
call fcn.1400b5438
lea rax, vtable.sense::cyberData::IpInterfaceEntity.0
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x140], r15
mov qword [rsp + 0x148], SafeArrayUnlock
mov byte [rsp + 0x130], r15b
mov qword [rsp + 0x160], r15
mov qword [rsp + 0x168], r12
mov word [rsp + 0x150], r15w
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x170], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x180], xmm1
movdqa xmmword [rsp + 0x190], xmm0
movdqa xmmword [rsp + 0x1a0], xmm1
movdqa xmmword [rsp + 0x1b0], xmm0
movdqa xmmword [rsp + 0x1c0], xmm1
movdqa xmmword [rsp + 0x1d0], xmm0
movdqa xmmword [rsp + 0x1e0], xmm1
movdqa xmmword [rsp + 0x1f0], xmm0
movdqa xmmword [rsp + 0x200], xmm1
movdqa xmmword [rsp + 0x210], xmm0
movdqa xmmword [rsp + 0x220], xmm1
and qword [rsp + 0x230], 0
mov rdi, qword [rbx + 0x18]
mov r15, qword [rbx + 0x30]
mov rax, qword [rbx + 0xd0]
mov qword [rsp + 0x50], rax
lea rdx, [0x14033f0f2]
xor esi, esi
cmp qword [rbx + 0x10], rsi
cmovne rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0xf8]
call fcn.1400673e4
nop
lea rdx, [0x140344690]
cmp qword [rbx + 0x38], rsi
cmovne rdx, qword [rbx + 0x38]
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xd8], si
lea rcx, [rsp + 0xd8]
call fcn.14004d5c4
nop
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x130]
call fcn.1400c0f44
mov r8d, 0xfde9
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x350]
call fcn.1400917b0
nop
lea r8, [rsp + 0x350]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x90]
call fcn.1401883f8
mov rax, qword [rsp + 0x70]
cmp rax, qword [rsp + 0x98]
je 0x1402a6d28
lea rdx, [rax + 0x30]
lea rax, [rsp + 0x218]
cmp rax, rdx
je 0x1402a6d28
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x218]
call fcn.1402abbe0
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x150]
call fcn.140064f70
mov r8d, dword [rbx + 0x58]
add r8, 0x50
add r8, rbx
lea rdx, [rbx + 0x50]
lea rcx, [rsp + 0x1d0]
call fcn.1400992ec
movzx eax, word [rbx + 4]
mov word [rsp + 0x232], ax
movzx eax, word [rbx + 0x6c]
mov word [rsp + 0x230], ax
mov eax, dword [rbx + 0xf8]
mov dword [rsp + 0x234], eax
test rdi, rdi
je 0x1402a6e65
inc esi
cmp esi, dword [rsp + 0x3c]
jbe 0x1402a6ee0
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1402a6e57
lea rax, str.Machine_info___ip_addresses_for_current_ip_interface_are_capped
mov qword [rsp + 0x2e0], rax
mov qword [rsp + 0x2e8], 0x80
xor r8d, r8d
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x2f0], rax
mov qword [rsp + 0x2f8], 4
lea rax, [rsp + 0x130]
cmp qword [rsp + 0x148], 0x10
cmovae rax, qword [rsp + 0x130]
lea rdx, [0x14033f0f2]
mov ecx, r8d
test rax, rax
je 0x1402a6e16
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], r8b
jne 0x1402a6e0d
mov qword [rsp + 0x300], rdx
lea eax, [rcx + 1]
mov dword [rsp + 0x308], eax
mov dword [rsp + 0x30c], r8d
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
lea rdx, [0x1403e6783]
mov rcx, r10
call fcn.140001158
lea r8, [rsp + 0x3c]
mov rcx, qword [r14 + 0x20]
call fcn.1402ab264
mov rax, qword [rsp + 0x178]
sub rax, qword [rsp + 0x170]
cmp rax, 0x20
jae 0x1402a6fee
mov rax, qword [rsp + 0x190]
sub rax, qword [rsp + 0x188]
cmp rax, 0x20
jae 0x1402a6fee
mov rbx, qword [rbx + 8]
lea rcx, [rsp + 0x350]
call fcn.14004e0f0
nop
lea rcx, [rsp + 0xd8]
call fcn.14004e0f0
nop
lea rcx, [rsp + 0xf8]
call fcn.1400550a8
nop
lea rcx, [rsp + 0x120]
call fcn.1402a73fc
mov eax, dword [rsp + 0x48]
xor r15d, r15d
jmp 0x1402a6a8f
mov r8, qword [rdi + 0x10]
cmp word [r8], 2
je 0x1402a6f71
cmp word [r8], 0x17
jne 0x1402a6fe5
lea rdx, [rsp + 0x2c0]
call fcn.1402a92dc
mov al, byte [rdi + 0x38]
mov byte [rsp + 0x2d8], al
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x188]
call fcn.1402aa9e8
nop
mov rcx, qword [rsp + 0x2c0]
test rcx, rcx
je 0x1402a6fe5
mov rax, qword [rsp + 0x2d0]
sub rax, rcx
mov rdx, rcx
cmp rax, r13
jb 0x1402a6fe0
test dl, 0x1f
jne 0x1402a6f6a
mov rcx, qword [rcx - 8]
cmp rcx, rdx
jae 0x1402a6f6a
sub rdx, rcx
sub rdx, 8
cmp rdx, 0x1f
jbe 0x1402a6fe0
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
lea rdx, [rsp + 0x2c0]
call fcn.1402a927c
mov al, byte [rdi + 0x38]
mov byte [rsp + 0x2d8], al
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x170]
call fcn.1402aa9e8
nop
mov rcx, qword [rsp + 0x2c0]
test rcx, rcx
je 0x1402a6fe5
mov rax, qword [rsp + 0x2d0]
sub rax, rcx
mov rdx, rcx
cmp rax, r13
jb 0x1402a6fe0
test dl, 0x1f
jne 0x1402a6fd9
mov rcx, qword [rcx - 8]
cmp rcx, rdx
jae 0x1402a6fd9
sub rdx, rcx
sub rdx, 8
cmp rdx, 0x1f
jbe 0x1402a6fe0
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402e0278
mov rdi, qword [rdi + 8]
jmp 0x1402a6d7e
xor esi, esi
mov edi, esi
test r15, r15
je 0x1402a70df
inc edi
cmp edi, dword [rsp + 0x40]
jbe 0x1402a7237
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1402a70ca
lea rax, str.Machine_info___dns_services_for_current_ip_interface_are_capped
mov qword [rsp + 0x2e0], rax
mov qword [rsp + 0x2e8], 0x80
lea rax, [rsp + 0x40]
mov qword [rsp + 0x2f0], rax
mov qword [rsp + 0x2f8], 4
lea rax, [rsp + 0x130]
cmp qword [rsp + 0x148], 0x10
cmovae rax, qword [rsp + 0x130]
lea rdx, [0x14033f0f2]
mov rcx, rsi
test rax, rax
je 0x1402a7087
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], sil
jne 0x1402a707e
mov qword [rsp + 0x300], rdx
lea eax, [rcx + 1]
mov dword [rsp + 0x308], eax
mov dword [rsp + 0x30c], esi
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403e67c4]
mov rcx, r10
call fcn.140001158
lea r8, [rsp + 0x40]
lea rdx, str.dnsServers
mov rcx, qword [r14 + 0x20]
call fcn.1402ab178
xor r15d, r15d
mov edi, r15d
mov rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x1402a71d1
inc edi
cmp edi, dword [rsp + 0x44]
jbe 0x1402a7251
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1402a71c3
lea rax, str.Machine_info___default_gateways_for_current_ip_interface_are_capped
mov qword [rsp + 0x2e0], rax
mov qword [rsp + 0x2e8], 0x88
lea rax, [rsp + 0x44]
mov qword [rsp + 0x2f0], rax
mov qword [rsp + 0x2f8], 4
lea rax, [rsp + 0x130]
cmp qword [rsp + 0x148], 0x10
cmovae rax, qword [rsp + 0x130]
lea rdx, [0x14033f0f2]
mov rcx, r15
test rax, rax
je 0x1402a717f
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], r15b
jne 0x1402a7176
mov qword [rsp + 0x300], rdx
lea eax, [rcx + 1]
mov dword [rsp + 0x308], eax
mov dword [rsp + 0x30c], r15d
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403e6744]
mov rcx, r10
call fcn.140001158
lea r8, [rsp + 0x44]
mov rcx, qword [r14 + 0x20]
call fcn.1402ab320
mov r8, qword [rbx + 0xe8]
lea rdx, [rsp + 0x2c0]
call fcn.1402a927c
mov rdx, rax
lea rcx, [rsp + 0x1e8]
call fcn.140099064
mov rcx, qword [rsp + 0x2c0]
test rcx, rcx
je 0x1402a7270
mov rax, qword [rsp + 0x2d0]
sub rax, rcx
mov rdx, rcx
cmp rax, r13
jb 0x1402a726b
test dl, 0x1f
jne 0x1402a7230
mov rcx, qword [rcx - 8]
cmp rcx, rdx
jae 0x1402a7230
sub rdx, rcx
sub rdx, 8
cmp rdx, 0x1f
jbe 0x1402a726b
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
lea rdx, [r15 + 0x10]
lea r8, [rsp + 0x1a0]
call fcn.1402a9340
mov r15, qword [r15 + 8]
jmp 0x1402a6ff2
lea rdx, [rsi + 0x10]
lea r8, [rsp + 0x1b8]
call fcn.1402a9340
mov rsi, qword [rsi + 8]
jmp 0x1402a70ea
call fcn.1402e0278
mov r8, qword [rbx + 0x118]
lea rdx, [rsp + 0x2c0]
call fcn.1402a92dc
mov rdx, rax
lea rcx, [rsp + 0x200]
call fcn.140099064
mov rcx, qword [rsp + 0x2c0]
test rcx, rcx
je 0x1402a72db
mov rax, qword [rsp + 0x2d0]
sub rax, rcx
mov rdx, rcx
cmp rax, r13
jb 0x1402a72d6
test dl, 0x1f
jne 0x1402a72cf
mov rcx, qword [rcx - 8]
cmp rcx, rdx
jae 0x1402a72cf
sub rdx, rcx
sub rdx, 8
cmp rdx, 0x1f
jbe 0x1402a72d6
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402e0278
mov eax, dword [rbx + 0x68]
mov dword [rsp + 0x238], eax
mov eax, dword [rbx + 0x64]
mov qword [rsp + 0x240], rax
mov eax, dword [rbx + 0x110]
mov dword [rsp + 0x248], eax
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x78]
call fcn.1402aa158
mov rbx, qword [rbx + 8]
lea rcx, [rsp + 0x350]
call fcn.14004e0f0
nop
lea rcx, [rsp + 0xd8]
call fcn.14004e0f0
nop
lea rcx, [rsp + 0xf8]
call fcn.1400550a8
nop
lea rcx, [rsp + 0x120]
call fcn.1402a73fc
mov eax, dword [rsp + 0x48]
jmp 0x1402a6a8f
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rsp + 0x2c0], r15d
lea rax, str.Could_not_find_a_usable_version_of_Winsock.dll
mov qword [rsp + 0x2d0], rax
mov ecx, 0xc8
call fcn.1402e0358
lea rdx, [rsp + 0x2c0]
mov rcx, rax
call fcn.140046c98
mov qword [rsp + 0x80], rax
lea rdx, [0x14047cd58]
lea rcx, [rsp + 0x80]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
mov rcx, qword [rsp + 0x3b8]
mov r9d, eax
lea r8, str.amcorewcd_sourcemachinestatecollectionmachineinfowinsockapihelper.h
mov edx, MsiGetActiveDatabase
call fcn.1401d0360
int3