Function at 0x140050970
Capabilities:
Get mac address on windows
Terminate process

Disassembly:
push rbp
push rdi
sub rsp, 0x288
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x6a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [0x1401a13de]
call fcn.140068b20
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x84], 0x2c0
mov ecx, 0x2c0
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400509dc
lea rcx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
call fcn.1400024a0
jmp 0x140050d7b
lea rdx, [rbp + 0x84]
mov rcx, qword [rbp + 8]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x140050a26
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
mov eax, dword [rbp + 0x84]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140050a26
lea rcx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
call fcn.1400024a0
jmp 0x140050d7b
lea rdx, [rbp + 0x84]
mov rcx, qword [rbp + 8]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jne 0x140050d5b
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
jmp 0x140050a59
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140050d59
mov rax, qword [rbp + 0x28]
cmp dword [rax + 0x1a4], 6
je 0x140050a73
jmp 0x140050a4e
mov rax, qword [rbp + 0x28]
add rax, 0xc
mov rcx, rax
call sub.ucrtbased.dll_strlen
add rax, 0xd
mov qword [rbp + 0xa8], rax
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x28]
imul eax, dword [rax + 0x194], 3
inc eax
mov eax, eax
mov qword [rbp + 0xe8], rax
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x108], rax
cmp qword [rbp + 0xc8], 0
je 0x140050ae0
cmp qword [rbp + 0x108], 0
jne 0x140050aeb
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov rax, qword [rbp + 0x28]
add rax, 0xc
mov r9, rax
lea r8, str.DeviceNPF__s
mov rdx, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0xc8]
call fcn.140003740
mov dword [rbp + 0x64], 0
jmp 0x140050b21
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x194]
cmp dword [rbp + 0x64], eax
jae 0x140050bfc
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x194]
dec eax
cmp dword [rbp + 0x64], eax
jne 0x140050b9f
mov eax, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax + 0x198]
imul ecx, dword [rbp + 0x64], 3
mov ecx, ecx
mov rdx, qword [rbp + 0xe8]
sub rdx, rcx
mov rcx, rdx
imul edx, dword [rbp + 0x64], 3
mov edx, edx
mov r8, qword [rbp + 0x108]
add r8, rdx
mov rdx, r8
mov qword [rbp + 0x258], rdx
mov r9d, eax
lea r8, str._.2X
mov rdx, rcx
mov rax, qword [rbp + 0x258]
mov rcx, rax
call fcn.140003740
jmp 0x140050bf7
mov eax, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax + 0x198]
imul ecx, dword [rbp + 0x64], 3
mov ecx, ecx
mov rdx, qword [rbp + 0xe8]
sub rdx, rcx
mov rcx, rdx
imul edx, dword [rbp + 0x64], 3
mov edx, edx
mov r8, qword [rbp + 0x108]
add r8, rdx
mov rdx, r8
mov qword [rbp + 0x258], rdx
mov r9d, eax
lea r8, str._.2X_
mov rdx, rcx
mov rax, qword [rbp + 0x258]
mov rcx, rax
call fcn.140003740
jmp 0x140050b19
mov eax, dword [0x14019b948]
imul rax, rax, 0x10
lea rcx, [0x14019c140]
mov rdx, qword [rbp + 0x108]
mov qword [rcx + rax], rdx
mov eax, dword [0x14019b948]
imul rax, rax, 0x10
lea rcx, [0x14019c140]
mov rdx, qword [rbp + 0xc8]
mov qword [rcx + rax + 8], rdx
mov eax, dword [0x14019b948]
inc eax
mov dword [0x14019b948], eax
mov rax, qword [rbp + 0x28]
add rax, 0xc
mov rcx, rax
call sub.ucrtbased.dll_strlen
add rax, 0xd
mov qword [rbp + 0x128], rax
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0x28]
add rax, 0x1c0
mov rcx, rax
call sub.ucrtbased.dll_strlen
inc rax
mov qword [rbp + 0x168], rax
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x188], rax
cmp qword [rbp + 0x148], 0
je 0x140050cb6
cmp qword [rbp + 0x188], 0
jne 0x140050cc1
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov rax, qword [rbp + 0x28]
add rax, 0xc
mov r9, rax
lea r8, str.DeviceNPF__s
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x148]
call fcn.140003740
mov rax, qword [rbp + 0x28]
add rax, 0x1c0
mov r9, rax
lea r8, [0x14006e240]
mov rdx, qword [rbp + 0x168]
mov rcx, qword [rbp + 0x188]
call fcn.140003740
mov eax, dword [0x14019b948]
imul rax, rax, 0x10
lea rcx, [0x14019c140]
mov rdx, qword [rbp + 0x188]
mov qword [rcx + rax], rdx
mov eax, dword [0x14019b948]
imul rax, rax, 0x10
lea rcx, [0x14019c140]
mov rdx, qword [rbp + 0x148]
mov qword [rcx + rax + 8], rdx
mov eax, dword [0x14019b948]
inc eax
mov dword [0x14019b948], eax
jmp 0x140050a4e
jmp 0x140050d6a
mov edx, dword [rbp + 0x44]
lea rcx, str.GetAdaptersInfo_failed_with_error:__u_n
call fcn.1400024a0
cmp qword [rbp + 8], 0
je 0x140050d7b
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
lea rcx, [rbp - 0x20]
lea rdx, [0x14008a6b0]
call fcn.140068a90
lea rsp, [rbp + 0x268]
pop rdi
pop rbp
ret