Function at 0x140109140
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rsi, 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.1401cb054
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rsi + 8], rax
lea rcx, [rsi + 0x18]
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov qword [rsi + 0x30], 7
mov qword [rsi + 0x38], 8
mov dword [rsi], 0x3f800000
mov r8, qword [rsi + 8]
lea edx, [r15 + 0x10]
call fcn.140101f90
nop
mov dword [rsp + 0x20], 1
lea rax, [0x1401d2bc0]
mov qword [rbp - 0x50], rax
lea rax, [0x1401d2bc8]
mov qword [rbp - 0x40], rax
lea rcx, [rbp + 0x48]
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, [rbp - 0x38]
lea rcx, [rbp - 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 [rbp - 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 [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea r12, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x38], r12
mov qword [rbp + 0x30], r15
mov dword [rbp + 0x38], r15d
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov r13d, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x40], r13
mov byte [rsp + 0x28], r15b
mov dword [rbp + 0x120], 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 [rbp + 0x128], rax
lea rdx, [rbp + 0x120]
mov rcx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x1401092e1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [rbp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
mov qword [rbp + 0x128], rax
lea rdx, [rbp + 0x120]
mov rcx, rbx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x1401096a9
mov rdi, rbx
test rbx, rbx
je 0x1401096c3
nop word [rax + rax]
mov ebx, r15d
cmp dword [rdi + 0x194], 0
jbe 0x1401093af
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
add rcx, rax
mov dl, 0x30
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::fill_char____ptr64]
mov edx, 2
lea rcx, [rbp + 0xb0]
call sub.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__
mov r8, qword [rax]
mov rcx, qword [rbp - 0x40]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbp - 0x40]
add rcx, rdx
mov rdx, qword [rax + 8]
call r8
lea rdx, [0x1400a1240]
lea rcx, [rbp - 0x40]
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 ecx, ebx
movzx edx, byte [rcx + rdi + 0x198]
mov rcx, rax
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 [rdi + 0x194]
dec eax
cmp ebx, eax
je 0x1401093a1
lea rdx, [0x1401e6130]
lea rcx, [rbp - 0x40]
call fcn.14009d640
inc ebx
cmp ebx, dword [rdi + 0x194]
jb 0x140109320
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x48], xmm0
mov r12, r15
mov qword [rsp + 0x58], r15
mov r15d, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x48], 0
or r14d, 4
mov dword [rsp + 0x20], r14d
xor eax, eax
vmovups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
mov ecx, dword [rbp + 0x38]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140109434
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x140109431
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov rsi, rax
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rbx, rax
cmp rax, qword [rbp + 0x30]
cmovb rbx, qword [rbp + 0x30]
sub rbx, rsi
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
jmp 0x14010946f
mov ecx, dword [rbp + 0x38]
test cl, 4
jne 0x140109467
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
test rax, rax
je 0x140109467
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
mov rsi, rax
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::egptr_void_const___ptr64]
mov rbx, rax
sub rbx, rsi
jmp 0x14010946f
mov rbx, qword [rbp - 0x70]
mov rsi, qword [rbp - 0x78]
test rsi, rsi
je 0x14010948e
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.14009d1f0
mov r15, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
and r14d, 0xfffffffb
or r14d, 2
mov dword [rsp + 0x20], r14d
cmp r13, 0xf
jbe 0x1401094d4
lea rdx, [r13 + 1]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401094cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401096a2
call fcn.1401cb090
vmovups ymm0, ymmword [rsp + 0x48]
vmovups ymmword [rsp + 0x28], ymm0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp - 0x78], xmm0
xor ebx, ebx
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x78], bl
lea rcx, [rbp - 0x38]
vzeroupper
call fcn.140103350
mov esi, dword [rbp + 0x38]
mov eax, esi
and eax, 6
cmp al, 6
jne 0x14010951b
mov qword [rbp + 0x30], rbx
or esi, 0x20
jmp 0x140109569
mov ecx, reloc.WS2_32.dll_recvfrom
call fcn.1401cb054
mov rbx, rax
vmovups xmm0, xmmword [rbp - 0x78]
vmovups xmmword [rax], xmm0
mov qword [rbp + 0x30], rax
lea r9, [rax + 0x11]
mov r8, rax
mov rdx, rax
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setp_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov r8, rbx
mov rdx, rbx
lea rcx, [rbp - 0x38]
test sil, 4
mov r9, rbx
jne 0x140109560
mov r9, qword [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
or esi, 0x21
mov dword [rbp + 0x38], esi
lea rbx, [rsp + 0x28]
cmp r15, 0xf
seta dl
cmova rbx, qword [rsp + 0x48]
lea rsi, [rsp + 0x28]
test dl, dl
cmovne rsi, qword [rsp + 0x48]
add rsi, r12
cmp rbx, rsi
je 0x1401095a6
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov byte [rbx], al
inc rbx
cmp rbx, rsi
jne 0x140109593
lea rdx, [rdi + 0x110]
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x48], xmm0
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], r15b
jne 0x1401095d0
lea rcx, [rsp + 0x48]
call fcn.14009dee0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x68]
call fcn.14009b770
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp + 0xc0]
mov rsi, qword [rbp + 0x118]
mov rcx, rsi
call fcn.1400e9db0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140109648
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140109643
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401096a2
call fcn.1401cb090
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140109681
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010967c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401096a2
call fcn.1401cb090
mov rdi, qword [rdi]
mov r13, qword [rsp + 0x40]
test rdi, rdi
jne 0x140109310
mov rbx, qword [rbp + 0x128]
lea r12, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
jmp 0x1401096ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rbx, rbx
je 0x1401096c3
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 0x140109700
lea rdx, [r13 + 1]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401096fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401096fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401cb090
nop
mov rax, qword [rbp - 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 [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x54], edx
mov qword [rbp - 0x38], r12
lea rcx, [rbp - 0x38]
call fcn.140103350
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x30]
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 + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, rsi
mov rbx, qword [rsp + 0x210]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret