Function at 0x14001ad70
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rax, qword [rcx + 0xa0]
mov rdi, rcx
test rax, rax
je 0x14001b19a
mov rdx, qword [rcx + 0x98]
test rdx, rdx
je 0x14001b19a
mov rcx, qword [0x140075e40]
test rcx, rcx
je 0x14001b19a
xor esi, esi
mov qword [rbp + 0x3f], rax
mov qword [rbp + 0x37], rdx
lea rax, [rbp - 0x19]
mov qword [rbp + 0x47], rcx
lea rdx, str.SYSTEMCurrentControlSetServicesIBMPMSVCParametersNotification
xor r8d, r8d
mov qword [rbp - 0x19], rsi
lea r9d, [rsi + 0x11]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001b19a
cmp qword [rbp - 0x19], rsi
je 0x14001b19a
lea rdx, [rbp - 0xd]
mov dword [rbp - 0xd], esi
call fcn.14001ed30
test eax, eax
je 0x14001b19a
mov r9, qword [rbp + 0x3f]
lea r8d, [rsi + 4]
mov rcx, qword [rbp - 0x19]
xor edx, edx
mov qword [rsp + 0xd8], rbx
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x2f], rsi
mov dword [rbp - 9], esi
mov dword [rbp - 0x11], esi
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x14001b170
nop
xor r8d, r8d
lea rdx, [rbp + 0x37]
mov r9d, 0xffffffff
lea ecx, [r8 + 3]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x14001b166
sub eax, 1
je 0x14001af7a
cmp eax, 1
jne 0x14001b170
lea rax, [rbp - 1]
mov qword [rbp - 1], rsi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp + 7], rsi
lea rdx, str.SYSTEMCurrentControlSetServicesIBMPMSVCParametersNotification
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001af20
mov rcx, qword [rbp - 1]
lea rax, [rbp + 0xb]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 7]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, str.Type2
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001af20
mov rcx, qword [rbp - 1]
lea rax, [rbp + 0xb]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 7]
lea rax, [rbp - 0x11]
xor r8d, r8d
lea rdx, str.Type2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ebx, esi
sete bl
jmp 0x14001af22
mov ebx, esi
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x14001af31
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14001b0ab
call fcn.14001ac70
movzx ecx, al
mov edx, 1
mov eax, dword [rbp - 0x11]
mov dword [rbp - 0xd], eax
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea r9d, [rdx + 0xe]
mov dword [rsp + 0x20], ecx
lea r8d, [rdx + 7]
mov byte [rdi + 0x4b], cl
call fcn.1400191f0
mov rcx, qword [rbp + 0x47]
test al, al
jne 0x14001b137
jmp 0x14001b0a5
lea rax, [rbp + 0xf]
mov qword [rbp + 0xf], rsi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp + 0x17], rsi
lea rdx, str.SYSTEMCurrentControlSetServicesIBMPMSVCParametersNotification
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001b009
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], rsi
lea rdx, str.Type2
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001b009
mov rcx, qword [rbp + 0xf]
lea rax, [rbp + 0x1b]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x17]
lea rax, [rbp - 0x11]
xor r8d, r8d
lea rdx, str.Type2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ebx, esi
sete bl
jmp 0x14001b00b
mov ebx, esi
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x14001b01a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14001b030
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x14001b13d
mov edx, dword [rbp - 0xd]
lea rbx, [rdi + 0x4b]
mov r8d, dword [rbp - 0x11]
mov ecx, edx
shr ecx, 0xa
mov eax, r8d
shr eax, 0xa
xor cl, al
test cl, 1
je 0x14001b052
cmp byte [rbx], sil
je 0x14001b06e
shr edx, 0xb
shr r8d, 0xb
xor dl, r8b
test dl, 1
je 0x14001b133
cmp byte [rbx], sil
je 0x14001b133
call fcn.14001ac70
movzx ecx, al
mov edx, 1
mov eax, dword [rbp - 0x11]
mov dword [rbp - 0xd], eax
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea r9d, [rdx + 0xe]
mov dword [rsp + 0x20], ecx
lea r8d, [rdx + 7]
mov byte [rbx], cl
call fcn.1400191f0
test al, al
jne 0x14001b0bd
mov rcx, qword [rbp + 0x3f]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x14001b13d
movzx eax, byte [rbx]
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCICDMC
mov qword [rsp + 0x40], rsi
xor r9d, r9d
mov dword [rbp + 0x1f], eax
xor r8d, r8d
lea rax, [rbp + 0x27]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001b0a1
mov rcx, qword [rbp + 0x27]
lea rax, [rbp + 0x1f]
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 0x14001b0a1
mov rcx, qword [rbp + 0x3f]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r9, qword [rbp + 0x3f]
xor edx, edx
mov rcx, qword [rbp - 0x19]
mov dword [rbp - 0x11], esi
mov dword [rsp + 0x20], 1
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
je 0x14001ae60
jmp 0x14001b170
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.1400356bc
mov rcx, qword [rbp + 0x27]
mov rbx, qword [rsp + 0xd8]
test rcx, rcx
je 0x14001b1a1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001b1a1
xor ecx, ecx
call fcn.1400356bc
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14002a740
lea r11, [rsp + 0xc0]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret