Function at 0x180f1b73
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x181d200c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0xf
pop esi
mov dword [ebp - 0x13c], edi
lea ecx, [edi + 0x24]
mov dword [edi], 0x181a1f5c
mov dword [edi + 4], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], esi
call fcn.180fd088
push 0xf
pop ecx
lea eax, [edi + 0x98]
mov dword [edi + 0x7c], esi
lea esi, [edi + 0x80]
mov dword [eax + 0x14], ecx
push 9
mov dword [edi + 0x68], ebx
mov dword [edi + 0x78], ebx
mov dword [esi + 0x14], ecx
mov dword [eax], ebx
mov dword [eax + 0x10], ebx
xor eax, eax
mov dword [edi + 0xb0], ebx
lea edi, [ebp - 0x138]
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x138]
mov dword [esi], ebx
push eax
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x138]
sub eax, ebx
je 0x180f1c1c
sub eax, 5
je 0x180f1c18
sub eax, 1
je 0x180f1c13
sub eax, 3
je 0x180f1c13
mov eax, ebx
jmp 0x180f1c1f
push 2
pop eax
jmp 0x180f1c1f
push 3
jmp 0x180f1c15
xor eax, eax
inc eax
mov edi, dword [ebp - 0x13c]
lea ecx, [ebp - 0x12c]
mov dword [edi + 0x1c], eax
call fcn.180f1947
push eax
lea ecx, [edi + 0x68]
call fcn.180382f5
lea ecx, [ebp - 0x12c]
call fcn.180148bd
push 0x100
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.18132590
add esp, 0xc
mov dword [ebp - 0x114], 0x100
push 0x14
pop eax
cmp dword [esi + 0x14], eax
lfence
jb 0x180f1c98
cmp dword [esi + 0x14], 0x10
mov edi, esi
jb 0x180f1c7b
mov edi, dword [esi]
push eax
push str.Unknown_Manufacturer
push edi
mov dword [esi + 0x10], eax
call fcn.18132010
mov byte [edi + 0x14], bl
add esp, 0xc
mov edi, dword [ebp - 0x13c]
jmp 0x180f1cb1
push str.Unknown_Manufacturer
mov byte [ebp - 0x110], bl
mov ecx, esi
push dword [ebp - 0x110]
push eax
call fcn.1801e596
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push 2
push str.SystemManufacturer
push str.SYSTEMCurrentControlSetControlSystemInformation
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x180f1d90
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x11c], ebx
lea edx, [ecx + 1]
mov dword [ebp - 0x118], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x180f1cfe
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.1801e4b8
lea eax, [ebp - 0x12c]
cmp esi, eax
je 0x180f1d41
cmp dword [ebp - 0x118], 0x10
jb 0x180f1d33
mov eax, dword [ebp - 0x12c]
push dword [ebp - 0x11c]
mov ecx, esi
push eax
call fcn.1801e4b8
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x180f1d90
mov ecx, dword [ebp - 0x12c]
inc eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x110], ecx
cmp eax, 0x1000
jb 0x180f1d87
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.18007b72
mov eax, dword [ebp - 0x13c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x110]
push eax
push ecx
call fcn.1811de06
pop ecx
pop ecx
push 0xd
lea esi, [edi + 0x98]
mov dword [ebp - 0x114], 0x100
push str.Unknown_Model
mov ecx, esi
call fcn.1801e4b8
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push 2
push str.SystemProductName
push str.SYSTEMCurrentControlSetControlSystemInformation
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x180f1e8d
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x11c], ebx
lea edx, [ecx + 1]
mov dword [ebp - 0x118], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x180f1dfb
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.1801e4b8
lea eax, [ebp - 0x12c]
cmp esi, eax
je 0x180f1e3e
cmp dword [ebp - 0x118], 0x10
jb 0x180f1e30
mov eax, dword [ebp - 0x12c]
push dword [ebp - 0x11c]
mov ecx, esi
push eax
call fcn.1801e4b8
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x180f1e8d
mov ecx, dword [ebp - 0x12c]
inc eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x13c], ecx
cmp eax, 0x1000
jb 0x180f1e84
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.18007b72
mov eax, dword [ebp - 0x110]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x13c]
push eax
push ecx
call fcn.1811de06
pop ecx
pop ecx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
test eax, eax
je 0x180f1eb4
mov al, byte [ebp - 0x120]
cmp al, 1
jne 0x180f1ead
push 2
pop ebx
jmp 0x180f1eb4
test al, al
jne 0x180f1eb4
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 8]
mov eax, edi
mov dword [edi + 0x20], ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1811d8d8
leave
ret 4