Function at 0x140001ed0
Capabilities:
Create service
Delete service
Persist via windows service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x8a0
mov rax, qword [0x14002c080]
xor rax, rsp
mov qword [rsp + 0x890], rax
movzx esi, cl
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x410
xor ebx, ebx
call fcn.140016e30
xor edx, edx
lea rcx, [rsp + 0x480]
mov r8d, 0x410
call fcn.140016e30
mov r8d, 0x208
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000117d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400012a3
xor edx, edx
mov qword [rsp + 0x8b8], rdi
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x1400011cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
jne 0x1400011b9
lea rcx, str.Permission_denied__please_run_as_Administor._n
call fcn.140002280
jmp 0x140001299
mov edx, ebx
lea rcx, str.OpenSCManager_failed____u_n
call fcn.140002280
jmp 0x140001299
lea r8, [rsp + 0x70]
lea rdx, str.__s___service
lea rcx, [rsp + 0x480]
call fcn.140001e60
mov qword [rsp + 0x60], rbx
lea rcx, [rsp + 0x480]
mov qword [rsp + 0x58], rbx
lea r8, str.DshowMonSvc
mov qword [rsp + 0x50], rbx
lea rdx, str.DshowMonSvc
mov qword [rsp + 0x48], rbx
mov eax, esi
mov qword [rsp + 0x40], rbx
xor eax, 1
mov qword [rsp + 0x38], rcx
add eax, 2
mov dword [rsp + 0x30], 1
mov r9d, 4
mov dword [rsp + 0x28], eax
mov rcx, rdi
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x140001274
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
jne 0x140001264
lea rcx, str.Permission_denied__please_run_as_Administor._n
call fcn.140002280
jmp 0x140001290
mov edx, eax
lea rcx, str.CreateService_failed____u_n
call fcn.140002280
jmp 0x140001290
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, str.DshowMonSvc
lea rcx, str._s_installed._n
call fcn.140002280
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x8b8]
mov eax, ebx
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.140002360
mov rbx, qword [rsp + 0x8c0]
add rsp, 0x8a0
pop rsi
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14002c080]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rbx, rcx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
or eax, 1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.140001310
xorps xmm0, xmm0
mov qword [rsp + 0x60], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x70], xmm0
lea rax, [0x140001e20]
movdqa xmmword [rbp - 0x60], xmm1
xor edi, edi
mov qword [rsp + 0x78], rax
xor ecx, ecx
mov qword [rsp + 0x70], 0x50
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x48], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp - 0x78], rax
lea rcx, [rsp + 0x70]
lea rax, str.018E3246_B4FB_4F3D_ADF0_4BC304CEC275
mov qword [rbp - 0x50], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
je 0x140001d70
mov rax, qword [rbp - 0x78]
mov r9d, 0xcf0000
mov rdx, qword [rbp - 0x50]
xor r8d, r8d
mov qword [rsp + 0x58], rdi
xor ecx, ecx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rbx, rax
test rax, rax
je 0x140001d70
movups xmm0, xmmword [0x140018ba8]
xor r8d, r8d
mov qword [rbp - 0xc], 5
lea rdx, [rbp - 0x10]
mov dword [rbp + 0xc], edi
mov rcx, rax
mov dword [rbp - 0x10], 0x20
movups xmmword [rbp - 4], xmm0
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov rdi, rax
test rax, rax
je 0x140001d5f
xor r8d, r8d
mov dword [rsp + 0x20], 0x4ff
mov r9d, 0xffffffff
lea rdx, [rsp + 0x60]
lea ecx, [r8 + 1]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x140001d56
nop word [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140001d32
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140001d00
xor r8d, r8d
mov dword [rsp + 0x20], 0x4ff
mov r9d, 0xffffffff
lea rdx, [rsp + 0x60]
lea ecx, [r8 + 1]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
jne 0x140001ce0
mov rcx, rdi
call qword [sym.imp.USER32.dll_UnregisterDeviceNotification]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyWindow]
nop dword [rax + rax]
cmp qword [0x140024010], 0
je 0x140001d90
mov rcx, qword [section..data]
call fcn.140001000
mov edx, eax
xor ecx, ecx
call qword [0x140024010]
cmp qword [0x140026028], 0
je 0x140001db0
mov rcx, qword [str.F145162A_EB41_4DD0_875C_7F84DCF64D4B]
call fcn.140001000
mov edx, eax
xor ecx, ecx
call qword [0x140026028]
cmp qword [0x140028040], 0
je 0x140001dd0
mov rcx, qword [str.D5BD93BB_2234_435D_9791_07C95A17FF29]
call fcn.140001000
mov edx, eax
xor ecx, ecx
call qword [0x140028040]
cmp qword [0x14002a058], 0
je 0x140001df0
mov rcx, qword [str.C2B17EFB_551B_498A_A4B2_D8D16718E56A]
call fcn.140001000
mov edx, eax
xor ecx, ecx
call qword [0x14002a058]
xor eax, eax
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140002360
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
cmp ecx, 1
jle 0x140002222
mov rdx, qword [rdx + 8]
mov ecx, 0xfffd
movzx eax, word [rdx]
sub ax, 0x2d
test cx, ax
jne 0x140002222
add rdx, 2
lea rcx, str.installauto
call fcn.14000b10c
test eax, eax
jne 0x140001f24
mov cl, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
jmp 0x140001110
mov rdx, qword [rbx + 8]
lea rcx, str.installmanual
add rdx, 2
call fcn.14000b10c
test eax, eax
jne 0x140001f4d
xor ecx, ecx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
jmp 0x140001110
mov rdx, qword [rbx + 8]
lea rcx, str.remove
add rdx, 2
call fcn.14000b10c
test eax, eax
jne 0x14000213a
xor edx, edx
mov qword [rsp + 0x50], rbp
xor ecx, ecx
lea r8d, [rax + 1]
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140001fd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
jne 0x140001fb1
lea rcx, str.Permission_denied__please_run_as_Administor._n
call fcn.140002280
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov edx, eax
lea rcx, str.OpenSCManager_failed____u_n
call fcn.140002280
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea rdi, str.DshowMonSvc
mov qword [rsp + 0x58], rsi
mov rdx, rdi
mov r8d, 0x10024
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x140002028
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
jne 0x140002015
lea rcx, str.Permission_denied__please_run_as_Administor._n
call fcn.140002280
jmp 0x14000211a
mov edx, eax
lea rcx, str.OpenService_failed____u_n
call fcn.140002280
jmp 0x14000211a
lea r8, [0x14002cb68]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400020ca
mov rdx, rdi
lea rcx, str.Stopping__s.
call fcn.140002280
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x14002cb68]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400020a9
mov eax, dword [0x14002cb6c]
cmp eax, 3
jne 0x1400020af
lea rcx, [0x14001871c]
call fcn.140002280
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x14002cb68]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140002073
mov eax, dword [0x14002cb6c]
lea rcx, [0x140018720]
mov rdx, rdi
cmp eax, 1
je 0x1400020c5
lea rcx, str._n_s_failed_to_stop._n
call fcn.140002280
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1400020e8
mov rdx, rdi
lea rcx, str._s_removed._n
call fcn.140002280
jmp 0x140002111
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
jne 0x140002103
lea rcx, str.Permission_denied__please_run_as_Administor._n
call fcn.140002280
jmp 0x140002111
mov edx, eax
lea rcx, str.DeleteService_failed____u_n
call fcn.140002280
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rdx, qword [rbx + 8]
lea rcx, str.debug
add rdx, 2
call fcn.14000b10c
test eax, eax
jne 0x140002192
xor r9d, r9d
lea edx, [rax + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, 1
lea rcx, [0x1400012d0]
mov qword [0x14002cb88], rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, qword [0x14002cb88]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
jmp 0x140001b80
mov rdx, qword [rbx + 8]
lea rcx, str.work
add rdx, 2
call fcn.14000b10c
test eax, eax
jne 0x1400021d0
lea r8, str.Global4C9E70AB_2894_4EA9_AB31_9CBE60CA1A34
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rcx, rax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
jmp 0x140001b80
mov rdx, qword [rbx + 8]
lea rcx, str.service
add rdx, 2
call fcn.14000b10c
test eax, eax
jne 0x140002222
xor ebx, ebx
lea rax, [0x140001910]
lea rdi, str.DshowMonSvc
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea rdx, str.dshowmonsvc
lea rcx, str._s__installauto_tto_install_the_service__Auto_Start__n
call fcn.140002280
lea rdx, str.dshowmonsvc
lea rcx, str._s__installmanual_tto_install_the_service__Manual_Start__n
call fcn.140002280
lea rdx, str.dshowmonsvc
lea rcx, str._s__remove_tto_remove_the_service_n
call fcn.140002280
lea rdx, str.dshowmonsvc
lea rcx, str._s__debug_tto_run_as_a_console_app_for_debugging_n
call fcn.140002280
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret