Function at 0x1400512c0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
mov eax, 0x1880
call fcn.1400ca8f0
sub rsp, rax
mov rax, qword [0x14013c010]
xor rax, rsp
mov qword [rsp + 0x1870], rax
mov rdi, r8
mov rsi, r9
lea r8, [rsp + 0x250]
mov rbx, rcx
sub r8, rdx
nop dword [rax]
movzx eax, word [rdx]
mov word [r8 + rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140051300
xor r14d, r14d
lea rdx, [rsp + 0x40]
test rsi, rsi
jne 0x140051369
sub rdx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140051330
mov edx, 0x2e
lea rcx, [rsp + 0x40]
call fcn.1400c72c4
test rax, rax
je 0x140051380
mov edx, 0x2e
lea rcx, [rsp + 0x40]
call fcn.1400c72c4
mov word [rax], r14w
jmp 0x140051380
mov rcx, rsi
sub rdx, rsi
nop
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140051370
cmp dword [rsp + 0x18c0], r14d
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov edx, 0x800
cmove r8, rax
lea rcx, [rsp + 0x870]
call fcn.14002aeb0
cmp dword [rsp + 0x18c8], r14d
jne 0x1400514fd
cmp dword [rsp + 0x18c0], r14d
jne 0x140051461
lea rcx, [rsp + 0x250]
sub rcx, 2
cmp word [rcx + 2], r14w
lea rcx, [rcx + 2]
jne 0x1400513d4
mov eax, dword [0x1400e4fb4]
mov dword [rcx], eax
lea rcx, [rsp + 0x250]
sub rcx, 2
cmp word [rcx + 2], r14w
lea rcx, [rcx + 2]
jne 0x1400513f3
xor edx, edx
movzx eax, word [rbx + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140051400
test rdi, rdi
je 0x140051461
lea rcx, [rsp + 0x250]
sub rcx, 2
cmp word [rcx + 2], r14w
lea rcx, [rcx + 2]
jne 0x140051422
mov eax, dword [0x1400fb9bc]
mov dword [rcx], eax
lea rcx, [rsp + 0x250]
sub rcx, 2
cmp word [rcx + 2], r14w
lea rcx, [rcx + 2]
jne 0x140051441
xor edx, edx
nop
movzx eax, word [rdi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140051450
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x870]
mov rcx, 0xffffffff80000002
mov ebx, r14d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400514e7
lea rcx, [rsp + 0x250]
call fcn.140050e90
lea rcx, [rsp + 0x250]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400514b0
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x250]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
sete r14b
mov eax, r14d
jmp 0x140051564
call fcn.14000b2a0
test dword [rax + 0xc0], 0x20000000
je 0x14005151d
call fcn.14000b2a0
movzx r8d, byte [rax + 0x1f3]
jmp 0x140051523
mov r8d, 0x1e
mov r9, rdi
mov rcx, rsi
call fcn.140051b30
mov r9, rsi
mov dword [rsp + 0x30], eax
lea r8, str.RunCplByTaskScheduler__s
mov edx, 0x104
lea rcx, [rsp + 0x660]
call fcn.14002aeb0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x660]
call fcn.140051590
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x1870]
xor rcx, rsp
call fcn.1400c17f0
mov rbx, qword [rsp + 0x18a8]
add rsp, 0x1880
pop r14
pop rdi
pop rsi
ret