Function at 0x180003490
Capabilities:
Get mac address on windows
Initialize winsock library
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c8]
sub rsp, 0x4c8
mov rax, qword [0x180038010]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov r12, qword [rbp + 0x420]
xor eax, eax
mov r15, qword [rbp + 0x428]
mov r14, rdx
mov qword [rsp + 0x30], rcx
xor r13d, r13d
mov ecx, 0x2c0
mov qword [rbp + 0x110], rax
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x120], eax
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r8
call fcn.180017cc8
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rcx, rax
mov dword [rsp + 0x50], 0x2c0
mov rbx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x18000353a
mov rcx, rbx
call fcn.180013668
mov ecx, dword [rsp + 0x50]
call fcn.180017cc8
mov rbx, rax
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x18000369f
xor eax, eax
mov qword [rsp + 0x4c0], rsi
mov qword [rsp + 0x4b8], rdi
mov rdi, rbx
mov qword [rbp + 0x130], rax
mov qword [rbp + 0x138], rax
mov qword [rbp + 0x140], rax
mov qword [rbp + 0x148], rax
mov qword [rbp + 0x150], rax
mov qword [rbp + 0x158], rax
mov qword [rbp + 0x160], rax
mov qword [rbp + 0x168], rax
test rbx, rbx
je 0x180003653
nop word [rax + rax]
xor ebx, ebx
lea r8, [rdi + 0xc]
lea rdx, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
mov qword [rsp + 0x58], rbx
lea rcx, [rbp + 0x270]
xor sil, sil
call fcn.180004350
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x270]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1800036ca
lea rbx, [rdi + 0x1c0]
mov r13d, dword [rdi + 0x194]
lea rcx, [rbp + 0x110]
nop word [rax + rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x180003620
mov r8, r13
lea rdx, [rdi + 0x198]
lea rcx, [rbp + 0x130]
call fcn.180011170
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1800035b0
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp + 0x130]
mov r8d, r13d
call fcn.180011170
lea rax, [rbp + 0x110]
sub r14, rax
lea rcx, [rbp + 0x110]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [r14 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x180003680
mov rsi, qword [rsp + 0x4c0]
mov rdi, qword [rsp + 0x4b8]
mov rcx, qword [rsp + 0x38]
call fcn.180013668
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.18000ed70
add rsp, 0x4c8
pop r15
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x100
call fcn.1800115d0
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rbp + 0x170]
mov dword [rsp + 0x68], 0x100
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PnpInstanceID
mov dword [rsp + 0x60], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800037cf
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x64]
mov dword [rsp + 0x64], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MediaSubType
mov dword [rsp + 0x6c], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, 0x100
lea rcx, [rbp + 0x170]
call fcn.1800171f8
cmp byte [rbp + 0x170], 0x7b
je 0x1800037be
lea rdx, [0x18002fee0]
lea rcx, [rbp + 0x170]
call fcn.180010b20
test rax, rax
jne 0x1800037be
lea rdx, [0x18002fee4]
lea rcx, [rbp + 0x170]
call fcn.180010b20
test rax, rax
jne 0x1800037be
lea rdx, str.COMPOSITEBUS
lea rcx, [rbp + 0x170]
call fcn.180010b20
test rax, rax
je 0x1800037cf
cmp dword [rsp + 0x64], 2
mov eax, 1
movzx esi, sil
cmovne esi, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rbx, [rdi + 0x1c0]
test sil, sil
je 0x180003607
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x198
call fcn.1800115d0
mov ecx, 2
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSACleanup]
test ebx, ebx
je 0x180003647
lea rdx, [rdi + 0x1c0]
sub r14, rdx
nop
movzx eax, byte [rdx]
mov byte [r14 + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x180003830
mov rcx, qword [rsp + 0x40]
lea rdx, [rdi + 0x110]
mov r8d, 0xff
call fcn.180016e90
mov r8d, dword [rdi + 0x194]
lea rdx, [rdi + 0x198]
mov rcx, qword [rsp + 0x30]
call fcn.180011170
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x18000388a
lea rdx, [rdi + 0xc]
mov r8d, 0x104
mov rcx, rax
call fcn.180016e90
lea rcx, [rdi + 0x1b8]
test rcx, rcx
je 0x1800038bf
test r12, r12
je 0x1800038bf
add rcx, 0x18
sub r12, rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [r12 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1800038b0
lea rcx, [rdi + 0x1e8]
test rcx, rcx
je 0x18000368f
test r15, r15
je 0x18000368f
add rcx, 8
sub r15, rcx
nop
movzx eax, byte [rcx]
mov byte [r15 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1800038e0
jmp 0x18000368f