Function at 0x401260
Capabilities:
Enumerate system firmware tables

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403941
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x406040]
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
push str.acpi_sandbox_detect_by_huoji_2023.6.19__n
call fcn.00401020
mov edi, dword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
add esp, 4
push 0
push 0
push 0x41435049
call edi
mov esi, eax
test esi, esi
je 0x401607
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x17c], eax
test eax, eax
je 0x401607
push esi
push eax
push 0x41435049
call edi
test eax, eax
je 0x4015f8
shr eax, 2
xor bl, bl
mov dword [ebp - 0x180], eax
test eax, eax
je 0x4014be
mov esi, dword [ebp - 0x17c]
mov edi, eax
add esi, 0x10
nop dword [eax]
xor eax, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x12], al
mov edx, str.WAET
mov eax, dword [esi - 6]
mov dword [ebp - 0x18], eax
mov ax, word [esi - 2]
mov word [ebp - 0x14], ax
mov eax, dword [ecx]
cmp eax, dword [edx]
je 0x40133d
cmp al, byte [edx]
jne 0x401341
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x401341
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x401341
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x401341
xor eax, eax
jmp 0x401346
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4013e9
push str._detected__Vmware_detected_by_Windows_ACPI_Emulated_n
call fcn.00401020
push 0xb0
lea eax, [ebp - 0xc8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea ecx, [ebp - 0xc8]
push str.DETECT1.txt
call fcn.00402270
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0
call fcn.00402610
lea ecx, [ebp - 0xc8]
call fcn.004021c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xc4]
call fcn.004020e0
lea ecx, [ebp - 0xc0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
test bl, bl
jne 0x401401
lea eax, [ebp - 0x18]
movzx ebx, bl
cmp dword [eax], 0x54455048
mov eax, 1
cmove ebx, eax
mov eax, dword [esi]
or eax, 0
jne 0x4014a7
push str._detected__Cuckoo_sandbox_detected_by_oem_table_id_n
call fcn.00401020
push 0xb0
lea eax, [ebp - 0xc8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea ecx, [ebp - 0xc8]
push str.DETECT2.txt
call fcn.00402270
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 1
call fcn.00402610
lea ecx, [ebp - 0xc8]
call fcn.004021c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xc4]
call fcn.004020e0
lea ecx, [ebp - 0xc0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
inc esi
sub edi, 1
jne 0x401300
cmp dword [ebp - 0x180], 8
jae 0x401559
push str._detected__vm_guest_detected_by_table_size__n
call fcn.00401020
push 0xb0
lea eax, [ebp - 0xc8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea ecx, [ebp - 0xc8]
push str.DETECT3.txt
call fcn.00402270
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 2
call fcn.00402610
lea ecx, [ebp - 0xc8]
call fcn.004021c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xc4]
call fcn.004020e0
lea ecx, [ebp - 0xc0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
test bl, bl
jne 0x4015f8
push str._detected__HPET_not_found_Cuckoo_detected__n
call fcn.00401020
push 0xb0
lea eax, [ebp - 0x178]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea ecx, [ebp - 0x178]
push str.DETECT4.txt
call fcn.00402270
lea ecx, [ebp - 0x178]
mov dword [ebp - 4], 3
call fcn.00402610
lea ecx, [ebp - 0x178]
call fcn.004021c0
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x17c], eax
lea ecx, [ebp - 0x174]
call fcn.004020e0
lea ecx, [ebp - 0x170]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x110]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
push dword [ebp - 0x17c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
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.00402bbc
mov esp, ebp
pop ebp
ret