Function at 0x14002e8fc
Capabilities:
Get hostname
Impersonate user
Persist via run registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value
Write file on windows

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 [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0xd30], rax
xor r14d, r14d
mov qword [rsp + 0x78], r14
call fcn.14002e308
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]
test eax, eax
jne 0x14002f18e
mov dword [rsp + 0x70], 0x80
lea r12d, [r14 + 1]
mov esi, r14d
mov qword [rbp - 0x70], r14
mov r15d, 0x208
or r13, 0xffffffffffffffff
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x70]
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]
test eax, eax
jne 0x14002f183
mov rcx, qword [rsp + 0x78]
lea rax, [rbp - 0x70]
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x70], 0x80
lea rdx, [rbp - 0x30]
add esi, r12d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002f183
lea r8, [rbp - 0x30]
lea rdx, str.WMCv2_Migration:_Migrating_user__S._r_n
lea ecx, [rax + 4]
call fcn.140016868
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], r14
lea rcx, [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x14002eb72
mov rdx, qword [rsp + 0x60]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], 0x104
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x4f0]
lea rax, [rbp + 0x2e0]
mov dword [rsp + 0x58], 0x104
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov ebx, r14d
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x14002eac1
movzx eax, word [0x14003f4a0]
cmp ax, word [rbp + 0x4f0]
jne 0x14002eaa3
mov ecx, dword [rbp - 0x80]
lea eax, [rcx - 6]
cmp eax, 3
jbe 0x14002eae7
cmp ecx, 3
je 0x14002eae7
lea r8, [rbp - 0x30]
mov rdx, r15
lea rcx, [rbp + 0x4f0]
call fcn.1400014f8
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x104
lea rcx, [rbp + 0x700]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x14002eaf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14002eb77
mov ebx, 0x80004005
jmp 0x14002eb77
mov ebx, 0x80070523
jmp 0x14002eb77
movzx eax, word [0x14003f4a0]
cmp ax, word [rbp + 0x2e0]
je 0x14002eb5a
lea rax, [rbp + 0x700]
mov dword [rsp + 0x28], r13d
mov r9d, r13d
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x2e0]
mov edx, r12d
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x14002eb5a
lea rax, [rbp + 0x4f0]
mov rdx, r15
lea r9, [rbp + 0x2e0]
mov qword [rsp + 0x20], rax
lea r8, [0x14003fc48]
lea rcx, [rbp + 0x910]
call fcn.1400017b4
jmp 0x14002eb77
lea r8, [rbp + 0x4f0]
mov rdx, r15
lea rcx, [rbp + 0x910]
call fcn.1400014f8
jmp 0x14002eb77
mov ebx, 0x80070057
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002eb87
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
js 0x14002f160
lea r9, [rbp - 0x30]
mov qword [rsp + 0x60], r14
lea r8, str._sSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov qword [rsp + 0x50], r14
mov rdx, r15
lea rcx, [rbp + 0xd0]
mov ebx, r14d
call fcn.1400017b4
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]
test eax, eax
jne 0x14002ec59
mov rcx, qword [rsp + 0x50]
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x74]
lea rax, [rbp + 0xd0]
mov dword [rsp + 0x74], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Local_AppData
mov dword [rbp - 0x7c], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002ec46
cmp dword [rsp + 0x74], r12d
jne 0x14002ec46
lea r9, [rbp + 0xd0]
mov rdx, r15
lea r8, str._sMicrosoftMedia_Player
lea rcx, [rbp + 0x2e0]
call fcn.1400017b4
test eax, eax
setns bl
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14002f009
mov qword [rsp + 0x58], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0x2e
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14002f146
mov ecx, reloc.ATL.DLL_AtlInternalQueryInterface
call fcn.14003c310
mov rdi, rax
test rax, rax
je 0x14002eff6
lea r8, [rax + 4]
mov dword [rax], r12d
lea rdx, str.SeRestorePrivilege
mov dword [rax + 0x10], 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea r8, [rdi + 0x14]
mov dword [rdi + 0xc], 2
lea rdx, str.SeBackupPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rdi + 0x1c], 2
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]
lea r8, [rbp + 0x910]
mov rdx, r15
lea rcx, [rbp + 0x4f0]
call fcn.1400014f8
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x38]
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x58]
lea rax, [rbp + 0x4f0]
lea rdx, [rbp - 0x68]
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x68], 0x38
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x14002efca
mov rcx, qword [rsp + 0x58]
lea r8, [rbp + 0x700]
mov r9d, 0x104
lea rdx, str._USERNAME_
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
test eax, eax
je 0x14002ede8
mov edx, 0x5c
lea rcx, [rbp + 0x4f0]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x14002edab
lea edx, [rax + 0x40]
lea rcx, [rbp + 0x4f0]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x14002edab
lea rdx, [rbp + 0x4f0]
lea rcx, [rbp + 0x700]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14002ede8
jmp 0x14002edc4
lea rdx, [rbp + 0x700]
lea rcx, [rbp + 0x4f0]
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x14002ede8
call qword [sym.imp.KERNEL32.dll_GetLastError]
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.140016868
lea r9, [rbp - 0x30]
mov rdx, r15
lea r8, str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList_s
lea rcx, [rbp + 0xd0]
call fcn.1400017b4
test eax, eax
js 0x14002eee4
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]
test eax, eax
jne 0x14002eee4
mov rcx, qword [rsp + 0x50]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rbp + 0xd0]
mov dword [rsp + 0x68], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ProfileImagePath
mov dword [rbp - 0x78], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002eed1
cmp dword [rsp + 0x68], 2
je 0x14002ee89
cmp dword [rsp + 0x68], r12d
jne 0x14002eed1
lea r9, [rbp + 0xd0]
jmp 0x14002eeb3
mov rcx, qword [rsp + 0x58]
lea r8, [rbp + 0x700]
mov r9d, 0x104
lea rdx, [rbp + 0xd0]
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
test eax, eax
je 0x14002eed1
lea r9, [rbp + 0x700]
lea r8, str._sLocal_SettingsApplication_DataMicrosoftMedia_Player
mov rdx, r15
lea rcx, [rbp + 0x2e0]
call fcn.1400017b4
test eax, eax
mov ebx, r14d
setns bl
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14002efb6
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]
test eax, eax
jne 0x14002efb6
mov rcx, qword [rsp + 0x50]
lea rax, [rbp - 0x74]
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 - 0x74], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002efab
cmp dword [rsp + 0x6c], 2
je 0x14002ef63
cmp dword [rsp + 0x6c], r12d
jne 0x14002efab
lea r9, [rbp + 0xd0]
jmp 0x14002ef8d
mov rcx, qword [rsp + 0x58]
lea r8, [rbp + 0x700]
mov r9d, 0x104
lea rdx, [rbp + 0xd0]
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
test eax, eax
je 0x14002efab
lea r9, [rbp + 0x700]
lea r8, str._sMicrosoftMedia_Player
mov rdx, r15
lea rcx, [rbp + 0x2e0]
call fcn.1400017b4
test eax, eax
mov ebx, r14d
setns bl
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x38]
cmp rdx, r13
je 0x14002efca
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
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.140016868
mov rcx, rdi
call fcn.14003c2b8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14002f146
lea r9, [rbp - 0x30]
mov rdx, r15
lea r8, str.SoftwareMicrosoftMediaPlayerPreferencesHME_s
lea rcx, [rbp + 0xb20]
call fcn.1400017b4
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x60]
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]
test eax, eax
jne 0x14002f174
lea rcx, [rbp + 0x910]
mov rax, r13
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14002f070
mov rcx, qword [rsp + 0x60]
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]
lea rcx, [rbp + 0x2e0]
mov rax, r13
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14002f0b3
mov rcx, qword [rsp + 0x60]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.SharedLibraryPath
lea rax, [rbp + 0x2e0]
mov r9d, r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x140050310]
cmp rcx, r13
jne 0x14002f119
mov edx, 4
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, r13
je 0x14002f174
cmp dword [0x1400516e0], 4
jl 0x14002f174
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], r14d
mov r8d, 0x10
mov qword [rsp + 0x20], r14
lea rdx, str.User_migrated._r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14002f174
lea r8, [rbp + 0x910]
mov ecx, 2
lea rdx, str.Database_path_not_found_for_user__S._r_n
call fcn.140016868
jmp 0x14002f174
mov r8d, ebx
lea rdx, str.User_name_not_found:_0x_x._r_n
mov ecx, 2
call fcn.140016868
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14002e98c
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0xd30]
xor rcx, rsp
call fcn.14003c6c0
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