Function at 0x140004120
Capabilities:
Get system information on windows
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov r12, rcx
mov edi, 0x1000
mov edx, edi
xor ecx, ecx
mov r8d, 0x73796864
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x1400041a1
nop dword [rax]
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
lea ecx, [r9 + 0x10]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x1400041d5
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
add edi, edi
xor ecx, ecx
mov edx, edi
mov r8d, 0x73796864
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x140004160
cmp byte [0x14003dcf0], 0
je 0x1400041b8
mov edx, edi
lea rcx, [0x140010810]
call fcn.14000ca70
xor al, al
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
and eax, 0xc0000000
cmp eax, 0xc0000000
jne 0x140004200
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp byte [0x14003dcf0], 0
je 0x1400041b8
mov edx, esi
lea rcx, [0x140010850]
jmp 0x1400041b3
xor r13d, r13d
mov r14d, r13d
cmp dword [rbx], r13d
jbe 0x1400043bf
nop
mov eax, r14d
lea r9, [rbp - 0x29]
xorps xmm0, xmm0
mov qword [rbp - 0x21], r13
lea r8, [rbp - 9]
mov qword [rbp + 0x6f], r13
mov edx, 0x40
mov qword [rbp - 9], 0x30
lea rcx, [rax + rax*2]
mov qword [rbp + 0xf], r13
movzx eax, word [rbx + rcx*8 + 8]
lea r15, [rbx + rcx*8]
movzx edi, word [r15 + 0xe]
lea rcx, [rbp + 0x6f]
mov qword [rbp - 0x29], rax
mov qword [rbp - 1], r13
mov qword [rbp + 7], r13
movdqu xmmword [rbp + 0x17], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
and eax, 0xc0000000
cmp eax, 0xc0000000
je 0x1400043b3
mov rcx, qword [rbp + 0x6f]
lea r9, [rbp + 0x77]
mov dword [rsp + 0x30], 2
mov r8, 0xffffffffffffffff
mov dword [rsp + 0x28], r13d
mov edx, edi
mov dword [rsp + 0x20], 0x1fffff
mov qword [rbp + 0x77], r13
call qword [sym.imp.ntoskrnl.exe_ZwDuplicateObject]
and eax, 0xc0000000
cmp eax, 0xc0000000
jne 0x1400042b9
mov rcx, qword [rbp + 0x6f]
jmp 0x1400043ad
mov edx, 0x1000
xor ecx, ecx
mov r8d, 0x6e616966
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x1400043d1
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.1400101c0
mov rcx, qword [rbp + 0x77]
mov r9d, 0x1000
mov r8, rdi
mov qword [rsp + 0x20], r13
mov edx, 1
call qword [sym.imp.ntoskrnl.exe_ZwQueryObject]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000439f
mov rdx, r12
call sub.ntoskrnl.exe_wcsstr
test rax, rax
je 0x140004394
movups xmm0, xmmword [rdi]
lea rdx, [rbp - 0x19]
lea rcx, [0x1400108b0]
movaps xmmword [rbp - 0x19], xmm0
call sub.ntoskrnl.exe_DbgPrint
movzx esi, word [r15 + 8]
movzx r15d, word [r15 + 0xe]
mov ecx, esi
mov edx, r15d
call fcn.140009e50
test al, al
je 0x140004367
cmp byte [0x14003dcf0], r13b
je 0x140004394
mov ecx, esi
call fcn.14000a380
lea rcx, [0x1400108c0]
jmp 0x14000437e
cmp byte [0x14003dcf0], r13b
je 0x140004394
mov ecx, esi
call fcn.14000a380
lea rcx, [0x140010930]
mov r9, rax
mov r8d, r15d
mov rax, qword [rdi + 8]
mov edx, esi
mov qword [rsp + 0x20], rax
call fcn.14000ca70
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
inc r14d
cmp r14d, dword [rbx]
jb 0x140004210
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, 1
jmp 0x1400041ba
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp byte [0x14003dcf0], r13b
je 0x1400041b8
lea rcx, [0x140010880]
call fcn.14000ca70
jmp 0x1400041b8