Function at 0x5330c0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
push dword [0x633a2c]
push 0x28
call sym.SystemInformer.exe_Ordinal_1240
mov esi, eax
push 0x200
push 4
push dword [0x633a54]
mov dword [esi], 4
mov dword [esi + 4], 0x502fe0
mov dword [esi + 8], 0x503000
mov dword [esi + 0xc], 0x80
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [esi + 0xc]
shl ecx, 2
push ecx
push 0xff
push eax
mov dword [esi + 0x10], eax
call fcn.005861d0
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x14], eax
lea eax, [eax + eax*2]
shl eax, 2
push eax
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push dword [0x633a2c]
mov dword ds:[esi + 0x18], eax
push 0x28
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0
call sym.SystemInformer.exe_Ordinal_1240
mov edi, eax
push 0x200
push 4
push dword [0x633a54]
mov dword [edi], 4
mov dword [edi + 4], 0x502fe0
mov dword [edi + 8], 0x503000
mov dword [edi + 0xc], 0x80
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
push 0xff
push eax
mov dword [edi + 0x10], eax
call fcn.005861d0
mov eax, dword [edi + 0xc]
add esp, 0xc
mov ebx, dword [0x633a54]
mov dword [edi + 0x14], eax
lea eax, [eax + eax*2]
shl eax, 2
push eax
push 4
push ebx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0xffffffff
mov dword [edi + 0x24], 0
cmp esi, 4
jne 0x53334b
mov esi, dword [0x630cf4]
push esi
push 4
push ebx
mov dword [esp + 0x1c], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push esi
push ebx
push 0x4d
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, 0xc0000004
jne 0x53325f
push ebx
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x10]
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebx
push 0x4d
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
nop
test esi, esi
js 0x533299
mov eax, dword [esp + 0x10]
cmp eax, 0x100000
ja 0x533274
mov dword [0x630cf4], eax
push dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov ecx, ebx
push edi
lfence
call fcn.00532aa0
push ebx
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x5333f9
mov esi, dword [0x630cd0]
push esi
push 4
push dword [0x633a54]
mov dword [esp + 0x20], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, 0xc0000004
jne 0x533308
push ebx
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x14]
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push ebx
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test esi, esi
js 0x5333f9
mov eax, dword [esp + 0x14]
cmp eax, 0x100000
ja 0x533320
mov dword [0x630cd0], eax
push dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov ecx, ebx
push edi
lfence
call fcn.00532880
push ebx
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x5333f9
mov ecx, dword [ebp + 0xc]
xor bl, bl
test ecx, ecx
jne 0x533389
push esi
push 0x410
lea eax, [ebp + 0xc]
push eax
call sym.SystemInformer.exe_Ordinal_1560
test eax, eax
jns 0x533384
push esi
push 0x1010
lea eax, [ebp + 0xc]
push eax
lfence
call sym.SystemInformer.exe_Ordinal_1560
mov esi, eax
test esi, esi
js 0x5333f9
mov ecx, dword [ebp + 0xc]
mov bl, 1
mov eax, dword [ebp + 0x14]
mov edx, 0x531ec0
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x38], 1
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x20], 0x5326c0
mov dword [esp + 0x28], 2
call fcn.00531d40
mov edx, dword [ebp + 0x10]
mov esi, eax
test dl, 3
je 0x5333ec
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push edi
push dword [ebp + 0x14]
call fcn.00532d80
test bl, bl
je 0x5333f9
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x53340c
call fcn.004fe1e0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14