Function at 0x4035b0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags
Get system firmware table
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov ecx, edi
push ebx
sub esp, 0x18c
mov dword [ebp - 0x158], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x154], edx
mov eax, dword [eax + 0x64]
lea esi, [eax + eax*2]
mov eax, 0x80000000
shl esi, 3
cpuid
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x84], edx
cmp eax, 0x80000003
ja 0x40409a
lea edx, [ebp - 0xf2]
cmp word [ebp - 0xf2], 0
mov eax, edx
je 0x40364b
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x403620
mov ecx, eax
sub ecx, edx
test ecx, ecx
jg 0x403644
jmp 0x40364b
xor ecx, ecx
sub eax, 2
mov word [eax], cx
cmp eax, edx
je 0x40364b
cmp word [eax - 2], 0x20
je 0x403638
lea eax, [ebp - 0x10c]
call dbg.get_vendorid
lea eax, [ebp - 0x12c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xc
mov dword [esp + 4], eax
mov dword [esp], 1
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernelbase.dll_HeapAlloc]
mov dword [ebp - 0x168], eax
call eax
mov dword [ebp - 0x160], eax
sub esp, 0xc
test eax, eax
je 0x403bfd
mov eax, dword [ebp - 0x160]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xb
call dword [sym.imp.ntdll.dll_NtPowerInformation]
sub esp, 0x14
test eax, eax
jne 0x40407b
movzx eax, word [ebp - 0x12c]
cmp ax, 9
je 0x40403f
cmp ax, 0xc
je 0x403ff2
cmp ax, 5
je 0x403ff2
lea eax, [ebp - 0x90]
mov edx, 0x40b5ec
mov dword [ebp - 0x150], eax
call sym._get_identifier.constprop.0
lea eax, [ebp - 0x13c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov eax, dword [sym.imp.advapi32.dll_RegCreateKeyExW]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.HardwareDescriptionSystem
mov dword [esp], 0x80000002
mov dword [ebp - 0x14c], eax
call eax
sub esp, 0x24
test eax, eax
jne 0x404144
movzx edx, word [ebp - 0x12c]
mov eax, dword [ebp - 0x13c]
cmp dx, 5
je 0x403fde
cmp dx, 0xc
je 0x403fde
mov ecx, str.AT_compatible
mov edx, str.Identifier
call sym._set_reg_value.isra.0
movzx eax, word [ebp - 0x12c]
mov edx, dword [ebp - 0x13c]
cmp ax, 5
je 0x4037d8
cmp ax, 0xc
jne 0x403f7b
mov dword [ebp - 0x134], 0
lea eax, [ebp - 0x138]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x14c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.CentralProcessor
mov dword [esp], edx
call eax
sub esp, 0x24
test eax, eax
jne 0x403c37
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x64]
test edx, edx
je 0x404205
mov eax, dword [ebp - 0x158]
mov edx, dword [ebp - 0x154]
xor ebx, ebx
mov dword [esp + 8], 0xf4240
mov dword [esp + 0xc], 0
lea edi, [ebp - 0x120]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__udivdi3
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x160]
add eax, 4
mov dword [ebp - 0x158], eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x15c], eax
lea esi, [esi]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40b6e4
mov dword [esp + 4], 0xa
mov dword [esp], edi
call dbg.swprintf
lea eax, [ebp - 0x140]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x138]
mov dword [esp + 0x18], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x14c]
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
call eax
sub esp, 0x24
test eax, eax
jne 0x403ac0
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x130], eax
test eax, eax
jne 0x40393c
mov eax, dword [ebp - 0x158]
mov eax, dword [eax]
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x124]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FeatureSet
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x150]
sub esp, 0x18
cmp word [ebp - 0x90], 0
je 0x403999
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x403990
mov ecx, dword [ebp - 0x150]
mov dword [esp], edx
mov dword [esp + 0xc], 1
sub eax, ecx
mov dword [esp + 0x10], ecx
add eax, 2
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov dword [esp + 4], str.Identifier
call esi
lea edx, [ebp - 0xf2]
mov ecx, dword [ebp - 0x140]
sub esp, 0x18
cmp word [ebp - 0xf2], 0
mov eax, edx
je 0x4039f1
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4039e8
sub eax, edx
mov dword [esp + 0x10], edx
add eax, 2
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProcessorNameString
mov dword [esp], ecx
call esi
mov edx, dword [ebp - 0x140]
lea eax, [ebp - 0x10c]
sub esp, 0x18
cmp word [ebp - 0x10c], 0
je 0x403a41
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x403a38
lea ecx, [ebp - 0x10c]
mov dword [esp], edx
sub eax, ecx
mov dword [esp + 0x10], ecx
add eax, 2
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.VendorIdentifier
call esi
lea eax, [ebp - 0x130]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.MHz
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x140]
sub esp, 0x18
mov dword [esp], eax
mov eax, dword [ebp - 0x15c]
call eax
sub esp, 4
movzx eax, word [ebp - 0x12c]
cmp ax, 5
je 0x403b2d
cmp ax, 0xc
je 0x403b2d
lea eax, [ebp - 0x140]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x134]
mov dword [esp + 0x18], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x14c]
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
call eax
sub esp, 0x24
test eax, eax
je 0x403c08
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add dword [ebp - 0x158], 0x18
add ebx, 1
cmp dword [eax + 0x64], ebx
ja 0x4038a8
mov eax, dword [ebp - 0x13c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edi
mov dword [esp], eax
mov eax, dword [ebp - 0x14c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.BIOS
call eax
mov ebx, dword [sym.imp.kernelbase.dll_HeapFree]
sub esp, 0x24
test eax, eax
je 0x403c46
mov eax, dword [ebp - 0x134]
mov esi, dword [ebp - 0x15c]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x138]
sub esp, 4
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x13c]
sub esp, 4
mov dword [esp], eax
call esi
mov esi, dword [ebp - 0x160]
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x140]
mov edx, str.Identifier
call sym._set_reg_value.isra.0
mov eax, dword [ebp - 0x140]
mov dword [esp], eax
mov eax, dword [ebp - 0x15c]
call eax
sub esp, 4
jmp 0x403b2d
mov dword [ebp - 0x138], 0
jmp 0x40383a
mov dword [esp + 0xc], 0
mov edi, dword [sym.imp.kernelbase.dll_GetSystemFirmwareTable]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x52534d42
call edi
sub esp, 0x10
mov esi, eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x168]
call eax
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x403f3e
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x52534d42
call edi
mov edx, ebx
mov edi, dword [ebp - 0x120]
mov dword [ebp - 0x14c], eax
mov ecx, eax
sub esp, 0x10
mov eax, 2
call dbg.find_smbios_entry
mov esi, eax
test eax, eax
je 0x403d5d
mov edx, eax
movzx eax, byte [eax + 1]
movzx ecx, byte [esi + 4]
mov dword [esp], ebx
sub edx, ebx
add edx, eax
mov eax, dword [ebp - 0x14c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, edi
mov dword [ebp - 0x158], edx
mov edx, str.BaseBoardManufacturer
call dbg.set_value_from_smbios_string
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x158]
movzx ecx, byte [esi + 5]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, str.BaseBoardProduct
call dbg.set_value_from_smbios_string
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x158]
movzx ecx, byte [esi + 6]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, str.BaseBoardVersion
call dbg.set_value_from_smbios_string
mov ecx, dword [ebp - 0x14c]
mov edx, ebx
xor eax, eax
mov edi, dword [ebp - 0x120]
call dbg.find_smbios_entry
mov esi, eax
test eax, eax
je 0x403e45
mov edx, eax
movzx eax, byte [eax + 1]
movzx ecx, byte [esi + 4]
mov dword [esp], ebx
sub edx, ebx
add edx, eax
mov eax, dword [ebp - 0x14c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, edi
mov dword [ebp - 0x158], edx
mov edx, str.BIOSVendor
call dbg.set_value_from_smbios_string
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x158]
movzx ecx, byte [esi + 5]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, str.BIOSVersion
call dbg.set_value_from_smbios_string
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x158]
movzx ecx, byte [esi + 8]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, str.BIOSReleaseDate
call dbg.set_value_from_smbios_string
cmp byte [esi + 1], 0x17
jbe 0x4041bc
movzx ecx, byte [esi + 0x14]
mov edx, str.BiosMajorRelease
mov eax, edi
call sym._set_reg_value_dword.isra.0
movzx ecx, byte [esi + 0x15]
mov edx, str.BiosMinorRelease
mov eax, edi
call sym._set_reg_value_dword.isra.0
movzx ecx, byte [esi + 0x16]
mov edx, str.ECFirmwareMajorVersion
mov eax, edi
call sym._set_reg_value_dword.isra.0
movzx ecx, byte [esi + 0x17]
mov edx, str.ECFirmwareMinorVersion
mov eax, edi
call sym._set_reg_value_dword.isra.0
mov ecx, dword [ebp - 0x14c]
mov edx, ebx
mov eax, 1
mov edi, dword [ebp - 0x120]
call dbg.find_smbios_entry
mov esi, eax
test eax, eax
je 0x403f3e
mov edx, eax
movzx eax, byte [eax + 1]
movzx ecx, byte [esi + 4]
mov dword [esp], ebx
sub edx, ebx
add edx, eax
mov eax, dword [ebp - 0x14c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, edi
mov dword [ebp - 0x158], edx
mov edx, str.SystemManufacturer
call dbg.set_value_from_smbios_string
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x158]
movzx ecx, byte [esi + 5]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, str.SystemProductName
call dbg.set_value_from_smbios_string
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x158]
movzx ecx, byte [esi + 6]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, str.SystemVersion
call dbg.set_value_from_smbios_string
cmp byte [esi + 1], 0x1a
jbe 0x404173
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x158]
movzx ecx, byte [esi + 0x19]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, str.SystemSKU
call dbg.set_value_from_smbios_string
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x158]
movzx ecx, byte [esi + 0x1a]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, str.SystemFamily
call dbg.set_value_from_smbios_string
mov dword [esp + 8], ebx
mov ebx, dword [sym.imp.kernelbase.dll_HeapFree]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x120]
sub esp, 0xc
mov dword [esp], eax
mov eax, dword [ebp - 0x15c]
call eax
push eax
jmp 0x403ba7
lea eax, [ebp - 0x134]
mov dword [esp], edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x14c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.FloatingPointProcessor
call eax
mov edx, dword [ebp - 0x13c]
sub esp, 0x24
test eax, eax
jne 0x4037d8
jmp 0x4037e2
mov ecx, str.ARM_processor_family
mov edx, str.Identifier
call sym._set_reg_value.isra.0
jmp 0x4037bb
movzx eax, word [ebp - 0x128]
mov dword [esp + 8], str.ARM_Family__u_Model__u_Revision__u
mov dword [esp + 4], 0x3c
movzx edx, al
shr ax, 8
movzx eax, ax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0x12a]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x90]
mov dword [esp], eax
mov dword [ebp - 0x150], eax
call dbg.swprintf
jmp 0x40372a
lea eax, [ebp - 0x10c]
mov dword [esp + 4], str.AuthenticAMD
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
mov edx, str.AMD64
test eax, eax
mov eax, str.Intel64
cmovne edx, eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x150], eax
call sym._get_identifier.constprop.0
jmp 0x40372a
mov eax, dword [ebp - 0x160]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._memset
jmp 0x4036ef
mov ecx, edi
mov eax, 0x80000002
cpuid
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x88], ecx
lea ecx, [ebp - 0xf2]
mov dword [ebp - 0x84], edx
mov edx, 0x10
mov dword [ebp - 0x8c], ebx
call dbg.regs_to_str
mov ecx, edi
mov eax, 0x80000003
cpuid
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x88], ecx
lea ecx, [ebp - 0xd2]
mov dword [ebp - 0x84], edx
mov edx, 0x10
mov dword [ebp - 0x8c], ebx
call dbg.regs_to_str
mov ecx, edi
mov eax, 0x80000004
cpuid
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x88], ecx
lea ecx, [ebp - 0xb2]
mov dword [ebp - 0x84], edx
mov edx, 0x10
mov dword [ebp - 0x8c], ebx
call dbg.regs_to_str
jmp 0x403608
mov esi, dword [ebp - 0x160]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapFree]
sub esp, 0xc
jmp 0x403bfd
mov esi, dword [ebp - 0x14c]
mov dword [esp], ebx
xor ecx, ecx
mov edx, str.SystemSKU
mov eax, dword [ebp - 0x158]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, edi
call dbg.set_value_from_smbios_string
mov eax, dword [ebp - 0x158]
mov dword [esp], ebx
xor ecx, ecx
mov dword [esp + 8], esi
mov edx, str.SystemFamily
mov dword [esp + 4], eax
mov eax, edi
call dbg.set_value_from_smbios_string
jmp 0x403f3e
mov eax, edi
mov ecx, 0xff
mov edx, str.BiosMajorRelease
call sym._set_reg_value_dword.isra.0
mov eax, edi
mov ecx, 0xff
mov edx, str.BiosMinorRelease
call sym._set_reg_value_dword.isra.0
mov eax, edi
mov ecx, 0xff
mov edx, str.ECFirmwareMajorVersion
call sym._set_reg_value_dword.isra.0
mov ecx, 0xff
mov edx, str.ECFirmwareMinorVersion
mov eax, edi
call sym._set_reg_value_dword.isra.0
jmp 0x403e45
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
lea edi, [ebp - 0x120]
mov dword [ebp - 0x15c], eax
jmp 0x403b49