Function at 0x14000632a
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1401480f0
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xf8
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov ecx, 0x40
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xc0000004
jne 0x140148187
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov ecx, 0x40
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x38], eax
jmp 0x14014812c
cmp dword [rsp + 0x38], 0
jl 0x140148196
cmp qword [rsp + 0x30], 0
jne 0x1401481b8
cmp qword [rsp + 0x30], 0
je 0x1401481b1
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x1401485af
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x28], 0
jmp 0x1401481df
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
cmp rax, qword [rcx]
jae 0x140148248
mov eax, dword [rsp + 0x28]
imul rax, rax, 0x28
lea rcx, [rsp + 0xc0]
mov rdx, qword [rsp + 0x78]
mov rdi, rcx
lea rsi, [rdx + rax + 0x10]
mov ecx, Ordinal_41
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
cmp qword [rsp + 0xc8], rax
je 0x140148225
jmp 0x1401481d5
mov rax, qword [rsp + 0x110]
cmp qword [rsp + 0xd0], rax
jne 0x140148246
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rax
jmp 0x140148248
jmp 0x1401481d5
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp qword [rsp + 0x50], 0
jne 0x14014826a
xor al, al
jmp 0x1401485af
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x50]
add rax, 8
mov r9d, 8
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, qword [rsp + 0x110]
call fcn.1400065f0
movzx eax, al
test eax, eax
je 0x1401482a6
cmp qword [rsp + 0x58], 0
jne 0x1401482dd
lea rdx, str.____Failed_to_find_device_object
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004c9b
mov qword [rsp + 0x80], rax
lea rdx, [0x140004958]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
jmp 0x1401485af
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x58]
add rax, 8
mov r9d, 8
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x110]
call fcn.1400065f0
movzx eax, al
test eax, eax
je 0x140148319
cmp qword [rsp + 0x60], 0
jne 0x140148350
lea rdx, str.____Failed_to_find_driver_object
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004c9b
mov qword [rsp + 0x88], rax
lea rdx, [0x140004958]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
jmp 0x1401485af
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x60]
add rax, 0x28
mov r9d, 8
lea r8, [rsp + 0x48]
mov rdx, rax
mov rcx, qword [rsp + 0x110]
call fcn.1400065f0
movzx eax, al
test eax, eax
je 0x14014838c
cmp qword [rsp + 0x48], 0
jne 0x1401483c3
lea rdx, str.____Failed_to_find_driver_section
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004c9b
mov qword [rsp + 0x90], rax
lea rdx, [0x140004958]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
jmp 0x1401485af
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x48]
add rax, 0x58
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x68]
mov rdx, rax
mov rcx, qword [rsp + 0x110]
call fcn.1400065f0
movzx eax, al
test eax, eax
je 0x140148408
movzx eax, word [rsp + 0x68]
test eax, eax
jne 0x14014843f
lea rdx, str.____Failed_to_find_driver_name
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004c9b
mov qword [rsp + 0x98], rax
lea rdx, [0x140004958]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
jmp 0x1401485af
movzx eax, word [rsp + 0x68]
xor edx, edx
mov ecx, 2
div rcx
inc rax
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140001c8a
nop
movzx eax, word [rsp + 0x68]
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x40]
call fcn.140006ad2
mov rcx, qword [rsp + 0xa0]
mov r9, rcx
mov r8, rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x110]
call fcn.1400065f0
movzx eax, al
test eax, eax
jne 0x1401484e6
lea rdx, str.____Failed_to_read_driver_name
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004c9b
mov qword [rsp + 0xa8], rax
lea rdx, [0x140004958]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call fcn.140007e87
movzx eax, byte [rsp + 0x20]
jmp 0x1401485af
xor eax, eax
mov word [rsp + 0x68], ax
mov rax, qword [rsp + 0x48]
add rax, 0x58
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x68]
mov rdx, rax
mov rcx, qword [rsp + 0x110]
call fcn.140007eb9
movzx eax, al
test eax, eax
jne 0x14014855e
lea rdx, str.____Failed_to_write_driver_name_length
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004c9b
mov qword [rsp + 0xb0], rax
lea rdx, [0x140004958]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x40]
call fcn.140007e87
movzx eax, byte [rsp + 0x21]
jmp 0x1401485af
lea rdx, str.___MmUnloadedDrivers_Cleaned:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004c9b
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140005f97
mov qword [rsp + 0xb8], rax
lea rdx, [0x140004958]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov byte [rsp + 0x22], 1
lea rcx, [rsp + 0x40]
call fcn.140007e87
movzx eax, byte [rsp + 0x22]
add rsp, 0xf8
pop rdi
pop rsi
ret