Function at 0x14015baf0
Capabilities:
Get common file path
Persist via run registry key
Query environment variable
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x878]
sub rsp, 0x950
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x840], rax
mov r15, rcx
mov qword [rbp - 0x20], rcx
mov ecx, 0x40
call fcn.1402b6dbc
mov qword [rsp + 0x70], rax
xor r14d, r14d
test rax, rax
je 0x14015bb57
mov rcx, rax
call fcn.140157d90
jmp 0x14015bb5a
mov rax, r14
mov qword [0x140428c78], rax
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], r14
call fcn.1400e29c0
mov qword [rbp - 0x58], rax
lea rcx, [rbp - 0x58]
call fcn.14015cc20
mov rax, qword [rbp - 0x58]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14015bc38
nop dword [rax + rax]
mov rcx, qword [rbx + 0x20]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14015bba0
inc eax
movsxd rdi, eax
lea rcx, [rdi + rdi]
call fcn.1402b7390
mov rsi, rax
mov r8, qword [rbx + 0x20]
mov rdx, rdi
mov rcx, rax
call fcn.1402b6e28
mov rcx, rsi
call fcn.1402ba268
mov rcx, rax
lea rdx, str._profile
call fcn.14015cb50
cmp byte [rbx + 0x19], 0
jne 0x14015bc2e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14015bc0e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14015bc2e
nop dword [rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14015bc00
jmp 0x14015bc2e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14015bc2b
cmp rbx, qword [rax + 0x10]
jne 0x14015bc2b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14015bc18
mov rbx, rax
cmp rbx, qword [rbp - 0x58]
jne 0x14015bb90
mov eax, dword [0x140429a00]
lea r13, vtable.Core::Win32::RegistryKey.0
test al, 1
jne 0x14015bc70
or eax, 1
mov dword [0x140429a00], eax
mov qword [0x1404299e0], r13
mov qword [0x1404299e8], 0xffffffff80000003
lea rcx, [0x1402fed90]
call fcn.1402b8a74
mov qword [rbp - 0x78], r14
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str..DEFAULTSoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov rcx, qword [0x1404299e8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea r12, str._downloads
lea rdi, [0x140346ce0]
test eax, eax
jne 0x14015bd64
lea ecx, [rax + 0x10]
call fcn.1402b6dbc
mov rsi, rax
test rax, rax
je 0x14015bd64
mov rcx, qword [rbp - 0x78]
mov qword [rax], r13
mov qword [rax + 8], rcx
mov edi, r14d
mov rbx, r12
lea r13, [0x140346ce0]
nop dword [rax]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r14
lea r8, [rsp + 0x60]
mov rdx, qword [rbx - 8]
mov rcx, rsi
call fcn.1400d8ae0
test al, al
je 0x14015bd29
xor r8d, r8d
lea rdx, str._USERPROFILE_
lea rcx, [rsp + 0x60]
call fcn.1401ff2c0
test al, al
je 0x14015bd29
mov r8, qword [rbx]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x58]
call fcn.14015c980
nop
cmp dword [rsp + 0x68], 0
jle 0x14015bd3a
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
inc edi
add rbx, 0x10
movsxd rax, edi
cmp rax, 0x15
jb 0x14015bce0
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
lea rdi, [0x140346ce0]
lea r13, vtable.Core::Win32::RegistryKey.0
mov r8d, 0x104
lea rdx, [rbp + 0x630]
lea rcx, str.UserProfile
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14015c062
lea rax, [rbp + 0x630]
or r15, 0xffffffffffffffff
inc r15
cmp word [rax + r15*2], 0
jne 0x14015bd91
lea r8, [0x140345f98]
mov edx, 0x104
lea rcx, [rbp + 0x630]
call fcn.1402b9308
mov eax, dword [0x140429a30]
test al, 1
jne 0x14015bde5
or eax, 1
mov dword [0x140429a30], eax
mov qword [0x140429a08], r13
mov qword [0x140429a10], 0xffffffff80000001
lea rcx, [0x1402fedf0]
call fcn.1402b8a74
mov qword [rsp + 0x78], r14
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov rcx, qword [0x140429a10]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14015c05e
lea ecx, [rax + 0x10]
call fcn.1402b6dbc
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14015c05e
mov rcx, qword [rsp + 0x78]
mov qword [rax], r13
mov qword [rax + 8], rcx
mov r13d, r14d
mov dword [rbp - 0x78], r14d
nop word [rax + rax]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r14
lea r8, [rsp + 0x60]
mov rdx, qword [r12 - 8]
mov rcx, rbx
call fcn.1400d8ae0
test al, al
je 0x14015c028
lea rcx, [rbp + 0x630]
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x14015be80
cmp dword [rsp + 0x6c], eax
jl 0x14015c028
movsxd r8, eax
lea rdx, [rbp + 0x630]
mov rcx, qword [rsp + 0x60]
call fcn.1402b9158
test eax, eax
sete al
test al, al
je 0x14015c028
mov rax, qword [rbp - 0x58]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14015c023
lea r13, [0x140346ce0]
nop dword [rax]
mov rsi, qword [rbx + 0x20]
test rsi, rsi
jne 0x14015bee2
mov edi, r14d
mov qword [rbp - 0x40], r14
jmp 0x14015bef8
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x14015bee6
mov qword [rbp - 0x40], r14
test edi, edi
jne 0x14015befe
mov qword [rbp - 0x48], r13
jmp 0x14015bf20
mov edx, edi
lea rcx, [rbp - 0x48]
call fcn.1401fcb40
movsxd r9, edi
mov eax, dword [rbp - 0x40]
inc eax
movsxd rdx, eax
mov r8, rsi
mov rcx, qword [rbp - 0x48]
call fcn.1402ba94c
mov edx, edi
lea rcx, [rbp - 0x48]
call fcn.1401fde50
nop
mov r8d, r15d
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x60]
call fcn.1401feab0
nop
mov r8, rax
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x38]
call fcn.1400d2ba0
nop
cmp dword [rbp - 0x60], 0
jle 0x14015bf5f
mov rcx, qword [rbp - 0x68]
call fcn.1402b7350
nop
cmp dword [rbp - 0x40], 0
jle 0x14015bf6e
mov rcx, qword [rbp - 0x48]
call fcn.1402b7350
mov eax, dword [rbp - 0x2c]
inc eax
movsxd rdi, eax
lea rcx, [rdi + rdi]
call fcn.1402b7390
mov rsi, rax
mov r8, qword [rbp - 0x38]
mov rdx, rdi
mov rcx, rax
call fcn.1402b6e28
mov rcx, rsi
call fcn.1402ba268
mov rcx, rax
mov rdx, qword [r12]
call fcn.14015cb50
test al, al
jne 0x14015bfb2
mov rcx, rsi
call fcn.1402b7350
nop
cmp dword [rbp - 0x30], 0
jle 0x14015bfc1
mov rcx, qword [rbp - 0x38]
call fcn.1402b7350
cmp byte [rbx + 0x19], 0
jne 0x14015c00e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14015bfee
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14015c00e
nop dword [rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14015bfe0
jmp 0x14015c00e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14015c00b
cmp rbx, qword [rax + 0x10]
jne 0x14015c00b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14015bff8
mov rbx, rax
cmp rbx, qword [rbp - 0x58]
jne 0x14015bed0
mov r13d, dword [rbp - 0x78]
lea rdi, [0x140346ce0]
mov rbx, qword [rsp + 0x70]
cmp dword [rsp + 0x68], 0
jle 0x14015c039
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
inc r13d
mov dword [rbp - 0x78], r13d
add r12, 0x10
movsxd rax, r13d
cmp rax, 0x15
jb 0x14015be50
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov r15, qword [rbp - 0x20]
mov eax, dword [0x140429a00]
lea rsi, vtable.Core::Win32::RegistryKey.0
test al, 1
jne 0x14015c09a
or eax, 1
mov dword [0x140429a00], eax
mov qword [0x1404299e0], rsi
mov qword [0x1404299e8], 0xffffffff80000003
lea rcx, [0x1402fed90]
call fcn.1402b8a74
mov qword [rsp + 0x70], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str..DEFAULTEnvironment
mov rcx, qword [0x1404299e8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14015c16b
lea ecx, [rax + 0x10]
call fcn.1402b6dbc
mov rbx, rax
test rax, rax
je 0x14015c16b
mov rcx, qword [rsp + 0x70]
mov qword [rax], rsi
mov qword [rax + 8], rcx
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r14
lea r8, [rsp + 0x60]
lea rdx, str.TEMP
mov rcx, rax
call fcn.1400d8ae0
test al, al
je 0x14015c14c
cmp dword [rsp + 0x6c], 0xd
jl 0x14015c14c
mov r8d, 0xd
lea rdx, str._USERPROFILE_
mov rcx, qword [rsp + 0x60]
call fcn.1402b9158
test eax, eax
sete al
test al, al
je 0x14015c14c
lea r8, str._temp
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x58]
call fcn.14015c980
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
cmp dword [rsp + 0x68], 0
jle 0x14015c16b
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
mov edi, r14d
lea rbx, str._admintools
nop word [rax + rax]
mov edx, dword [rbx - 8]
add edx, 0x4000
lea rax, [rbp + 0x420]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x14015c1c9
lea rcx, [rbp + 0x420]
call fcn.1402ba268
mov rcx, rax
call fcn.1402b9ff0
mov rcx, rax
mov rdx, qword [rbx]
call fcn.14015cb50
inc edi
add rbx, 0x10
movsxd rax, edi
cmp rax, 0xe
jb 0x14015c180
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], r14
call fcn.14000a340
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], r14
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
mov r9d, 8
lea r8, [0x1403550a8]
mov rcx, qword [rsp + 0x60]
call fcn.1402ba94c
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.1401fde50
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.1401e5bb0
test eax, eax
setg bl
cmp dword [rsp + 0x68], 0
jle 0x14015c254
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
mov rdi, qword [rsp + 0x78]
test bl, bl
je 0x14015c30c
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14015c30c
nop dword [rax]
lea rdx, [rbx + 0x20]
lea rcx, [rbp - 0x38]
call fcn.1400d2fc0
nop
mov rcx, qword [rbp - 0x38]
call fcn.1402b9ff0
mov rcx, rax
call fcn.1402ba268
mov rcx, rax
lea rdx, str._firefoxprofile
call fcn.14015cb50
nop
cmp dword [rbp - 0x30], 0
jle 0x14015c2ae
mov rcx, qword [rbp - 0x38]
call fcn.1402b7350
cmp byte [rbx + 0x19], 0
jne 0x14015c2fe
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14015c2de
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14015c2fe
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14015c2d0
jmp 0x14015c2fe
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14015c2fb
cmp rbx, qword [rax + 0x10]
jne 0x14015c2fb
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14015c2e8
mov rbx, rax
mov rdi, qword [rsp + 0x78]
cmp rbx, rdi
jne 0x14015c270
mov rbx, qword [rdi]
cmp rbx, rbx
jne 0x14015c372
mov rsi, qword [rdi + 8]
mov rbx, rsi
cmp byte [rsi + 0x19], 0
jne 0x14015c357
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x78]
call fcn.14000a240
mov rbx, qword [rbx]
cmp dword [rsi + 0x28], 0
jle 0x14015c341
mov rcx, qword [rsi + 0x20]
call fcn.1402b7350
mov rcx, rsi
call fcn.1402150f0
mov rsi, rbx
cmp byte [rbx + 0x19], 0
je 0x14015c321
mov rdi, qword [rsp + 0x78]
mov qword [rdi + 8], rdi
mov rax, qword [rsp + 0x78]
mov qword [rax], rax
mov rax, qword [rsp + 0x78]
mov qword [rax + 0x10], rax
mov qword [rbp - 0x80], r14
jmp 0x14015c3e2
cmp rbx, rdi
je 0x14015c3e7
mov r8, rbx
cmp byte [rbx + 0x19], 0
jne 0x14015c3ce
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14015c3ae
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x14015c3ce
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14015c3a0
jmp 0x14015c3ce
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14015c3cb
cmp rbx, qword [rax + 0x10]
jne 0x14015c3cb
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14015c3b8
mov rbx, rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x78]
call fcn.140008e20
cmp rbx, rdi
jne 0x14015c377
mov rdi, qword [rsp + 0x78]
mov rcx, rdi
call fcn.1402150f0
mov edx, 0x104
lea rcx, [rbp + 0x420]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov word [rbp + 0x424], r14w
lea rcx, [rbp + 0x420]
call fcn.1402ba268
mov rcx, rax
call fcn.1402b9ff0
mov rcx, rax
lea rdx, [0x140356498]
call fcn.14015cb50
lea rsi, str.hklm_softwarewow6432node
mov qword [rsp + 0x70], rsi
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x78]
mov rbx, qword [0x140428c78]
mov rcx, rbx
call fcn.140160870
mov rax, qword [rbx]
movabs rdi, 0x7fffffffffffffe
cmp qword [rsp + 0x78], rax
jne 0x14015c4d9
mov qword [rbp - 0x68], rsi
lea rax, str.hklm_software
mov qword [rbp - 0x60], rax
mov rax, qword [rbx]
mov rsi, qword [rax]
lea r9, [rbp - 0x68]
mov r8, qword [rsi + 8]
mov rdx, rsi
call fcn.140158290
mov rdx, rax
mov rax, qword [rbx + 8]
mov rcx, rdi
sub rcx, rax
cmp rcx, 1
jae 0x14015c4aa
lea rcx, str.list_T__too_long
call fcn.1402b2308
int3
inc rax
mov qword [rbx + 8], rax
mov qword [rsi + 8], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rdx
mov r9, qword [rbx]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
lea rdx, [rbp - 0x68]
mov rcx, rbx
call fcn.140160990
mov rbx, qword [0x140428c78]
lea rsi, str.hklm_softwareclasses
mov qword [rsp + 0x70], rsi
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.140160870
mov rax, qword [rbx]
lea r12, str.hkcr
cmp qword [rsp + 0x78], rax
jne 0x14015c572
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], r12
mov rsi, qword [rax]
lea r9, [rbp - 0x68]
mov r8, qword [rsi + 8]
mov rdx, rsi
call fcn.140158290
mov rdx, rax
mov rax, qword [rbx + 8]
mov rcx, rdi
sub rcx, rax
cmp rcx, 1
jae 0x14015c543
lea rcx, str.list_T__too_long
call fcn.1402b2308
int3
inc rax
mov qword [rbx + 8], rax
mov qword [rsi + 8], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rdx
mov r9, qword [rbx]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
lea rdx, [rbp - 0x68]
mov rcx, rbx
call fcn.140160990
mov rbx, qword [0x140428c78]
lea rsi, str.hklm_softwareclasseswow6432node
mov qword [rsp + 0x70], rsi
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.140160870
mov rax, qword [rbx]
cmp qword [rsp + 0x78], rax
jne 0x14015c5fa
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], r12
mov rsi, qword [rax]
lea r9, [rbp - 0x68]
mov r8, qword [rsi + 8]
mov rdx, rsi
call fcn.140158290
mov rcx, rax
mov rax, qword [rbx + 8]
sub rdi, rax
cmp rdi, 1
jae 0x14015c5d2
lea rcx, str.list_T__too_long
call fcn.1402b2308
int3
inc rax
mov qword [rbx + 8], rax
mov qword [rsi + 8], rcx
mov rax, qword [rcx + 8]
mov qword [rax], rcx
mov r9, qword [rbx]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
lea rdx, [rbp - 0x68]
mov rcx, rbx
call fcn.140160990
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140355a28]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14015c715
mov dword [rbp - 0x78], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14015c70b
mov ebx, r14d
lea r8, str.hklm_system_
mov edx, 0x110
lea rcx, [rbp + 0x200]
call fcn.1402b6e28
cmp dword [rbp - 0x78], ebx
jbe 0x14015c70b
nop dword [rax]
nop word [rax + rax]
mov r9d, 0x104
lea r8, [rbp + 0x218]
mov edx, ebx
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc ebx
test eax, eax
jne 0x14015c6ff
lea r8d, [rax + 0xb]
lea rdx, str.controlset0
lea rcx, [rbp + 0x218]
call fcn.1402b9158
test eax, eax
jne 0x14015c706
lea rcx, [rbp + 0x200]
call fcn.1402b9ff0
mov rcx, rax
call fcn.1402ba268
mov rcx, rax
lea rdx, str.hklm_systemcurrentcontrolset
call fcn.14015cb50
jmp 0x14015c706
cmp eax, 0x103
je 0x14015c70b
cmp ebx, dword [rbp - 0x78]
jb 0x14015c6a0
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp - 0x70], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14015c91a
lea r8, str.hku_
mov edx, pe_nt_image_headers64
lea rcx, [rbp + 0x200]
call fcn.1402b6e28
lea rbx, str._classes
cmp dword [rbp - 0x70], 0
jbe 0x14015c91a
nop dword [rax + rax]
mov r9d, 0x104
lea r8, [rbp + 0x208]
mov edx, r14d
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc r14d
test eax, eax
jne 0x14015c909
lea rcx, [rbp + 0x200]
call fcn.1402b9ff0
mov rcx, rax
call fcn.1402ba268
mov r8, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x14015c7d3
cmp ecx, 8
jle 0x14015c837
lea eax, [rcx - 8]
movsxd rcx, eax
lea rdx, [r8 + rcx*2]
or rcx, 0xffffffffffffffff
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [rbx + rcx*2 + 2]
jne 0x14015c837
add rcx, 2
cmp rcx, 9
je 0x14015c812
movzx eax, word [rdx + rcx*2]
cmp ax, word [rbx + rcx*2]
jne 0x14015c837
jmp 0x14015c7f0
mov rdx, r12
mov rcx, r8
call fcn.14015cb50
lea r8, [rbp + 0x200]
mov edx, pe_nt_image_headers64
lea rcx, [rbp - 0x10]
call fcn.1402b6e28
jmp 0x14015c8d6
lea rdx, str.hkcu
mov rcx, r8
call fcn.14015cb50
lea r8, [rbp + 0x200]
mov edx, pe_nt_image_headers64
lea rcx, [rbp - 0x10]
call fcn.1402b6e28
lea r8, str._softwarewow6432node
mov edx, pe_nt_image_headers64
lea rcx, [rbp - 0x10]
call fcn.1402b9308
lea rcx, [rbp - 0x10]
call fcn.1402b9ff0
mov rcx, rax
call fcn.1402ba268
mov rcx, rax
lea rdx, str.hkcu_software
call fcn.14015cb50
lea r8, [rbp + 0x200]
mov edx, pe_nt_image_headers64
lea rcx, [rbp - 0x10]
call fcn.1402b6e28
lea r8, str._softwareclasses
mov edx, pe_nt_image_headers64
lea rcx, [rbp - 0x10]
call fcn.1402b9308
lea rcx, [rbp - 0x10]
call fcn.1402b9ff0
mov rcx, rax
call fcn.1402ba268
mov rcx, rax
mov rdx, r12
call fcn.14015cb50
lea r8, str.wow6432node
mov edx, pe_nt_image_headers64
lea rcx, [rbp - 0x10]
call fcn.1402b9308
lea rcx, [rbp - 0x10]
call fcn.1402b9ff0
mov rcx, rax
call fcn.1402ba268
mov rcx, rax
mov rdx, r12
call fcn.14015cb50
jmp 0x14015c910
cmp eax, 0x103
je 0x14015c91a
cmp r14d, dword [rbp - 0x70]
jb 0x14015c790
test r15, r15
je 0x14015c928
mov rcx, r15
call fcn.1401602c0
nop
mov r8, qword [rbp - 0x58]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x58]
call fcn.140009350
mov rcx, qword [rbp - 0x58]
call fcn.1402150f0
mov al, 1
mov rcx, qword [rbp + 0x840]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x950]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret