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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
cmp dword [0x4101d8], 1
push ebx
push esi
push edi
je 0x40937e
push 0x60
lea eax, [esp + 0x58]
push 0
mov ecx, 0xb
mov esi, str.SystemRoot_system32_
lea edi, [esp + 0x30]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xb
mov dword [esp + 0x1c], 0
call sub.ntoskrnl.exe_NtQuerySystemInformation
mov edx, dword [esp + 0xc]
mov ebx, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push 0x4d6c7431
push edx
push 0
call ebx
mov ecx, dword [esp + 0xc]
mov esi, eax
lea eax, [esp + 0xc]
push eax
push ecx
push esi
push 0xb
call sub.ntoskrnl.exe_NtQuerySystemInformation
test eax, eax
je 0x4091ba
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 0x1e]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [0x410510], edx
mov dword [0x410304], eax
lea eax, [esi + 0x20]
mov edx, 0x410410
mov dword [0x410514], ecx
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4091e0
push 0
push 0
push 0x4102f0
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov edx, dword [0x410304]
lea eax, [edx + 0x410410]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
test eax, eax
jl 0x4091b1
mov eax, dword [esp + 0x1c]
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409230
lea edi, [esp + 0x28]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x409244
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409272
sub eax, edx
sar eax, 1
lea edx, [esp + 0x10]
lea ecx, [eax + eax + 2]
push edx
lea eax, [esp + 0x2c]
lea esi, [esp + 0x18]
call fcn.00404f80
test eax, eax
je 0x4091b1
push 0x4d6c7431
push 0x20
push 0
call ebx
test eax, eax
je 0x4092b7
call fcn.004089b0
mov edi, eax
jmp 0x4092b9
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
call fcn.004089e0
test eax, eax
je 0x4091b1
push 0x410300
push str.KdDisableDebugger
push edi
call fcn.00408ac0
push 0x4100c4
push str.KdEnableDebugger
mov esi, eax
push edi
mov dword [0x41040c], esi
call fcn.00408ac0
push 0x4102e8
push str.IoCreateDriver
mov ebx, eax
push edi
mov dword [0x4101cc], ebx
call fcn.00408ac0
push 0x4101d0
push str.KdDebuggerEnabled
push edi
mov dword [0x4102ec], eax
call fcn.00408ac0
cmp dword [0x410300], 0
je 0x4091b1
cmp dword [0x4100c4], 0
je 0x4091b1
cmp dword [0x4102e8], 0
je 0x4091b1
mov eax, dword [0x410510]
mov ecx, dword [0x4102ec]
add dword [0x4102e8], eax
add dword [0x4101d0], eax
mov dword [0x410300], esi
mov dword [0x4100c4], ebx
mov dword [0x4106f0], ecx
mov dword [0x4101d8], 1
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret