Function at 0x100032728
Capabilities:
Create service
Modify service

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x520
mov rax, qword [0x10007f110]
xor rax, rsp
mov qword [rsp + 0x510], rax
xor r12d, r12d
mov rbx, rcx
mov edi, 1
lea r8, [0x100004140]
lea rcx, [r11 - 0x480]
lea edx, [rdi + 0x5d]
mov r14, r12
mov esi, 0x200
mov dword [r11 - 0x4bc], r12d
mov r15, r12
mov dword [rsp + 0x7c], r12d
mov rbp, r12
mov dword [rsp + 0x78], r12d
mov qword [rsp + 0x70], r12
mov dword [r11 - 0x4c8], r12d
mov qword [rsp + 0x98], r12
mov dword [r11 - 0x4c4], r12d
mov qword [rsp + 0xa0], r12
mov dword [r11 - 0x4c0], r12d
mov qword [r11 - 0x4a0], r12
mov qword [r11 - 0x490], r12
mov qword [r11 - 0x498], r12
mov qword [r11 - 0x4b8], r12
call sub.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64
lea r8d, [rdi + 0x27]
lea rcx, [rsp + 0xd8]
xor edx, edx
call sub.msvcrt.dll_memset
lea r8d, [rsi + 8]
lea rcx, [rsp + 0x100]
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x310]
xor edx, edx
mov r8d, 0x100
call sub.msvcrt.dll_memset
xor r11d, r11d
mov rcx, rbx
mov qword [rsp + 0xc0], r11
call fcn.1000325d0
cmp eax, r12d
je 0x100032fcd
jge 0x100032840
mov edi, r12d
jmp 0x100032fcd
lea rcx, [0x1000021a0]
xor edx, edx
call sub.vdsutil.dll_unsigned_long_int___cdecl_AddEventSource_unsigned_short_int____ptr64__struct_HINSTANCE______ptr64_
cmp eax, r12d
jne 0x100032838
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_OpenSCManagerW]
mov r13, rax
cmp rax, r12
jne 0x10003287e
mov edx, 0x68
mov rcx, rbx
lea r8d, [rdx - 0x58]
call fcn.10003268c
jmp 0x100032838
lea rdx, [rsp + 0x100]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetModuleFileNameW]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
lea rax, [0x100004160]
lea r8, [rbx + 8]
mov r9d, 0xf01ff
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x100]
mov rdx, rbx
mov rcx, r13
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov word [rsp + 0x306], r12w
call qword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_CreateServiceW]
mov r12, rax
test rax, rax
jne 0x10003291e
mov rcx, r13
call qword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_CloseServiceHandle]
lea edx, [r12 + 0x69]
lea r8d, [r12 + 0x10]
mov rcx, rbx
call fcn.10003268c
xor edi, edi
jmp 0x100032fcd
mov rcx, qword [rbx + 0x60]
lea r8, [rsp + 0x310]
mov r9d, 0x100
mov edx, 0x70
call qword [sym.imp.USER32.dll_LoadStringW]
mov ebx, 0xc2000001
test eax, eax
jle 0x100032980
lea rax, [rsp + 0x310]
lea r8, [rsp + 0xc0]
mov edx, edi
mov rcx, r12
mov qword [rsp + 0xc0], rax
call qword [sym.imp.API_MS_WIN_Service_Management_L2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1000329a2
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
and qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x2010006
jmp 0x100032993
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
and qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x2010007
mov r9d, eax
xor r8d, r8d
xor edx, edx
mov ecx, ebx
call fcn.1000320a8
mov eax, dword [rsp + 0x8c]
test eax, eax
cmovne esi, eax
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, r14
mov rcx, rax
xor edx, edx
call sub.vdsutil.dll_int___cdecl_VdsHeapFree_void____ptr64__unsigned_long_int__void____ptr64_
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8d, esi
mov rcx, rax
mov edx, 8
call sub.vdsutil.dll_void____ptr64___cdecl_VdsHeapAlloc_void____ptr64__unsigned_long_int__unsigned_long_long_unsigned___int64__
mov r14, rax
test rax, rax
je 0x100032eb5
lea rax, [rsp + 0x8c]
mov r9d, esi
mov r8, r14
mov edx, 4
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_WIN_Service_Management_L2_1_0.dll_QueryServiceObjectSecurity]
test eax, eax
jne 0x100032a28
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, 0x7a
je 0x1000329a2
and qword [rsp + 0x28], rbp
mov r9d, eax
mov dword [rsp + 0x20], 0x201000a
jmp 0x100032ec8
lea rax, [rsp + 0x88]
lea r8, [rsp + 0x7c]
xor r9d, r9d
mov qword [rsp + 0x50], rax
and qword [rsp + 0x48], rbp
lea rax, [rsp + 0x84]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], rbp
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], rbp
lea rax, [rsp + 0x78]
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_MakeAbsoluteSD]
mov r11d, dword [rsp + 0x7c]
test r11d, r11d
je 0x100032ac5
mov rbx, r11
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov esi, 8
mov rcx, rax
mov r8, rbx
mov edx, esi
call sub.vdsutil.dll_void____ptr64___cdecl_VdsHeapAlloc_void____ptr64__unsigned_long_int__unsigned_long_long_unsigned___int64__
mov r15, rax
test rax, rax
jne 0x100032aca
and qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x201000b
mov r9d, 0xe
mov ecx, 0xc2000001
jmp 0x100032eca
mov esi, 8
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x100032aff
mov rbx, rax
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
mov edx, esi
call sub.vdsutil.dll_void____ptr64___cdecl_VdsHeapAlloc_void____ptr64__unsigned_long_int__unsigned_long_long_unsigned___int64__
mov rbp, rax
test rax, rax
jne 0x100032aff
and qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x201000c
jmp 0x100032ab5
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x100032b57
mov rbx, rax
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
mov edx, esi
call sub.vdsutil.dll_void____ptr64___cdecl_VdsHeapAlloc_void____ptr64__unsigned_long_int__unsigned_long_long_unsigned___int64__
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x100032b5c
and qword [rsp + 0x28], rax
lea r9d, [rax + 0xe]
xor r8d, r8d
xor edx, edx
mov ecx, 0xc2000001
mov dword [rsp + 0x20], 0x201000d
call fcn.1000320a8
xor edi, edi
mov rbx, rsi
jmp 0x100032ed9
mov rsi, qword [rsp + 0x70]
mov eax, dword [rsp + 0x84]
test eax, eax
je 0x100032bbb
mov rbx, rax
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
mov edx, 8
call sub.vdsutil.dll_void____ptr64___cdecl_VdsHeapAlloc_void____ptr64__unsigned_long_int__unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x98], rax
test rax, rax
jne 0x100032bbb
and qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x201000e
mov r9d, 0xe
xor r8d, r8d
xor edx, edx
mov ecx, 0xc2000001
call fcn.1000320a8
mov rbx, qword [rsp + 0x70]
xor edi, edi
jmp 0x100032ed9
mov eax, dword [rsp + 0x88]
test eax, eax
je 0x100032bfb
mov rbx, rax
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
mov edx, 8
call sub.vdsutil.dll_void____ptr64___cdecl_VdsHeapAlloc_void____ptr64__unsigned_long_int__unsigned_long_long_unsigned___int64__
mov qword [rsp + 0xa0], rax
test rax, rax
jne 0x100032c03
and qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x201000f
jmp 0x100032b9a
mov rax, qword [rsp + 0xa0]
lea rcx, [rsp + 0x88]
lea r8, [rsp + 0x7c]
mov r9, rbp
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x84]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x98]
mov rdx, r15
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x80]
mov rcx, r14
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_MakeAbsoluteSD]
test eax, eax
jne 0x100032c7f
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010010
mov r9d, eax
jmp 0x100032ba0
lea rax, [rsp + 0x90]
lea r9, [rsp + 0xb8]
lea r8, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
lea rdx, [rsp + 0xd8]
mov ecx, edi
mov qword [rsp + 0x20], rax
call sub.vdsutil.dll_unsigned_long_int___cdecl_InitializeSecurityDescriptor_unsigned_long_int__void____ptr64__struct__ACL____ptr64____ptr64__void____ptr64____ptr64__void____ptr64____ptr64__void____ptr64____ptr64_
test eax, eax
je 0x100032cd2
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010011
jmp 0x100032c77
movzx esi, word [rbp + 2]
mov ebx, 0xffff
mov ecx, 8
mov eax, ebx
sub eax, esi
cmp eax, ecx
jae 0x100032d01
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010012
mov r9d, 0x6f
jmp 0x100032ba0
add si, cx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_IsValidSid]
test eax, eax
jne 0x100032d2f
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010013
mov r9d, 0x539
jmp 0x100032ba0
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_GetLengthSid]
mov r11d, eax
test eax, eax
jne 0x100032d54
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010014
jmp 0x100032d24
movzx eax, si
sub ebx, eax
cmp r11d, ebx
jbe 0x100032d6e
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010015
jmp 0x100032cf6
add si, r11w
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call sub.vdsutil.dll_int___cdecl_VdsHeapFree_void____ptr64__unsigned_long_int__void____ptr64_
movzx ebx, si
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call sub.vdsutil.dll_void____ptr64___cdecl_VdsHeapAlloc_void____ptr64__unsigned_long_int__unsigned_long_long_unsigned___int64__
mov rbp, rax
test rax, rax
jne 0x100032db8
and qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2010016
jmp 0x100032b9a
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x88]
lea r8, [rsp + 0x7c]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xa0]
mov r9, rbp
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x84]
mov rdx, r15
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x98]
mov rcx, r14
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_MakeAbsoluteSD]
test eax, eax
jne 0x100032e52
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010017
mov r9d, eax
xor r8d, r8d
xor edx, edx
mov ecx, 0xc2000001
call fcn.1000320a8
xor edi, edi
jmp 0x100032ed9
mov edx, 2
mov word [rbp + 2], si
mov r9, qword [rsp + 0x90]
lea r8d, [rdx + 0x6e]
mov rcx, rbp
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_AddAccessAllowedAce]
test eax, eax
jne 0x100032e8a
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010018
jmp 0x100032e39
mov r8, r15
mov edx, 4
mov rcx, r12
call qword [sym.imp.API_MS_WIN_Service_Management_L2_1_0.dll_SetServiceObjectSecurity]
test eax, eax
jne 0x100032ed9
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2010019
jmp 0x100032e39
and qword [rsp + 0x28], rbp
mov r9d, 0xe
mov dword [rsp + 0x20], 0x2010008
mov ecx, ebx
xor r8d, r8d
xor edx, edx
call fcn.1000320a8
xor edi, edi
mov rbx, rdi
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.vdsutil.dll_int___cdecl_VdsHeapFree_void____ptr64__unsigned_long_int__void____ptr64_
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, r15
mov rcx, rax
xor edx, edx
call sub.vdsutil.dll_int___cdecl_VdsHeapFree_void____ptr64__unsigned_long_int__void____ptr64_
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call sub.vdsutil.dll_int___cdecl_VdsHeapFree_void____ptr64__unsigned_long_int__void____ptr64_
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call sub.vdsutil.dll_int___cdecl_VdsHeapFree_void____ptr64__unsigned_long_int__void____ptr64_
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, qword [rsp + 0x98]
mov rcx, rax
xor edx, edx
call sub.vdsutil.dll_int___cdecl_VdsHeapFree_void____ptr64__unsigned_long_int__void____ptr64_
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, qword [rsp + 0xa0]
mov rcx, rax
xor edx, edx
call sub.vdsutil.dll_int___cdecl_VdsHeapFree_void____ptr64__unsigned_long_int__void____ptr64_
call qword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
mov r8, qword [rsp + 0xa8]
mov rcx, rax
xor edx, edx
call sub.vdsutil.dll_int___cdecl_VdsHeapFree_void____ptr64__unsigned_long_int__void____ptr64_
mov rcx, qword [rsp + 0xb8]
and qword [rsp + 0xa8], 0
test rcx, rcx
je 0x100032f89
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_FreeSid]
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x100032f9c
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_FreeSid]
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x100032faf
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_FreeSid]
cmp r12, 0xffffffffffffffff
je 0x100032fbe
mov rcx, r12
call qword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_CloseServiceHandle]
cmp r13, 0xffffffffffffffff
je 0x100032fcd
mov rcx, r13
call qword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_CloseServiceHandle]
lea rcx, [rsp + 0xc8]
call sub.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64
mov eax, edi
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.100075490
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret