Function at 0x140197748
Capabilities:
Allocate or change rwx memory
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x14033e7e0
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x2e0
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x80
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x308]
mov rax, qword [0x1405d17d8]
xor rax, rbp
mov qword [rbp + 0x2b0], rax
lea rcx, [0x14060b292]
call fcn.14019a24f
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
lea r9, [rbp + 4]
mov r8d, dword [rbp + 4]
mov rdx, qword [rbp + 0x28]
mov ecx, 0x40
call fcn.140197c52
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xc0000004
jne 0x14033e8a5
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rbp + 4]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x28], rax
lea r9, [rbp + 4]
mov r8d, dword [rbp + 4]
mov rdx, qword [rbp + 0x28]
mov ecx, 0x40
call fcn.140197c52
mov dword [rbp + 0x44], eax
jmp 0x14033e852
cmp dword [rbp + 0x44], 0
jl 0x14033e8b2
cmp qword [rbp + 0x28], 0
jne 0x14033e8d2
cmp qword [rbp + 0x28], 0
je 0x14033e8cb
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x14033ed2c
mov qword [rbp + 0x68], 0
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x88], rax
mov dword [rbp + 0xa4], 0
jmp 0x14033e8ff
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
mov rcx, qword [rbp + 0x88]
cmp rax, qword [rcx]
jae 0x14033e96a
mov eax, dword [rbp + 0xa4]
imul rax, rax, 0x28
lea rcx, [rbp + 0xc8]
mov rdx, qword [rbp + 0x88]
mov rdi, rcx
lea rsi, [rdx + rax + 0x10]
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
cmp qword [rbp + 0xd0], rax
je 0x14033e94b
jmp 0x14033e8f1
mov rax, qword [rbp + 0x2e0]
cmp qword [rbp + 0xd8], rax
jne 0x14033e968
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x68], rax
jmp 0x14033e96a
jmp 0x14033e8f1
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp qword [rbp + 0x68], 0
jne 0x14033e98a
xor al, al
jmp 0x14033ed2c
mov qword [rbp + 0x108], 0
mov rax, qword [rbp + 0x68]
add rax, 8
mov r9d, 8
lea r8, [rbp + 0x108]
mov rdx, rax
mov rcx, qword [rbp + 0x2e0]
call fcn.140197b71
movzx eax, al
test eax, eax
je 0x14033e9ca
cmp qword [rbp + 0x108], 0
jne 0x14033e9fe
lea rdx, str.____Failed_to_find_device_object
lea rcx, [0x1405e2370]
call fcn.140195afb
mov qword [rbp + 0x2a8], rax
lea rdx, [0x140195709]
mov rcx, qword [rbp + 0x2a8]
call fcn.1401982fb
xor al, al
jmp 0x14033ed2c
mov qword [rbp + 0x128], 0
mov rax, qword [rbp + 0x108]
add rax, 8
mov r9d, 8
lea r8, [rbp + 0x128]
mov rdx, rax
mov rcx, qword [rbp + 0x2e0]
call fcn.140197b71
movzx eax, al
test eax, eax
je 0x14033ea41
cmp qword [rbp + 0x128], 0
jne 0x14033ea75
lea rdx, str.____Failed_to_find_driver_object
lea rcx, [0x1405e2370]
call fcn.140195afb
mov qword [rbp + 0x2a8], rax
lea rdx, [0x140195709]
mov rcx, qword [rbp + 0x2a8]
call fcn.1401982fb
xor al, al
jmp 0x14033ed2c
mov qword [rbp + 0x148], 0
mov rax, qword [rbp + 0x128]
add rax, 0x28
mov r9d, 8
lea r8, [rbp + 0x148]
mov rdx, rax
mov rcx, qword [rbp + 0x2e0]
call fcn.140197b71
movzx eax, al
test eax, eax
je 0x14033eab8
cmp qword [rbp + 0x148], 0
jne 0x14033eaec
lea rdx, str.____Failed_to_find_driver_section
lea rcx, [0x1405e2370]
call fcn.140195afb
mov qword [rbp + 0x2a8], rax
lea rdx, [0x140195709]
mov rcx, qword [rbp + 0x2a8]
call fcn.1401982fb
xor al, al
jmp 0x14033ed2c
lea rax, [rbp + 0x168]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rbp + 0x148]
add rax, 0x58
mov r9d, 0x10
lea r8, [rbp + 0x168]
mov rdx, rax
mov rcx, qword [rbp + 0x2e0]
call fcn.140197b71
movzx eax, al
test eax, eax
je 0x14033eb38
movzx eax, word [rbp + 0x168]
test eax, eax
jne 0x14033eb6c
lea rdx, str.____Failed_to_find_driver_name
lea rcx, [0x1405e2370]
call fcn.140195afb
mov qword [rbp + 0x2a8], rax
lea rdx, [0x140195709]
mov rcx, qword [rbp + 0x2a8]
call fcn.1401982fb
xor al, al
jmp 0x14033ed2c
movzx eax, word [rbp + 0x168]
xor edx, edx
mov ecx, 2
div rcx
inc rax
mov qword [rbp + 0x2a8], rax
mov eax, 2
mov rcx, qword [rbp + 0x2a8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14019500b
mov qword [rbp + 0x278], rax
mov rax, qword [rbp + 0x278]
mov qword [rbp + 0x198], rax
movzx eax, word [rbp + 0x168]
add rax, 2
mov r8, rax
xor edx, edx
mov rcx, qword [rbp + 0x198]
call fcn.140197d60
movzx eax, word [rbp + 0x168]
mov r9d, eax
mov r8, qword [rbp + 0x198]
mov rdx, qword [rbp + 0x170]
mov rcx, qword [rbp + 0x2e0]
call fcn.140197b71
movzx eax, al
test eax, eax
jne 0x14033ec39
lea rdx, str.____Failed_to_read_driver_name
lea rcx, [0x1405e2370]
call fcn.140195afb
mov qword [rbp + 0x2a8], rax
lea rdx, [0x140195709]
mov rcx, qword [rbp + 0x2a8]
call fcn.1401982fb
xor al, al
jmp 0x14033ed2c
xor eax, eax
mov word [rbp + 0x168], ax
mov rax, qword [rbp + 0x148]
add rax, 0x58
mov r9d, 0x10
lea r8, [rbp + 0x168]
mov rdx, rax
mov rcx, qword [rbp + 0x2e0]
call fcn.140199a93
movzx eax, al
test eax, eax
jne 0x14033eca4
lea rdx, str.____Failed_to_write_driver_name_length
lea rcx, [0x1405e2370]
call fcn.140195afb
mov qword [rbp + 0x2a8], rax
lea rdx, [0x140195709]
mov rcx, qword [rbp + 0x2a8]
call fcn.1401982fb
xor al, al
jmp 0x14033ed2c
lea rdx, str.___MmUnloadedDrivers_Cleaned:
lea rcx, [0x1405e2370]
call fcn.140195afb
mov rdx, qword [rbp + 0x198]
mov rcx, rax
call fcn.140195afb
mov qword [rbp + 0x2a8], rax
lea rdx, [0x140195709]
mov rcx, qword [rbp + 0x2a8]
call fcn.1401982fb
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x298], rax
mov rcx, qword [rbp + 0x298]
call fcn.140195641
cmp qword [rbp + 0x298], 0
jne 0x14033ed11
mov qword [rbp + 0x2a8], 0
jmp 0x14033ed2a
mov qword [rbp + 0x198], 0x8123
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x2a8], rax
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14053c6b0]
call fcn.140198896
mov rax, rdi
mov rcx, qword [rbp + 0x2b0]
xor rcx, rbp
call fcn.14019569b
lea rsp, [rbp + 0x2c0]
pop rdi
pop rsi
pop rbp
ret