Function at 0x18000aa40
Capabilities:
Check if file exists
Delete file
Delete service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x180112440]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rcx
call fcn.180041200
mov rcx, qword [rsi]
xor r15d, r15d
lea rdx, [rbp - 0x79]
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x49], r15
movups xmm0, xmmword [rbp - 0x59]
movsd xmm1, qword [rbp - 0x49]
movaps xmmword [rbp - 0x79], xmm0
movsd qword [rbp - 0x69], xmm1
test al, al
jne 0x18000aaac
call fcn.18000c140
mov al, 1
jmp 0x18000ae66
lea rax, str.Uninstalling_ELAM_driver_from_system.
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], 0x25
lea r9, [rbp + 7]
mov r8d, 2
call fcn.180016360
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov qword [rbp + 0x27], rax
test rax, rax
jne 0x18000ab57
mov rbx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rbp - 0x71], r15
lea rax, str._:x__Unable_to_open_SCM.
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], 0x1a
mov qword [rbp - 0x79], r15
mov qword [rbp - 0x69], r15
movaps xmm0, xmmword [rbp + 7]
movdqa xmmword [rbp - 0x59], xmm0
movups xmm1, xmmword [rbp - 0x79]
movaps xmmword [rbp + 7], xmm1
movsd xmm0, qword [rbp - 0x69]
movsd qword [rbp + 0x17], xmm0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x59]
lea r8d, [rdi + 4]
lea rdx, [rbp + 7]
mov rcx, rbx
call fcn.18000c6c0
xor sil, sil
jmp 0x18000ae54
lea rdx, [rsi + 0x30]
cmp qword [rdx + 0x18], 8
jb 0x18000ab65
mov rdx, qword [rdx]
mov r8d, 0x10000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rbp + 7], rax
test rax, rax
jne 0x18000abef
mov rsi, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str._:x__Unable_to_obtain_handle_to_ELAM_service.
mov qword [rbp - 0x51], 0x2f
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x71], r15
mov qword [rbp - 0x79], r15
mov qword [rbp - 0x69], r15
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 0x59], xmm0
movups xmm1, xmmword [rbp - 0x79]
movaps xmmword [rbp - 0x39], xmm1
movsd xmm0, qword [rbp - 0x69]
movsd qword [rbp - 0x29], xmm0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x59]
mov r8d, 4
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.18000c6c0
xor sil, sil
jmp 0x18000ae45
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x18000ac1a
mov rsi, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str._:x__Unable_to_delete_ELAM_service.
mov qword [rbp - 0x51], 0x25
jmp 0x18000ab9c
lea rcx, [rsi + 0x90]
cmp qword [rsi + 0xa8], 8
jb 0x18000ac32
mov rcx, qword [rsi + 0x90]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18000ad0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x18000ad0c
mov r14, qword [rsi]
lea rdx, [rbp - 0x19]
lea rcx, [rsi + 0x90]
call fcn.180008190
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rbp - 0x71], r15
lea rax, str._:x__Unable_to_delete_ELAM_driver_file:_.
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], 0x2d
mov qword [rbp - 0x79], r15
mov qword [rbp - 0x69], r15
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 0x59], xmm0
movups xmm1, xmmword [rbp - 0x79]
movaps xmmword [rbp - 0x39], xmm1
movsd xmm0, qword [rbp - 0x69]
movsd qword [rbp - 0x29], xmm0
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x59]
lea rdx, [rbp - 0x39]
mov rcx, r14
call fcn.180005cb0
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x18000adf6
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000adf1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000ae94
jmp 0x18000adf1
lea rcx, [rsi + 0xb0]
cmp qword [rsi + 0xc8], 8
jb 0x18000ad24
mov rcx, qword [rsi + 0xb0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18000adfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x18000adfb
mov r14, qword [rsi]
lea rdx, [rbp - 0x19]
lea rcx, [rsi + 0xb0]
call fcn.180008190
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rbp - 0x71], r15
lea rax, str._:x__Unable_to_delete_backup_ELAM_driver_file:_.
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], 0x34
mov qword [rbp - 0x79], r15
mov qword [rbp - 0x69], r15
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 0x59], xmm0
movups xmm1, xmmword [rbp - 0x79]
movaps xmmword [rbp - 0x39], xmm1
movsd xmm0, qword [rbp - 0x69]
movsd qword [rbp - 0x29], xmm0
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x59]
lea rdx, [rbp - 0x39]
mov rcx, r14
call fcn.180005cb0
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x18000adf6
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000adf1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000ae8e
call fcn.180085560
xor sil, sil
jmp 0x18000ae45
mov qword [rbp - 0x71], r15
mov qword [rbp - 0x79], r15
mov qword [rbp - 0x69], r15
lea rax, str.ELAM_driver_uninstalled_successfully.
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], 0x25
movups xmm0, xmmword [rbp - 0x79]
movaps xmmword [rbp - 0x39], xmm0
movsd xmm1, qword [rbp - 0x69]
movsd qword [rbp - 0x29], xmm1
lea r9, [rbp - 0x59]
mov r8d, 2
lea rdx, [rbp - 0x39]
mov rcx, qword [rsi]
call fcn.180016360
mov sil, 1
test rbx, rbx
je 0x18000ae54
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test rdi, rdi
je 0x18000ae62
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, sil
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.180085510
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1800a889c
nop
call fcn.1800a889c
int3