Function at 0x1400c3f40
Capabilities:
Create service
Delete service
Modify service
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x4e0
mov rax, qword [0x140175540]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov r15, rcx
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rsp + 0x1f8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x208], xmm1
mov r8d, 0x12
lea rdx, str.VPNTunnel_UnixxVPN
lea rcx, [rsp + 0x1f8]
call fcn.140004210
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x218], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x228], xmm1
mov r8d, 0x12
lea rdx, str.UnixxVPN:_UnixxVPN
lea rcx, [rsp + 0x218]
call fcn.140004210
nop
mov r8d, 0x104
lea rdx, [rsp + 0x2c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea r9, [rsp + 0x2b2]
nop
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea eax, [rcx + rdx]
add ax, ax
sub r8w, ax
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x1400c4000
lea r8, [rsp + 0x2b2]
mov rdx, r9
lea rcx, [rsp + 0x100]
call fcn.1400c49d0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x88], xmm1
lea rax, [rsp + 0x2c0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400c4070
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x78]
call fcn.140004210
nop
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1400c4144
lea r8, [rcx + 1]
mov qword [rsp + 0x88], r8
lea rdi, [rsp + 0x78]
cmp rdx, 7
cmova rdi, qword [rsp + 0x78]
lea rax, [0x1401502aa]
lea r14, [0x1401502a8]
cmp rax, rdi
jbe 0x1400c40fa
lea rax, [rdi + rcx*2]
cmp r14, rax
ja 0x1400c40fa
cmp rdi, r14
ja 0x1400c40ef
mov rsi, r12
jmp 0x1400c40ff
mov rsi, rdi
sub rsi, r14
sar rsi, 1
jmp 0x1400c40ff
mov esi, 1
lea rcx, [rdi + 2]
add r8, r8
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
lea rbx, [rsi + rsi]
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rsi + 1]
lea rdx, [r14 + rdx*2]
lea rcx, [rbx + rdi]
mov r8d, 1
sub r8, rsi
add r8, r8
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x78]
jmp 0x1400c415c
mov qword [rsp + 0x28], 1
mov edx, 1
lea rcx, [rsp + 0x78]
call fcn.1400c4b20
xorps xmm0, xmm0
movups xmmword [rsp + 0xe0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xf0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xe0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xf0], xmm1
mov qword [rax + 0x18], 7
mov qword [rax + 0x10], r12
mov word [rax], r12w
mov r8d, 0xe
lea rdx, str.___wireguard__
lea rcx, [rsp + 0xe0]
call fcn.1400048b0
xorps xmm0, xmm0
movups xmmword [rsp + 0xc0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xd0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xc0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xd0], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov r8, qword [r15 + 0x10]
cmp qword [r15 + 0x18], 7
jbe 0x1400c4200
mov r15, qword [r15]
mov rdx, r15
lea rcx, [rsp + 0xc0]
call fcn.1400048b0
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xb0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xa0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xb0], xmm1
mov qword [rax + 0x18], 7
mov qword [rax + 0x10], r12
mov word [rax], r12w
mov r8d, 2
lea rdx, [0x14013e10c]
lea rcx, [rsp + 0xa0]
call fcn.1400048b0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x288], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x298], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
lea r9, [rsp + 0x100]
lea r8, [rsp + 0x288]
lea rcx, [rsp + 0x238]
call fcn.1400c47c0
nop
lea rcx, [rsp + 0x288]
call fcn.1400041a0
nop
lea rcx, [rsp + 0xa0]
call fcn.1400041a0
nop
lea rcx, [rsp + 0xc0]
call fcn.1400041a0
nop
lea rcx, [rsp + 0xe0]
call fcn.1400041a0
nop
lea rcx, [rsp + 0x78]
call fcn.1400041a0
nop
lea rcx, [rsp + 0x100]
call fcn.1400041a0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1400c44b6
lea rdx, [rsp + 0x1f8]
cmp qword [rsp + 0x210], 7
cmova rdx, qword [rsp + 0x1f8]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x1400c435a
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.1400c4620
lea rax, [rsp + 0x238]
cmp qword [rsp + 0x250], 7
cmova rax, qword [rsp + 0x238]
lea r8, [rsp + 0x218]
cmp qword [rsp + 0x230], 7
cmova r8, qword [rsp + 0x218]
lea rdx, [rsp + 0x1f8]
cmp qword [rsp + 0x210], 7
cmova rdx, qword [rsp + 0x1f8]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
lea rcx, [0x1401502b0]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rbx, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x1400c450d
mov dword [rsp + 0x1f0], 1
lea r8, [rsp + 0x1f0]
mov edx, 5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x1400c4543
lea rax, str.UnixxVPN_tunnel_for_WireGuard
mov qword [rsp + 0x1e8], rax
lea r8, [rsp + 0x1e8]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x1400c4577
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1400c45ab
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1400c45df
mov byte [0x1401b31e8], 1
jmp 0x1400c449b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
jmp 0x1400c44ac
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rcx, [rsp + 0x238]
call fcn.1400041a0
nop
lea rcx, [rsp + 0x218]
call fcn.1400041a0
nop
lea rcx, [rsp + 0x1f8]
call fcn.1400041a0
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.1400ef390
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
call fcn.140027700
nop
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x120]
call fcn.1400c3da0
lea rdx, [0x14016b430]
lea rcx, [rsp + 0x120]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140027700
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x148]
call fcn.1400c3da0
lea rdx, [0x14016b430]
lea rcx, [rsp + 0x148]
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.140027700
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x170]
call fcn.1400c3da0
lea rdx, [0x14016b430]
lea rcx, [rsp + 0x170]
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.140027700
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x198]
call fcn.1400c3da0
lea rdx, [0x14016b430]
lea rcx, [rsp + 0x198]
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.140027700
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x1c0]
call fcn.1400c3da0
lea rdx, [0x14016b430]
lea rcx, [rsp + 0x1c0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3