Function at 0x140001540
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2c8
mov r13, rcx
mov rax, qword [rdx]
mov rcx, qword [rdx + 8]
add rax, 0x58
lea rdi, [rax - 0x58]
cmp rdi, rcx
je 0x14000164a
mov qword [rdx], rax
cmp byte [rax - 0x38], 2
setne r8b
je 0x14000161e
mov dword [rsp + 0x34], r8d
movzx r9d, word [rax - 0x27]
movzx r8d, word [rax - 0x25]
movzx r10d, word [rax - 0x23]
movzx r11d, word [rax - 0x21]
movzx ebx, word [rax - 0x1f]
movzx esi, word [rax - 0x1d]
movzx ebp, word [rax - 0x1b]
movzx r14d, word [rax - 0x19]
rol r9w, 8
rol r8w, 8
rol r10w, 8
rol r11w, 8
rol bx, 8
rol si, 8
rol bp, 8
rol r14w, 8
movzx r14d, r14w
shl r14, 0x30
movzx r12d, bp
shl r12, 0x20
or r12, r14
shl esi, 0x10
or rsi, r12
movzx ebx, bx
or rbx, rsi
movzx r11d, r11w
shl r11, 0x30
movzx r10d, r10w
shl r10, 0x20
or r10, r11
shl r8d, 0x10
or r8, r10
movzx r9d, r9w
or r9, r8
btc rbx, 0x30
or rbx, r9
je 0x14000155d
jmp 0x14000165d
cmp byte [rax - 0x32], 0x7f
je 0x14000155d
lea rax, [rdi + 0x20]
mov qword [rsp + 0x50], rax
mov eax, dword [rdi + 0x26]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x2c], 0
jmp 0x140001683
movabs rax, 0x8000000000000000
mov qword [r13], rax
jmp 0x140001bc7
lea rcx, [rax - 0x38]
mov qword [rsp + 0x50], rcx
mov ecx, dword [rax - 0x27]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rax - 0x1b]
mov dword [rsp + 0x60], ecx
mov rax, qword [rax - 0x23]
mov qword [rsp + 0x58], rax
mov al, 1
mov dword [rsp + 0x2c], eax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x68], rax
mov r14, qword [rdi + 0x10]
lea r15, [rsp + 0xf0]
and dword [r15], 0
mov qword [rsp + 0x20], r15
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov edx, dword [r15]
test rdx, rdx
je 0x1400016fc
mov al, byte [0x14039f278]
xor ecx, ecx
call fcn.1401a0460
mov rsi, rax
mov qword [rsp + 0x20], r15
xor ecx, ecx
xor edx, edx
xor r8d, r8d
mov r9, rax
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov ebx, dword [rsp + 0xf0]
test eax, eax
je 0x140001708
mov rcx, rsi
mov rdx, rbx
call fcn.1400ba2e4
mov esi, 2
jmp 0x1400017c4
mov qword [rsp + 0x40], r13
xor ebx, ebx
xor r13d, r13d
jmp 0x140001710
mov qword [rsp + 0x40], r13
mov r13, rsi
mov qword [rsp + 0x48], r13
test r13, r13
je 0x140001799
mov rdx, qword [r13 + 0x48]
test rdx, rdx
je 0x140001bdb
mov eax, dword [r13 + 0x50]
movzx esi, word [r13 + 0x54]
shl rsi, 0x20
or rsi, rax
mov r8, 0xffffffffffffffff
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x14000173e
lea rcx, [rsp + 0xf0]
call fcn.140170950
mov rbp, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0x100]
mov rcx, rbp
mov r8, qword [rsp + 0x68]
mov r9, r14
call fcn.14016bbc7
mov r12d, eax
mov rcx, qword [rsp + 0xf0]
mov rdx, rbp
call fcn.1400b5a3c
test r12b, r12b
jne 0x1400017aa
mov r13, qword [r13 + 8]
jmp 0x140001715
mov rcx, qword [rsp + 0x48]
mov rdx, rbx
call fcn.1400ba2e4
xor esi, esi
jmp 0x1400017bf
shl rsi, 8
or rsi, 1
mov rcx, qword [rsp + 0x48]
mov rdx, rbx
call fcn.1400ba2e4
mov r13, qword [rsp + 0x40]
movabs r14, 0x8000000000000000
mov rcx, rsi
and rcx, 0xffffffffffffff01
cmp sil, 2
mov eax, 2
cmovne rax, rcx
cmp al, 2
je 0x140001a3a
mov rsi, r14
test al, 1
je 0x140001a17
mov rcx, rax
shr rcx, 8
shr rax, 0x28
lea r8, [rsp + 0x38]
lea rbx, [rsp + 0xa8]
and qword [rbx], 0
mov edx, 1
mov qword [rbx + 8], rdx
and qword [rbx + 0x10], 0
mov word [r8 + 4], ax
mov dword [r8], ecx
mov r9, r8
or r9, rdx
mov ecx, 2
lea r10, [rsp + 0x3b]
lea r11, [rsp + 0x3c]
lea rsi, [rsp + 0x3d]
lea rax, [rsp + 0x268]
mov qword [rax], r8
or r8, rcx
lea r12, [0x140087390]
mov qword [rax + 8], r12
mov qword [rax + 0x10], r9
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r8
mov qword [rax + 0x28], r12
mov qword [rax + 0x30], r10
mov qword [rax + 0x38], r12
mov qword [rax + 0x40], r11
mov qword [rax + 0x48], r12
mov qword [rax + 0x50], rsi
mov qword [rax + 0x58], r12
mov qword [rsp + 0xf0], rcx
and qword [rsp + 0x100], 0
mov qword [rsp + 0x108], rcx
and qword [rsp + 0x110], 0
movabs r8, 0x800000020
mov qword [rsp + 0x118], r8
xor r9d, r9d
mov byte [rsp + 0x120], r9b
mov qword [rsp + 0x128], rcx
and qword [rsp + 0x138], 0
mov qword [rsp + 0x140], rcx
mov qword [rsp + 0x148], rdx
mov qword [rsp + 0x150], r8
mov byte [rsp + 0x158], r9b
mov qword [rsp + 0x160], rcx
and qword [rsp + 0x170], 0
mov qword [rsp + 0x178], rcx
mov qword [rsp + 0x180], rcx
mov qword [rsp + 0x188], r8
mov byte [rsp + 0x190], r9b
mov qword [rsp + 0x198], rcx
and qword [rsp + 0x1a8], 0
mov qword [rsp + 0x1b0], rcx
mov qword [rsp + 0x1b8], 3
mov qword [rsp + 0x1c0], r8
mov byte [rsp + 0x1c8], r9b
mov qword [rsp + 0x1d0], rcx
and qword [rsp + 0x1e0], 0
mov qword [rsp + 0x1e8], rcx
mov qword [rsp + 0x1f0], 4
mov qword [rsp + 0x1f8], r8
mov byte [rsp + 0x200], r9b
mov qword [rsp + 0x208], rcx
and qword [rsp + 0x218], 0
mov qword [rsp + 0x220], rcx
mov qword [rsp + 0x228], 5
mov qword [rsp + 0x230], r8
mov byte [rsp + 0x238], r9b
lea rcx, str.Malformed_XML.
lea r8, [rsp + 0xc0]
mov qword [r8], rcx
mov ecx, 6
mov qword [r8 + 8], rcx
mov qword [r8 + 0x20], r15
mov qword [r8 + 0x28], rcx
mov qword [r8 + 0x10], rax
mov qword [r8 + 0x18], rcx
lea rdx, [0x14027ef28]
mov rcx, rbx
call fcn.140081120
mov rsi, qword [rbx]
movups xmm0, xmmword [rbx + 8]
movaps xmmword [rsp + 0x250], xmm0
lea rax, [r14 + 1]
cmp rsi, rax
je 0x140001a3a
movaps xmm0, xmmword [rsp + 0x250]
movaps xmmword [rsp + 0x240], xmm0
lea rcx, [rsp + 0xf0]
mov qword [rcx], r14
call fcn.14000e07a
mov r14, rsi
mov rdx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0xa8]
call fcn.140053590
mov rax, qword [rsp + 0x50]
cmp byte [rax], 2
jne 0x140001aac
lea rsi, [rsp + 0x268]
and qword [rsi], 0
mov qword [rsi + 8], 1
and qword [rsi + 0x10], 0
lea rdx, [rsp + 0xf0]
mov qword [rdx + 0x30], 0x20
mov byte [rdx + 0x38], 3
and qword [rdx], 0
and qword [rdx + 0x10], 0
add rdi, 0x2a
mov qword [rdx + 0x20], rsi
lea rax, [0x14027ef28]
mov qword [rdx + 0x28], rax
mov rcx, rdi
call fcn.1400823a0
jmp 0x140001afd
lea rsi, [rsp + 0x268]
and qword [rsi], 0
mov qword [rsi + 8], 1
and qword [rsi + 0x10], 0
lea rdx, [rsp + 0xf0]
mov qword [rdx + 0x30], 0x20
mov byte [rdx + 0x38], 3
and qword [rdx], 0
and qword [rdx + 0x10], 0
add rdi, 0x41
mov qword [rdx + 0x20], rsi
lea rax, [0x14027ef28]
mov qword [rdx + 0x28], rax
mov rcx, rdi
call fcn.140082570
mov ecx, eax
call fcn.14000f047
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0xd0], rax
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0xc0], xmm0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rsp + 0xa8]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [rsp + 0xc0]
movups xmmword [rsp + 0x88], xmm1
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x90]
mov qword [r13 + 0x20], rax
mov rax, qword [rsp + 0x98]
mov qword [r13 + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [r13 + 0x10], rax
mov rax, qword [rsp + 0x88]
mov qword [r13 + 0x18], rax
movups xmmword [r13], xmm0
mov qword [r13 + 0x30], r14
movaps xmm0, xmmword [rsp + 0x240]
movups xmmword [r13 + 0x38], xmm0
mov eax, dword [rsp + 0x2c]
mov byte [r13 + 0x48], al
mov eax, dword [rsp + 0x30]
mov dword [r13 + 0x49], eax
mov rax, qword [rsp + 0x58]
mov qword [r13 + 0x4d], rax
mov eax, dword [rsp + 0x60]
mov dword [r13 + 0x55], eax
mov eax, dword [rsp + 0x34]
mov byte [r13 + 0x59], al
add rsp, 0x2c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.assertion_failed:__ptr.is_null__
lea r8, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_mac_address_1.1.5_src_windows.rs
mov edx, 0x20
call fcn.140080ec0
int3