Function at 0x4f441a
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x90
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
push ecx
xor ebp, ebp
mov dword [esp + 0x2c], edx
push ebp
push 0x410
mov dword [esp + 0x20], ebp
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4f4737
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [esp + 0x44], 9
jne 0x4f4470
push 0x20
pop eax
push 0x70
jmp 0x4f4480
cmp word [esp + 0x44], bp
jne 0x4f4709
push 0x10
pop eax
push 0x40
mov dword [esp + 0x20], eax
add eax, 8
pop edi
mov ecx, eax
mov dword [esp + 0x24], eax
call fcn.004ebeae
lea ecx, [edi + 0x10]
mov dword [esp + 0x18], eax
call fcn.004ebeae
mov ebp, eax
call fcn.004eefd6
test eax, eax
je 0x4f45d6
push 0x30
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.0051c010
add esp, 0xc
push str.NtWow64QueryInformationProcess64
push 0x589ed8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0x30
lea ecx, [esp + 0x70]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x4f4516
push str.NtWow64QueryInformationProcess64_failed_error:
push str.os_get_cmdline
push 0x3c
push str.srcliblibpaloswindowsos_cmdline.c
push 0x5a9534
push 0x103
push 0
call fcn.004e8a0a
mov edi, dword [esp + 0x30]
add esp, 0x1c
jmp 0x4f46f0
push str.NtWow64ReadVirtualMemory64
push 0x589ed8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x18]
push 0
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
push ecx
push dword [esp + 0x84]
push dword [esp + 0x84]
push esi
call eax
test eax, eax
je 0x4f4561
push str.NtWow64ReadVirtualMemory64_PEB_failed_error:
push str.os_get_cmdline
push 0x45
jmp 0x4f44f4
mov ecx, dword [esp + 0x18]
lea eax, [edi + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x28]
push ebp
push dword [ecx + eax + 4]
push dword [ecx + eax]
push esi
call dword [esp + 0x3c]
test eax, eax
je 0x4f4593
push str.NtWow64ReadVirtualMemory64_Parameters_failed_error:
push str.os_get_cmdline
push 0x4f
jmp 0x4f44f4
movzx eax, word [edi + ebp + 2]
push eax
call fcn.004ebd99
pop ecx
mov ecx, eax
movzx eax, word [edi + ebp + 2]
push 0
cdq
push edx
push eax
push ecx
push dword [edi + ebp + 0xc]
mov dword [esp + 0x28], ecx
push dword [edi + ebp + 8]
push esi
call dword [esp + 0x3c]
test eax, eax
je 0x4f46d1
push str.NtWow64ReadVirtualMemory64_Parameters_failed_error:
push str.os_get_cmdline
push 0x59
jmp 0x4f46b2
push 0x18
lea eax, [esp + 0x30]
push 0
push eax
call fcn.0051c010
add esp, 0xc
push str.NtQueryInformationProcess
push 0x589ed8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0x18
lea ecx, [esp + 0x34]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x4f4621
push str.NtQueryInformationProcess_failed_error:
push str.os_get_cmdline
push 0x6c
jmp 0x4f44f4
push 0
push dword [esp + 0x28]
push dword [esp + 0x20]
push dword [esp + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4f464b
push str.ReadProcessMemory_PEB_failed_error:
push str.os_get_cmdline
push 0x73
jmp 0x4f44f4
mov ecx, dword [esp + 0x18]
lea eax, [edi + 0x10]
push 0
push eax
mov eax, dword [esp + 0x24]
push ebp
push dword [ecx + eax]
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4f4679
push str.ReadProcessMemory_Parameters_error:
push str.os_get_cmdline
push 0x7b
jmp 0x4f44f4
movzx eax, word [edi + ebp + 2]
push eax
call fcn.004ebd99
pop ecx
mov ecx, eax
movzx eax, word [edi + ebp + 2]
push 0
push eax
push ecx
push dword [edi + ebp + 4]
mov dword [esp + 0x24], ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4f46d1
push str.ReadProcessMemory_Parameters_error:
push str.os_get_cmdline
push 0x84
push str.srcliblibpaloswindowsos_cmdline.c
push 0x5a9534
push 0x103
push 0
call fcn.004e8a0a
mov edi, dword [esp + 0x30]
add esp, 0x1c
jmp 0x4f46f0
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ecx, edi
call fcn.004edbf6
push ecx
mov ecx, dword [esp + 0x2c]
mov edx, 0x1000
push eax
call fcn.004ea31a
pop ecx
pop ecx
mov ecx, edi
call fcn.004ebe45
mov ecx, dword [esp + 0x18]
call fcn.004ebe45
mov ecx, ebp
call fcn.004ebe45
jmp 0x4f4730
call fcn.004ef0ab
push eax
push str.arch_s_not_support
push str.os_get_cmdline
push 0x20
push str.srcliblibpaloswindowsos_cmdline.c
push 0x5a9534
push 3
push ebp
call fcn.004e8a0a
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x9c]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x90
ret