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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
xor ebx, ebx
mov rdi, r8
and qword [rsp + 0x38], rbx
mov r15, rdx
mov rsi, rcx
test rdx, rdx
je 0x14003009d
test rcx, rcx
je 0x14003009d
test r8, r8
je 0x14003009d
mov r9, rcx
lea r8, str._sSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov r13d, 0x208
lea rcx, [rbp - 0x80]
mov edx, r13d
call fcn.140010420
lea rax, [rsp + 0x38]
mov r9d, 0x101
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x80]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002fc96
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x30], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Local_AppData
mov dword [rsp + 0x34], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002fc7d
cmp dword [rsp + 0x30], 1
jne 0x14002fc7d
lea r9, [rbp - 0x80]
mov edx, r13d
lea r8, str._sMicrosoftMedia_Player
mov rcx, rdi
call fcn.140010420
test eax, eax
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140030099
or qword [rsp + 0x40], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
lea r8, [rsp + 0x40]
mov edx, 0x2e
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop dword [rax + rax]
test eax, eax
je 0x140030099
mov ecx, reloc.ATL.DLL_AtlInternalQueryInterface
call fcn.14000130c
mov r14, rax
test rax, rax
je 0x140030088
lea r8, [rax + 4]
mov dword [rax], 1
lea rdx, str.SeRestorePrivilege
mov dword [rax + 0x10], 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
nop dword [rax + rax]
lea r8, [r14 + 0x14]
mov dword [r14 + 0xc], 2
lea rdx, str.SeBackupPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
nop dword [rax + rax]
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
mov r8, r14
mov dword [r14 + 0x1c], 2
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop dword [rax + rax]
mov r8, r15
lea rcx, [rbp + 0x3a0]
mov rdx, r13
call fcn.1400103e4
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x48]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0x3a0]
mov qword [rsp + 0x50], rax
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x48], 0x38
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
nop dword [rax + rax]
test eax, eax
je 0x140030067
mov rcx, qword [rsp + 0x40]
lea r8, [rbp + 0x190]
mov r15d, 0x104
lea rdx, str._USERNAME_
mov r9d, r15d
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
nop dword [rax + rax]
test eax, eax
je 0x14002fe70
mov edx, 0x5c
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
test rax, rax
jne 0x14002fe38
lea edx, [rax + 0x40]
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
test rax, rax
jne 0x14002fe38
lea rdx, [rbp + 0x3a0]
lea rcx, [rbp + 0x190]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14002fe70
jmp 0x14002fe57
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
jne 0x14002fe70
call fcn.140015998
mov r8d, eax
lea rdx, str.Warning:_User_profile_not_fully_loaded:_0x_x._r_n
mov ecx, 4
call fcn.140018ed8
mov r9, rsi
lea r8, str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList_s
mov rdx, r13
lea rcx, [rbp - 0x80]
call fcn.140010420
mov esi, 1
test eax, eax
js 0x14002ff71
lea rax, [rsp + 0x38]
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002ff71
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ProfileImagePath
mov dword [rsp + 0x34], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002ff58
cmp dword [rsp + 0x30], 2
je 0x14002ff15
cmp dword [rsp + 0x30], esi
jne 0x14002ff58
lea r9, [rbp - 0x80]
jmp 0x14002ff3f
mov rcx, qword [rsp + 0x40]
lea r8, [rbp + 0x190]
mov r9d, r15d
lea rdx, [rbp - 0x80]
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
nop dword [rax + rax]
test eax, eax
je 0x14002ff58
lea r9, [rbp + 0x190]
lea r8, str._sLocal_SettingsApplication_DataMicrosoftMedia_Player
mov rdx, r13
mov rcx, rdi
call fcn.140010420
xor ebx, ebx
test eax, eax
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x14003004b
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x38]
mov r9d, 0x101
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14003004b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Local_AppData
mov dword [rsp + 0x34], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14003003a
cmp dword [rsp + 0x30], 2
je 0x14002fff7
cmp dword [rsp + 0x30], esi
jne 0x14003003a
lea r9, [rbp - 0x80]
jmp 0x140030021
mov rcx, qword [rsp + 0x40]
lea r8, [rbp + 0x190]
mov r9d, r15d
lea rdx, [rbp - 0x80]
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
nop dword [rax + rax]
test eax, eax
je 0x14003003a
lea r9, [rbp + 0x190]
lea r8, str._sMicrosoftMedia_Player
mov rdx, r13
mov rcx, rdi
call fcn.140010420
xor ebx, ebx
test eax, eax
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xffffffffffffffff
je 0x140030067
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
nop dword [rax + rax]
call fcn.140015998
mov r8d, eax
lea rdx, str.Load_user_profile_returned_0x_x._r_n
mov ecx, 4
call fcn.140018ed8
mov rcx, r14
call fcn.1400012c0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14003009f
xor eax, eax
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret