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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
jmp 0x409d7e
movzx eax, word [0x498174]
test eax, eax
jne 0x409d9f
movzx ecx, word [0x49816c]
test ecx, ecx
jne 0x409d9f
movzx edx, word [0x498170]
test edx, edx
je 0x409da4
jmp 0x409fa1
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x44], 0x18
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
call fcn.00405c40
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
push 0
lea eax, [ebp - 0x44]
push eax
push 0x1f000f
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ntdll.dll_NtCreateDebugObject]
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x44]
push eax
push 0x1fffff
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.ntdll.dll_NtOpenProcess]
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x44]
push eax
push 0x1fffff
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ntdll.dll_NtOpenThread]
xor edx, edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edx
lea eax, [ebp - 0x68]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x24
mov edx, dword [ebp - 4]
push edx
push 0x40
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xc0000004
je 0x409e70
jmp 0x409f3e
mov eax, dword [ebp - 0x1c]
shl eax, 1
mov dword [ebp - 0x20], eax
call fcn.00409190
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x40
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x409ebd
jmp 0x409f3e
mov dword [ebp - 8], 0
jmp 0x409ecf
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx]
jae 0x409f3e
imul eax, dword [ebp - 8], 0x1c
mov ecx, dword [ebp - 4]
lea esi, [ecx + eax + 8]
mov ecx, 7
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
call fcn.00405c40
mov edx, dword [ebp - 0x80]
cmp edx, dword [eax + 0x20]
je 0x409f00
jmp 0x409ec6
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0xc]
jne 0x409f15
mov cx, word [ebp - 0x72]
mov word [0x498174], cx
jmp 0x409f3c
mov edx, dword [ebp - 0x7c]
cmp edx, dword [ebp - 0x10]
jne 0x409f29
mov ax, word [ebp - 0x72]
mov word [0x49816c], ax
jmp 0x409f3c
mov ecx, dword [ebp - 0x7c]
cmp ecx, dword [ebp - 0x14]
jne 0x409f3c
mov dx, word [ebp - 0x72]
mov word [0x498170], dx
jmp 0x409ec6
cmp dword [ebp - 0xc], 0
je 0x409f4f
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_NtClose]
nop
cmp dword [ebp - 0x10], 0
je 0x409f60
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ntdll.dll_NtClose]
nop
cmp dword [ebp - 0x14], 0
je 0x409f71
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ntdll.dll_NtClose]
nop
lea eax, [ebp - 0x68]
cmp dword [ebp - 4], eax
je 0x409f8f
mov ecx, dword [ebp - 4]
push ecx
push 0
call fcn.00409190
mov edx, dword [eax + 0x18]
push edx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
nop
jmp 0x409fa1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret