Function at 0x1401f8860
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 [0x140418a10]
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.1402ba358
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 0x1401f88e0
xor r15d, r15d
mov qword [rsp + 0x78], r15
lea r12, [0x140348ca0]
test edi, edi
jne 0x1401f8904
mov qword [rsp + 0x70], r12
jmp 0x1401f892d
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.1401ff260
movsxd r9, edi
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x2f0]
mov rcx, qword [rsp + 0x70]
call fcn.1402bd21c
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.140200570
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 0x1401f8953
mov qword [rbp - 0x78], r15
test ebx, ebx
jne 0x1401f896b
mov qword [rbp - 0x80], r12
jmp 0x1401f8991
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rbp - 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x2f0]
mov rcx, qword [rbp - 0x80]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.140200570
nop
mov r9, qword [rsi]
lea r8, str.SYSTEMCurrentControlSetServicesWinSock2Parameters
lea rdx, [0x140369c78]
lea rcx, [rbp + 0x18]
call fcn.1401ff700
nop
mov eax, dword [0x14042c9e0]
lea rsi, vtable.Core::Win32::RegistryKey.0
test al, 1
jne 0x1401f89f0
or eax, 1
mov dword [0x14042c9e0], eax
mov qword [0x14042c9e8], rsi
mov qword [0x14042c9f0], 0xffffffff80000002
lea rcx, [0x1403017d0]
call fcn.1402bb344
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 [0x14042c9f0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401f90b1
lea ecx, [rax + 0x10]
call fcn.1402b968c
mov r13, rax
mov qword [rbp - 0x48], rax
test rax, rax
je 0x1401f8a41
mov rax, qword [rbp - 0x40]
mov qword [r13], rsi
mov qword [r13 + 8], rax
jmp 0x1401f8a48
mov r13, r15
mov qword [rbp - 0x48], r15
test r13, r13
je 0x1401f90b1
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 0x1401f8acb
lea ecx, [rax + 0x10]
call fcn.1402b968c
mov r12, rax
test rax, rax
je 0x1401f8acb
mov rax, qword [rbp - 0x38]
mov qword [r12], rsi
mov qword [r12 + 8], rax
jmp 0x1401f8ace
mov r12, r14
test r12, r12
je 0x1401f907f
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.1400ebbb0
mov edi, dword [rbp - 0x20]
test al, al
je 0x1401f8b9f
mov r8, rbx
lea rdx, str.Num_
lea rcx, [rbp + 0x50]
call fcn.1401fe110
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 0x1401f8b66
xor al, al
mov r14d, dword [rbp - 0x70]
jmp 0x1401f8b71
mov r14d, dword [rsp + 0x34]
mov dword [rbp - 0x70], r14d
mov al, 1
test al, al
sete bl
cmp dword [rbp + 0x58], 0
jle 0x1401f8b85
mov rcx, qword [rbp + 0x50]
call fcn.1402b9c20
test bl, bl
jne 0x1401f8b9c
movzx esi, sil
cmp r14d, edi
mov eax, 1
cmovne esi, eax
mov dword [rsp + 0x48], esi
xor r14d, r14d
test edi, edi
jle 0x1401f8f1b
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 0x1401f8bff
lea ecx, [rax + 0x10]
call fcn.1402b968c
mov rdi, rax
test rax, rax
je 0x1401f8bff
mov rax, qword [rsp + 0x50]
lea rcx, vtable.Core::Win32::RegistryKey.0
mov qword [rdi], rcx
mov qword [rdi + 8], rax
jmp 0x1401f8c02
mov rdi, r14
test rdi, rdi
je 0x1401f8f05
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 0x1401f8eba
cmp dword [rsp + 0x5c], 3
jne 0x1401f8eba
movsxd rbx, dword [rsp + 0x34]
test ebx, ebx
je 0x1401f8c9a
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 0x1401f8eba
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 0x1401f8eba
mov r8, r14
lea rdx, [0x1403519d4]
lea rcx, [rsp + 0x38]
call fcn.1401ff700
nop
cmp dword [rsp + 0x44], 0
je 0x1401f8cf0
lea rcx, [rsp + 0x38]
call fcn.1401ea500
mov rax, qword [rbp + 0x10]
test rax, rax
je 0x1401f8da5
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, [0x140348ca0]
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x68], rax
test rbx, rbx
je 0x1401f8d8a
mov edx, dword [rbx + 0x1c]
lea rcx, [rsp + 0x60]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbx + 0x1c]
lea rcx, [rsp + 0x60]
call fcn.140200570
mov rbx, qword [rbx]
mov qword [rbp - 0x50], rbx
mov eax, dword [rsp + 0x6c]
cmp dword [rsp + 0x44], eax
jne 0x1401f8d27
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call fcn.1402b9aac
test eax, eax
jne 0x1401f8d27
mov sil, 1
jmp 0x1401f8d27
cmp dword [rsp + 0x68], 0
jle 0x1401f8d9c
mov rcx, qword [rsp + 0x60]
call fcn.1402b9c20
nop
test sil, sil
jne 0x1401f8ea4
lea rdx, [rbp + 0xa0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1401f8dcb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1401f8ea4
cmp qword [rbp - 0x68], 0
jne 0x1401f8ea1
movsxd rax, dword [rsp + 0x7c]
cmp dword [rsp + 0x44], eax
jl 0x1401f8ea1
mov r8, rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.1402bba28
test eax, eax
jne 0x1401f8ea1
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x80]
call fcn.1400d44f0
nop
mov r8, rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x40]
call fcn.1400d2bd0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x38]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x38]
call fcn.140200570
nop
cmp dword [rbp + 0x48], 0
jle 0x1401f8e69
mov rcx, qword [rbp + 0x40]
call fcn.1402b9c20
nop
cmp dword [rbp + 0x88], 0
jle 0x1401f8e7e
mov rcx, qword [rbp + 0x80]
call fcn.1402b9c20
lea rdx, [rbp + 0xa0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1401f8ea1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1401f8ea4
mov sil, 1
cmp dword [rsp + 0x40], 0
jle 0x1401f8eb5
mov rcx, qword [rsp + 0x38]
call fcn.1402b9c20
test sil, sil
je 0x1401f8edd
mov rdx, qword [r15]
lea rcx, str._tDeleting__ws_r_n
call fcn.1402ba358
mov rdx, qword [r15]
mov rcx, r12
call fcn.1400eb970
mov sil, 1
mov dword [rsp + 0x48], esi
jmp 0x1401f8ee1
mov esi, dword [rsp + 0x48]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
nop
test r14, r14
je 0x1401f8f02
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 0x1401f8bb0
mov r15, qword [rbp - 0x68]
mov r13, qword [rbp - 0x48]
movzx edx, sil
lea rcx, str._tRenumber___d_r_n
call fcn.1402ba358
test sil, sil
jne 0x1401f8f3a
mov byte [rsp + 0x30], 1
jmp 0x1401f903a
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.1400ebbb0
mov r14, qword [rbp - 0x50]
test al, al
je 0x1401f9014
xor ebx, ebx
mov esi, dword [rbp - 0x58]
test esi, esi
jle 0x1401f8fbd
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.1401ff700
nop
lea r8, [rbp - 0x10]
mov rdx, rdi
mov rcx, r12
call fcn.1401b3250
nop
cmp dword [rbp - 8], 0
jle 0x1401f8fb5
mov rcx, qword [rbp - 0x10]
call fcn.1402b9c20
add rdi, 0x10
cmp ebx, esi
jl 0x1401f8f80
mov r8, qword [rbp + r15*8 + 0x28]
lea rdx, str.Num_
lea rcx, [rbp]
call fcn.1401fe110
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 0x1401f9014
mov rcx, qword [rbp]
call fcn.1402b9c20
nop
test r14, r14
je 0x1401f903a
lea r9, [fcn.140005eb0]
mov r8d, dword [r14 - 8]
mov edx, 0x10
mov rcx, r14
call fcn.1402ba5c4
lea rcx, [r14 - 8]
call fcn.1402b99fc
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 0x1401f9075
lea rbx, [rax - 8]
lea r9, [fcn.140005eb0]
mov r8d, dword [rbx]
lea edx, [rdi + 0xf]
mov rcx, rax
call fcn.1402ba5c4
mov rcx, rbx
call fcn.1402b99fc
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 0x1401f8a80
mov rax, qword [r13]
mov edx, edi
mov rcx, r13
call qword [rax]
movzx r14d, byte [rsp + 0x30]
cmp dword [rbp + 0x20], 0
jle 0x1401f90c1
mov rcx, qword [rbp + 0x18]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x78], 0
jle 0x1401f90d1
mov rcx, qword [rbp - 0x80]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x78], 0
jle 0x1401f90e2
mov rcx, qword [rsp + 0x70]
call fcn.1402b9c20
movzx eax, r14b
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.1402b9610
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