Function at 0x1005e720
Capabilities:
Get memory capacity
Query or enumerate registry value
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub esp, 0x750
mov eax, dword [0x100dd9d4]
xor eax, esp
mov dword [esp + 0x74c], eax
push ebx
push ebp
xor ebx, ebx
push 0x7f
lea eax, [esp + 0x3d9]
push ebx
push eax
mov byte [esp + 0x3e0], bl
call sub.ntdll.dll_memset
push 0x7f
lea ecx, [esp + 0x365]
push ebx
push ecx
mov byte [esp + 0x36c], bl
call sub.ntdll.dll_memset
push 0xff
xor eax, eax
lea edx, [esp + 0x471]
push ebx
push edx
mov byte [esp + 0x90], bl
mov dword [esp + 0x91], eax
mov word [esp + 0x95], ax
mov byte [esp + 0x97], al
mov byte [esp + 0x478], bl
call sub.ntdll.dll_memset
xor eax, eax
push 0x3f
mov dword [esp + 0x9d], eax
mov dword [esp + 0xa1], eax
mov dword [esp + 0xa5], eax
mov dword [esp + 0xa9], eax
mov dword [esp + 0xad], eax
mov dword [esp + 0xb1], eax
mov dword [esp + 0xb5], eax
mov word [esp + 0xb9], ax
mov byte [esp + 0xbb], al
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
lea eax, [esp + 0xbd]
push ebx
push eax
mov byte [esp + 0xa4], bl
mov byte [esp + 0x48], bl
mov byte [esp + 0xc4], bl
call sub.ntdll.dll_memset
push 0x3f
lea ecx, [esp + 0x109]
push ebx
push ecx
mov byte [esp + 0x110], bl
call sub.ntdll.dll_memset
push 0x3f
lea edx, [esp + 0x355]
push ebx
push edx
mov byte [esp + 0x35c], bl
call sub.ntdll.dll_memset
add esp, 0x48
push 0x1ff
lea eax, [esp + 0x559]
push ebx
push eax
mov byte [esp + 0x560], bl
call sub.ntdll.dll_memset
add esp, 0xc
push 0x200
lea ecx, [esp + 0x558]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [esp + 0x10]
push edx
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [esp + 0x1c], ebx
call ebp
test eax, eax
jne 0x1005ed31
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3dc]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push str.ProductName
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], 0x80
call esi
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x35c]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push str.CSDVersion
push ecx
mov dword [esp + 0x24], 0x80
call esi
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push str.CurrentVersion
push edx
mov dword [esp + 0x24], 8
call esi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x45c]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push str.SystemRoot
push eax
mov dword [esp + 0x24], 0x100
call esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x14]
push edx
push str.SystemCurrentControlSetControlSession_ManagerEnvironment
push 0x80000002
call ebp
test eax, eax
jne 0x1005ed30
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push str.PROCESSOR_ARCHITECTURE
push eax
mov dword [esp + 0x24], 0x20
call esi
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push str.NUMBER_OF_PROCESSORS
push ecx
mov dword [esp + 0x24], 4
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x2c]
movzx edx, word [esp + 0x2a]
movzx eax, word [esp + 0x28]
mov esi, dword [sym.imp.ntdll.dll_sprintf]
push ecx
movzx ecx, word [esp + 0x2a]
push edx
movzx edx, word [esp + 0x2a]
push eax
movzx eax, word [esp + 0x2c]
push ecx
push edx
push eax
lea ecx, [esp + 0xb0]
push str._d__d__d__d:_d:_d
push ecx
call esi
add esp, 0x20
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
shrd eax, ecx, 0x14
shr ecx, 0x14
push ecx
push eax
lea edx, [esp + 0xe0]
push str.Total_Memory:__d_MB
push edx
call esi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
shrd eax, ecx, 0x14
shr ecx, 0x14
push ecx
push eax
lea edx, [esp + 0x330]
push str.Available_Memory:__d_MB
push edx
call esi
mov eax, str._System_Information__r_n
add esp, 0x20
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1005ea51
push ebx
lea ecx, [esp + 0x14]
push ecx
sub eax, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push str._System_Information__r_n
push edi
call ebp
push 0x1ff
lea edx, [esp + 0x11d]
push ebx
push edx
mov byte [esp + 0x124], bl
call sub.ntdll.dll_memset
lea eax, [esp + 0x564]
push eax
lea ecx, [esp + 0x128]
push str.Module_Path:__s_r_n
push ecx
call esi
lea eax, [esp + 0x130]
add esp, 0x18
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005eab0
push ebx
lea edx, [esp + 0x14]
push edx
sub eax, ecx
push eax
lea eax, [esp + 0x124]
push eax
push edi
call ebp
lea ecx, [esp + 0x3d8]
push ecx
lea edx, [esp + 0x11c]
push str.Product_Name:__s_r_n
push edx
call esi
lea eax, [esp + 0x124]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005eaf1
push ebx
sub eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x124]
push edx
push edi
call ebp
lea eax, [esp + 0x358]
push eax
lea ecx, [esp + 0x11c]
push str.Service_Package:__s_r_n
push ecx
call esi
lea eax, [esp + 0x124]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005eb32
push ebx
lea edx, [esp + 0x14]
push edx
sub eax, ecx
push eax
lea eax, [esp + 0x124]
push eax
push edi
call ebp
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x11c]
push str.OS_Version:__s_r_n
push edx
call esi
lea eax, [esp + 0x124]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005eb70
push ebx
sub eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x124]
push edx
push edi
call ebp
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x11c]
push str._s_r_n
push ecx
call esi
lea eax, [esp + 0x124]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005ebb1
push ebx
lea edx, [esp + 0x14]
push edx
sub eax, ecx
push eax
lea eax, [esp + 0x124]
push eax
push edi
call ebp
lea ecx, [esp + 0x318]
push ecx
lea edx, [esp + 0x11c]
push str._s_r_n
push edx
call esi
lea eax, [esp + 0x124]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005ebf2
push ebx
sub eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x124]
push edx
push edi
call ebp
lea eax, [esp + 0x458]
push eax
lea ecx, [esp + 0x11c]
push str.System_Root:__s_r_n
push ecx
call esi
lea eax, [esp + 0x124]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005ec33
push ebx
lea edx, [esp + 0x14]
push edx
sub eax, ecx
push eax
lea eax, [esp + 0x124]
push eax
push edi
call ebp
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x11c]
push str.Processor_Architecture:__s_r_n
push edx
call esi
lea eax, [esp + 0x124]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005ec71
push ebx
sub eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x124]
push edx
push edi
call ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x11c]
push str.Processor_Number:__s_r_n
push ecx
call esi
lea eax, [esp + 0x124]
add esp, 0xc
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005ecb0
push ebx
lea edx, [esp + 0x14]
push edx
sub eax, ecx
push eax
lea eax, [esp + 0x124]
push eax
push edi
call ebp
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x11c]
push str.Current_Time:__s_r_n
push edx
call esi
lea eax, [esp + 0x124]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1005ecf1
push ebx
lea ecx, [esp + 0x14]
push ecx
sub eax, esi
push eax
lea edx, [esp + 0x124]
push edx
push edi
call ebp
mov eax, str._r_n_r_n
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1005ed16
push ebx
lea ecx, [esp + 0x14]
push ecx
sub eax, esi
push eax
push str._r_n_r_n
push edi
call ebp
pop esi
mov ecx, dword [esp + 0x754]
pop ebp
pop ebx
xor ecx, esp
call fcn.10059076
add esp, 0x750
ret