Function at 0x100069204
Capabilities:
Impersonate user
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x6c0
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x6b0], rax
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
and qword [rsp + 0x38], rbx
mov rsi, rcx
test rdx, rdx
je 0x1000696e3
test rcx, rcx
je 0x1000696e3
test r8, r8
je 0x1000696e3
mov r9, rcx
mov r14d, 0x208
lea r8, [0x10002e310]
lea rcx, [rsp + 0x80]
mov rdx, r14
call fcn.10003a0f0
lea r11, [rsp + 0x38]
lea rdx, [rsp + 0x80]
mov r9d, 0x101
xor r8d, r8d
mov rcx, 0xffffffff80000003
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea r15d, [rbx + 1]
test eax, eax
jne 0x100069322
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
lea rdx, [0x10002e398]
xor r8d, r8d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10006930f
cmp dword [rsp + 0x30], r15d
jne 0x10006930f
lea r9, [rsp + 0x80]
lea r8, [0x10002e3b8]
mov rdx, r14
mov rcx, rdi
call fcn.10003a0f0
test eax, eax
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1000696df
or qword [rsp + 0x40], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov rcx, rax
mov edx, 0x2e
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000696df
mov ecx, 0x20
call fcn.10007fa96
mov r12, rax
test rax, rax
je 0x1000696d4
lea r8, [rax + 4]
lea rdx, [0x10002e3f0]
xor ecx, ecx
mov dword [rax], r15d
mov dword [rax + 0x10], 2
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea r8, [r12 + 0x14]
lea rdx, [0x10002e418]
xor ecx, ecx
mov dword [r12 + 0xc], 2
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [r12 + 0x1c], 2
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8, r12
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea rcx, [rsp + 0x4a0]
mov r8, rbp
mov rdx, r14
call fcn.100039e6c
mov ebp, 0x38
lea rcx, [rsp + 0x48]
mov r8, rbp
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x4a0]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebp
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x1000696a8
mov rcx, qword [rsp + 0x40]
mov ebp, 0x104
lea r8, [rsp + 0x290]
lea rdx, [0x10002e440]
mov r9d, ebp
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
test eax, eax
je 0x1000694c4
lea rcx, [rsp + 0x4a0]
mov edx, 0x5c
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x100069485
lea edx, [rax + 0x40]
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x100069485
lea rdx, [rsp + 0x4a0]
lea rcx, [rsp + 0x290]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x1000694c4
jmp 0x1000694a0
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x1000694c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x57
lea rdx, [0x10002e458]
test eax, eax
cmove eax, ecx
mov ecx, 4
mov r8d, eax
call fcn.1000527f4
lea r8, [0x10002e490]
lea rcx, [rsp + 0x80]
mov r9, rsi
mov rdx, r14
call fcn.10003a0f0
test eax, eax
js 0x1000695c0
lea rax, [rsp + 0x38]
lea rdx, [rsp + 0x80]
mov r9d, r15d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000695c0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
lea rdx, [0x10002e508]
xor r8d, r8d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000695ad
cmp dword [rsp + 0x30], 2
je 0x10006956a
cmp dword [rsp + 0x30], r15d
jne 0x1000695ad
lea r9, [rsp + 0x80]
jmp 0x100069594
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x290]
lea rdx, [rsp + 0x80]
mov r9d, ebp
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
test eax, eax
je 0x1000695ad
lea r9, [rsp + 0x290]
lea r8, [0x10002e530]
mov rdx, r14
mov rcx, rdi
call fcn.10003a0f0
xor ebx, ebx
test eax, eax
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x100069692
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x38]
lea rdx, [0x10002e5b0]
mov r9d, 0x101
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100069692
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
lea rdx, [0x10002e398]
xor r8d, r8d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100069687
cmp dword [rsp + 0x30], 2
je 0x100069644
cmp dword [rsp + 0x30], r15d
jne 0x100069687
lea r9, [rsp + 0x80]
jmp 0x10006966e
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x290]
lea rdx, [rsp + 0x80]
mov r9d, ebp
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
test eax, eax
je 0x100069687
lea r9, [rsp + 0x290]
lea r8, [0x10002e3b8]
mov rdx, r14
mov rcx, rdi
call fcn.10003a0f0
xor ebx, ebx
test eax, eax
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xffffffffffffffff
je 0x1000696a8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x57
lea rdx, [0x10002e638]
test eax, eax
cmove eax, ecx
mov ecx, 4
mov r8d, eax
call fcn.1000527f4
mov rcx, r12
call fcn.10007faa2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1000696e5
xor eax, eax
mov rcx, qword [rsp + 0x6b0]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret