Function at 0x1400189c0
Capabilities:
Check mutex on windows
Delete file
Delete registry value
Get common file path
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x480]
sub rsp, 0x580
mov rax, qword [0x1401970d0]
xor rax, rsp
mov qword [rbp + 0x470], rax
xorps xmm0, xmm0
mov qword [rbp + 0x68], 7
mov rdi, r8
lea rax, [rbp - 0x80]
mov rsi, rcx
mov qword [rsp + 0x20], rax
xor r14d, r14d
lea rdx, str.SOFTWAREASUSArmouryDevice
movups xmmword [rbp + 0x50], xmm0
mov r9d, 0x20219
mov word [rbp + 0x50], r14w
xor r8d, r8d
mov qword [rbp + 0x60], r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018a95
mov rcx, qword [rbp - 0x80]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rdx, str.Installation_location
lea rax, [rbp + 0x70]
mov dword [rbp - 0x70], 0x400
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018a95
xorps xmm0, xmm0
mov qword [rsp + 0x70], r14
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x78], r14
lea rax, [rbp + 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x140018a85
lea rdx, [rbp + 0x70]
jmp 0x140018acb
call fcn.1400647c0
mov rcx, rax
lea rdx, str.Get_dll_install_path_fail._rerun_default_path.
mov r8b, 1
call fcn.140063fc0
xorps xmm0, xmm0
mov qword [rsp + 0x70], r14
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x78], r14
lea rdx, str.C:Program_Files__x86_ASUSArmouryDevice
mov r8d, 0x29
lea rcx, [rsp + 0x60]
call fcn.14001e400
lea rcx, [rbp + 0x50]
call fcn.14000e6a0
mov rdx, qword [reloc.OLEAUT32.dll_VariantInit]
cmp rdx, 8
jb 0x140018b24
mov rcx, qword [0x140197db8]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140018b1f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400193df
mov rcx, r8
call fcn.14010a970
movups xmm1, xmmword [rsp + 0x70]
mov qword [rsp + 0x5a8], rbx
lea rcx, [rsp + 0x60]
movups xmm0, xmmword [rsp + 0x60]
mov qword [rsp + 0x5b0], r15
movups xmmword [0x140197dc8], xmm1
mov qword [rsp + 0x70], r14
movups xmmword [0x140197db8], xmm0
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
call fcn.14000e6a0
lea r8, [0x140197db8]
lea rdx, str.get_registry_install_path:
lea rcx, [rbp + 0x50]
call fcn.14001ddc0
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x140018b8e
mov rbx, qword [rax]
call fcn.1400647c0
mov rcx, rax
mov rdx, rbx
call fcn.140064190
lea rcx, [rbp + 0x50]
call fcn.14000e6a0
mov r9d, 0x64
lea r8, [0x1401a5340]
mov rcx, rsi
lea edx, [r9 + 3]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, 0x64
lea r15, [0x1401a51d0]
mov r8, r15
mov rcx, rsi
lea edx, [r9 + 4]
call qword [sym.imp.USER32.dll_LoadStringW]
lea r8, str.GlobalArmourySocketServerMutex
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140018c54
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400647c0
mov rcx, rax
lea rdx, str.ArmourySocketServer.exe_is_already_running
mov r8b, 1
call fcn.140063fc0
xor eax, eax
mov rbx, qword [rsp + 0x5a8]
mov r15, qword [rsp + 0x5b0]
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.14010a950
mov rsi, qword [rsp + 0x5b8]
add rsp, 0x580
pop r14
pop rdi
pop rbp
ret
lea rax, [0x140019710]
mov qword [rbp - Ordinal_84], 0x50
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x50]
lea rax, [0x140162228]
mov qword [rbp - 0x40], r14
xorps xmm0, xmm0
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x38], rsi
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], r14
call qword [sym.imp.USER32.dll_RegisterClassExW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov r9d, 0x90
mov dword [0x1401a52b0], 0x2000
mov rcx, rax
mov qword [0x1401a5420], rax
lea r8, [0x1401a52a0]
mov edx, 9
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
mov qword [rsp + 0x58], r14
lea r8, [0x1401a5340]
mov qword [rsp + 0x50], rsi
mov r9d, 0xcf0000
mov qword [rsp + 0x48], r14
mov rdx, r15
mov qword [rsp + 0x40], r14
xor ecx, ecx
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], 0x80000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x1401a5408], rax
test rax, rax
je 0x140018c1f
xor r9d, r9d
mov rcx, rax
lea edx, [r9 + 0x4a]
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_ChangeWindowMessageFilterEx]
mov rcx, qword [0x1401a5408]
xor edx, edx
call qword [sym.imp.USER32.dll_RegisterSuspendResumeNotification]
mov rcx, qword [0x1401a5408]
lea rdx, [0x140153080]
xor r8d, r8d
call qword [sym.imp.USER32.dll_RegisterPowerSettingNotification]
mov ecx, 1
call fcn.14010a978
lea rcx, [rbp - 0x78]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140020730]
xor ecx, ecx
mov dword [rsp + 0x20], r14d
xor edx, edx
call fcn.140122dc0
mov qword [rbp - 0x80], rax
test rax, rax
je 0x1400193d0
cmp dword [rbp - 0x78], r14d
je 0x1400193c5
movaps xmm0, xmmword [rbp - 0x80]
lea rcx, [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
call fcn.1400e93d8
test eax, eax
jne 0x1400193c5
xorps xmm0, xmm0
lea ecx, [rax + 1]
movdqa xmmword [rbp - 0x80], xmm0
call fcn.14010a978
lea rcx, [rbp - 0x78]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x1400207a0]
xor ecx, ecx
mov dword [rsp + 0x20], r14d
xor edx, edx
call fcn.140122dc0
mov qword [rbp - 0x80], rax
test rax, rax
je 0x140019416
cmp dword [rbp - 0x78], r14d
je 0x14001940b
movaps xmm0, xmmword [rbp - 0x80]
lea rcx, [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
call fcn.1400e93d8
test eax, eax
jne 0x14001940b
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
call fcn.1400647c0
cmp dword [reloc.WS2_32.dll_closesocket], r14d
jle 0x140018e4f
lea r8, str.dllArmourySocketServerArmouryHtmlDebugServer.exe
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.14001ded0
mov rcx, rax
mov dl, 1
call fcn.140017b10
xorps xmm0, xmm0
mov qword [rbp - 0x60], r14
movups xmmword [rbp + 0x30], xmm0
lea r9, [rbp - 0x60]
mov word [rbp + 0x30], r14w
xor r8d, r8d
mov qword [rbp + 0x40], r14
xor edx, edx
mov qword [rbp + 0x48], 7
lea rcx, [0x140163968]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
xorps xmm0, xmm0
mov qword [rbp + 0x60], r14
mov r8d, reloc.zlibwapi.dll_Ordinal_63
mov qword [rbp + 0x68], r14
lea rdx, str.MicrosoftWindowsStart_MenuProgramsArmoury_Crate_Notice.lnk
lea rcx, [rbp + 0x50]
movups xmmword [rbp + 0x50], xmm0
call fcn.14001e400
mov rdx, qword [rbp - 0x60]
lea r8, [rbp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14001dc70
mov rbx, rax
lea rax, [rbp + 0x30]
cmp rax, rbx
je 0x140018f34
mov rdx, qword [rbp + 0x48]
cmp rdx, 8
jb 0x140018f04
mov rcx, qword [rbp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018eff
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400193e5
call fcn.14010a970
mov qword [rbp + 0x40], r14
mov qword [rbp + 0x48], 7
mov word [rbp + 0x30], r14w
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x40], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
lea rcx, [rsp + 0x60]
call fcn.14000e6a0
lea rcx, [rbp + 0x50]
call fcn.14000e6a0
cmp qword [rbp + 0x48], 8
lea rcx, [rbp + 0x30]
cmovae rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xorps xmm0, xmm0
mov qword [rbp + 0x60], r14
mov r8d, 0x38
mov qword [rbp + 0x68], r14
lea rdx, str.MicrosoftWindowsStart_MenuProgramsArmoury_Crate.lnk
lea rcx, [rbp + 0x50]
movups xmmword [rbp + 0x50], xmm0
call fcn.14001e400
mov rdx, qword [rbp - 0x60]
lea r8, [rbp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14001dc70
mov rbx, rax
lea rax, [rbp + 0x30]
cmp rax, rbx
je 0x14001900e
mov rdx, qword [rbp + 0x48]
cmp rdx, 8
jb 0x140018fde
mov rcx, qword [rbp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018fd9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400193eb
call fcn.14010a970
mov qword [rbp + 0x40], r14
mov qword [rbp + 0x48], 7
mov word [rbp + 0x30], r14w
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x40], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
lea rcx, [rsp + 0x60]
call fcn.14000e6a0
lea rcx, [rbp + 0x50]
call fcn.14000e6a0
cmp qword [rbp + 0x48], 8
lea rcx, [rbp + 0x30]
cmovae rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1400647c0
mov rcx, rax
lea rdx, str.Toast_shortcut_link_deleted
mov r8b, 1
call fcn.140063fc0
call fcn.140017770
call fcn.140017000
mov rcx, r14
lea r8, str._run
movzx eax, word [rdi + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x1400190ad
cmp rcx, 5
jne 0x140019060
call fcn.1400647c0
mov rcx, rax
lea rdx, str.Run_asus_framework
mov r8b, 1
call fcn.140063fc0
lea r8, str._asus_framework.exe
lea rdx, [0x140197db8]
lea rcx, [rbp + 0x50]
call fcn.14001ded0
mov rcx, rax
xor edx, edx
call fcn.140017b10
lea rax, [rbp - 0x70]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREWOW6432NodeASUSArmourySDKMainSDKPlugin
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140019121
mov rcx, qword [rbp - 0x70]
lea rdx, [0x140165d78]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1400190fa
call fcn.1400647c0
lea rdx, str._EdgeStatusMonitor__EdgeRuntimeStatus_value_deleted
jmp 0x140019106
call fcn.1400647c0
lea rdx, str._EdgeStatusMonitor__RegDeleteValueW_EdgeRuntimeStatus_fail
mov r8b, 1
mov rcx, rax
call fcn.140063fc0
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x70], r14
jmp 0x140019138
call fcn.1400647c0
mov rcx, rax
lea rdx, str._EdgeStatusMonitor__RegOpenKeyExW_EdgeRuntimeStatus_fail
mov r8b, 1
call fcn.140063fc0
mov rcx, qword [0x1401a5c18]
test rcx, rcx
je 0x140019151
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401a5c18], r14
mov rcx, qword [0x1401a59f8]
test rcx, rcx
je 0x14001917c
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1401a59f8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401a59f8], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1401a5c18], rax
test rax, rax
jne 0x1400191b1
call fcn.1400647c0
mov rcx, rax
lea rdx, str._EdgeStatusMonitor__CreateEvent_fail
mov r8b, 1
call fcn.140063fc0
jmp 0x140019215
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [0x1401a54c8]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14003c540]
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call fcn.140122dc0
mov qword [0x1401a59f8], rax
test rax, rax
jne 0x140019215
call fcn.1400647c0
mov rcx, rax
lea rdx, str._EdgeStatusMonitor___beginthreadex_fail
mov r8b, 1
call fcn.140063fc0
mov rcx, qword [0x1401a5c18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401a5c18], r14
mov rcx, qword [0x1401a5d00]
test rcx, rcx
je 0x14001922e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401a5d00], r14
mov rcx, qword [0x1401a5c98]
test rcx, rcx
je 0x140019259
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1401a5c98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401a5c98], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1401a5d00], rax
test rax, rax
jne 0x14001928e
call fcn.1400647c0
mov rcx, rax
lea rdx, str._LightingServiceMonitor__CreateEvent_fail
mov r8b, 1
call fcn.140063fc0
jmp 0x1400192f2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [0x1401a57a8]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140062a80]
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call fcn.140122dc0
mov qword [0x1401a5c98], rax
test rax, rax
jne 0x1400192f2
call fcn.1400647c0
mov rcx, rax
lea rdx, str._LightingServiceMonitor___beginthreadex_fail
mov r8b, 1
call fcn.140063fc0
mov rcx, qword [0x1401a5d00]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401a5d00], r14
mov ecx, 1
call fcn.14010a978
lea rcx, [rbp - 0x78]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x1400207d0]
xor ecx, ecx
mov dword [rsp + 0x20], r14d
xor edx, edx
call fcn.140122dc0
mov qword [rbp - 0x80], rax
test rax, rax
je 0x1400193fc
cmp dword [rbp - 0x78], r14d
je 0x1400193f1
movaps xmm0, xmmword [rbp - 0x80]
lea rcx, [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
call fcn.1400e93d8
test eax, eax
jne 0x1400193f1
lea edx, [rax + 0x6d]
mov rcx, rsi
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor r9d, r9d
lea rcx, [rbp]
xor r8d, r8d
xor edx, edx
mov rbx, rax
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1400193b2
mov rcx, qword [rbp]
lea r8, [rbp]
mov rdx, rbx
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x14001939c
lea rcx, [rbp]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140019373
mov ebx, dword [rbp + 0x10]
lea rcx, [rbp + 0x30]
call fcn.14000e6a0
mov eax, ebx
jmp 0x140018c21
mov ecx, 1
call fcn.1400e80d8
int3
mov ecx, 6
mov dword [rbp - 0x78], r14d
call fcn.1400e80d8
int3
call fcn.14011340c
int3
call fcn.14011340c
int3
call fcn.14011340c
int3
mov ecx, 1
call fcn.1400e80d8
int3
mov ecx, 6
mov dword [rbp - 0x78], r14d
call fcn.1400e80d8
int3
mov ecx, 1
call fcn.1400e80d8
int3
mov ecx, 6
mov dword [rbp - 0x78], r14d
call fcn.1400e80d8
int3