Function at 0x14001a190
Capabilities:
Create thread
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0x5f]
sub rsp, 0x98
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov qword [r11 + 0x10], rbx
lea rax, [rbp + 0x27]
mov qword [r11 + 0x18], rsi
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCICMYH
mov qword [r11 - 0x18], r14
mov rsi, rcx
xor r14d, r14d
mov dword [rbp + 7], 1
mov qword [r11 - 0x68], r14
xor r9d, r9d
mov qword [r11 - 0x70], rax
xor r8d, r8d
mov qword [r11 - 0x78], r14
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r14d
mov qword [rbp + 0x27], r14
mov qword [rbp + 0x2f], r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001a354
mov rcx, qword [rbp + 0x27]
lea rax, [rbp + 7]
mov dword [rsp + 0x28], 4
lea r9d, [r14 + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Capability
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14001a354
lea rax, [rbp + 0xf]
mov dword [rbp + 0x1f], r14d
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp + 0xf], r14
lea rdx, str.SOFTWARELenovoMoccaMode
mov qword [rbp + 0x17], r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001a2d1
mov rcx, qword [rbp + 0xf]
lea rax, [rbp + 0x1b]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x17]
xor r8d, r8d
mov qword [rsp + 0x20], r14
lea rdx, str.Mode
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001a2d1
mov rcx, qword [rbp + 0xf]
lea rax, [rbp + 0x1b]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x17]
lea rax, [rbp + 0x1f]
xor r8d, r8d
lea rdx, str.Mode
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete dil
jmp 0x14001a2d4
xor dil, dil
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x14001a2e3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
je 0x14001a354
mov eax, dword [rbp + 0x1f]
sub eax, 1
je 0x14001a3a5
sub eax, 1
je 0x14001a318
sub eax, 1
je 0x14001a313
sub eax, 1
je 0x14001a30c
cmp eax, 1
jne 0x14001a3a5
mov ebx, 1
jmp 0x14001a31d
mov ebx, r14d
jmp 0x14001a31d
mov ebx, 2
xor eax, eax
mov qword [rbp + 0xf], r14
lea rdi, [rbp + 7]
mov ecx, 4
rep stosb byte [rdi], al
lea rcx, [rbp + 0xf]
mov dword [rbp + 7], r14d
lea r8, [rbp + 7]
mov edx, ebx
call fcn.14001efd0
mov rcx, qword [rbp + 0xf]
test al, al
jne 0x14001a398
test rcx, rcx
je 0x14001a354
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor dil, dil
mov rcx, qword [rbp + 0x27]
mov r14, qword [rsp + 0x90]
mov rsi, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xb8]
test rcx, rcx
je 0x14001a37e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14002a740
add rsp, 0x98
pop rdi
pop rbp
ret
test rcx, rcx
je 0x14001a3aa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001a3aa
mov ebx, 0xf
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x27]
mov qword [rsp + 0x38], rax
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCICMYH
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r14d
mov dword [rbp + 7], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001a354
mov rcx, qword [rbp + 0x27]
lea rax, [rbp + 7]
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
jne 0x14001a354
xor r9d, r9d
lea edx, [rax + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r9, rsi
mov dword [rbp + 0x23], r14d
mov qword [rsi + 0x70], rax
lea r8, [0x14001de20]
lea rax, [rbp + 0x23]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call fcn.1400355e8
mov qword [rsi + 0x68], rax
mov dil, 1
jmp 0x14001a357