Function at 0x10018740
Capabilities:
Access peb ldr_data
Get ntdll base address
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x1004e2d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4e8
mov eax, dword [0x1005d330]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x4f4], eax
mov dword [esp + 0x24], ebp
call fcn.10045d33
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x500], ebp
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x1c]
push eax
push 0x2001f
push ebp
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov edi, 0x400
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x514], 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x10018864
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xf8]
push edx
push str.ProcessorNameString
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.10016e30
test eax, eax
jne 0x10018855
lea eax, [esp + 0xf4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100187f8
sub eax, edx
push eax
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x1c]
call fcn.10002bf0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xf8]
push edx
push str.Identifier
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], edi
call fcn.10016e30
test eax, eax
jne 0x10018855
push 0x10050c04
lea ecx, [esp + 0x18]
call fcn.10003aa0
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0x18]
call fcn.10003aa0
cmp esi, ebp
je 0x10018864
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebp
jle 0x1001887d
push 1
push 0x10050c04
lea ecx, [esp + 0x1c]
call fcn.10003080
call fcn.10045d33
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x504], 2
mov dword [esp + 0x5c], 0x9c
call esi
mov edi, eax
cmp edi, ebp
jne 0x1001894b
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x5c], 0x94
call esi
test eax, eax
jne 0x1001894b
mov esi, dword [esp + 0x508]
push 0x10050713
mov ecx, esi
call fcn.100047c0
lea eax, [ebx - 0x10]
mov byte [esp + 0x500], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001890c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x1001891b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x500], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018944
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
jmp 0x10018d21
mov ecx, dword [esp + 0x68]
mov eax, ecx
sub eax, 2
mov ebx, 5
je 0x10018973
push ecx
lea eax, [esp + 0x14]
push str.PlatformId__u
push eax
call fcn.1000d400
add esp, 0xc
jmp 0x10018ae8
mov ecx, dword [esp + 0x5c]
cmp ecx, ebx
jne 0x100189cd
cmp dword [esp + 0x60], 2
jne 0x10018998
push str.Microsoft_Windows_Server_2003_
lea ecx, [esp + 0x14]
call fcn.10003940
mov ecx, dword [esp + 0x5c]
cmp ecx, ebx
jne 0x100189cd
cmp dword [esp + 0x60], 1
jne 0x100189b5
push str.Microsoft_Windows_XP
lea ecx, [esp + 0x14]
call fcn.10003940
mov ecx, dword [esp + 0x5c]
cmp ecx, ebx
jne 0x100189cd
cmp dword [esp + 0x60], ebp
jne 0x100189e4
push str.Microsoft_Windows_2000
lea ecx, [esp + 0x14]
call fcn.10003940
mov ecx, dword [esp + 0x5c]
cmp ecx, 4
ja 0x100189e4
push str.Microsoft_Windows_NT
lea ecx, [esp + 0x14]
call fcn.10003940
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], ebp
jne 0x10018a09
mov eax, dword [esp + 0x60]
push eax
push ecx
lea ecx, [esp + 0x18]
push str.VER_PLATFORM_WIN32_NT_Major__d__Minor__d
push ecx
call fcn.1000d400
mov ecx, dword [esp + 0x6c]
add esp, 0x10
cmp edi, ebp
je 0x10018ae8
mov al, byte [esp + 0xf2]
cmp al, 1
jne 0x10018a4f
cmp ecx, 4
jne 0x10018a2b
push str.Workstation_4.0
jmp 0x10018adf
mov eax, dword [esp + 0xf0]
test ah, 2
lea ecx, [esp + 0x10]
je 0x10018a45
push str.Home_Edition
jmp 0x10018ae3
push str.Professional
jmp 0x10018ae3
cmp al, 3
je 0x10018a5b
cmp al, 2
jne 0x10018ae8
cmp ecx, ebx
jne 0x10018ac9
mov eax, dword [esp + 0x60]
cmp eax, 2
jne 0x10018a9d
mov eax, dword [esp + 0xf0]
test al, al
jns 0x10018a7a
push str.Datacenter_Edition
jmp 0x10018adf
test al, 2
je 0x10018a85
push str.Enterprise_Edition
jmp 0x10018adf
cmp ax, 0x400
lea ecx, [esp + 0x10]
jne 0x10018a96
push str.Web_Edition
jmp 0x10018ae3
push str.Standard_Edition
jmp 0x10018ae3
cmp eax, ebp
jne 0x10018ac9
mov al, byte [esp + 0xf0]
test al, al
jns 0x10018ab3
push str.Datacenter_Server
jmp 0x10018adf
test al, 2
lea ecx, [esp + 0x10]
je 0x10018ac2
push str.Advanced_Server
jmp 0x10018ae3
push str.Server
jmp 0x10018ae3
test byte [esp + 0xf0], 2
je 0x10018ada
push str.Server_4.0__Enterprise_Edition
jmp 0x10018adf
push str.Server_4.0
lea ecx, [esp + 0x14]
call fcn.10003aa0
call fcn.10045d33
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
push str.IsWow64Process
push str.kernel32
mov byte [esp + 0x508], 3
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x28], ebp
je 0x10018b48
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x28], ebp
je 0x10018b48
push 0xf
push str._IsWow64Process
lea ecx, [esp + 0x24]
call fcn.10002bf0
call fcn.10045d33
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x50c], 4
call fcn.10013d00
lea ecx, [esp + 0x28]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x518], bl
call fcn.10013d00
add esp, 0x18
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x504], 6
call fcn.10008ec0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x500], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018bc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x500], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018bee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.10045d33
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x28]
push str._PageSize__d
push ecx
mov byte [esp + 0x50c], 7
call fcn.1000d400
mov esi, dword [esp + 0x30]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.10003080
mov edi, dword [esp + 0x20]
add edi, 0xfffffff0
push edi
call fcn.10008e60
mov ebp, dword [esp + 0x50c]
add eax, 0x10
mov dword [ebp], eax
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x500], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10018c7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x500], 3
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10018c9b
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x500], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018cc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x500], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018ce7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10018cf6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x500], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018d1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, ebp
mov ecx, dword [esp + 0x4f8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4e8]
pop ebx
call fcn.10036c09
add esp, 0x4f4
ret 4