Function at 0x140003b00
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
xor r13d, r13d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rax
cmp qword [rdx + 0x18], 0x10
jb 0x140003b47
mov rdx, qword [rdx]
mov r8, rdx
lea rdx, [rbp + 0x20]
call fcn.140004180
nop
mov rcx, qword [rbp + 0x20]
cmp qword [rbp + 0x28], rcx
jne 0x140003b69
mov r15d, 0xc0000001
jmp 0x140004113
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], 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
mov qword [rbp - 0x60], r13
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], al
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.140005510
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140009190
test eax, eax
je 0x14000400c
mov rsi, qword [rbp + 0x20]
mov eax, 0x5a4d
cmp word [rsi], ax
je 0x140003c27
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.140005e60
lea rdx, [0x140006030]
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 0x14000400c
movsxd r14, dword [rsi + 0x3c]
add r14, rsi
mov eax, 0x8664
cmp word [r14 + 4], ax
je 0x140003c43
lea rdx, str.invalid_platform_
jmp 0x140003c06
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 0x140003c8d
mov r13, r15
jmp 0x140003cfd
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 0x140003d6e
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 0x140003db9
add rbx, r14
nop
mov eax, dword [rbx + 4]
test eax, eax
je 0x140003daa
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 0x140003d90
mov r11, r13
sub r11, qword [r14 + 0x30]
je 0x140003e47
cmp dword [r14 + 0xb4], 0
je 0x140003e47
mov r10d, dword [r14 + 0xb0]
add r10, r12
cmp dword [r10], 0
je 0x140003e47
mov ebx, 0xf000
mov edi, 0xa000
nop word [rax + rax]
mov eax, dword [r10 + 4]
sub rax, 8
shr rax, 1
lea r8, [r10 + 8]
test eax, eax
je 0x140003e3a
mov r9d, eax
nop word [rax + rax]
movzx edx, word [r8]
movzx eax, dx
and ax, bx
cmp ax, di
jne 0x140003e30
and edx, 0xfff
mov ecx, dword [r10]
lea rax, [r12 + rdx]
add qword [rcx + rax], r11
add r8, 2
sub r9, 1
jne 0x140003e10
mov eax, dword [r10 + 4]
add r10, rax
cmp dword [r10], 0
jne 0x140003df0
cmp dword [r14 + 0x94], 0
je 0x140003f26
mov r15d, dword [r14 + 0x90]
add r15, r12
cmp dword [r15 + 0xc], 0
je 0x140003f1f
nop word [rax + 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 0x140003f0b
lea rcx, [0x14000dd88]
test rax, rax
jns 0x140003eb9
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140003fd5
mov edx, ebx
jmp 0x140003ed3
lea rbx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140003fd5
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 0x140003fd5
mov qword [r14], rbx
add rsi, 8
add r14, 8
mov rax, qword [rsi]
test rax, rax
jne 0x140003e94
add r15, 0x14
cmp dword [r13 + 0x20], 0
jne 0x140003e70
mov r13, qword [rsp + 0x58]
mov r15, 0xffffffffffffffff
lea rcx, [0x14000dd88]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140004021
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 0x140004028
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 0x140004028
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.140005e60
lea rdx, [0x140006030]
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 0x1400040bd
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 0x1400040b2
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 0x1400040fb
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400040f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400040f6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b8dc
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], 0
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14000414c
mov rdx, qword [rbp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004147
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004147
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b8dc
mov eax, r15d
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.14000b390
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret