Function at 0x1401f6140
Capabilities:
Get common file path
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x538]
sub rsp, 0x610
mov qword [rbp + 0x90], 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 + 0x500], rax
mov qword [rbp + 0x10], rdx
mov rsi, rcx
xor r14b, r14b
mov byte [rsp + 0x30], r14b
mov rdx, qword [rcx]
lea rcx, str.RepairLSPCatalog__ws_r_n
call fcn.1402b7a88
mov edx, 0x104
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [rbp + 0x2f0]
or rbx, 0xffffffffffffffff
mov rdi, rbx
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1401f61c0
xor r15d, r15d
mov qword [rsp + 0x78], r15
lea r12, [0x140346ce0]
test edi, edi
jne 0x1401f61e4
mov qword [rsp + 0x70], r12
jmp 0x1401f620d
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.1401fcb40
movsxd r9, edi
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x2f0]
mov rcx, qword [rsp + 0x70]
call fcn.1402ba94c
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.1401fde50
nop
mov edx, 0x104
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea rax, [rbp + 0x2f0]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f6233
mov qword [rbp - 0x78], r15
test ebx, ebx
jne 0x1401f624b
mov qword [rbp - 0x80], r12
jmp 0x1401f6271
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rbp - 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x2f0]
mov rcx, qword [rbp - 0x80]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.1401fde50
nop
mov r9, qword [rsi]
lea r8, str.SYSTEMCurrentControlSetServicesWinSock2Parameters
lea rdx, [0x1403673b8]
lea rcx, [rbp + 0x18]
call fcn.1401fcfe0
nop
mov eax, dword [0x140429a18]
lea rsi, vtable.Core::Win32::RegistryKey.0
test al, 1
jne 0x1401f62d0
or eax, 1
mov dword [0x140429a18], eax
mov qword [0x1404299f0], rsi
mov qword [0x1404299f8], 0xffffffff80000002
lea rcx, [0x1402fedc0]
call fcn.1402b8a74
mov qword [rbp - 0x40], r15
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rbp + 0x18]
mov rcx, qword [0x1404299f8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401f6991
lea ecx, [rax + 0x10]
call fcn.1402b6dbc
mov r13, rax
mov qword [rbp - 0x48], rax
test rax, rax
je 0x1401f6321
mov rax, qword [rbp - 0x40]
mov qword [r13], rsi
mov qword [r13 + 8], rax
jmp 0x1401f6328
mov r13, r15
mov qword [rbp - 0x48], r15
test r13, r13
je 0x1401f6991
lea rax, str.Catalog_Entries
mov qword [rbp + 0x28], rax
lea rax, str.Catalog_Entries64
mov qword [rbp + 0x30], rax
xor r14d, r14d
mov dword [rsp + 0x58], r14d
mov r15d, r14d
mov qword [rbp - 0x68], r14
lea edi, [r14 + 1]
nop word [rax + rax]
mov rbx, qword [rbp + r15*8 + 0x28]
mov qword [rbp - 0x38], r14
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401f63ab
lea ecx, [rax + 0x10]
call fcn.1402b6dbc
mov r12, rax
test rax, rax
je 0x1401f63ab
mov rax, qword [rbp - 0x38]
mov qword [r12], rsi
mov qword [r12 + 8], rax
jmp 0x1401f63ae
mov r12, r14
test r12, r12
je 0x1401f695f
xor sil, sil
mov dword [rsp + 0x48], esi
lea rax, vtable.Core::Array_class_Core::String_.0
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], r14d
mov qword [rbp - 0x18], r14
lea rdx, [rbp - 0x28]
mov rcx, r12
call fcn.1400ea910
mov edi, dword [rbp - 0x20]
test al, al
je 0x1401f647f
mov r8, rbx
lea rdx, str.Num_
lea rcx, [rbp + 0x50]
call fcn.1401fb9f0
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x50], 4
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x38]
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x1401f6446
xor al, al
mov r14d, dword [rbp - 0x70]
jmp 0x1401f6451
mov r14d, dword [rsp + 0x34]
mov dword [rbp - 0x70], r14d
mov al, 1
test al, al
sete bl
cmp dword [rbp + 0x58], 0
jle 0x1401f6465
mov rcx, qword [rbp + 0x50]
call fcn.1402b7350
test bl, bl
jne 0x1401f647c
movzx esi, sil
cmp r14d, edi
mov eax, 1
cmovne esi, eax
mov dword [rsp + 0x48], esi
xor r14d, r14d
test edi, edi
jle 0x1401f67fb
mov r15, qword [rbp - 0x18]
mov qword [rbp - 0x30], rdi
nop
mov qword [rsp + 0x50], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, qword [r12 + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401f64df
lea ecx, [rax + 0x10]
call fcn.1402b6dbc
mov rdi, rax
test rax, rax
je 0x1401f64df
mov rax, qword [rsp + 0x50]
lea rcx, vtable.Core::Win32::RegistryKey.0
mov qword [rdi], rcx
mov qword [rdi + 8], rax
jmp 0x1401f64e2
mov rdi, r14
test rdi, rdi
je 0x1401f67e5
xor sil, sil
lea rax, vtable.Core::ByteArray.0
mov qword [rbp + 0x60], rax
mov dword [rbp + 0x68], r14d
mov qword [rbp + 0x70], r14
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r13, rax
mov qword [rbp + 0x78], rax
xor ecx, ecx
mov dword [rsp + 0x34], ecx
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, str.PackedCatalogItem
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401f679a
cmp dword [rsp + 0x5c], 3
jne 0x1401f679a
movsxd rbx, dword [rsp + 0x34]
test ebx, ebx
je 0x1401f657a
mov r8, rbx
lea edx, [rax + 8]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
mov qword [rbp + 0x70], rax
test rax, rax
je 0x1401f679a
mov dword [rbp + 0x68], ebx
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, str.PackedCatalogItem
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401f679a
mov r8, r14
lea rdx, [0x14034fa04]
lea rcx, [rsp + 0x38]
call fcn.1401fcfe0
nop
cmp dword [rsp + 0x44], 0
je 0x1401f65d0
lea rcx, [rsp + 0x38]
call fcn.1401e7e00
mov rax, qword [rbp + 0x10]
test rax, rax
je 0x1401f6685
lea rcx, vtable.Core::Collection_class_Core::String_::Enumerator.0
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], rax
mov rbx, qword [rax + 0x10]
mov qword [rbp - 0x50], rbx
lea rax, [0x140346ce0]
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x68], rax
test rbx, rbx
je 0x1401f666a
mov edx, dword [rbx + 0x1c]
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
movsxd r9, dword [rbx + 0x1c]
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
mov r8, qword [rbx + 0x10]
mov rcx, qword [rsp + 0x60]
call fcn.1402ba94c
mov edx, dword [rbx + 0x1c]
lea rcx, [rsp + 0x60]
call fcn.1401fde50
mov rbx, qword [rbx]
mov qword [rbp - 0x50], rbx
mov eax, dword [rsp + 0x6c]
cmp dword [rsp + 0x44], eax
jne 0x1401f6607
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call fcn.1402b71dc
test eax, eax
jne 0x1401f6607
mov sil, 1
jmp 0x1401f6607
cmp dword [rsp + 0x68], 0
jle 0x1401f667c
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
nop
test sil, sil
jne 0x1401f6784
lea rdx, [rbp + 0xa0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1401f66ab
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1401f6784
cmp qword [rbp - 0x68], 0
jne 0x1401f6781
movsxd rax, dword [rsp + 0x7c]
cmp dword [rsp + 0x44], eax
jl 0x1401f6781
mov r8, rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.1402b9158
test eax, eax
jne 0x1401f6781
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x80]
call fcn.1400d44c0
nop
mov r8, rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x40]
call fcn.1400d2ba0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x38]
call fcn.1401fcb40
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rsp + 0x40]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x38]
call fcn.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x38]
call fcn.1401fde50
nop
cmp dword [rbp + 0x48], 0
jle 0x1401f6749
mov rcx, qword [rbp + 0x40]
call fcn.1402b7350
nop
cmp dword [rbp + 0x88], 0
jle 0x1401f675e
mov rcx, qword [rbp + 0x80]
call fcn.1402b7350
lea rdx, [rbp + 0xa0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1401f6781
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1401f6784
mov sil, 1
cmp dword [rsp + 0x40], 0
jle 0x1401f6795
mov rcx, qword [rsp + 0x38]
call fcn.1402b7350
test sil, sil
je 0x1401f67bd
mov rdx, qword [r15]
lea rcx, str._tDeleting__ws_r_n
call fcn.1402b7a88
mov rdx, qword [r15]
mov rcx, r12
call fcn.1400ea6d0
mov sil, 1
mov dword [rsp + 0x48], esi
jmp 0x1401f67c1
mov esi, dword [rsp + 0x48]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
nop
test r14, r14
je 0x1401f67e2
mov r8, r14
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor r14d, r14d
add r15, 0x10
dec qword [rbp - 0x30]
jne 0x1401f6490
mov r15, qword [rbp - 0x68]
mov r13, qword [rbp - 0x48]
movzx edx, sil
lea rcx, str._tRenumber___d_r_n
call fcn.1402b7a88
test sil, sil
jne 0x1401f681a
mov byte [rsp + 0x30], 1
jmp 0x1401f691a
lea rax, vtable.Core::Array_class_Core::String_.0
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], r14d
mov qword [rbp - 0x50], r14
lea rdx, [rbp - 0x60]
mov rcx, r12
call fcn.1400ea910
mov r14, qword [rbp - 0x50]
test al, al
je 0x1401f68f4
xor ebx, ebx
mov esi, dword [rbp - 0x58]
test esi, esi
jle 0x1401f689d
mov rdi, r14
nop dword [rax]
nop word [rax + rax]
inc ebx
mov r8d, ebx
lea rdx, str._012u
lea rcx, [rbp - 0x10]
call fcn.1401fcfe0
nop
lea r8, [rbp - 0x10]
mov rdx, rdi
mov rcx, r12
call fcn.1401b1c10
nop
cmp dword [rbp - 8], 0
jle 0x1401f6895
mov rcx, qword [rbp - 0x10]
call fcn.1402b7350
add rdi, 0x10
cmp ebx, esi
jl 0x1401f6860
mov r8, qword [rbp + r15*8 + 0x28]
lea rdx, str.Num_
lea rcx, [rbp]
call fcn.1401fb9f0
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp]
mov rcx, qword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [rsp + 0x30], 1
cmp dword [rbp + 8], 0
jle 0x1401f68f4
mov rcx, qword [rbp]
call fcn.1402b7350
nop
test r14, r14
je 0x1401f691a
lea r9, [fcn.140005eb0]
mov r8d, dword [r14 - 8]
mov edx, 0x10
mov rcx, r14
call fcn.1402b7cf4
lea rcx, [r14 - 8]
call fcn.1402b712c
mov rax, qword [r12]
mov edi, 1
mov edx, edi
mov rcx, r12
call qword [rax]
nop
mov rax, qword [rbp - 0x18]
test rax, rax
je 0x1401f6955
lea rbx, [rax - 8]
lea r9, [fcn.140005eb0]
mov r8d, dword [rbx]
lea edx, [rdi + 0xf]
mov rcx, rax
call fcn.1402b7cf4
mov rcx, rbx
call fcn.1402b712c
lea rsi, vtable.Core::Win32::RegistryKey.0
xor r14d, r14d
mov r12d, dword [rsp + 0x58]
inc r12d
mov dword [rsp + 0x58], r12d
inc r15
mov qword [rbp - 0x68], r15
movsxd rax, r12d
cmp rax, 2
jb 0x1401f6360
mov rax, qword [r13]
mov edx, edi
mov rcx, r13
call qword [rax]
movzx r14d, byte [rsp + 0x30]
cmp dword [rbp + 0x20], 0
jle 0x1401f69a1
mov rcx, qword [rbp + 0x18]
call fcn.1402b7350
nop
cmp dword [rbp - 0x78], 0
jle 0x1401f69b1
mov rcx, qword [rbp - 0x80]
call fcn.1402b7350
nop
cmp dword [rsp + 0x78], 0
jle 0x1401f69c2
mov rcx, qword [rsp + 0x70]
call fcn.1402b7350
movzx eax, r14b
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x610]
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