Function at 0x1800126d0
Capabilities:
Get mac address on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x350
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x390], rbx
mov rax, qword [0x180035080]
xor rax, rsp
mov qword [rsp + 0x348], rax
mov qword [rsp + 0x50], r9
mov rbp, r8
mov qword [rsp + 0x48], r8
mov r15, qword [rsp + 0x3b0]
mov rax, qword [rsp + 0x3b8]
mov qword [rsp + 0x60], rax
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov edi, eax
lea rcx, section..data
mov rdx, qword [section..data]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, section..data
mov rdx, qword [section..data]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x330], r14b
xor eax, eax
mov qword [rsp + 0x331], rax
mov qword [rsp + 0x339], rax
mov word [rsp + 0x341], ax
mov byte [rsp + 0x343], al
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x38], rsi
or r13, 0xffffffffffffffff
cmp edi, 0x6f
jne 0x180012b57
mov edi, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
mov qword [rsp + 0x58], rax
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov rcx, rax
call fcn.180014bb0
test rdi, rdi
je 0x180012af2
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [rsp + 0x40], eax
mov r12, rdi
lea rdx, [r12 + 0x1c0]
lea rcx, [rsp + 0x30]
call fcn.180002c90
lea rdx, [r12 + 0x1d0]
lea rcx, [rsp + 0x28]
call fcn.180002c90
mov byte [rsp + 0x330], 0
test r15, r15
je 0x180012898
mov ebp, r14d
cmp dword [r12 + 0x194], r14d
jbe 0x180012893
mov edi, r14d
lea rbx, [r12 + 0x198]
nop word [rax + rax]
movzx r8d, byte [rbx]
mov eax, edi
lea rcx, [rsp + rax + 0x330]
lea rdx, [0x18002f160]
call fcn.1800155fc
inc ebp
add edi, 2
inc rbx
cmp ebp, dword [r12 + 0x194]
jb 0x180012860
mov rbp, qword [rsp + 0x48]
jmp 0x180012898
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x30]
cmp dword [rdi - 0x10], 0
jl 0x1800128c5
lea rdx, [0x18002f1b8]
mov rcx, rdi
call fcn.18001579c
test rax, rax
je 0x1800128c5
sub rax, rdi
sar rax, 1
test eax, eax
jns 0x180012a59
cmp dword [rdi - 0x10], 0
jl 0x1800128ed
lea rdx, [0x18002f1c8]
mov rcx, rdi
call fcn.18001579c
test rax, rax
je 0x1800128ed
sub rax, rdi
sar rax, 1
test eax, eax
jns 0x180012a59
lea rdx, [0x18002f1d8]
lea rcx, [rsp + 0x330]
call fcn.180015b30
test rax, rax
jne 0x180012a59
mov rbx, qword [rsp + 0x28]
cmp dword [rdi - 0x10], eax
jl 0x180012932
lea rdx, [0x18002f1e8]
mov rcx, rdi
call fcn.18001579c
test rax, rax
je 0x180012932
sub rax, rdi
sar rax, 1
test eax, eax
jns 0x1800129aa
cmp dword [rdi - 0x10], 0
jl 0x180012956
lea rdx, [0x18002f1f8]
mov rcx, rdi
call fcn.18001579c
test rax, rax
je 0x180012956
sub rax, rdi
sar rax, 1
test eax, eax
jns 0x1800129aa
cmp dword [rdi - 0x10], 0
jl 0x18001297a
lea rdx, [0x18002f200]
mov rcx, rdi
call fcn.18001579c
test rax, rax
je 0x18001297a
sub rax, rdi
sar rax, 1
test eax, eax
jns 0x1800129aa
cmp dword [rbx - 0x10], 0
jl 0x180012a53
lea rdx, [0x18002f210]
mov rcx, rbx
call fcn.18001579c
test rax, rax
je 0x180012a53
sub rax, rbx
sar rax, 1
test eax, eax
js 0x180012a53
test r15, r15
je 0x1800129dd
lea rcx, [rsp + 0x330]
lea rax, [rsp + 0x330]
mov rdx, r15
sub rdx, rax
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rcx + rdx], al
inc rcx
test al, al
jne 0x1800129d0
cmp qword [rsp + 0x50], 0
je 0x180012a07
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180008830
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, qword [rsp + 0x50]
mov dword [rcx], eax
test rbp, rbp
je 0x180012a2a
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.180008830
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp], eax
lea rdx, [r12 + 0x1f0]
xor eax, eax
mov rcx, r13
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [rsp + 0x60]
call fcn.180003b50
cmp byte [rbp], 0xc0
je 0x180012a66
mov r12, qword [r12]
jmp 0x180012a5d
mov r12, qword [r12]
test r12, r12
jne 0x180012811
mov edi, dword [rsp + 0x40]
add edi, 0xf0000000
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x180012b5d
lea rdx, [rsi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180012aaa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180012acb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x180012aeb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x180012bc3
lea rdx, [rsi - 0x18]
or r13, 0xffffffffffffffff
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180012b12
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180012b33
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x180012b53
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x180012bc3
add edi, 0xe0000000
test edi, edi
sete r14b
lea rdx, [rsi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180012b7f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180012ba0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x180012bc0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, r14d
mov rcx, qword [rsp + 0x348]
xor rcx, rsp
call fcn.1800135f0
mov rbx, qword [rsp + 0x390]
add rsp, 0x350
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret