Function at 0x180024a20
Capabilities:
Create service
Modify service
Start service

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c8]
sub rsp, 0x2c8
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov rax, qword [0x180103990]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r12, r9
mov r14d, r8d
mov rdi, rdx
mov r15, rcx
mov r13, qword [rbp + 0x230]
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x70], rax
mov rbx, qword [rbp + 0x240]
mov r8d, 0x104
lea rdx, [rbp - 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x180024ab5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
call qword [sym.imp.MSVCR120.dll_wprintf]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
jmp 0x180024d85
lea r8, str.__s
mov edx, 0x104
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCR120.dll_wcscat_s]
mov r8, r15
mov edx, 0x104
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCR120.dll_wcscat_s]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x180024b12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call qword [sym.imp.MSVCR120.dll_wprintf]
mov rdi, qword [rsp + 0x70]
jmp 0x180024d93
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r12
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], socket
mov r9d, 0xf01ff
mov r8, rdi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x180024d85
test rbx, rbx
je 0x180024b8f
mov qword [rsp + 0x78], rbx
lea r8, [rsp + 0x78]
lea edx, [r12 + 1]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov r8d, 0x10
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
je 0x180024d85
mov r9d, r12d
mov edx, 8
mov ecx, edx
lea r8d, [rdx - 5]
call qword [sym.imp.Qt5Core.dll_public:_static_struct_QArrayData____ptr64___cdecl_QArrayData::allocate_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___class_QFlags_enum_QArrayData::AllocationOption__]
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x180024bd4
call qword [sym.imp.Qt5Core.dll_void___cdecl_qBadAlloc_void_]
mov dword [rbx + 4], 3
mov rax, qword [rbx + 0x10]
lea r8, [rbx + 0x18]
add r8, rax
lea rcx, [rax + rbx]
sub r8, rcx
and r8, 0xfffffffffffffff8
xor edx, edx
call sub.MSVCR120.dll_memset
nop
cmp dword [rbx], 1
jbe 0x180024c42
mov r8d, dword [rbx + 8]
and r8d, 0x7fffffff
jne 0x180024c29
lea r9d, [r8 + 2]
xor r8d, r8d
mov edx, 8
mov ecx, edx
call qword [sym.imp.Qt5Core.dll_public:_static_struct_QArrayData____ptr64___cdecl_QArrayData::allocate_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___class_QFlags_enum_QArrayData::AllocationOption__]
mov rbx, rax
mov qword [rsp + 0x70], rax
jmp 0x180024c42
mov dword [rbp - 0x78], r12d
mov r9d, r12d
mov edx, dword [rbx + 4]
lea rcx, [rsp + 0x70]
call fcn.180027ce0
mov rbx, qword [rsp + 0x70]
mov rax, qword [rbx + 0x10]
lea rcx, [rbp - 0x60]
mov qword [rbx + rax], rcx
cmp dword [rbx], 1
jbe 0x180024c97
mov r8d, dword [rbx + 8]
and r8d, 0x7fffffff
jne 0x180024c7e
lea r9d, [r8 + 2]
xor r8d, r8d
mov edx, 8
mov ecx, edx
call qword [sym.imp.Qt5Core.dll_public:_static_struct_QArrayData____ptr64___cdecl_QArrayData::allocate_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___class_QFlags_enum_QArrayData::AllocationOption__]
mov rbx, rax
mov qword [rsp + 0x70], rax
jmp 0x180024c97
mov dword [rbp - 0x74], r12d
mov r9d, r12d
mov edx, dword [rbx + 4]
lea rcx, [rsp + 0x70]
call fcn.180027ce0
mov rbx, qword [rsp + 0x70]
mov rax, qword [rbx + 0x10]
lea rcx, str.__s
mov qword [rax + rbx + 8], rcx
cmp dword [rbx], 1
jbe 0x180024cf0
mov r8d, dword [rbx + 8]
and r8d, 0x7fffffff
jne 0x180024cd7
lea r9d, [r8 + 2]
xor r8d, r8d
mov edx, 8
mov ecx, edx
call qword [sym.imp.Qt5Core.dll_public:_static_struct_QArrayData____ptr64___cdecl_QArrayData::allocate_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___class_QFlags_enum_QArrayData::AllocationOption__]
mov rbx, rax
mov qword [rsp + 0x70], rax
jmp 0x180024cf0
mov dword [rbp - 0x7c], r12d
mov r9d, r12d
mov edx, dword [rbx + 4]
lea rcx, [rsp + 0x70]
call fcn.180027ce0
mov rbx, qword [rsp + 0x70]
mov rax, qword [rbx + 0x10]
mov qword [rax + rbx + 0x10], r15
cmp dword [rbx], 1
jbe 0x180024d42
mov r8d, dword [rbx + 8]
and r8d, 0x7fffffff
jne 0x180024d29
lea r9d, [r8 + 2]
xor r8d, r8d
mov edx, 8
mov ecx, edx
call qword [sym.imp.Qt5Core.dll_public:_static_struct_QArrayData____ptr64___cdecl_QArrayData::allocate_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___class_QFlags_enum_QArrayData::AllocationOption__]
mov rbx, rax
mov qword [rsp + 0x70], rax
jmp 0x180024d42
mov dword [rbp - 0x80], r12d
mov r9d, r12d
mov edx, dword [rbx + 4]
lea rcx, [rsp + 0x70]
call fcn.180027ce0
mov rbx, qword [rsp + 0x70]
mov r8, qword [rbx + 0x10]
add r8, rbx
mov edx, dword [rbx + 4]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov eax, dword [rbx]
test eax, eax
je 0x180024d74
cmp eax, 0xffffffff
je 0x180024d85
lock dec dword [rbx]
jne 0x180024d85
mov rbx, qword [rsp + 0x70]
mov edx, 8
mov r8d, edx
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__]
test rsi, rsi
je 0x180024d93
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x180024da1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.18008b810
add rsp, 0x2c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret