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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xd68]
sub rsp, 0xe40
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0xd30], rax
xor r14d, r14d
mov qword [rsp + 0x78], r14
call fcn.140036120
lea rax, [rsp + 0x78]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindows_Media_Connect_2Shares
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140036f3f
mov dword [rsp + 0x68], 0x80
lea r12d, [r14 + 1]
mov esi, r14d
mov qword [rbp - 0x70], r14
mov r15d, 0x208
lea r13d, [r14 + 2]
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x38], r14
lea r8, [rbp - 0x30]
mov qword [rsp + 0x30], r14
mov edx, esi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140036f2e
mov rcx, qword [rsp + 0x78]
lea rax, [rbp - 0x70]
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x68], 0x80
lea rdx, [rbp - 0x30]
add esi, r12d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140036f2e
lea r8, [rbp - 0x30]
lea rdx, str.WMCv2_Migration:_Migrating_user__S._r_n
lea ecx, [rax + 4]
call fcn.140019b1c
lea rdx, [rbp + 0x910]
lea rcx, [rbp - 0x30]
call fcn.14003767c
test eax, eax
js 0x140036f07
lea r9, [rbp - 0x30]
mov qword [rsp + 0x70], r14
lea r8, str._sSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov qword [rsp + 0x50], r14
mov rdx, r15
lea rcx, [rbp + 0xd0]
mov ebx, r14d
call fcn.140010c94
lea rax, [rsp + 0x50]
mov r9d, 0x101
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xd0]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14003699b
mov rcx, qword [rsp + 0x50]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x6c]
lea rax, [rbp + 0xd0]
mov dword [rsp + 0x6c], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Local_AppData
mov dword [rbp - 0x80], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140036982
cmp dword [rsp + 0x6c], r12d
jne 0x140036982
lea r9, [rbp + 0xd0]
mov rdx, r15
lea r8, str._sMicrosoftMedia_Player
lea rcx, [rbp + 0x4f0]
call fcn.140010c94
test eax, eax
setns bl
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140036dd4
or qword [rsp + 0x58], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
lea r8, [rsp + 0x58]
mov edx, 0x2e
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop dword [rax + rax]
test eax, eax
je 0x140036eef
mov ecx, reloc.ATL.DLL_AtlInternalQueryInterface
call fcn.1400014a0
mov rdi, rax
test rax, rax
je 0x140036dbb
lea r8, [rax + 4]
mov dword [rax], r12d
lea rdx, str.SeRestorePrivilege
mov dword [rax + 0x10], r13d
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
nop dword [rax + rax]
lea r8, [rdi + 0x14]
mov dword [rdi + 0xc], r13d
lea rdx, str.SeBackupPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
nop dword [rax + rax]
mov dword [rdi + 0x1c], r13d
xor r9d, r9d
mov rcx, qword [rsp + 0x58]
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop dword [rax + rax]
lea r8, [rbp + 0x910]
mov rdx, r15
lea rcx, [rbp + 0x700]
call fcn.140010c20
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp - 0x68]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x38], rax
lea rax, [rbp + 0x700]
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x58], xmm0
mov dword [rbp - 0x68], 0x38
movups xmmword [rbp - 0x48], xmm0
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
nop dword [rax + rax]
test eax, eax
je 0x140036d89
mov rcx, qword [rsp + 0x58]
lea r8, [rbp + 0x2e0]
mov r9d, 0x104
lea rdx, str._USERNAME_
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
nop dword [rax + rax]
test eax, eax
je 0x140036b70
mov edx, 0x5c
lea rcx, [rbp + 0x700]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
test rax, rax
jne 0x140036b27
lea edx, [rax + 0x40]
lea rcx, [rbp + 0x700]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
test rax, rax
jne 0x140036b27
lea rdx, [rbp + 0x700]
lea rcx, [rbp + 0x2e0]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140036b70
jmp 0x140036b46
lea rdx, [rbp + 0x2e0]
lea rcx, [rbp + 0x700]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
jne 0x140036b70
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, 0x57
lea rdx, str.Warning:_User_profile_not_fully_loaded:_0x_x._r_n
test eax, eax
cmove eax, ecx
mov ecx, 4
mov r8d, eax
call fcn.140019b1c
lea r9, [rbp - 0x30]
mov rdx, r15
lea r8, str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList_s
lea rcx, [rbp + 0xd0]
call fcn.140010c94
test eax, eax
js 0x140036c84
lea rax, [rsp + 0x50]
mov r9d, r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xd0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140036c84
mov rcx, qword [rsp + 0x50]
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rbp + 0xd0]
mov dword [rsp + 0x60], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ProfileImagePath
mov dword [rbp - 0x7c], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140036c6b
cmp dword [rsp + 0x60], r13d
je 0x140036c1d
cmp dword [rsp + 0x60], r12d
jne 0x140036c6b
lea r9, [rbp + 0xd0]
jmp 0x140036c4d
mov rcx, qword [rsp + 0x58]
lea r8, [rbp + 0x2e0]
mov r9d, 0x104
lea rdx, [rbp + 0xd0]
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
nop dword [rax + rax]
test eax, eax
je 0x140036c6b
lea r9, [rbp + 0x2e0]
lea r8, str._sLocal_SettingsApplication_DataMicrosoftMedia_Player
mov rdx, r15
lea rcx, [rbp + 0x4f0]
call fcn.140010c94
test eax, eax
mov ebx, r14d
setns bl
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140036d6e
mov rcx, qword [rbp - 0x38]
lea rax, [rsp + 0x50]
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 0x140036d6e
mov rcx, qword [rsp + 0x50]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x64]
lea rax, [rbp + 0xd0]
mov dword [rsp + 0x64], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Local_AppData
mov dword [rbp - 0x78], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140036d5d
cmp dword [rsp + 0x64], r13d
je 0x140036d0f
cmp dword [rsp + 0x64], r12d
jne 0x140036d5d
lea r9, [rbp + 0xd0]
jmp 0x140036d3f
mov rcx, qword [rsp + 0x58]
lea r8, [rbp + 0x2e0]
mov r9d, 0x104
lea rdx, [rbp + 0xd0]
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
nop dword [rax + rax]
test eax, eax
je 0x140036d5d
lea r9, [rbp + 0x2e0]
lea r8, str._sMicrosoftMedia_Player
mov rdx, r15
lea rcx, [rbp + 0x4f0]
call fcn.140010c94
test eax, eax
mov ebx, r14d
setns bl
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xffffffffffffffff
je 0x140036d89
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, 0x57
lea rdx, str.Load_user_profile_returned_0x_x._r_n
test eax, eax
cmove eax, ecx
mov ecx, 4
mov r8d, eax
call fcn.140019b1c
mov rcx, rdi
call fcn.140001454
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
je 0x140036eef
lea r9, [rbp - 0x30]
mov rdx, r15
lea r8, str.SoftwareMicrosoftMediaPlayerPreferencesHME_s
lea rcx, [rbp + 0xb20]
call fcn.140010c94
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rdx, [rbp + 0xb20]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x20106
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140036f19
lea rcx, [rbp + 0x910]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140036e42
mov rcx, qword [rsp + 0x70]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.DisplayName
lea rax, [rbp + 0x910]
mov r9d, r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
lea rcx, [rbp + 0x4f0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140036e8c
mov rcx, qword [rsp + 0x70]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.SharedLibraryPath
lea rax, [rbp + 0x4f0]
mov r9d, r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
lea rdx, str.User_migrated._r_n
mov ecx, 4
call fcn.140019ae0
jmp 0x140036f19
lea r8, [rbp + 0x910]
mov ecx, r13d
lea rdx, str.Database_path_not_found_for_user__S._r_n
call fcn.140019b1c
jmp 0x140036f19
mov r8d, eax
lea rdx, str.User_name_not_found:_0x_x._r_n
mov ecx, r13d
call fcn.140019b1c
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14003681e
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp + 0xd30]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0xe40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret