Function at 0x401300
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1038
call fcn.00402790
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1034], eax
push esi
mov esi, dword [sym.imp.ksproxy.ax_KsOpenDefaultDevice]
lea eax, [esp + 0x24]
push edi
push eax
push 0xc0000000
push 0x403bd0
call esi
test eax, eax
je 0x401362
push eax
push str.Error:__ld_n
call fcn.00401010
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x1034]
xor ecx, esp
call fcn.00401b02
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x2c]
push eax
push 0xc0000000
push 0x403bd0
call esi
test eax, eax
jne 0x40133b
lea eax, [esp + 0x24]
push eax
push 0xc0000000
push 0x403bd0
call esi
test eax, eax
jne 0x40133b
push dword [esp + 0x28]
push str.___Successfully_got_a_handle_1____p_n
call fcn.00401010
push dword [esp + 0x34]
push str.___Successfully_got_a_handle_2____p_n
call fcn.00401010
push dword [esp + 0x34]
push str.___Successfully_got_a_handle_3____p_n
call fcn.00401010
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0
movlpd qword [esp + 0x68], xmm0
xor esi, esi
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x1c]
push ecx
push 8
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x401424
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Couldnt_open_a_handle_to_the_current_process_token.__Error_code:__d__n
call fcn.00401010
add esp, 8
lea edi, [esi + 0x40]
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x401562
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x24]
push 0
push 0x10
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, 0xc0000004
jne 0x401489
mov eax, dword [esp + 0x20]
add eax, eax
push eax
test esi, esi
je 0x40145d
push esi
push 8
call ecx
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x401468
push 8
call ecx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x24]
push esi
push 0x10
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, 0xc0000004
je 0x401444
test eax, eax
jne 0x4015d6
mov dword [esp + 0x14], eax
cmp dword [esi], eax
jbe 0x401511
lea edi, [esi + 0xa]
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [edi - 6]
cmp ecx, eax
jne 0x4014b8
mov ax, word [edi]
cmp ax, word [esp + 0x1c]
je 0x4014f7
mov eax, dword [esp + 0x14]
add edi, 0x14
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esi]
jb 0x4014a0
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
add edi, 0x40
adc eax, 0
mov dword [esp + 0x1c], eax
jmp 0x401562
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [eax + eax*4]
mov eax, dword [esi + eax*4 + 0xc]
cdq
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x1c]
call edi
mov ecx, dword [esp + 0x18]
mov edi, ecx
mov edx, dword [esp + 0x10]
add edi, 0x40
mov esi, edx
mov eax, ecx
adc esi, 0
or eax, edx
mov dword [esp + 0x1c], esi
je 0x401562
push edx
push ecx
push str.___Target_process_TOKEN_address:__llx_n
call fcn.00401010
add esp, 0xc
push esi
push edi
push str.___Target_process__SEP_TOKEN_PRIVILEGES_address:__llx_n
call fcn.00401010
add esp, 0xc
mov esi, dword [esp + 0x28]
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
movlpd qword [esp + 0x48], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 0
push 0x20
mov dword [esp + 0x44], eax
lea eax, [esp + 0x3c]
push eax
push 0x2f0400
lea eax, [esp + 0x7c]
mov dword [esp + 0x44], 1
push eax
push 0
push 0
push 0
push esi
mov dword [esp + 0x5c], 0
mov dword [esp + 0x68], 0x6fe7474d
mov dword [esp + 0x6c], 0x13
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
jne 0x401613
push str.___InitializeContextRendezvous_successfully_n
call fcn.00401010
add esp, 4
jmp 0x401621
test esi, esi
je 0x401511
push eax
push str.____NtQuerySystemInformation_failed.__NTSTATUS_code:_0x_X__n
call fcn.00401010
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add esp, 8
push esi
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x1c]
call edi
xor eax, eax
mov edi, 0x40
mov dword [esp + 0x1c], eax
jmp 0x401562
push eax
push str.____FSInitializeContextRendezvous_failed_with_0x_X_n
call fcn.00401010
add esp, 8
mov eax, dword [esp + 0x2c]
push 0
push 0
push 1
push 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x6c], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401666
push 0x403168
call fcn.00401010
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
jmp 0x40170f
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 0
push 0x30
mov dword [esp + 0x44], eax
lea eax, [esp + 0x3c]
push eax
push 0x2f0404
lea eax, [esp + 0x7c]
mov dword [esp + 0x54], 0x6fe7474d
push eax
push 0
push 0
push 0
push dword [esp + 0x34]
mov dword [esp + 0x6c], 0x13
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0x14
mov dword [esp + 0x78], 0x40000
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], esi
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
jne 0x4016f8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push str.___FSInitializeStream_successfully_n
call fcn.00401010
add esp, 4
jmp 0x40170f
push eax
push str.____FSInitializeStream_failed_with_0x_X_n
call fcn.00401010
add esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [esp + 0x24]
push 0
push 0
push 1
push 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x6c], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x401750
push 0x403168
call fcn.00401010
add esp, 4
jmp 0x4017f4
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 0
push 0x30
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x3c]
push eax
push 0x2f0420
lea eax, [esp + 0x7c]
mov dword [esp + 0x54], 0x6fe7474d
push eax
push 0
push 0
push 0
push dword [esp + 0x34]
mov dword [esp + 0x6c], 0x13
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0x14
mov dword [esp + 0x78], 0x40000
mov dword [esp + 0x7c], 0
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
jne 0x4017e0
push dword [esp + 0x14]
call esi
push str.___FSRegisterStream_successfully_n
call fcn.00401010
add esp, 4
jmp 0x4017f4
push eax
push str.____FSRegisterStream_failed_with_0x_X_n
call fcn.00401010
add esp, 8
push dword [esp + 0x14]
call esi
xorps xmm0, xmm0
lea eax, [esp + 0xe8]
push 0x148
push 0
push eax
movups xmmword [esp + 0x84], xmm0
movq qword [esp + 0x94], xmm0
movups xmmword [esp + 0xac], xmm0
movq qword [esp + 0xbc], xmm0
movq qword [esp + 0xcc], xmm0
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0xbc], eax
xorps xmm0, xmm0
mov dword [esp + 0xd4], eax
lea eax, [esp + 0x30]
mov dword [esp + 0xb8], edi
push 0x18
push eax
push 0x1c0
lea eax, [esp + 0x7c]
mov dword [esp + 0xdc], edi
mov edi, dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
push eax
push 0x2f0408
lea eax, [esp + 0x7c]
movaps xmmword [esp + 0x44], xmm0
push eax
push 0
push 0
push 0
push dword [esp + 0x48]
movq qword [esp + 0x68], xmm0
mov dword [esp + 0x98], 0x1c0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xb8], 3
mov dword [esp + 0xbc], 1
mov dword [esp + 0xc0], 1
mov dword [esp + 0xc4], 0
mov dword [esp + 0xf0], 0x140
mov dword [esp + 0xf4], 0x1000
mov dword [esp + 0x100], 0x140
mov dword [esp + 0x104], 0x1000
mov dword [esp + 0x10c], 0x10000000
mov dword [esp + 0x108], 4
call edi
test eax, eax
jne 0x401950
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push str.___PublishTx_stats_txsize:_I64d_rxsize:_I64d_txcount:_d_rxcount:_d__n
call fcn.00401010
add esp, 0x1c
push str.___PublishTx_successfully_n
call fcn.00401010
add esp, 4
jmp 0x40195e
push eax
push str.____PublishTx_failed_with_0x_X_n
call fcn.00401010
add esp, 8
mov eax, dword [esp + 0x24]
push 0xfc8
mov dword [esp + 0x14], eax
lea eax, [esp + 0x74]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 4
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4019a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____VirtualAlloc_failed_with_0x_X_n
jmp 0x401ab4
push esi
push str.___VirtualAlloc_buffer____p_n
call fcn.00401010
add esp, 8
mov dword [esp + 0x70], 0x1000
mov dword [esp + 0x74], 0
lea eax, [esp + 0x68]
movups xmm0, xmmword [esp + 0x70]
mov dword [esp + 0x90], 6
push 0xfc8
push esi
push 0xfc8
push esi
push 0x2f0410
movups xmmword [esi], xmm0
push eax
movups xmm0, xmmword [esp + 0x98]
push 0
push 0
movups xmmword [esi + 0x10], xmm0
mov dword [esp + 0xb4], 0
movups xmm0, xmmword [esp + 0xb0]
push 0
push dword [esp + 0x34]
movups xmmword [esi + 0x20], xmm0
call edi
test eax, eax
jne 0x401aae
mov ecx, 0x1a
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x8c]
push dword [esp + 0x8c]
push dword [esp + 0x8c]
push dword [esp + 0x8c]
push dword [esp + 0x8c]
push dword [esp + 0x8c]
push str.___ConsumeTx_stats_txsize:_I64d_rxsize:_I64d_txcount:_d_rxcount:_d__n
call fcn.00401010
mov esi, dword [esp + 0xd4]
add esp, 0x1c
push str.___ConsumeTx_successfully_n
call fcn.00401010
add esp, 4
mov eax, esi
and eax, 0xfffff000
push eax
push str.___Aligned_VA_Base_Address____p_n
call fcn.00401010
push esi
push str.___VA_Token_Address____p_n
call fcn.00401010
add esp, 0x10
test esi, esi
je 0x401ad4
movaps xmm0, xmmword [0x403be0]
movups xmmword [esi], xmm0
call fcn.00401090
jmp 0x401ad4
push eax
push str.____ConsumeTx_failed_with_0x_X_n
call fcn.00401010
push 0
push str.___Aligned_VA_Base_Address____p_n
call fcn.00401010
push 0
push str.___VA_Token_Address____p_n
call fcn.00401010
add esp, 0x18
push dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x2c]
call esi
push dword [esp + 0x24]
call esi
mov ecx, dword [esp + 0x103c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00401b02
mov esp, ebp
pop ebp
ret