Function at 0x140002768
Capabilities:
Disable driver code integrity
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
and qword [rdx], 0
mov ebx, r8d
mov r12, rdx
mov r13, rcx
mov edi, 0x104
lea rcx, [rsp + 0x50]
mov r8d, edi
xor edx, edx
call qword [sym.imp.msvcrt.dll_memset]
mov edx, edi
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1400027cb
mov eax, 1
jmp 0x140002a6d
lea rdx, str.ci.dll
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r14, rax
test rax, rax
jne 0x1400027ff
lea eax, [r14 + 2]
jmp 0x140002a6d
lea rdx, str.CiInitialize
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x14000281f
lea ebx, [rax + 3]
jmp 0x140002a52
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x25]
call qword [sym.imp.msvcrt.dll_memset]
cmp ebx, 0x3fab
jae 0x140002897
xor ebx, ebx
lea rdi, [rbx + rsi]
mov rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.1400017f0
test dword [rsp + 0x41], 0x1000
jne 0x14000288d
cmp byte [rsp + 0x20], 5
jne 0x140002861
cmp byte [rdi], 0xe9
je 0x140002880
movzx eax, byte [rsp + 0x20]
add ebx, eax
cmp ebx, 0x48
jb 0x14000283a
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 6
jmp 0x140002a6d
movsxd rcx, dword [rdi + 1]
lea rax, [rbx + rcx]
jmp 0x1400029af
mov ebx, 4
jmp 0x140002a52
xor edi, edi
xor r15d, r15d
lea ebx, [rdi + 3]
lea r13, [r15 + rsi]
mov rcx, r13
lea rdx, [rsp + 0x20]
call fcn.1400017f0
test dword [rsp + 0x41], 0x1000
jne 0x140002a5f
movzx edx, byte [rsp + 0x20]
test edi, edi
jne 0x140002900
cmp dl, bl
jne 0x140002985
cmp byte [r13], 0x4c
jne 0x140002985
lea eax, [r15 + 1]
cmp byte [rax + rsi], 0x8b
jne 0x140002985
lea eax, [r15 + 2]
cmp byte [rax + rsi], 0xcb
jne 0x140002985
mov edi, 1
jmp 0x140002987
cmp edi, 1
jne 0x14000292b
cmp dl, bl
jne 0x140002985
cmp byte [r13], 0x4c
jne 0x140002985
lea eax, [r15 + 1]
cmp byte [rax + rsi], 0x8b
jne 0x140002985
lea eax, [r15 + 2]
cmp byte [rax + rsi], 0xc7
jne 0x140002985
mov edi, 2
jmp 0x140002987
cmp edi, 2
jne 0x140002953
cmp dl, bl
jne 0x140002985
cmp byte [r13], 0x48
jne 0x140002985
lea eax, [r15 + 1]
cmp byte [rax + rsi], 0x8b
jne 0x140002985
lea eax, [r15 + 2]
cmp byte [rax + rsi], 0xd6
jne 0x140002985
mov edi, ebx
jmp 0x140002987
cmp edi, ebx
jne 0x140002974
cmp dl, 2
jne 0x140002985
cmp byte [r13], 0x8b
jne 0x140002985
lea eax, [r15 + 1]
cmp byte [rax + rsi], 0xcd
jne 0x140002985
mov edi, 4
jmp 0x140002987
cmp edi, 4
jne 0x140002985
cmp dl, 5
jne 0x140002985
cmp byte [r13], 0xe8
je 0x140002999
xor edi, edi
add r15d, edx
cmp r15d, 0x6e
jae 0x14000286d
jmp 0x14000289f
movsxd rcx, dword [r13 + 1]
mov r12, qword [rbp + 0xa8]
mov r13, qword [rbp + 0xa0]
lea rax, [r15 + rcx]
lea rdi, [rsi + 5]
add rdi, rax
test ecx, ecx
je 0x14000286d
test rdi, rdi
je 0x14000286d
xor ebx, ebx
lea rsi, [rbx + rdi]
mov r15d, ebx
mov rcx, rsi
lea rdx, [rsp + 0x20]
call fcn.1400017f0
test dword [rsp + 0x41], 0x1000
jne 0x140002a4d
cmp byte [rsp + 0x20], 6
jne 0x1400029fc
cmp byte [rsi], 0x89
jne 0x140002a0a
lea eax, [rbx + 1]
cmp byte [rax + rdi], 0xd
je 0x140002a1d
cmp byte [rsi], 0x89
jne 0x140002a0a
lea eax, [rbx + 1]
cmp byte [rax + rdi], 5
je 0x140002a1d
movzx eax, byte [rsp + 0x20]
add ebx, eax
cmp ebx, 0x4a
jb 0x1400029c9
mov ebx, 8
jmp 0x140002a52
movsxd rcx, dword [rsi + 2]
add rcx, 6
add rcx, r15
add rcx, rdi
cmp dword [rsi + 2], 0
je 0x140002a16
test rcx, rcx
je 0x140002a16
sub rcx, r14
add rcx, r13
mov qword [r12], rcx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140002a6d
mov ebx, 7
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
jmp 0x140002a6d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 5
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret