Function at 0x40d8a0
Capabilities:
Get mac address on windows
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42442b
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x288
mov dword [ebp - 0x2a4], 0x288
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x40db63
lea eax, [ebp - 0x2a4]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x40d9c5
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push dword [ebp - 0x2a4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x40db63
lea eax, [ebp - 0x2a4]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40d9bb
mov ecx, esi
nop dword [eax]
cmp dword [ecx + 0x1a0], 6
jne 0x40d952
cmp dword [ecx + 0x190], 6
je 0x40d95a
mov ecx, dword [ecx]
test ecx, ecx
jne 0x40d940
jmp 0x40d9bb
movzx eax, byte [ecx + 0x199]
push eax
movzx eax, byte [ecx + 0x198]
push eax
movzx eax, byte [ecx + 0x197]
push eax
movzx eax, byte [ecx + 0x196]
push eax
movzx eax, byte [ecx + 0x195]
push eax
movzx eax, byte [ecx + 0x194]
push eax
push str._02X__02X__02X__02X__02X__02X
lea eax, [ebp - 0x30]
push 0x20
push eax
call fcn.00402040
lea ecx, [ebp - 0x30]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d9a3
sub ecx, edx
lea eax, [ebp - 0x30]
push ecx
push eax
mov ecx, 0x42f09c
call fcn.004135a0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0x101
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x250]
call fcn.00410c80
push 0x50
lea eax, [ebp - 0x2a0]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x2a0]
call fcn.00410340
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x240]
cmovae ecx, dword [ebp - 0x250]
lea eax, [ecx + eax*2]
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00412250
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 0
call fcn.00410280
mov ecx, dword [0x42f0e0]
cmp ecx, 0x10
jb 0x40da94
mov eax, dword [0x42f0cc]
inc ecx
cmp ecx, 0x1000
jb 0x40da8a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db4f
mov eax, edx
push ecx
push eax
call fcn.004228bd
add esp, 8
movups xmm0, xmmword [ebp - 0x28]
push 0
push 0x427533
movups xmmword [0x42f0cc], xmm0
lea ecx, [ebp - 0x28]
movq xmm0, qword [ebp - 0x18]
movq qword [0x42f0dc], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00416400
mov ecx, dword [0x42f030]
cmp ecx, 0x10
jb 0x40db05
mov eax, dword [0x42f01c]
inc ecx
cmp ecx, 0x1000
jb 0x40dafb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db4f
mov eax, edx
push ecx
push eax
call fcn.004228bd
add esp, 8
movups xmm0, xmmword [ebp - 0x28]
mov ecx, dword [ebp - 0x23c]
movups xmmword [0x42f01c], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [0x42f02c], xmm0
cmp ecx, 8
jb 0x40db5f
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40db55
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40db55
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004228bd
add esp, 8
mov al, 1
jmp 0x40db65
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422454
mov esp, ebp
pop ebp
ret