Function at 0x140003a80
Capabilities:
Load ntoskrnl

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rax
cmp qword [rdx + 0x18], 0x10
jb 0x140003ac4
mov rdx, qword [rdx]
mov r8, rdx
lea rdx, [rbp + 0x20]
call fcn.140004100
nop
mov rcx, qword [rbp + 0x20]
cmp qword [rbp + 0x28], rcx
jne 0x140003ae6
mov r15d, 0xc0000001
jmp 0x140004093
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movdqa xmmword [rbp - 0x60], xmm0
xor r13d, r13d
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], r13b
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], r13
mov qword [rbp], r13
mov dword [rbp + 8], r13d
lea rax, str..LenovoDiagnosticsDriver
mov qword [rbp + 0x10], rax
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140005310
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140009260
test eax, eax
je 0x140003f8c
mov rsi, qword [rbp + 0x20]
mov eax, 0x5a4d
cmp word [rsi], ax
je 0x140003b9f
lea rdx, str.invalid_file_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005c40
lea rdx, [0x140005e10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140003f8c
movsxd r14, dword [rsi + 0x3c]
add r14, rsi
mov eax, 0x8664
cmp word [r14 + 4], ax
je 0x140003bbb
lea rdx, str.invalid_platform_
jmp 0x140003b7e
mov eax, dword [r14 + 0x50]
and eax, 0xfffff000
add eax, 0x1000
mov edi, eax
mov qword [rsp + 0x40], rdi
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
mov edx, dword [rbp + 4]
mov ebx, dword [rbp + 8]
add rbx, qword [rbp - 0x28]
mov r15, 0xffffffffffffffff
add rdx, qword [rbp - 0x28]
jne 0x140003c05
mov r13, r15
jmp 0x140003c75
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rdi
mov eax, 0xffffffff
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], r13
lea rax, [rsp + 0x58]
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x50], r13d
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x30
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x60]
mov edx, 0x222000
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r13, qword [rsp + 0x58]
mov qword [rsp + 0x58], r13
test rbx, rbx
je 0x140003ce6
xor ecx, ecx
mov qword [rbp - 0x70], rcx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], 0x40
mov qword [rbp - 0x80], rcx
lea rax, [rbp - 0x70]
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x30
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9d, [rcx + 0x30]
lea r8, [rsp + 0x60]
mov edx, 0x222000
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [r14 + 0x28]
add rax, r13
mov qword [rsp + 0x48], rax
movzx ebx, word [r14 + 0x14]
add rbx, 0x24
xor edi, edi
cmp word [r14 + 6], di
je 0x140003d30
add rbx, r14
mov eax, dword [rbx + 4]
test eax, eax
je 0x140003d21
mov ecx, dword [rbx]
add rcx, r12
mov edx, dword [rbx + 8]
add rdx, rsi
mov r8d, eax
call sub.VCRUNTIME140.dll_memcpy
inc edi
add rbx, 0x28
movzx eax, word [r14 + 6]
cmp edi, eax
jne 0x140003d07
mov r11, r13
sub r11, qword [r14 + 0x30]
je 0x140003dc9
cmp dword [r14 + 0xb4], 0
je 0x140003dc9
mov r10d, dword [r14 + 0xb0]
add r10, r12
cmp dword [r10], 0
je 0x140003dc9
mov ebx, 0xf000
mov edi, 0xa000
nop word [rax + rax]
mov ecx, dword [r10 + 4]
lea rax, [rcx - 8]
shr rax, 1
lea r8, [r10 + 8]
test eax, eax
je 0x140003dbe
mov r9d, eax
nop word [rax + rax]
movzx edx, word [r8]
movzx eax, dx
and ax, bx
cmp ax, di
jne 0x140003db0
and edx, 0xfff
mov ecx, dword [r10]
lea rax, [r12 + rdx]
add qword [rcx + rax], r11
add r8, 2
sub r9, 1
jne 0x140003d90
mov ecx, dword [r10 + 4]
mov eax, ecx
add r10, rax
cmp dword [r10], 0
jne 0x140003d70
cmp dword [r14 + 0x94], 0
je 0x140003ea6
mov r15d, dword [r14 + 0x90]
add r15, r12
cmp dword [r15 + 0xc], 0
je 0x140003e9f
nop dword [rax]
mov r13, r15
mov edx, dword [r15]
mov ecx, dword [r15 + 0x10]
lea r14, [rcx + r12]
lea rax, [rdx + r12]
test rax, rax
cmovne ecx, edx
lea rsi, [rcx + r12]
mov rax, qword [rsi]
test rax, rax
je 0x140003e8b
lea rcx, [0x14000dd08]
test rax, rax
jns 0x140003e39
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140003f55
mov edx, ebx
jmp 0x140003e53
lea rbx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140003f55
lea rdx, [rbx + r12]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rbp - 0x28]
sub rbx, rdi
add rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x140003f55
mov qword [r14], rbx
add rsi, 8
add r14, 8
mov rax, qword [rsi]
test rax, rax
jne 0x140003e14
add r15, 0x14
cmp dword [r13 + 0x20], 0
jne 0x140003df0
mov r13, qword [rsp + 0x58]
mov r15, 0xffffffffffffffff
lea rcx, [0x14000dd08]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140003fa1
lea rdx, str.RtlCopyMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, qword [rbp - 0x28]
sub rdi, rbx
add rdi, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
mov rbx, qword [rsp + 0x40]
test rdi, rdi
je 0x140003fa8
mov qword [rbp - 0x70], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], rsi
lea rax, [rbp - 0x70]
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x30
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 0x30]
lea r8, [rsp + 0x60]
mov edx, 0x222000
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x140003fa8
lea rdx, str.cant_find_import_address_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005c40
lea rdx, [0x140005e10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r8d, 0x8000
mov rdx, qword [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, 0xc0000001
jmp 0x14000403d
mov rbx, qword [rsp + 0x40]
xor esi, esi
mov r8d, 0x8000
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140004032
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], 0x1337
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], rsi
lea rax, [rsp + 0x58]
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x30
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x60]
mov edx, 0x222000
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r15, qword [rsp + 0x58]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x14000407b
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004076
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004076
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b9ac
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], 0
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x1400040cc
mov rdx, qword [rbp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400040c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400040c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b9ac
mov eax, r15d
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.14000b460
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret