Function at 0x14000c32c
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5b8]
sub rsp, 0x6a0
mov rax, qword [0x1401e3028]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov edi, edx
mov rsi, rcx
xor r14d, r14d
lea rcx, [rbp + 0x180]
xor edx, edx
mov qword [rsp + 0x60], r14
mov r8d, 0x410
call fcn.140130a00
mov r15d, 0x208
lea rcx, [rsp + 0x70]
mov r8d, r15d
xor edx, edx
call fcn.140130a00
test rsi, rsi
jne 0x14000c3e3
mov rax, qword [0x14021eec0]
lea rcx, [0x14021eec0]
mov edx, 0x30303030
mov rax, qword [rax + 8]
call qword [case.0x14000c75c.0]
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.14012e400
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rax, [rsp + 0x58]
mov qword [rsp + 0x58], r14
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x50], r14d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000c49f
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.DWPersistentQueuedReporting
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000c49f
cmp dword [rsp + 0x50], r14d
jbe 0x14000c49f
test edi, edi
je 0x14000c49f
cmp dword [0x1401e3f88], r14d
je 0x14000c3b7
cmp dword [0x1401e3f90], r14d
je 0x14000c3b7
cmp word [0x1402321a0], r14w
je 0x14000c3b7
lea rcx, str.Persistent_run_key_is_set._r_n
lea rdx, [0x1402321a0]
call fcn.140025aa4
jmp 0x14000c3b7
mov eax, dword [rsi]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x40], r14
and eax, 0x10000000
neg eax
lea rax, [rsp + 0x60]
sbb rcx, rcx
mov qword [rsp + 0x38], rax
neg rcx
mov qword [rsp + 0x30], r14
add rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x2001f
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14000c521
cmp dword [0x1401e3f88], r14d
je 0x14000c3b7
cmp dword [0x1401e3f90], r14d
je 0x14000c3b7
cmp word [0x1402321a0], r14w
je 0x14000c3b7
lea rcx, str.Failed_to_create_run_reg_key_r_n
jmp 0x14000c48e
test edi, edi
jne 0x14000c53c
mov rcx, qword [rsp + 0x60]
lea rdx, str.DWQueuedReporting
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14000c3b7
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, eax
test eax, eax
je 0x14000c3b7
or edx, 0xffffffff
jmp 0x14000c568
test r8d, r8d
je 0x14000c3b7
add r8d, edx
cmp word [rsp + r8*2 + 0x70], 0x5c
jne 0x14000c55f
mov eax, r8d
add rax, rax
cmp rax, r15
jae 0x14000c60c
mov word [rsp + rax + 0x70], r14w
lea r9, [rsp + 0x70]
lea rax, str.dwtrig20.exe
mov dword [rsp + 0x28], 0x74
lea r8, str.__s_s____c
mov qword [rsp + 0x20], rax
mov rdx, r15
lea rcx, [rbp + 0x180]
call fcn.140003dbc
lea rcx, [rbp + 0x180]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14000c5c3
mov rcx, qword [rsp + 0x60]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.DWQueuedReporting
lea rax, [rbp + 0x180]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000c3b7
jmp 0x14000c39a
call fcn.14012e568
int3