Function at 0x5022a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [0x633f84], 0x5ff914
mov dword [0x633f80], edx
call fcn.00502700
push 0x2c
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00580b30
add esp, 0xc
lea eax, [ebp - 0x38]
push 0
push 0x2c
push eax
push 0
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x502304
mov esi, 0x10000
mov dword [ebp - 0x30], 0x1000
mov cl, 1
or edx, 0xffffffff
mov edi, esi
lea ebx, [esi - 1]
jmp 0x502313
mov cl, byte [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
cmp dword [0x62dbb0], 0x3e
mov ax, word [ebp - 0x30]
mov word [sym.SystemInformer.exe_PhSystemBasicInformation], ax
movsx ax, cl
mov dword [0x6340b8], edx
mov dword [0x6340bc], esi
mov word [0x6340b6], ax
mov dword [0x6340c0], edi
mov dword [0x6340c4], ebx
jb 0x502364
push 0
push 0
push 0
push 0
push 0
push 0x1102
call dword [sym.imp.ntdll.dll_RtlCreateHeap]
mov dword [0x633f94], eax
jmp 0x502369
mov eax, dword [0x633f94]
test eax, eax
jne 0x5023a9
push eax
push eax
push 0x100000
push 0x200000
push eax
push 0x1002
call dword [sym.imp.ntdll.dll_RtlCreateHeap]
mov dword [0x633f94], eax
test eax, eax
je 0x502677
push 4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 2
push ecx
push 0
push eax
call dword [sym.imp.ntdll.dll_RtlSetHeapInformation]
push 0
push 0
push 0xf0003
push 0x635f24
call dword [sym.imp.ntdll.dll_NtCreateKeyedEvent]
lea ecx, [ecx]
test eax, eax
js 0x502677
mov ax, 1
cmp ax, word [0x6340b6]
sbb eax, eax
and eax, 0xfa0
mov dword [0x62f248], eax
mov eax, 0x6369b8
test al, 7
jne 0x50266c
mov eax, 0x6369a0
mov dword [0x6369b8], 0
mov dword [0x6369bc], 0
test al, 7
jne 0x50266c
xor eax, eax
mov dword [0x6369ac], 0x200
mov dword [0x6369a0], eax
mov dword [0x6369a4], eax
mov dword [0x6369a8], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x38]
push eax
push 0x28
mov dword [0x6369b0], 0x38
mov dword [0x633f68], eax
mov dword [0x6365a0], eax
call sym.SystemInformer.exe_PhCreateObject
mov edx, eax
mov esi, 1
xor eax, eax
mov ecx, esi
mov word [edx], ax
lock xadd dword [0x633f64], ecx
inc ecx
dec cl
mov dword [edx + 8], eax
movzx eax, cl
push edx
mov byte [edx + 2], cl
mov dword [edx + 0xc], str.Type
mov dword [eax*4 + 0x6365a0], edx
movzx eax, cl
push 0x28
mov dword [0x633f68], edx
mov word [edx - 8], ax
mov dword [edx + 4], esi
call sym.SystemInformer.exe_PhCreateObject
mov edx, eax
mov ecx, esi
xor eax, eax
mov word [edx], ax
lock xadd dword [0x633f64], ecx
inc ecx
dec cl
mov dword [edx + 4], eax
mov dword [edx + 8], eax
movzx eax, cl
mov byte [edx + 2], cl
mov dword [edx + 0xc], str.Alloc
mov dword [0x633f60], edx
mov dword [eax*4 + 0x6365a0], edx
call fcn.005020e0
mov dword [0x635c08], eax
cmp eax, 0xffffffff
je 0x502677
call fcn.004fc2a0
lea esp, [esp]
test al, al
je 0x502677
cmp byte [0x7ffe03c4], 1
jne 0x502529
mov eax, dword ds:[0x7ffe03c0]
dec eax
cmp eax, 0x1f
jbe 0x50262e
lea eax, ds:[ebp - 0x40]
mov dword [ebp - 0x44], 0
push eax
lea edx, [ebp - 0x3c]
mov ecx, 4
call fcn.0051d800
test eax, eax
js 0x50262e
mov ebx, dword ds:[ebp - 0x3c]
xor ecx, ecx
mov dword [ebp - 0x40], ebx
movzx eax, word [ebx + 0xa]
mov dword [ebp - 0x3c], eax
movzx edi, ax
cmp cx, ax
jae 0x50265b
mov si, word [ebp - 0x44]
lea ecx, [ebx + 0x21]
mov edx, edi
movzx eax, byte ds:[ecx]
lea ecx, [ecx + 0x2c]
add si, ax
sub edx, 1
jne 0x502572
cmp word [ebp - 0x3c], 1
jbe 0x50261a
lea eax, ds:[edi + edi]
push eax
push 4
lfence
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, dword [ebp - 0x40]
mov ebx, eax
xor ecx, ecx
mov dword [0x633f90], ebx
add edx, 0x21
movzx eax, si
lea edx, [edx + 0x2c]
mov dword [ebp - 0x44], eax
lea ecx, [ecx + 2]
movzx eax, byte [edx - 0x2c]
mov word [ecx + ebx - 2], ax
sub edi, 1
je 0x5025d8
mov ebx, dword [0x633f90]
jmp 0x5025b6
push dword [ebp - 0x40]
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x44]
test ax, ax
je 0x502629
mov word [0x633f8a], ax
mov eax, dword [ebp - 0x3c]
mov word [0x633f8c], ax
xor eax, eax
mov byte [0x633f88], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret
push ebx
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, 1
mov ax, word [0x6340b6]
mov word [0x633f8a], ax
xor eax, eax
mov word [0x633f8c], si
mov byte [0x633f88], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret
push ebx
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x50262e
push 0x80000002
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov ecx, dword [ebp - 4]
mov eax, 0xc0000001
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e94f
mov esp, ebp
pop ebp
ret