joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400045c8
Capabilities:
Get installed programs
Query or enumerate registry key
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r13
push r14
lea rbp, [rax - 0x5b8]
sub rsp, 0x6a0
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x590], rax
xor edi, edi
mov r14d, edx
test rcx, rcx
je 0x1400047c9
mov qword [rsp + 0x20], rcx
lea r9, str.SoftwareMicrosoftUpdates
mov r13d, 0x104
lea r8, [0x14003fc48]
mov edx, r13d
lea rcx, [rbp + 0x170]
call fcn.140001734
test eax, eax
js 0x1400047c9
and qword [rsp + 0x48], rdi
mov ebx, 0x20019
call fcn.140026508
test eax, eax
lea rdx, [rbp + 0x170]
mov ecx, 0x20119
lea rax, [rsp + 0x48]
cmovne ebx, ecx
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400047c9
xor esi, esi
and qword [rsp + 0x38], rsi
and qword [rsp + 0x30], rsi
and qword [rsp + 0x28], rsi
and qword [rsp + 0x20], rsi
xor edx, edx
jmp 0x14000479c
lea rcx, [rsp + 0x60]
inc esi
call qword [sym.imp.msvcrt.dll__wcslwr]
cmp word [rsp + 0x60], 0x6b
jne 0x140004782
cmp word [rsp + 0x62], 0x62
jne 0x140004782
lea rax, [rsp + 0x60]
mov rdx, r13
lea r9, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
mov qword [rsp + 0x20], rax
lea r8, [0x14003fc48]
xor edi, edi
lea rcx, [rbp + 0x380]
call fcn.140001734
test eax, eax
js 0x140004782
and qword [rsp + 0x58], rdi
mov ebx, 0x2001f
call fcn.140026508
test eax, eax
lea rdx, [rbp + 0x380]
mov ecx, 0x2011f
lea rax, [rsp + 0x58]
cmovne ebx, ecx
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004782
mov rcx, qword [rsp + 0x58]
lea ebx, [rdi + 4]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], ebx
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x50], 1
lea rdx, str.SystemComponent
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140004777
mov edx, r14d
lea rcx, [rsp + 0x60]
lea edi, [rbx - 3]
call fcn.140004504
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x38], 0
mov edx, esi
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x40], r13d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000469b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret
Function at 0x140004a44
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ebp, 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
test rax, rax
je 0x140004b7c
and dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x140004b7c
xor esi, esi
cmp dword [rsp + 0x30], esi
jle 0x140004b7c
mov rcx, qword [rdi]
lea rdx, str._CreateService
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x140004b6c
mov rcx, qword [rdi]
mov edx, 0x3a
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbx, rax
test rax, rax
je 0x140004b6c
add rbx, 2
je 0x140004b6c
mov rcx, rbx
call fcn.140017488
test eax, eax
je 0x140004b6c
mov rcx, rbx
call fcn.14001b038
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140004b6c
lea rcx, str.setupapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140004b38
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r8, [0x140041f98]
mov rcx, rbx
lea rdx, str.DefaultInstall
call fcn.14001b0b0
test eax, eax
je 0x140004b63
or dword [rsp + 0x20], 0xffffffff
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14002cd6c
mov ebp, eax
test eax, eax
js 0x140004b63
lea rdx, [rsp + 0x50]
call fcn.14002cb1c
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
inc esi
add rdi, 8
cmp esi, dword [rsp + 0x30]
jl 0x140004aac
mov eax, ebp
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140004bb0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
lea rdx, str._ServiceExtra:
call qword [sym.imp.msvcrt.dll_wcsstr]
xor edi, edi
test rax, rax
je 0x140004c85
lea edx, [rdi + 0x3a]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbx, rax
test rax, rax
je 0x140004c85
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerServices
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140004c85
add rbx, 2
je 0x140004c7a
lea rdx, [0x14003f4a0]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140004c7a
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140004c4b
mov rcx, qword [rsp + 0x68]
lea rdx, str.ServiceExtra
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140005e11
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x238
xor esi, esi
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rcx + rax + 0x88]
mov rbx, rcx
mov r12d, edx
mov r13, r8
lea r14, [rsp + 0x28]
add rax, rcx
mov r15d, dword [rax + 0x20]
mov edi, dword [rax + 0x1c]
mov ebp, dword [rax + 0x24]
add r15, rcx
mov r9d, dword [r15 + rsi*4]
add r9, rbx
cmp byte [r9], 0
je 0x140005ea3
mov edx, 0x208
mov rcx, r14
call fcn.140005d8f
mov rdx, r14
mov rcx, r9
call fcn.140005dd3
mov rdx, r13
mov rcx, r14
call fcn.140005d4e
lea rdx, [rsi + 1]
cmp eax, r12d
je 0x140005e8d
mov rsi, rdx
jmp 0x140005e4f
add rsi, rsi
add rsi, rbx
movzx eax, word [rsi + rbp]
lea rax, [rbx + rax*4]
mov eax, dword [rax + rdi]
add rax, rbx
jmp 0x140005ea5
xor eax, eax
add rsp, 0x238
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000b7fc
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferences
cmp dword [0x140050c44], r8d
mov rcx, 0xffffffff80000002
jne 0x14000b8cb
and qword [rsp + 0x40], r8
xor r9d, r9d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], r8
mov dword [rsp + 0x28], 2
and dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000b891
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x18]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferences
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 2
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14000b940
mov r9d, 4
mov dword [rbp + 0x10], 1
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AcceptedEULA
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x14000b936
mov r9d, 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b8fb
mov rcx, qword [rbp + 0x18]
lea rdx, str.AcceptedEULA
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x18]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferences
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b940
mov rcx, qword [rbp + 0x18]
lea rdx, str.AcceptedEULA
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x50
pop rbp
ret
Function at 0x14000bcf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x350], rax
cmp qword [rdx + 0x18], 0
lea rdi, [0x14003f4a0]
mov rsi, rdx
mov rbx, rcx
mov r8, rdi
lea rcx, [rsp + 0x50]
cmovne r8, qword [rdx + 0x18]
mov r12d, 0x400
mov edx, r12d
call fcn.1400014f8
test eax, eax
js 0x14000bd6e
xor r9d, r9d
lea rax, [rsp + 0x50]
lea edx, [r12 + 0x7c]
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea r8d, [r9 + 0xc]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp qword [rsi + 0x20], 0
lea rcx, [rsp + 0x50]
mov r8, rdi
mov rdx, r12
cmovne r8, qword [rsi + 0x20]
call fcn.1400014f8
test eax, eax
js 0x14000bdab
xor r9d, r9d
lea rax, [rsp + 0x50]
mov edx, 0x46e
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea r8d, [r9 + 0xc]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov edx, 0x46d
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rbx, rax
test rax, rax
je 0x14000bee4
mov rcx, qword [0x140050bf0]
test rcx, rcx
je 0x14000bddf
call qword [sym.imp.GDI32.dll_DeleteObject]
and qword [0x140050bf0], 0
cmp qword [rsi + 0x68], 0
lea rcx, [rsp + 0x50]
mov rdx, r12
cmovne rdi, qword [rsi + 0x68]
mov r8, rdi
call fcn.1400014f8
mov esi, 1
test eax, eax
js 0x14000beb5
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000beb5
test al, 0x10
jne 0x14000beb5
cmp qword [0x140050bb8], 0
jne 0x14000be5f
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x38]
and dword [rsp + 0x48], 0
lea rcx, [0x140050bb8]
and dword [rsp + 0x4c], 0
xor r8d, r8d
mov dword [rsp + 0x38], esi
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
cmp qword [0x140050bb8], 0
je 0x14000beb5
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromFile]
mov rdi, qword [rsp + 0x30]
lea rdx, [0x140050bf0]
mov rcx, rdi
mov r8d, 0xff000000
call qword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
test eax, eax
jne 0x14000beac
mov r9, qword [0x140050bf0]
xor r8d, r8d
mov edx, 0x172
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
cmp qword [0x140050bf0], 0
mov rcx, rbx
jne 0x14000bece
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor edx, edx
jmp 0x14000bedb
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, esi
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x14000f018
Capabilities:
Accept command line arguments
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rcx, qword [str.6ij]
lea rax, section..data
cmp rax, rcx
jne 0x14000f151
cmp dword [0x140050d0c], 0xd2af9
je 0x14000f25e
cmp qword [0x140051660], 0
je 0x14000f141
call fcn.140013fc4
test rax, rax
je 0x14000f141
call fcn.140013fc4
cmp dword [rax + 0x138], 0
jne 0x14000f141
xor edx, edx
lea rcx, str.WMPlayerApp
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x14000f141
xor edx, edx
lea rcx, str.WMPlayerApp
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
test rax, rax
je 0x14000f25e
lea rcx, str.WMPlayer_PluginAddRemove
call qword [sym.imp.USER32.dll_RegisterWindowMessageA]
test eax, eax
je 0x14000f25e
xor r9d, r9d
mov edx, eax
mov rcx, rsi
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14000f10c
lea edx, [rcx + 5]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14000f25e
cmp dword [0x1400516e0], 4
jl 0x14000f25e
and dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
lea rdx, str.Alerted_WMP_to_the_updated_service._r_n
mov r8d, 0x25
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14000f25e
mov edi, 1
mov dword [0x140050ca0], edi
jmp 0x14000f25e
lea rax, str.K
mov edi, 1
cmp rax, rcx
jne 0x14000f1ad
mov eax, dword [0x140050ca0]
cmp dword [0x140050d0c], 0xd2af9
cmovne eax, edi
mov dword [0x140050ca0], eax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, str._RunOnce
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x14000f25e
and dword [0x140050ca0], 0
mov ecx, edi
call fcn.140011578
jmp 0x14000f25e
mov eax, dword [0x140050d0c]
cmp eax, 0xd2af8
jne 0x14000f209
mov esi, 0x104
lea rcx, [rsp + 0x40]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000f1fc
lea r8, str.unregmp2.exe
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.140001584
test eax, eax
js 0x14000f1fc
mov r9d, 0xffff
lea rdx, [rsp + 0x40]
mov r8d, edi
xor ecx, ecx
call fcn.140019694
mov eax, dword [0x140050d0c]
mov rcx, qword [str.6ij]
test eax, eax
js 0x14000f239
lea rdx, str.6ij
cmp rdx, rcx
jne 0x14000f239
cmp dword [0x140050ce0], 0
jne 0x14000f22e
call fcn.1400049a4
call fcn.140004800
jmp 0x14000f233
call fcn.1400049a4
mov eax, dword [0x140050d0c]
cmp eax, 0xd2af9
je 0x14000f259
cmp eax, 0xc00d2afb
je 0x14000f259
test eax, eax
js 0x14000f25e
cmp dword [0x140050c44], 0
jne 0x14000f25e
jmp 0x14000f146
call fcn.1400105f4
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14003c810
mov rsi, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x140010478
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
xor edi, edi
lea rax, [rbp + 0x38]
xor r8d, r8d
mov qword [rbp + 0x38], rdi
lea rdx, str.SoftwareMicrosoftMediaPlayerSetup
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov ebx, edi
lea r9d, [rdi + 3]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400105e4
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x20], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.InstallResult
mov dword [rbp + 0x28], edi
mov dword [rbp + 0x30], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001059b
cmp dword [rbp + 0x28], 0xd2af9
je 0x140010510
cmp dword [rbp + 0x28], 0xc00d2afb
jne 0x14001059b
lea rcx, [rbp - 0x10]
mov ebx, 1
call fcn.140002cc4
test eax, eax
jne 0x14001058d
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, str.SystemUptime
lea rax, [rbp - 8]
mov dword [rbp + 0x20], 8
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001058d
mov rax, qword [rbp - 8]
cmp qword [rbp - 0x10], rax
jbe 0x14001058b
mov rcx, qword [rbp + 0x38]
lea rax, [rbp - 0x10]
mov dword [rsp + 0x28], 8
lea r9d, [rbx + 2]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemUptime
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x14001058d
mov ebx, edi
call fcn.140017ba8
test eax, eax
cmove ebx, edi
test ebx, ebx
jne 0x1400105da
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], 4
lea rdx, str.InstallResult
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x38]
lea rdx, str.SystemUptime
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400105f4
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor ebx, ebx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rbx
lea rdx, str.SoftwareMicrosoftMediaPlayerSetupReentrant
mov qword [rsp + 0x38], rax
mov rdi, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140010739
lea rax, [rsp + 0x50]
xor r8d, r8d
lea r9d, [rbx + 3]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001072e
mov edi, 0x104
lea rcx, [rsp + 0x60]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140010723
lea r8, str.unregmp2.exe
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140001584
test eax, eax
js 0x140010723
lea r8, str.__EnsureFileVersions
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140001584
test eax, eax
js 0x140010723
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400106ea
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.MP10_EnsureFileVer
lea rax, [rsp + 0x60]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x14001077c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ebx, ebx
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x38], rbx
lea rdx, str.SystemCurrentControlSetControlProductOptions
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea edi, [rbx + 1]
mov r9d, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010833
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x34], 0x200
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ProductType
mov dword [rsp + 0x30], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010828
cmp dword [rsp + 0x30], edi
jne 0x140010828
lea rdx, str.WinNT
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
cmovne ebx, edi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003c810
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
Function at 0x14001085c
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rcx, qword [0x140050d10]
lea r8, [rsp + 0x30]
mov r9d, 0x100
mov ebx, 0x80004005
lea edx, [r9 - 0x40]
call qword [sym.imp.USER32.dll_LoadStringW]
xor edi, edi
test eax, eax
je 0x1400108e2
lea r8d, [rdi + 8]
lea rdx, str.https:__
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x1400108e2
mov dword [rsp + 0x28], 0xa
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
cmova ebx, edi
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14003c810
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x140010978
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x38], 0
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
or r8d, 0xffffffff
mov r14, rcx
call fcn.14003a61c
mov ebx, eax
test eax, eax
js 0x140010b72
lea rcx, [rbp - 0x10]
call fcn.14003a4e4
lea rcx, [rbp - 0x30]
mov dword [rbp + 0x30], 0x7fff
call fcn.14003a4e4
mov edx, dword [rbp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.14003a5a8
mov ebx, eax
test eax, eax
jns 0x1400109ef
lea rcx, [rbp - 0x30]
call fcn.14003aa74
lea rcx, [rbp - 0x10]
call fcn.14003aa74
jmp 0x140010b72
mov rdx, qword [rbp - 0x30]
lea r8, [rbp + 0x30]
mov ecx, 2
call qword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x140010a26
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x57
cmove eax, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400109d8
mov ebx, 0x44
mov edx, ebx
lea ecx, [rbx - 4]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x140010a45
mov ebx, 0x8007000e
jmp 0x1400109d8
mov rdx, qword [rbp - 0x30]
lea rax, [rbp - 0x40]
and dword [rbp + 0x28], 0
lea r9, [rbp + 0x38]
mov qword [rsp + 0x30], rax
mov r8, rdi
lea rax, [rbp + 0x28]
mov dword [rbp + 0x38], ebx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x140010a9b
cmp eax, 0x7a
je 0x140010a9b
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140010b57
lea rcx, [rbp - 0x20]
call fcn.14003a4e4
mov edx, dword [rbp + 0x28]
lea rcx, [rbp - 0x20]
inc edx
call fcn.14003a5a8
mov ebx, eax
test eax, eax
js 0x140010b4e
mov rdx, qword [rbp - 0x30]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x28]
mov r8, rdi
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x140010b06
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140010b4e
lea rdx, [rbp - 0x38]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x140010b29
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x57
cmove eax, ecx
jmp 0x140010af6
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x10]
or r8d, 0xffffffff
call fcn.14003a61c
mov ebx, eax
test eax, eax
js 0x140010b4e
mov rdx, qword [rbp - 0x10]
mov rcx, r14
call fcn.14003a8e8
mov ebx, eax
lea rcx, [rbp - 0x20]
call fcn.14003aa74
lea rcx, [rbp - 0x30]
call fcn.14003aa74
lea rcx, [rbp - 0x10]
call fcn.14003aa74
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140010b81
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop r14
pop rdi
pop rbp
ret