Function at 0x14002e510
Capabilities:
Create service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rbx, rcx
xor edi, edi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x14002e7ed
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
lea r8, str.Fylakas
lea rdx, str.Fylakas
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov r14, rax
test rax, rax
je 0x14002e6c3
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
lea r8d, [rdi + 6]
lea rdx, [0x14006e87c]
lea rcx, [rbp - 0x30]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp - 0x30]
lea rdx, [rsp + 0x78]
mov rcx, rax
call fcn.140009620
nop
lea rax, str.CreateService_Success
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 0x15
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x68], rdi
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rbp - 0x78]
movaps xmmword [rbp - 0x50], xmm1
movsd xmm0, qword [rbp - 0x68]
movsd qword [rbp - 0x40], xmm0
lea r9, [rbp - 0x10]
lea r8d, [rdi + 2]
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x78]
call fcn.140007190
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14002e671
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14002e671
mov rbx, qword [rbp - 0x80]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14002e671
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x14002e6ac
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e6a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e90c
call fcn.140038e94
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14002e8f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x14002e7df
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
mov r8d, 6
lea rdx, [0x14006e87c]
lea rcx, [rbp - 0x10]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x78]
mov rcx, rax
call fcn.140009620
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x68], rdi
lea rax, str.CreateService_failed___
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 0x19
movups xmm0, xmmword [rbp - 0x78]
movaps xmmword [rbp - 0x50], xmm0
movsd xmm1, qword [rbp - 0x68]
movsd qword [rbp - 0x40], xmm1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x60]
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x78]
call fcn.140019af0
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14002e7a4
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14002e7a4
mov rbx, qword [rbp - 0x80]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14002e7a4
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x14002e7df
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e7da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e90c
call fcn.140038e94
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14002e8f4
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
mov r8d, 6
lea rdx, [0x14006e87c]
lea rcx, [rbp - 0x30]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp - 0x30]
lea rdx, [rsp + 0x78]
mov rcx, rax
call fcn.140009620
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x68], rdi
lea rax, str.OpenSCManager_failed___
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 0x19
movups xmm0, xmmword [rbp - 0x78]
movaps xmmword [rbp - 0x50], xmm0
movsd xmm1, qword [rbp - 0x68]
movsd qword [rbp - 0x40], xmm1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x60]
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x78]
call fcn.140019af0
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14002e8bd
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14002e8bd
mov rbx, qword [rbp - 0x80]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14002e8bd
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x14002e8f4
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e8ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e90c
call fcn.140038e94
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140042e3c
int3