Function at 0x1401fbea0
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 [0x14041da10]
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.1402bd818
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 0x1401fbf20
xor r15d, r15d
mov qword [rsp + 0x78], r15
lea r12, [0x14034d1a0]
test edi, edi
jne 0x1401fbf44
mov qword [rsp + 0x70], r12
jmp 0x1401fbf6d
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.1402028a0
movsxd r9, edi
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x2f0]
mov rcx, qword [rsp + 0x70]
call fcn.1402c06dc
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.140203bb0
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 0x1401fbf93
mov qword [rbp - 0x78], r15
test ebx, ebx
jne 0x1401fbfab
mov qword [rbp - 0x80], r12
jmp 0x1401fbfd1
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rbp - 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x2f0]
mov rcx, qword [rbp - 0x80]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.140203bb0
nop
mov r9, qword [rsi]
lea r8, str.SYSTEMCurrentControlSetServicesWinSock2Parameters
lea rdx, [0x14036e798]
lea rcx, [rbp + 0x18]
call fcn.140202d40
nop
mov eax, dword [0x140431ac0]
lea rsi, vtable.Core::Win32::RegistryKey.0
test al, 1
jne 0x1401fc030
or eax, 1
mov dword [0x140431ac0], eax
mov qword [0x140431ac8], rsi
mov qword [0x140431ad0], 0xffffffff80000002
lea rcx, [0x1403050b0]
call fcn.1402be804
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 [0x140431ad0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401fc6f1
lea ecx, [rax + 0x10]
call fcn.1402bcb4c
mov r13, rax
mov qword [rbp - 0x48], rax
test rax, rax
je 0x1401fc081
mov rax, qword [rbp - 0x40]
mov qword [r13], rsi
mov qword [r13 + 8], rax
jmp 0x1401fc088
mov r13, r15
mov qword [rbp - 0x48], r15
test r13, r13
je 0x1401fc6f1
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 0x1401fc10b
lea ecx, [rax + 0x10]
call fcn.1402bcb4c
mov r12, rax
test rax, rax
je 0x1401fc10b
mov rax, qword [rbp - 0x38]
mov qword [r12], rsi
mov qword [r12 + 8], rax
jmp 0x1401fc10e
mov r12, r14
test r12, r12
je 0x1401fc6bf
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.1400ed120
mov edi, dword [rbp - 0x20]
test al, al
je 0x1401fc1df
mov r8, rbx
lea rdx, str.Num_
lea rcx, [rbp + 0x50]
call fcn.140201750
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 0x1401fc1a6
xor al, al
mov r14d, dword [rbp - 0x70]
jmp 0x1401fc1b1
mov r14d, dword [rsp + 0x34]
mov dword [rbp - 0x70], r14d
mov al, 1
test al, al
sete bl
cmp dword [rbp + 0x58], 0
jle 0x1401fc1c5
mov rcx, qword [rbp + 0x50]
call fcn.1402bd0e0
test bl, bl
jne 0x1401fc1dc
movzx esi, sil
cmp r14d, edi
mov eax, 1
cmovne esi, eax
mov dword [rsp + 0x48], esi
xor r14d, r14d
test edi, edi
jle 0x1401fc55b
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 0x1401fc23f
lea ecx, [rax + 0x10]
call fcn.1402bcb4c
mov rdi, rax
test rax, rax
je 0x1401fc23f
mov rax, qword [rsp + 0x50]
lea rcx, vtable.Core::Win32::RegistryKey.0
mov qword [rdi], rcx
mov qword [rdi + 8], rax
jmp 0x1401fc242
mov rdi, r14
test rdi, rdi
je 0x1401fc545
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 0x1401fc4fa
cmp dword [rsp + 0x5c], 3
jne 0x1401fc4fa
movsxd rbx, dword [rsp + 0x34]
test ebx, ebx
je 0x1401fc2da
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 0x1401fc4fa
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 0x1401fc4fa
mov r8, r14
lea rdx, [0x140355878]
lea rcx, [rsp + 0x38]
call fcn.140202d40
nop
cmp dword [rsp + 0x44], 0
je 0x1401fc330
lea rcx, [rsp + 0x38]
call fcn.1401edb40
mov rax, qword [rbp + 0x10]
test rax, rax
je 0x1401fc3e5
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, [0x14034d1a0]
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x68], rax
test rbx, rbx
je 0x1401fc3ca
mov edx, dword [rbx + 0x1c]
lea rcx, [rsp + 0x60]
call fcn.1402028a0
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.1402c06dc
mov edx, dword [rbx + 0x1c]
lea rcx, [rsp + 0x60]
call fcn.140203bb0
mov rbx, qword [rbx]
mov qword [rbp - 0x50], rbx
mov eax, dword [rsp + 0x6c]
cmp dword [rsp + 0x44], eax
jne 0x1401fc367
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call fcn.1402bcf6c
test eax, eax
jne 0x1401fc367
mov sil, 1
jmp 0x1401fc367
cmp dword [rsp + 0x68], 0
jle 0x1401fc3dc
mov rcx, qword [rsp + 0x60]
call fcn.1402bd0e0
nop
test sil, sil
jne 0x1401fc4e4
lea rdx, [rbp + 0xa0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1401fc40b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1401fc4e4
cmp qword [rbp - 0x68], 0
jne 0x1401fc4e1
movsxd rax, dword [rsp + 0x7c]
cmp dword [rsp + 0x44], eax
jl 0x1401fc4e1
mov r8, rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.1402beee8
test eax, eax
jne 0x1401fc4e1
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x80]
call fcn.1400d5970
nop
mov r8, rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x40]
call fcn.1400d4050
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x38]
call fcn.1402028a0
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.1402c06dc
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x38]
call fcn.140203bb0
nop
cmp dword [rbp + 0x48], 0
jle 0x1401fc4a9
mov rcx, qword [rbp + 0x40]
call fcn.1402bd0e0
nop
cmp dword [rbp + 0x88], 0
jle 0x1401fc4be
mov rcx, qword [rbp + 0x80]
call fcn.1402bd0e0
lea rdx, [rbp + 0xa0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1401fc4e1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1401fc4e4
mov sil, 1
cmp dword [rsp + 0x40], 0
jle 0x1401fc4f5
mov rcx, qword [rsp + 0x38]
call fcn.1402bd0e0
test sil, sil
je 0x1401fc51d
mov rdx, qword [r15]
lea rcx, str._tDeleting__ws_r_n
call fcn.1402bd818
mov rdx, qword [r15]
mov rcx, r12
call fcn.1400ecee0
mov sil, 1
mov dword [rsp + 0x48], esi
jmp 0x1401fc521
mov esi, dword [rsp + 0x48]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
nop
test r14, r14
je 0x1401fc542
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 0x1401fc1f0
mov r15, qword [rbp - 0x68]
mov r13, qword [rbp - 0x48]
movzx edx, sil
lea rcx, str._tRenumber___d_r_n
call fcn.1402bd818
test sil, sil
jne 0x1401fc57a
mov byte [rsp + 0x30], 1
jmp 0x1401fc67a
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.1400ed120
mov r14, qword [rbp - 0x50]
test al, al
je 0x1401fc654
xor ebx, ebx
mov esi, dword [rbp - 0x58]
test esi, esi
jle 0x1401fc5fd
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.140202d40
nop
lea r8, [rbp - 0x10]
mov rdx, rdi
mov rcx, r12
call fcn.1401b52b0
nop
cmp dword [rbp - 8], 0
jle 0x1401fc5f5
mov rcx, qword [rbp - 0x10]
call fcn.1402bd0e0
add rdi, 0x10
cmp ebx, esi
jl 0x1401fc5c0
mov r8, qword [rbp + r15*8 + 0x28]
lea rdx, str.Num_
lea rcx, [rbp]
call fcn.140201750
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 0x1401fc654
mov rcx, qword [rbp]
call fcn.1402bd0e0
nop
test r14, r14
je 0x1401fc67a
lea r9, [fcn.140005eb0]
mov r8d, dword [r14 - 8]
mov edx, 0x10
mov rcx, r14
call fcn.1402bda84
lea rcx, [r14 - 8]
call fcn.1402bcebc
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 0x1401fc6b5
lea rbx, [rax - 8]
lea r9, [fcn.140005eb0]
mov r8d, dword [rbx]
lea edx, [rdi + 0xf]
mov rcx, rax
call fcn.1402bda84
mov rcx, rbx
call fcn.1402bcebc
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 0x1401fc0c0
mov rax, qword [r13]
mov edx, edi
mov rcx, r13
call qword [rax]
movzx r14d, byte [rsp + 0x30]
cmp dword [rbp + 0x20], 0
jle 0x1401fc701
mov rcx, qword [rbp + 0x18]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x78], 0
jle 0x1401fc711
mov rcx, qword [rbp - 0x80]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x78], 0
jle 0x1401fc722
mov rcx, qword [rsp + 0x70]
call fcn.1402bd0e0
movzx eax, r14b
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.1402bcad0
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