Function at 0x140001910
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r12, rdx
mov qword [rbp + 0x50], rdx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
mov dword [rdx], r15d
mov qword [rdx + 8], r15
mov qword [rdx + 0x10], r15
lea ecx, [r15 + 0x50]
call fcn.140004c90
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [r12 + 8], rax
mov qword [r12 + 0x18], r15
mov qword [r12 + 0x20], r15
mov qword [r12 + 0x28], r15
mov qword [r12 + 0x30], 7
mov qword [r12 + 0x38], 8
mov dword [r12], 0x3f800000
mov rbx, qword [r12 + 8]
mov ecx, r15d
mov eax, r15d
sar rax, 3
cmp rax, 0x10
jae 0x140001a45
mov ecx, 0x80
call fcn.140004c90
mov rdi, rax
mov rcx, qword [r12 + 0x18]
mov rax, qword [r12 + 0x28]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x140001a0a
lea rdx, [rax*8]
cmp rdx, 0x1000
jb 0x140001a05
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001a3e
mov rcx, r8
call fcn.140004ccc
mov qword [r12 + 0x18], rdi
lea rax, [rdi + 0x80]
mov qword [r12 + 0x20], rax
mov qword [r12 + 0x28], rax
cmp rdi, rax
je 0x140001a5a
nop word [rax + rax]
mov qword [rdi], rbx
add rdi, 8
cmp rdi, rax
jne 0x140001a30
jmp 0x140001a5a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rcx, 7
shr rcx, 3
test rcx, rcx
je 0x140001a5a
xor edi, edi
mov rax, rbx
rep stosq qword [rdi], rax
mov dword [rsp + 0x20], 1
lea rax, [0x1400068f8]
mov qword [rsp + 0x50], rax
lea rax, [0x140006860]
mov qword [rsp + 0x60], rax
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov r14d, 9
mov dword [rsp + 0x20], r14d
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x30], r15
mov dword [rbp - 0x28], r15d
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r15
mov r13d, 0xf
mov qword [rbp + 0x98], r13
mov byte [rbp + 0x80], 0
mov dword [rsp + 0x24], 0x2c0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x2c0
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x140001b5f
lea rdx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003c60
mov rcx, rax
lea rdx, [0x140003e30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [rsp + 0x24]
mov rcx, rbx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x140001bce
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x140001bce
lea rdx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003c60
mov rcx, rax
lea rdx, [0x140003e30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [rsp + 0x24]
mov rcx, rbx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov edi, eax
test eax, eax
jne 0x140001ede
mov rsi, rbx
test rbx, rbx
je 0x140001f26
nop dword [rax]
nop word [rax + rax]
mov ebx, r15d
cmp dword [rsi + 0x194], 0
jbe 0x140001c99
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov byte [rbp + rcx - 0x48], 0x30
mov edx, 2
lea rcx, [rbp + 0x60]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov rdi, rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
mov rdx, qword [rdi + 8]
call qword [rdi]
mov eax, ebx
movzx edi, byte [rax + rsi + 0x198]
lea rdx, [0x140001270]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov eax, dword [rsi + 0x194]
dec eax
cmp ebx, eax
je 0x140001c8b
lea rdx, [0x14000658c]
lea rcx, [rsp + 0x60]
call fcn.140003c60
inc ebx
cmp ebx, dword [rsi + 0x194]
jb 0x140001c10
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], r15
mov ebx, 0xf
mov qword [rbp + 0xb8], rbx
mov byte [rbp + 0xa0], 0
or r14d, 4
mov dword [rsp + 0x20], r14d
movups xmmword [rsp + 0x30], xmm0
mov ecx, dword [rbp - 0x28]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140001cf7
mov rax, qword [rbp - 0x58]
mov r8, qword [rax]
test r8, r8
je 0x140001cf7
mov rax, qword [rbp - 0x78]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x30]
cmovb r8, qword [rbp - 0x30]
sub r8, rdx
jmp 0x140001d28
test cl, 4
jne 0x140001d1e
mov rax, qword [rbp - 0x60]
mov rcx, qword [rax]
test rcx, rcx
je 0x140001d1e
mov rax, qword [rbp - 0x80]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x48]
movsxd r8, dword [rax]
add r8, rcx
sub r8, rdx
jmp 0x140001d28
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140001d47
lea rcx, [rbp + 0xa0]
call fcn.140003af0
mov rbx, qword [rbp + 0xb8]
mov r15, qword [rbp + 0xb0]
and r14d, 0xfffffffb
or r14d, 2
mov dword [rsp + 0x20], r14d
cmp r13, 0xf
jbe 0x140001d8f
lea rdx, [r13 + 1]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d8a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ed0
call fcn.140004ccc
movups xmm0, xmmword [rbp + 0xa0]
movups xmmword [rbp + 0x80], xmm0
movups xmm0, xmmword [rbp + 0xb0]
movups xmmword [rbp + 0x90], xmm0
lea rcx, [rsp + 0x68]
call fcn.140003840
and dword [rbp - 0x28], 0xffffffdf
mov qword [rbp - 0x30], 0
lea rdi, [rbp + 0x80]
cmp rbx, 0xf
seta dl
cmova rdi, qword [rbp + 0xa0]
lea rbx, [rbp + 0x80]
test dl, dl
cmovne rbx, qword [rbp + 0xa0]
add rbx, r15
cmp rdi, rbx
je 0x140001e03
movsx ecx, byte [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov byte [rdi], al
inc rdi
cmp rdi, rbx
jne 0x140001df0
lea rdx, [rsi + 0x110]
lea rcx, [rbp + 0xa0]
call fcn.140003470
nop
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xc0]
call fcn.1400035b0
nop
lea r8, [rbp + 0xa0]
lea rdx, [rbp + 0x70]
mov rcx, r12
call fcn.140003e70
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x140001e7c
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e77
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ed0
call fcn.140004ccc
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x140001eb9
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001eb4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ed0
call fcn.140004ccc
mov rsi, qword [rsi]
mov r13, qword [rbp + 0x98]
test rsi, rsi
je 0x140001ed7
xor r15d, r15d
jmp 0x140001c00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rbx, qword [rsp + 0x28]
jmp 0x140001f11
lea rdx, str.GetAdaptersInfo_failed_with_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003c60
mov rcx, rax
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003e30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
test rbx, rbx
je 0x140001f26
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
cmp r13, 0xf
jbe 0x140001f65
lea rdx, [r13 + 1]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004ccc
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea edi, [rdx - 0x98]
mov dword [rsp + rdx + 0x4c], edi
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
call fcn.140003840
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, r12
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140004c70
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret