Function at 0x14001a470
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rax, qword [rcx + 0x70]
xor r15d, r15d
mov rdi, rcx
mov qword [rbp + 0x27], r15
xor r9d, r9d
mov qword [rbp + 0x1f], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [r15 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [0x140075e48]
mov qword [rbp + 0x2f], rcx
mov qword [rbp + 0x27], rax
cmp qword [rbp + 0x1f], r15
je 0x14001a70c
test rax, rax
je 0x14001a70c
test rcx, rcx
je 0x14001a70c
movzx eax, byte [rdi]
lea rcx, str.SOFTWARELenovoMoccaMode
test al, al
mov qword [rbp - 9], r15
lea rax, [rbp - 9]
lea rsi, str.SYSTEMCurrentControlSetServicesIBMPMSVCTransformCurrentStatus
mov qword [rsp + 0x20], rax
cmovne rsi, rcx
lea r14, [0x140067d94]
lea rcx, str.Mode
mov rdx, rsi
cmovne r14, rcx
lea r9d, [r15 + 0x11]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001a70c
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14001a70c
mov r9, qword [rbp + 0x27]
lea r8d, [r15 + 4]
xor edx, edx
mov qword [rsp + 0xc8], rbx
mov dword [rbp + 7], r15d
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], r15
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x14001a6e2
nop
xor r8d, r8d
lea rdx, [rbp + 0x1f]
mov r9d, 0xffffffff
lea ecx, [r8 + 3]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x14001a6d8
sub eax, 1
je 0x14001a5b3
cmp eax, 1
jne 0x14001a6e2
mov rcx, qword [rbp + 0x2f]
jmp 0x14001a5b7
mov rcx, qword [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r9, [rbp + 7]
mov r8, r14
mov rdx, rsi
call fcn.14001a740
test al, al
je 0x14001a6a8
mov eax, dword [rbp + 7]
sub eax, 1
je 0x14001a603
sub eax, 1
je 0x14001a5fc
sub eax, 1
je 0x14001a5f7
sub eax, 1
je 0x14001a5f0
cmp eax, 1
jne 0x14001a603
mov ebx, 1
jmp 0x14001a608
mov ebx, r15d
jmp 0x14001a608
mov ebx, 2
jmp 0x14001a608
mov ebx, 0xf
mov eax, r15d
mov dword [rbp - 1], r15d
mov r8d, 3
lea rcx, [rbp - 1]
mov qword [rsp + 0x28], rcx
cmp ebx, 0xf
mov r9d, ebx
setne al
lea edx, [r8 - 2]
mov dword [rsp + 0x20], eax
call fcn.1400191f0
test al, al
je 0x14001a6a8
mov qword [rsp + 0x40], r15
lea rax, [rbp + 0xf]
mov qword [rsp + 0x38], rax
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCICMYH
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r15d
mov dword [rbp - 1], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001a6a8
mov rcx, qword [rbp + 0xf]
lea rax, [rbp - 1]
mov dword [rsp + 0x28], 4
lea rdx, str.CurrentSetting
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14001a6b2
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov r9, qword [rbp + 0x27]
xor edx, edx
mov rcx, qword [rbp - 9]
mov dword [rsp + 0x20], 1
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
je 0x14001a580
jmp 0x14001a6e2
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.1400356bc
mov rcx, qword [rbp + 0xf]
mov rbx, qword [rsp + 0xc8]
test rcx, rcx
je 0x14001a713
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001a713
xor ecx, ecx
call fcn.1400356bc
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14002a740
lea r11, [rsp + 0xa0]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret