Function at 0x140001110
Capabilities:
Create service
Persist via windows service

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x8a0
mov rax, qword [0x14002b078]
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.140002b40
xor edx, edx
lea rcx, [rsp + 0x480]
mov r8d, 0x410
call fcn.140002b40
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.140001e60
jmp 0x140001299
mov edx, ebx
lea rcx, str.OpenSCManager_failed____u_n
call fcn.140001e60
jmp 0x140001299
lea r8, [rsp + 0x70]
lea rdx, str.__s___service
lea rcx, [rsp + 0x480]
call fcn.140001a40
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.140001e60
jmp 0x140001290
mov edx, eax
lea rcx, str.CreateService_failed____u_n
call fcn.140001e60
jmp 0x140001290
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, str.DshowMonSvc
lea rcx, str._s_installed._n
call fcn.140001e60
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.140001f40
mov rbx, qword [rsp + 0x8c0]
add rsp, 0x8a0
pop rsi
ret
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14002b078]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rbx, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.140001310
mov qword [rsp + 0x60], rbx
lea rax, [0x140001a00]
xor ebx, ebx
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
mov qword [rbp - 0x80], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x70], xmm0
xor ecx, ecx
movdqa xmmword [rbp - 0x60], xmm1
mov qword [rbp - 0x48], rbx
mov qword [rsp + 0x70], 0x50
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 0x1400019a0
mov rax, qword [rbp - 0x78]
mov r9d, 0xcf0000
mov rdx, qword [rbp - 0x50]
xor r8d, r8d
mov qword [rsp + 0x58], rbx
xor ecx, ecx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rdi, rax
test rax, rax
je 0x1400019a0
movups xmm0, xmmword [0x140017b98]
xor r8d, r8d
mov qword [rsp + 0x138], rsi
lea rdx, [rbp - 0x10]
mov qword [rbp - 0xc], 5
mov rcx, rax
mov dword [rbp + 0xc], ebx
movups xmmword [rbp - 4], xmm0
mov dword [rbp - 0x10], 0x20
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov rsi, rax
test rax, rax
je 0x14000198f
mov r9d, 0xffffffff
mov dword [rsp + 0x20], 0x4ff
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea ecx, [rbx + 1]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x140001986
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 0x140001962
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 0x140001930
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 0x140001910
mov rcx, rsi
call qword [sym.imp.USER32.dll_UnregisterDeviceNotification]
mov rcx, rdi
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rsi, qword [rsp + 0x138]
lea rdi, section..data
cmp qword [rbx + rdi + 0x10], 0
je 0x1400019c0
mov rcx, qword [rbx + rdi]
call fcn.140001000
mov edx, eax
xor ecx, ecx
call qword [rbx + rdi + 0x10]
add rbx, 0x2018
cmp rbx, 0x8060
jb 0x1400019a7
xor eax, eax
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140001f40
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
cmp ecx, 1
jle 0x140001e02
mov rdx, qword [rdx + 8]
mov ecx, 0xfffd
movzx eax, word [rdx]
sub ax, 0x2d
test cx, ax
jne 0x140001e02
add rdx, 2
lea rcx, str.installauto
call fcn.14000a6c0
test eax, eax
jne 0x140001b04
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.14000a6c0
test eax, eax
jne 0x140001b2d
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.14000a6c0
test eax, eax
jne 0x140001d1a
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 0x140001bb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
jne 0x140001b91
lea rcx, str.Permission_denied__please_run_as_Administor._n
call fcn.140001e60
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.140001e60
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 0x140001c08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
jne 0x140001bf5
lea rcx, str.Permission_denied__please_run_as_Administor._n
call fcn.140001e60
jmp 0x140001cfa
mov edx, eax
lea rcx, str.OpenService_failed____u_n
call fcn.140001e60
jmp 0x140001cfa
lea r8, [0x14002bb18]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140001caa
mov rdx, rdi
lea rcx, str.Stopping__s.
call fcn.140001e60
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x14002bb18]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140001c89
mov eax, dword [0x14002bb1c]
cmp eax, 3
jne 0x140001c8f
lea rcx, [0x14001770c]
call fcn.140001e60
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x14002bb18]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140001c53
mov eax, dword [0x14002bb1c]
lea rcx, [0x140017710]
mov rdx, rdi
cmp eax, 1
je 0x140001ca5
lea rcx, str._n_s_failed_to_stop._n
call fcn.140001e60
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140001cc8
mov rdx, rdi
lea rcx, str._s_removed._n
call fcn.140001e60
jmp 0x140001cf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
jne 0x140001ce3
lea rcx, str.Permission_denied__please_run_as_Administor._n
call fcn.140001e60
jmp 0x140001cf1
mov edx, eax
lea rcx, str.DeleteService_failed____u_n
call fcn.140001e60
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.14000a6c0
test eax, eax
jne 0x140001d72
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 [0x14002bb38], rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, qword [0x14002bb38]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
jmp 0x1400017c0
mov rdx, qword [rbx + 8]
lea rcx, str.work
add rdx, 2
call fcn.14000a6c0
test eax, eax
jne 0x140001db0
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 0x1400017c0
mov rdx, qword [rbx + 8]
lea rcx, str.service
add rdx, 2
call fcn.14000a6c0
test eax, eax
jne 0x140001e02
xor ebx, ebx
lea rax, [0x140001570]
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.140001e60
lea rdx, str.dshowmonsvc
lea rcx, str._s__installmanual_tto_install_the_service__Manual_Start__n
call fcn.140001e60
lea rdx, str.dshowmonsvc
lea rcx, str._s__remove_tto_remove_the_service_n
call fcn.140001e60
lea rdx, str.dshowmonsvc
lea rcx, str._s__debug_tto_run_as_a_console_app_for_debugging_n
call fcn.140001e60
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret