Function at 0x1400a4d40
Capabilities:
Check if file exists
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push r12
lea rbp, [rsp - 0xc78]
sub rsp, 0xd78
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0xc50], rax
mov r12, rdx
mov rbx, rcx
xor esi, esi
lea rcx, [rbp + 0xa40]
xor edx, edx
mov dword [rsp + 0x58], esi
mov r8d, 0x208
call fcn.1402767a0
xor edx, edx
lea rcx, [rbp + 0x830]
mov r8d, 0x208
call fcn.1402767a0
xor edx, edx
lea rcx, [rbp + 0x200]
mov r8d, 0x208
call fcn.1402767a0
test rbx, rbx
je 0x1400a5214
test r12, r12
je 0x1400a5214
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400a5214
mov qword [rsp + 0xdb0], rdi
lea r8, [0x140333868]
mov qword [rsp + 0xd70], r13
lea rcx, [rbp + 0xa40]
mov qword [rsp + 0xd68], r14
mov edx, 0x104
mov r14, qword [rbx + 0x488]
mov qword [rsp + 0xd60], r15
mov r15, qword [rbx + 0x480]
mov r9, r15
call fcn.14004e9f0
mov r9, r15
lea r8, [0x140333858]
mov edx, 0x104
lea rcx, [rbp + 0x200]
call fcn.14004e9f0
test r14, r14
je 0x1400a4e81
mov rdx, r15
mov rcx, r14
call fcn.1402779b8
test eax, eax
je 0x1400a4e81
mov r9, r14
lea r8, [0x140333848]
mov edx, 0x104
lea rcx, [rbp + 0x830]
call fcn.14004e9f0
mov r9, r14
lea r8, [0x140333838]
mov edx, 0x104
lea rcx, [rbp + 0x200]
call fcn.14004e9f0
jmp 0x1400a4e84
mov r14, rsi
lea rbx, [0x140333270]
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x48], rbx
lea rcx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorerRun
nop dword [rax + rax]
mov r13d, esi
nop dword [rax]
nop word [rax + rax]
movsxd rax, r13d
mov r9d, 3
imul rdx, rax, 0x208
lea rax, [rsp + 0x50]
add rdx, rcx
mov qword [rsp + 0x20], rax
mov rcx, qword [rbx]
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a51bd
xor edx, edx
mov qword [rbp - 0x58], 7
xor ecx, ecx
mov qword [rbp - 0x60], rsi
mov word [rbp - 0x70], si
mov qword [rbp - 0x33], 7
mov qword [rbp - 0x3b], rsi
mov word [rbp - 0x4b], si
mov qword [rbp - 0x2b], rsi
mov qword [rbp - 0x1b], rsi
call fcn.140056290
xor edx, edx
mov qword [rbp - 0x23], rsi
mov r8d, 0x208
mov dword [rsp + 0x58], 0x104
lea rcx, [rbp + 0x620]
mov dword [rsp + 0x5c], 0x208
call fcn.1402767a0
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x208
call fcn.1402767a0
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
lea rax, [rbp - 0x10]
xor edx, edx
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x620]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x1400a51a6
nop word [rax + rax]
inc esi
cmp dword [rsp + 0x58], 2
jb 0x1400a5122
cmp dword [rsp + 0x5c], 2
jb 0x1400a5122
xor edi, edi
test r14, r14
je 0x1400a5007
cmp word [rbp - 0x10], 0x22
jne 0x1400a4fe6
xor r8d, r8d
lea rdx, [rbp + 0x200]
lea rcx, [rbp - 0x10]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x1400a4fe6
lea edi, [rax + 1]
mov rbx, r14
jmp 0x1400a5053
xor r8d, r8d
lea rdx, [rbp + 0x830]
lea rcx, [rbp - 0x10]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x1400a5122
mov rbx, r14
jmp 0x1400a5053
test r15, r15
je 0x1400a5122
cmp word [rbp - 0x10], 0x22
jne 0x1400a5034
xor r8d, r8d
lea rdx, [rbp + 0x200]
lea rcx, [rbp - 0x10]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x1400a5034
lea edi, [rax + 1]
jmp 0x1400a5050
xor r8d, r8d
lea rdx, [rbp + 0xa40]
lea rcx, [rbp - 0x10]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x1400a5122
mov rbx, r15
test rbx, rbx
je 0x1400a5122
xor edx, edx
lea rcx, [rbp + 0x410]
mov r8d, 0x208
call fcn.1402767a0
or rax, 0xffffffffffffffff
test edi, edi
je 0x1400a50a0
nop dword [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400a5080
lea rcx, [rbp - 0xe]
lea r8, [0x1403338d8]
jmp 0x1400a50b7
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400a50a0
lea rcx, [rbp - 0x10]
lea r8, [0x1403338c8]
lea rax, [rcx + rax*2]
mov r9, r12
lea rcx, [rbp + 0x410]
mov qword [rsp + 0x20], rax
mov edx, 0x104
call fcn.14004e9f0
lea rcx, [rbp + 0x410]
or rax, 0xffffffffffffffff
nop
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400a50e0
lea ecx, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
lea rax, [rbp + 0x410]
mov dword [rsp + 0x58], ecx
lea rdx, [rbp + 0x620]
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
mov dword [rsp + 0x58], 0x104
mov r8d, 0x208
mov dword [rsp + 0x5c], 0x208
lea rcx, [rbp + 0x620]
call fcn.1402767a0
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x208
call fcn.1402767a0
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
lea rax, [rbp - 0x10]
mov edx, esi
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x620]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x1400a4fa0
mov rbx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x70]
call fcn.14007dbd0
xor esi, esi
inc r13d
lea rcx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorerRun
cmp r13d, 0x10
jb 0x1400a4eb0
mov eax, dword [rsp + 0x40]
lea rcx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorerRun
inc eax
add rbx, 8
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbx
cmp eax, 2
jb 0x1400a4ea0
mov r15, qword [rsp + 0xd60]
mov r14, qword [rsp + 0xd68]
mov r13, qword [rsp + 0xd70]
mov rdi, qword [rsp + 0xdb0]
xor eax, eax
mov rcx, qword [rbp + 0xc50]
xor rcx, rsp
call fcn.140125a70
add rsp, 0xd78
pop r12
pop rsi
pop rbx
pop rbp
ret