Function at 0x1401ef5e0
Capabilities:
Get common file path
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xcb8]
sub rsp, 0xd90
mov qword [rbp + 0x40], 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 + 0xc80], rax
mov r13, rcx
xor r12d, r12d
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
call fcn.14000a340
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
call fcn.14000a380
mov qword [rbp - 0x68], rax
lea r8, [rbp]
lea rdx, str.SYSTEMCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1401efdd0
mov dword [rbp - 0x74], r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x74]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov r15d, r12d
cmp dword [rbp - 0x74], r12d
jbe 0x1401efdc6
lea rdi, [0x140346ce0]
lea r14, str.Unknown
nop dword [rax]
nop dword [rax + rax]
mov r9d, 0x100
lea r8, [rbp + 0x70]
mov edx, r15d
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc r15d
test eax, eax
jne 0x1401efdb5
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 9
xor r8d, r8d
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401efdbc
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r12
lea rax, [rbp + 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401ef730
mov qword [rbp - 0x18], r12
test ebx, ebx
jne 0x1401ef748
mov qword [rbp - 0x20], rdi
jmp 0x1401ef76b
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rbp - 0x18]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rbp - 0x20]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.1401fde50
nop
movzx eax, byte [0x14042918a]
mov byte [rsp + 0x20], al
lea r9, [rbp - 0x20]
lea rdx, [rbp + 0x58]
lea rcx, [rbp - 0x40]
call fcn.1400e8550
nop
cmp dword [rbp - 0x18], 0
jle 0x1401ef7a3
mov rcx, qword [rbp - 0x20]
call fcn.1402b7350
mov dword [rbp - 0x78], r12d
mov dword [rbp - 0x70], 0x800
mov dword [rbp - 0x50], 4
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x78]
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401efd97
lea rax, [rbp + 0x70]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401ef7f0
mov qword [rbp + 0x20], r12
test ebx, ebx
jne 0x1401ef808
mov qword [rbp + 0x18], rdi
jmp 0x1401ef82b
mov edx, ebx
lea rcx, [rbp + 0x18]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rbp + 0x20]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rbp + 0x18]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rbp + 0x18]
call fcn.1401fde50
mov eax, dword [rbp - 0x4c]
mov dword [rbp + 0x28], eax
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x68]
call fcn.14018b730
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x48]
lea rcx, [rbp - 0x68]
call fcn.14000a620
nop
cmp dword [rbp + 0x20], 0
jle 0x1401ef86f
mov rcx, qword [rbp + 0x18]
call fcn.1402b7350
mov eax, dword [rbp - 0x4c]
test eax, eax
jne 0x1401ef87f
lea rsi, str.Boot
jmp 0x1401ef8b7
cmp eax, 1
jne 0x1401ef88d
lea rsi, str.System
jmp 0x1401ef8b7
cmp eax, 2
jne 0x1401ef89b
lea rsi, str.AutoLoad
jmp 0x1401ef8b7
cmp eax, 3
jne 0x1401ef8a9
lea rsi, str.Manual
jmp 0x1401ef8b7
lea rsi, [0x14034fa58]
cmp eax, 4
cmovne rsi, r14
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x480]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x78]
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401efd97
lea rax, [rbp + 0x480]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401ef900
test ebx, ebx
jle 0x1401ef939
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x480]
mov rcx, qword [rsp + 0x60]
call fcn.1402ba94c
jmp 0x1401ef940
cmp dword [rsp + 0x6c], 0
jle 0x1401ef94c
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1401fde50
xor r14b, r14b
mov dword [rbp - 0x80], r12d
mov dword [rbp - 0x70], 4
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.WOW64
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401ef98e
cmp dword [rbp - 0x80], eax
setne r14b
cmp dword [rsp + 0x6c], 0
jle 0x1401ef9ce
lea rcx, [rsp + 0x60]
call fcn.1401ef160
test r14b, r14b
je 0x1401ef9ce
mov edx, 0x104
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jle 0x1401ef9ce
mov r8d, eax
lea rdx, [rbp + 0x270]
lea rcx, [rsp + 0x60]
call fcn.1401ef540
mov qword [rsp + 0x78], r12
mov edx, 5
lea rcx, [rsp + 0x70]
call fcn.1401fcb40
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
mov r9d, 5
lea r8, str.HKLM_
mov rcx, qword [rsp + 0x70]
call fcn.1402ba94c
mov edx, 5
lea rcx, [rsp + 0x70]
call fcn.1401fde50
nop
lea rdx, str.SYSTEMCurrentControlSetServices
lea rcx, [rsp + 0x70]
call fcn.1401fb190
mov edx, dword [rsp + 0x7c]
inc edx
lea rcx, [rsp + 0x70]
call fcn.1401fcb40
movsxd rcx, dword [rsp + 0x7c]
mov rax, qword [rsp + 0x70]
mov ebx, 0x5c
mov word [rax + rcx*2], bx
mov edx, dword [rsp + 0x7c]
inc edx
lea rcx, [rsp + 0x70]
call fcn.1401fde50
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.1401fb190
mov edx, dword [rsp + 0x7c]
inc edx
lea rcx, [rsp + 0x70]
call fcn.1401fcb40
movsxd rcx, dword [rsp + 0x7c]
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov edx, dword [rsp + 0x7c]
inc edx
lea rcx, [rsp + 0x70]
call fcn.1401fde50
cmp dword [rsp + 0x6c], 0
jle 0x1401efb7d
mov r8b, 1
lea rdx, [rsp + 0x60]
mov rcx, qword [r13 + 8]
call fcn.1400f8340
mov rdi, rax
test rax, rax
je 0x1401efb7d
or qword [rax + 0x40], 0x200
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1400eb2a0
lea rax, [rbp + 0x70]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401efae0
mov qword [rbp - 0x28], r12
test ebx, ebx
jne 0x1401efaff
lea rax, [0x140346ce0]
mov qword [rbp - 0x30], rax
jmp 0x1401efb22
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rbp - 0x28]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rbp - 0x30]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.1401fde50
nop
lea r8, [rbp - 0x30]
mov edx, 8
mov rcx, rdi
call fcn.14000b8f0
nop
cmp dword [rbp - 0x28], 0
jle 0x1401efb4f
mov rcx, qword [rbp - 0x30]
call fcn.1402b7350
mov rdx, rsi
lea rcx, [rbp + 0x30]
call fcn.1401faae0
nop
lea r8, [rbp + 0x30]
mov edx, 9
mov rcx, rdi
call fcn.14000b8f0
nop
cmp dword [rbp + 0x38], 0
jle 0x1401efb7d
mov rcx, qword [rbp + 0x30]
call fcn.1402b7350
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Parameters
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401efd78
mov dword [rbp - 0x7c], 0x800
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x480]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x78]
xor r8d, r8d
lea rdx, str.ServiceDll
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401efd6d
lea rax, [rbp + 0x480]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401efbf0
test ebx, ebx
jle 0x1401efc29
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x480]
mov rcx, qword [rsp + 0x60]
call fcn.1402ba94c
jmp 0x1401efc34
cmp dword [rsp + 0x6c], 0
jle 0x1401efd6d
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1401fde50
cmp dword [rsp + 0x6c], 0
jle 0x1401efd6d
lea rcx, [rsp + 0x60]
call fcn.1401ef160
test r14b, r14b
je 0x1401efc84
mov edx, 0x104
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jle 0x1401efc84
mov r8d, eax
lea rdx, [rbp + 0x270]
lea rcx, [rsp + 0x60]
call fcn.1401ef540
cmp dword [rsp + 0x6c], 0
jle 0x1401efd6d
mov r8b, 1
lea rdx, [rsp + 0x60]
mov rcx, qword [r13 + 8]
call fcn.1400f8340
mov rdi, rax
test rax, rax
je 0x1401efd6d
or qword [rax + 0x40], 0x200
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1400eb2a0
lea rax, [rbp + 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401efcd0
mov qword [rbp - 8], r12
test ebx, ebx
jne 0x1401efcef
lea rax, [0x140346ce0]
mov qword [rbp - 0x10], rax
jmp 0x1401efd12
mov edx, ebx
lea rcx, [rbp - 0x10]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rbp - 8]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rbp - 0x10]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rbp - 0x10]
call fcn.1401fde50
nop
lea r8, [rbp - 0x10]
mov edx, 8
mov rcx, rdi
call fcn.14000b8f0
nop
cmp dword [rbp - 8], 0
jle 0x1401efd3f
mov rcx, qword [rbp - 0x10]
call fcn.1402b7350
mov rdx, rsi
lea rcx, [rbp + 8]
call fcn.1401faae0
nop
lea r8, [rbp + 8]
mov edx, 9
mov rcx, rdi
call fcn.14000b8f0
nop
cmp dword [rbp + 0x10], 0
jle 0x1401efd6d
mov rcx, qword [rbp + 8]
call fcn.1402b7350
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x78], 0
jle 0x1401efd89
mov rcx, qword [rsp + 0x70]
call fcn.1402b7350
lea r14, str.Unknown
lea rdi, [0x140346ce0]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x68], 0
jle 0x1401efdbc
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
jmp 0x1401efdbc
cmp eax, 0x103
je 0x1401efdc6
cmp r15d, dword [rbp - 0x74]
jb 0x1401ef6d0
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x140429a18]
lea rbx, vtable.Core::Win32::RegistryKey.0
test al, 1
jne 0x1401efe08
or eax, 1
mov dword [0x140429a18], eax
mov qword [0x1404299f0], rbx
mov qword [0x1404299f8], 0xffffffff80000002
lea rcx, [0x1402fedc0]
call fcn.1402b8a74
mov qword [rbp - 0x58], r12
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMSelect
mov rcx, qword [0x1404299f8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401efeda
lea ecx, [rax + 0x10]
call fcn.1402b6dbc
mov rdi, rax
test rax, rax
je 0x1401efeda
mov rcx, qword [rbp - 0x58]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov dword [rbp - 0x80], r12d
mov dword [rbp - 0x7c], 4
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
xor r8d, r8d
lea rdx, str.Current
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1401efecc
mov r8d, dword [rbp - 0x80]
lea rdx, str.ControlSet_03d
lea rcx, [rbp + 8]
call fcn.1401fcfe0
nop
lea r8, [rbp - 0x68]
lea rdx, [rbp + 8]
mov rcx, r13
call fcn.1401f0060
nop
cmp dword [rbp + 0x10], ebx
jle 0x1401efecc
mov rcx, qword [rbp + 8]
call fcn.1402b7350
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
nop
mov rdi, qword [rbp - 0x68]
mov rbx, qword [rdi]
cmp rbx, rbx
jne 0x1401eff40
mov rsi, qword [rdi + 8]
mov rbx, rsi
cmp byte [rsi + 0x19], 0
jne 0x1401eff27
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x68]
call fcn.14000a240
mov rbx, qword [rbx]
cmp dword [rsi + 0x28], 0
jle 0x1401eff12
mov rcx, qword [rsi + 0x20]
call fcn.1402b7350
mov rcx, rsi
call fcn.1402150f0
mov rsi, rbx
cmp byte [rbx + 0x19], 0
je 0x1401efef3
mov rdi, qword [rbp - 0x68]
mov qword [rdi + 8], rdi
mov rax, qword [rbp - 0x68]
mov qword [rax], rax
mov rax, qword [rbp - 0x68]
mov qword [rax + 0x10], rax
mov qword [rbp - 0x60], r12
jmp 0x1401effa8
cmp rbx, rdi
je 0x1401effac
mov r8, rbx
cmp byte [rbx + 0x19], 0
jne 0x1401eff96
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1401eff72
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1401eff96
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401eff64
jmp 0x1401eff96
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1401eff93
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x1401eff93
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1401eff80
mov rbx, rax
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x68]
call fcn.140008e20
cmp rbx, rdi
jne 0x1401eff45
mov rdi, qword [rbp - 0x68]
mov rcx, rdi
call fcn.1402150f0
nop
mov rax, qword [rbp - 0x40]
mov rdi, qword [rax + 8]
mov rbx, rdi
cmp byte [rdi + 0x19], 0
jne 0x1401f0004
nop word [rax + rax]
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x40]
call fcn.14000a240
mov rbx, qword [rbx]
cmp dword [rdi + 0x28], 0
jle 0x1401effef
mov rcx, qword [rdi + 0x20]
call fcn.1402b7350
mov rcx, rdi
call fcn.1402150f0
mov rdi, rbx
cmp byte [rbx + 0x19], 0
je 0x1401effd0
mov rax, qword [rbp - 0x40]
mov qword [rax + 8], rax
mov rax, qword [rbp - 0x40]
mov qword [rax], rax
mov rax, qword [rbp - 0x40]
mov qword [rax + 0x10], rax
mov qword [rbp - 0x38], r12
mov rcx, qword [rbp - 0x40]
call fcn.1402150f0
mov al, 1
mov rcx, qword [rbp + 0xc80]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0xd90]
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