Function at 0x18000d7cc
Capabilities:
Compare security identifiers
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x6c0]
sub rsp, 0x7c0
mov rax, qword [0x180019018]
xor rax, rsp
mov qword [rbp + 0x6b0], rax
mov rbx, rdx
lea rcx, [rbp + 0x80]
mov esi, 0x208
xor edx, edx
mov r8d, esi
call sub.msvcrt.dll_memset
xor edi, edi
mov word [rsp + 0x74], 0x500
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x58], rdi
mov word [rbp + 0x286], di
test rbx, rbx
je 0x18000dac3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
lea rdx, [rbp]
call fcn.18000e254
test eax, eax
jne 0x18000dac3
mov r8b, 1
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_InitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x18000dac3
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
nop dword [rax + rax]
test rax, rax
je 0x18000dac3
lea rdx, [rbp - 0x80]
mov dword [rax], 0x12
lea rcx, [rbp]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x18000dac3
mov r14, 0xffffffff80000002
lea r9, [rbp + 0x290]
mov r8, r14
lea rdx, str.Persistent_
lea rcx, [rbp]
call fcn.18000dafc
mov r8, qword [rbx + 8]
lea rcx, [rbp + 0x80]
mov r9d, 0x103
lea edx, [r9 + 1]
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
nop dword [rax + rax]
or rcx, 0xffffffffffffffff
lea rdx, [rbp + 0x80]
mov rax, rcx
inc rax
cmp word [rdx + rax*2], di
jne 0x18000d8ff
test rax, rax
jne 0x18000d917
mov eax, 0x80030057
jmp 0x18000dac8
cmp word [rbp + rax*2 + 0x7e], 0x5c
je 0x18000d927
cmp word [rbp + rax*2 + 0x7e], 0x3a
jne 0x18000d940
lea rax, [rax*2 - 2]
cmp rax, rsi
jae 0x18000daf0
mov word [rbp + rax + 0x80], di
lea rax, [rbp + 0x80]
inc rcx
cmp word [rax + rcx*2], di
jne 0x18000d947
cmp word [rbp + rcx*2 + 0x7e], 0x3a
jne 0x18000d971
lea rcx, [rcx*2 - 2]
cmp rcx, rsi
jae 0x18000daf0
mov word [rbp + rcx + 0x80], di
lea r8, [rbp + 0x80]
mov edx, 0x104
lea rcx, [rbp + 0x290]
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [rbp + 0x290]
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, r14
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x18000dac3
cmp dword [rsp + 0x60], 2
je 0x18000da11
lea rdx, [rbp + 0x290]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, 0x14
jmp 0x18000dac8
mov ebx, edi
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], rdi
lea r8, [rbp + 0x4a0]
mov qword [rsp + 0x28], rdi
mov edx, ebx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x50], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x18000da89
mov ecx, dword [rsp + 0x50]
dec ecx
add rcx, rcx
cmp rcx, rsi
jae 0x18000daf0
mov word [rbp + rcx + 0x4a0], di
lea rdx, [rbp + 0x4a0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [rax + rax]
inc ebx
test eax, eax
je 0x18000da13
cmp eax, 0xea
je 0x18000da13
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
lea rdx, [rbp + 0x290]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [rax + rax]
jmp 0x18000dac8
mov eax, 0x800300fd
mov rcx, qword [rbp + 0x6b0]
xor rcx, rsp
call fcn.180001570
lea r11, [rsp + 0x7c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.180001748
int3