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

Disassembly:
push 0x140
mov eax, 0x100b0426
call fcn.100aaeb4
mov esi, ecx
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x14c], esi
xor ebx, ebx
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [esi], 0x100b7b50
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], bl
lea ecx, [esi + 0x24]
call fcn.10032feb
lea ecx, [esi + 0x68]
xor eax, eax
mov edi, ecx
mov dword [ebp - 0x144], ecx
push 0xf
pop edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], edx
mov byte [ecx], bl
sub esi, 0xffffff80
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edx
mov byte [esi], bl
mov ecx, dword [ebp - 0x13c]
xor eax, eax
lea edx, [ecx + 0x98]
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [edx + 0x10], ebx
mov dword [edx + 0x14], 0xf
mov byte [edx], bl
mov byte [ebp - 4], 5
lea edi, [ebp - 0x138]
push 9
mov dword [ecx + 0xb0], ebx
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x138]
push 1
pop ecx
sub eax, ebx
je 0x100318a0
sub eax, 5
je 0x1003189c
sub eax, ecx
je 0x10031897
sub eax, 3
je 0x10031897
mov eax, ebx
jmp 0x100318a2
push 2
pop eax
jmp 0x100318a2
push 3
jmp 0x10031899
mov eax, ecx
mov edx, dword [ebp - 0x13c]
lea ecx, [ebp - 0x12c]
mov dword [edx + 0x1c], eax
call fcn.100316bd
mov ecx, dword [ebp - 0x144]
push eax
call fcn.1000911b
lea ecx, [ebp - 0x12c]
call fcn.10004eea
mov edi, 0x100
lea eax, [ebp - 0x114]
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esi + 0x14]
add esp, 0xc
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x144], ecx
push 0x14
pop edx
cmp ecx, edx
jb 0x10031924
mov edi, dword [ebp - 0x13c]
mov esi, dword [esi]
sub edi, 0xffffff80
push edx
push 0x100b7aa4
push esi
mov dword [edi + 0x10], edx
call sub.VCRUNTIME140.dll_memmove
mov byte [esi + 0x14], bl
add esp, 0xc
mov esi, dword [ebp - 0x13c]
jmp 0x100319b3
mov edx, ecx
mov edi, 0x7fffffff
shr edx, 1
mov eax, edi
sub eax, edx
cmp ecx, eax
ja 0x10031940
push 0x1f
lea eax, [ecx + edx]
pop edi
cmp eax, edi
cmova edi, eax
lea ecx, [edi + 1]
call fcn.100036d1
mov dword [esi + 0x14], edi
mov edx, eax
mov eax, dword [ebp - 0x144]
mov edi, edx
mov dword [esi + 0x10], 0x14
mov esi, 0x100b7aa4
mov dword [ebp - 0x148], edx
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x13c]
mov byte [edx + 0x14], bl
lea edi, [esi + 0x80]
cmp eax, 0xf
jbe 0x100319b1
mov ecx, dword [edi]
inc eax
cmp eax, 0x1000
jb 0x10031999
mov edx, dword [ecx - 4]
sub ecx, edx
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x100319ab
mov ecx, edx
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x148]
pop ecx
mov dword [edi], eax
jmp 0x100319b3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov dword [edi], edx
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x114]
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 0x10031a10
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call fcn.10004eb1
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 6
push eax
mov ecx, edi
call fcn.100062be
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 5
call fcn.10004eea
push 0xd
lea edi, [esi + 0x98]
mov dword [ebp - 0x140], 0x100
push str.Unknown_Model
mov ecx, edi
call fcn.100062e9
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x114]
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 0x10031a87
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call fcn.10004eb1
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.100062be
lea ecx, [ebp - 0x12c]
call fcn.10004eea
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
test eax, eax
je 0x10031aaf
mov al, byte [ebp - 0x120]
cmp al, 1
jne 0x10031aa7
push 2
pop ebx
jmp 0x10031aaf
test al, al
push 1
pop eax
cmove ebx, eax
mov dword [esi + 0x20], ebx
mov eax, esi
call fcn.100aae69
ret 4