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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push esi
push edi
mov edi, 0x10000
xor esi, esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x19]
push eax
push esi
push 1
push 0x14
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
push dword [ebp - 0x28]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x24], eax
cmp eax, esi
jne 0x3344ae
xor eax, eax
jmp 0x33479f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x10001
push 8
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
push 0
push edi
mov edi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [ebp - 0xc], eax
push eax
jmp 0x334511
mov eax, dword [ebp - 8]
add eax, eax
mov dword [ebp - 8], eax
je 0x334505
cmp dword [ebp - 0xc], 0
je 0x3344f7
push eax
push dword [ebp - 0xc]
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x334500
inc eax
push eax
push 8
call ebx
push eax
call esi
mov dword [ebp - 0xc], eax
jmp 0x334509
and dword [ebp - 0xc], 0
push 0
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x10
call edi
cmp eax, 0xc0000004
je 0x3344d6
test eax, eax
js 0x33479c
mov edi, 0x1001
push edi
push 8
call ebx
push eax
call esi
push edi
push 8
mov dword [ebp - 8], eax
call ebx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapValidate]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp eax, esi
je 0x33475e
cmp dword [ebp - 8], esi
je 0x334746
cmp dword [ebp - 4], esi
je 0x334746
mov dword [ebp - 0x14], esi
cmp dword [eax], esi
jbe 0x3346e1
add eax, 4
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x38], eax
jne 0x3346ca
xor esi, esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x34]
push 0xffffffffffffffff
shr eax, 0x10
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ntdll.dll_NtDuplicateObject]
test eax, eax
js 0x3346ca
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQueryObject]
mov edi, 0x1000
push edi
push dword [ebp - 8]
push 2
push dword [ebp - 0x10]
call esi
test eax, eax
js 0x3346c1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
cmp dword [eax], 0x75004d
jne 0x3346c1
cmp dword [ebp - 0x2c], 0x12019f
je 0x3346c1
lea eax, [ebp - 0x20]
push eax
push edi
mov edi, dword [ebp - 4]
push edi
push 1
push dword [ebp - 0x10]
call esi
test eax, eax
jns 0x334646
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x33462c
test edi, edi
je 0x33461a
push eax
push edi
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x334627
inc eax
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
jmp 0x334630
and dword [ebp - 4], 0
push 0
push dword [ebp - 0x20]
push dword [ebp - 4]
push 1
push dword [ebp - 0x10]
call esi
test eax, eax
js 0x3346c1
mov edi, dword [ebp - 4]
mov esi, dword [edi]
mov eax, dword [edi + 4]
mov dword [ebp - 0x3c], eax
test si, si
je 0x3346c1
mov edi, 0x400
push edi
lea eax, [ebp - 0x440]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
xor eax, eax
push eax
push eax
push edi
lea ecx, [ebp - 0x440]
push ecx
movzx ecx, si
shr ecx, 1
push ecx
push dword [ebp - 0x3c]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp + 8]
lea eax, [ebp - 0x440]
push eax
call sub.ntdll.dll_strstr
pop ecx
pop ecx
test eax, eax
jne 0x3346b6
cmp dword [ebp + 0xc], eax
je 0x3346c1
push dword [ebp + 0xc]
lea eax, [ebp - 0x440]
push eax
call sub.ntdll.dll_strstr
pop ecx
pop ecx
test eax, eax
je 0x3346c1
movzx eax, word [ebp - 0x32]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
add dword [ebp - 0x18], 0x10
cmp ecx, dword [eax]
jb 0x334575
xor esi, esi
push eax
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapValidate]
push eax
call edi
test eax, eax
je 0x3346ff
push dword [ebp - 0xc]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
push esi
call ebx
push eax
call edi
test eax, eax
je 0x334719
push dword [ebp - 8]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], esi
je 0x334738
push dword [ebp - 4]
push esi
call ebx
push eax
call edi
test eax, eax
je 0x334738
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x33479e
push eax
push esi
call ebx
push eax
call edi
test eax, eax
je 0x33475e
push dword [ebp - 0xc]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 8], esi
je 0x33477d
push dword [ebp - 8]
push esi
call ebx
push eax
call edi
test eax, eax
je 0x33477d
push dword [ebp - 8]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], esi
je 0x33479c
push dword [ebp - 4]
push esi
call ebx
push eax
call edi
test eax, eax
je 0x33479c
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret