Function at 0x40e6b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4e90
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4fc040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x70], edi
push 0x46
mov dword [ebp - 0x74], edi
lea eax, [edi + 9]
push 0
push eax
mov dword [edi], vtable.xmrig::BasicCpuInfo.0
mov dword [edi + 4], 0
mov byte [edi + 8], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
push 0x4feb08
mov dword [edi + 0x78], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
xor ecx, ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x60], xmm0
push ebx
cpuid
mov esi, ebx
pop ebx
lea edi, [ebp - 0x60]
mov dword [edi], eax
mov eax, edi
mov edi, dword [ebp - 0x68]
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
cmp dword [ebp - 0x60], 4
jl 0x40e7f3
lea eax, [ebp - 0x50]
xor edi, edi
mov dword [ebp - 0x64], eax
nop word [eax + eax]
lea eax, [edi - 0x7ffffffe]
xor ecx, ecx
push ebx
cpuid
xorps xmm0, xmm0
mov dword [ebp - 0x70], ebx
movups xmmword [ebp - 0x60], xmm0
pop ebx
lea esi, [ebp - 0x60]
inc edi
mov dword [esi], eax
lea eax, [ebp - 0x60]
mov esi, dword [ebp - 0x70]
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x64]
movups xmm0, xmmword [ebp - 0x60]
movups xmmword [eax], xmm0
add eax, 0x10
mov dword [ebp - 0x64], eax
cmp edi, 4
jb 0x40e7b0
mov edi, dword [ebp - 0x68]
lea edx, [ebp - 0x50]
xor ecx, ecx
lea esi, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x40e800
xor eax, eax
sub edx, esi
mov dword [ebp - 0x64], edx
je 0x40e846
cmp byte [ebp + eax - 0x50], 0x20
mov edx, dword [ebp - 0x64]
jne 0x40e825
test ecx, ecx
je 0x40e831
cmp byte [ecx + edi + 8], 0x20
je 0x40e831
mov dl, byte [ebp + eax - 0x50]
mov byte [ecx + edi + 9], dl
inc ecx
mov edx, dword [ebp - 0x64]
inc eax
cmp eax, edx
jb 0x40e810
test ecx, ecx
je 0x40e846
cmp byte [ecx + edi + 8], 0x20
jne 0x40e846
mov byte [ecx + edi + 8], 0
mov eax, 1
xor ecx, ecx
push ebx
cpuid
xorps xmm0, xmm0
mov esi, ebx
movups xmmword [ebp - 0x60], xmm0
pop ebx
lea edi, [ebp - 0x60]
mov dword [edi], eax
mov eax, edi
mov edi, dword [ebp - 0x68]
push ebx
mov dword [eax + 4], esi
mov esi, dword [edi + 0x78]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, esi
mov ecx, dword [ebp - 0x58]
and eax, 0xfffffffe
shr ecx, 0x19
or esi, 1
test cl, 1
movups xmmword [ebp - 0x60], xmm0
cmove esi, eax
mov eax, 1
xor ecx, ecx
mov dword [edi + 0x78], esi
cpuid
mov edi, ebx
mov dword [ebp - 0x64], esi
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x58]
shr eax, 0x1c
test al, 1
je 0x40e8f7
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov edi, ebx
movups xmmword [ebp - 0x60], xmm0
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x58]
shr eax, 0x1b
test al, 1
je 0x40e8f7
xor ecx, ecx
xgetbv
and eax, 6
cmp eax, 6
jne 0x40e8f7
mov cl, 1
jmp 0x40e8f9
xor cl, cl
mov eax, esi
or esi, 4
and eax, 0xfffffffb
test cl, cl
push ebx
cmove esi, eax
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x64], esi
movups xmmword [ebp - 0x60], xmm0
mov dword [eax + 0x78], esi
mov eax, 7
cpuid
mov edi, ebx
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x5c]
shr eax, 5
test al, 1
je 0x40e97c
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov edi, ebx
movups xmmword [ebp - 0x60], xmm0
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x58]
shr eax, 0x1b
test al, 1
je 0x40e97c
xor ecx, ecx
xgetbv
and eax, 6
cmp eax, 6
jne 0x40e97c
mov cl, 1
jmp 0x40e97e
xor cl, cl
mov eax, esi
or esi, 8
and eax, 0xfffffff7
test cl, cl
push ebx
cmove esi, eax
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x64], esi
movups xmmword [ebp - 0x60], xmm0
mov dword [eax + 0x78], esi
mov eax, 7
cpuid
mov edi, ebx
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x58]
shr eax, 9
test al, 1
je 0x40ea01
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov edi, ebx
movups xmmword [ebp - 0x60], xmm0
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x58]
shr eax, 0x1b
test al, 1
je 0x40ea01
xor ecx, ecx
xgetbv
and eax, 6
cmp eax, 6
jne 0x40ea01
mov cl, 1
jmp 0x40ea03
xor cl, cl
mov eax, esi
or esi, 2
and eax, 0xfffffffd
test cl, cl
push ebx
cmove esi, eax
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x64], esi
movups xmmword [ebp - 0x60], xmm0
mov dword [eax + 0x78], esi
mov eax, 7
cpuid
mov edi, ebx
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x5c]
shr eax, 0x10
test al, 1
je 0x40ea8a
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov edi, ebx
movups xmmword [ebp - 0x60], xmm0
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x58]
shr eax, 0x1b
test al, 1
je 0x40ea8a
xor ecx, ecx
xgetbv
and eax, 0xe6
cmp eax, 0xe6
jne 0x40ea8a
mov cl, 1
jmp 0x40ea8c
xor cl, cl
mov eax, esi
or esi, 0x10
and eax, 0xffffffef
test cl, cl
push ebx
cmove esi, eax
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x64], esi
movups xmmword [ebp - 0x60], xmm0
mov dword [eax + 0x78], esi
mov eax, 7
cpuid
mov edi, ebx
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
push ebx
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, esi
mov ecx, dword [ebp - 0x5c]
and eax, 0xffffffdf
shr ecx, 8
or esi, 0x20
test cl, 1
movups xmmword [ebp - 0x60], xmm0
cmove esi, eax
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x64], esi
mov dword [eax + 0x78], esi
mov eax, 1
cpuid
mov edi, ebx
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
push ebx
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, esi
mov ecx, dword [ebp - 0x58]
and eax, 0xffffffbf
shr ecx, 0x1b
or esi, 0x40
test cl, 1
movups xmmword [ebp - 0x60], xmm0
cmove esi, eax
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x64], esi
mov dword [eax + 0x78], esi
mov eax, 0x80000001
cpuid
mov edi, ebx
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, esi
mov ecx, dword [ebp - 0x54]
and eax, 0xffffff7f
shr ecx, 0x1a
or esi, 0x80
test cl, 1
cmove esi, eax
mov dword [ebp - 0x64], esi
mov eax, dword [ebp - 0x68]
xor ecx, ecx
push ebx
movups xmmword [ebp - 0x60], xmm0
mov dword [eax + 0x78], esi
mov eax, 1
cpuid
mov edi, ebx
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
push ebx
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, esi
mov ecx, dword [ebp - 0x54]
and eax, 0xfffffeff
shr ecx, 0x1a
or esi, 0x100
test cl, 1
movups xmmword [ebp - 0x60], xmm0
cmove esi, eax
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x64], esi
mov dword [eax + 0x78], esi
mov eax, 1
cpuid
mov edi, ebx
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
push ebx
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, esi
mov ecx, dword [ebp - 0x58]
and eax, 0xfffffdff
shr ecx, 9
or esi, 0x200
test cl, 1
movups xmmword [ebp - 0x60], xmm0
cmove esi, eax
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x64], esi
mov dword [eax + 0x78], esi
mov eax, 1
cpuid
mov edi, ebx
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
push ebx
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, esi
mov ecx, dword [ebp - 0x58]
and eax, 0xfffffbff
shr ecx, 0x13
or esi, 0x400
test cl, 1
movups xmmword [ebp - 0x60], xmm0
cmove esi, eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x64], esi
xor ecx, ecx
mov dword [eax + 0x78], esi
mov eax, 0x80000001
cpuid
mov edi, ebx
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
push ebx
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, esi
mov ecx, dword [ebp - 0x58]
and eax, 0xfffff7ff
shr ecx, 0xb
or esi, 0x800
test cl, 1
movups xmmword [ebp - 0x60], xmm0
cmove esi, eax
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x64], esi
mov dword [eax + 0x78], esi
mov eax, 1
cpuid
mov edi, ebx
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
push ebx
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, esi
mov ecx, dword [ebp - 0x58]
and eax, 0xffffefff
shr ecx, 0x17
or esi, 0x1000
test cl, 1
movups xmmword [ebp - 0x60], xmm0
cmove esi, eax
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x64], esi
mov dword [eax + 0x78], esi
mov eax, 7
cpuid
mov edi, ebx
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x5c]
shr eax, 0xf
test al, 1
je 0x40ed27
mov eax, 0x10
xor ecx, ecx
push ebx
cpuid
mov edi, ebx
movups xmmword [ebp - 0x60], xmm0
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x5c]
shr eax, 1
test al, 1
je 0x40ed27
mov al, 1
jmp 0x40ed29
xor al, al
mov ecx, esi
or esi, 0x2000
and ecx, 0xffffdfff
test al, al
mov eax, dword [ebp - 0x68]
cmove esi, ecx
xor ecx, ecx
push ebx
mov dword [ebp - 0x64], esi
mov dword [eax + 0x78], esi
mov eax, 1
cpuid
mov edi, ebx
movups xmmword [ebp - 0x60], xmm0
pop ebx
lea esi, [ebp - 0x60]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebp - 0x64]
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x68]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, esi
and eax, 0xffffbfff
or esi, 0x4000
test dword [ebp - 0x58], 0x80000000
cmove esi, eax
mov dword [edi + 0x78], esi
mov ecx, dword [edi + 0x58]
mov eax, dword [edi + 0x54]
mov esi, dword [edi + 0x50]
mov dword [ebp - 0x68], ecx
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x40eda0
lea eax, [eax + esi*4]
jmp 0x40edd3
jbe 0x40edd6
mov eax, dword [edi + 0x5c]
sub eax, dword [edi + 0x54]
sar eax, 2
cmp esi, eax
jbe 0x40edbb
push ecx
push esi
lea ecx, [edi + 0x54]
call fcn.0040eec0
jmp 0x40edd6
sub esi, ecx
shl esi, 2
push esi
push 0
push dword [ebp - 0x68]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x68]
add esp, 0xc
add eax, esi
mov dword [edi + 0x58], eax
xor eax, eax
cmp dword [edi + 0x50], eax
jle 0x40edec
nop dword [eax]
mov ecx, dword [edi + 0x54]
mov dword [ecx + eax*4], eax
inc eax
cmp eax, dword [edi + 0x50]
jl 0x40ede0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e3214
mov esp, ebp
pop ebp
ret