Function at 0x140001f96
Capabilities:
Modify service

Disassembly:
jmp 0x1400121e0
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x14009c028]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
movzx r14d, dl
mov rbx, rcx
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14001223a
lea rdx, str.Failed_OpenSCManager__
mov rcx, rbx
call fcn.140001708
jmp 0x1400124b7
lea rdx, [rbx + 0x48]
mov qword [rsp + 0x4f8], rdi
mov r8d, 0x12
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140012497
mov rcx, qword [0x14009df78]
lea r8, [rbp - 0x40]
mov r9d, 0x200
mov qword [rsp + 0x500], r15
mov edx, 0x65
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadStringW]
test eax, eax
jne 0x140012298
lea rdx, str.Failed_to_LoadString_
mov rcx, rbx
call fcn.140001708
xor r15d, r15d
lea rax, [rbp - 0x40]
mov qword [rsp + 0x50], rax
mov edx, 0xffffffff
mov qword [rsp + 0x48], r15
mov r9d, edx
mov qword [rsp + 0x40], r15
mov rcx, rdi
mov qword [rsp + 0x38], r15
lea r8d, [r15 + 2]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
test eax, eax
jne 0x1400122ea
lea rdx, str.Failed_ChangeServiceConfig_SERVICE_AUTO_START__IDS_SERVICEDISPLAYNAME__
mov rcx, rbx
call fcn.140001708
mov rcx, qword [0x14009df78]
lea r8, [rbp - 0x40]
mov r9d, 0x200
mov edx, 0x66
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadStringW]
test eax, eax
jne 0x140012319
lea rdx, str.Failed_to_LoadString_
mov rcx, rbx
call fcn.140001708
lea rax, [rbp - 0x40]
mov edx, 1
lea r8, [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140012348
lea rdx, str.Failed_ChangeServiceConfig2_SERVICE_CONFIG_DESCRIPTION__
mov rcx, rbx
call fcn.140001708
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], 1
mov edx, 3
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140012376
lea rdx, str.Failed_ChangeServiceConfig2_SERVICE_CONFIG_DELAYED_AUTO_START_INFO__
mov rcx, rbx
call fcn.140001708
mov dword [rbp - 0x58], 1
xorps xmm0, xmm0
mov dword [rbp - 0x54], 0x1388
lea rax, [rbp - 0x58]
mov qword [rbp - 0x60], rax
lea r8, [rbp - 0x80]
mov dword [rbp - 0x50], 1
mov edx, 2
mov qword [rbp - 0x4c], 0x3a98
mov rcx, rdi
mov dword [rbp - 0x44], 0x493e0
movdqu xmmword [rbp - 0x78], xmm0
test r14b, r14b
je 0x1400123cf
mov dword [rbp - 0x54], 0xbb8
mov dword [rbp - 0x80], r15d
mov dword [rbp - 0x68], 1
jmp 0x1400123dd
mov dword [rbp - 0x80], 0x15180
mov dword [rbp - 0x68], 3
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1400123f6
lea rdx, str.Failed_ChangeServiceConfig2_SERVICE_CONFIG_FAILURE_ACTIONS__
mov rcx, rbx
call fcn.140001708
lea r8, [rsp + 0x64]
mov dword [rsp + 0x64], 1
mov edx, 4
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
mov r15, qword [rsp + 0x500]
test eax, eax
jne 0x14001242c
lea rdx, str.Failed_ChangeServiceConfig2_SERVICE_CONFIG_FAILURE_ACTIONS_FLAG__
mov rcx, rbx
call fcn.140001708
lea r8, [rsp + 0x68]
mov dword [rsp + 0x68], 1
mov edx, 5
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x14001245a
lea rdx, str.Failed_ChangeServiceConfig2_SERVICE_CONFIG_SERVICE_SID_INFO__
mov rcx, rbx
call fcn.140001708
lea rax, str.SeChangeNotifyPrivilege
mov edx, 6
lea r8, [rsp + 0x78]
mov qword [rsp + 0x78], rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x14001248c
lea rdx, str.Failed_ChangeServiceConfig2_SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO__
mov rcx, rbx
call fcn.140001708
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x1400124a6
lea rdx, str.Failed_OpenService__
mov rcx, rbx
call fcn.140001708
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x4f8]
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140001d61
mov rbx, qword [rsp + 0x508]
add rsp, 0x4d0
pop r14
pop rsi
pop rbp
ret