Function at 0x140004cb0
Capabilities:
Create thread
Delete file
Execute command
Query service status
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140022200]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rsp + 0x68]
and edx, 0xffffffbf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0x71
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, [0x14001a658]
call fcn.14000c960
mov rcx, rax
call fcn.14000cf30
lea rdx, str.ProcControl__1.2_Beta_____Author:_i_o_i_o
call fcn.14000c960
mov rcx, rax
call fcn.14000cf30
lea rdx, [0x14001a658]
call fcn.14000c960
mov rcx, rax
call fcn.14000cf30
mov rcx, rax
call fcn.14000cf30
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.____Thanks_to_all_optimization_contributors
call fcn.14000c960
mov rcx, rax
call fcn.14000cf30
lea rdx, str._______________________________________________
call fcn.14000c960
mov rcx, rax
call fcn.14000cf30
lea rcx, [0x140023880]
call fcn.14000cf30
mov rcx, rax
call fcn.14000cf30
mov r8d, 0x104
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor r14d, r14d
mov qword [rsp + 0x70], r14
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r14w
lea rax, [rbp - 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x140004e04
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.140009ab0
nop
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 0x18
jb 0x140004e6a
lea rdi, [rcx + 0x18]
mov qword [rbp - 0x80], rdi
lea rbx, [rsp + 0x70]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x70]
lea rcx, [rbx + rcx*2]
mov r8d, 0x30
lea rdx, str.ProcessStateControl.sys
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r14w
lea rax, [rsp + 0x70]
jmp 0x140004e89
mov qword [rsp + 0x20], 0x18
lea r9, str.ProcessStateControl.sys
mov edx, 0x18
lea rcx, [rsp + 0x70]
call fcn.14000fec0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140004eee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ee9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ee9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015280
lea rdx, [rsp + 0x40]
lea rdi, [0x140022270]
mov rcx, rdi
call fcn.140006f50
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140004f47
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f42
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004f42
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015280
mov r8d, 0x17
lea rdx, str.ProcessStateControl_x64
lea rsi, [0x140022250]
mov rcx, rsi
call fcn.140009ab0
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140004fcb
cmp qword [0x140022268], 8
cmovae rsi, qword [0x140022250]
mov r8d, 4
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140004fc2
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov rcx, rsi
test eax, eax
jne 0x14000506f
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, rdi
cmp qword [0x140022288], 8
cmovae rdx, qword [0x140022270]
lea r8, [0x14001af30]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
test eax, eax
jne 0x1400050b6
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400050b6
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rdi
cmp qword [0x140022288], 8
cmovae rcx, qword [0x140022270]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400050b6
lea rdx, str.Failed_to_delete_the_driver_file:
lea rcx, [0x140023b40]
call fcn.14000ccb0
cmp qword [0x140022288], 8
cmovae rdi, qword [0x140022270]
mov r8, qword [0x140022280]
mov rdx, rdi
mov rcx, rax
call fcn.14000fc20
mov rcx, rax
call fcn.14000cf30
jmp 0x1400053a3
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x74], 4
jne 0x140004fcb
call fcn.140003a00
test al, al
jne 0x140004fcb
lea rdx, str.Failed_to_uninstall_the_driver.
lea rcx, [0x1400239b0]
call fcn.14000cfc0
mov rcx, rax
call fcn.14000d230
jmp 0x1400053a3
call fcn.140003500
test al, al
jne 0x1400050df
lea rdx, str.Failed_to_extract_the_driver_from_resource.
lea rcx, [0x140023b40]
call fcn.14000ccb0
mov rcx, rax
call fcn.14000cf30
jmp 0x1400053a3
mov rcx, rdi
cmp qword [0x140022288], 8
cmovae rcx, qword [0x140022270]
mov edx, 6
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.1400037c0
test al, al
jne 0x140005126
lea rdx, str.Failed_to_install_the_driver.
lea rcx, [0x140023b40]
call fcn.14000ccb0
mov rcx, rax
call fcn.14000cf30
jmp 0x1400053a3
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..ProcessStateControl_SYMLINK_NAME
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140005189
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_open_device._Error:
lea rcx, [0x1400239b0]
call fcn.14000cfc0
mov rcx, rax
mov edx, ebx
call fcn.140006640
mov rcx, rax
call fcn.14000d230
mov rax, r14
mov qword [0x140024520], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140024518], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140024510], rax
cmp qword [0x140024518], 0
je 0x140005376
test rax, rax
je 0x140005376
mov edx, 1
lea rcx, [0x140003c40]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x140005279
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, [0x140003e60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
mov r9, qword [0x140024520]
lea r8, [0x140004910]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rsi, rsi
je 0x140005323
test rax, rax
je 0x140005323
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140024518]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140024510]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140024520]
test rcx, rcx
je 0x1400052a5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140003a00
test al, al
je 0x140005096
mov rdx, rdi
cmp qword [0x140022288], 8
cmovae rdx, qword [0x140022270]
lea r8, [0x14001af30]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
test eax, eax
jne 0x14000530c
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000530c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rdi
cmp qword [0x140022288], 8
cmovae rcx, qword [0x140022270]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14000502d
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 1
jmp 0x1400053b2
lea rdx, str.Failed_to_create_thread.
lea rcx, [0x1400239b0]
call fcn.14000cfc0
mov rcx, rax
call fcn.14000d230
test rsi, rsi
je 0x14000534c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14000535a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140024518]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140024510]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005391
lea rdx, str.Failed_to_create_one_or_more_events.
lea rcx, [0x1400239b0]
call fcn.14000cfc0
mov rcx, rax
call fcn.14000d230
mov rcx, qword [0x140024520]
test rcx, rcx
je 0x1400053a3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140015260
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret