joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400023a1
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140022890
push rbx
sub rsp, 0x890
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x880], rax
mov rbx, rcx
mov dword [rsp + 0x34], 0
lea rcx, [rsp + 0x460]
xor edx, edx
mov r8d, 0x208
call fcn.140002eeb
xor edx, edx
lea rcx, [rsp + 0x670]
mov r8d, 0x208
call fcn.140002eeb
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x208
call fcn.140002eeb
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.140002eeb
cmp dword [0x1400d415c], 0
je 0x14002297f
lea rcx, [rsp + 0x250]
call fcn.140003a3f
lea r9, [rsp + 0x250]
mov edx, 0x104
lea r8, str._lsControl_PanelPowerCfgGlobalPowerPolicy
lea rcx, [rsp + 0x40]
call fcn.14000441c
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400229be
xor al, al
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.140001ec4
add rsp, 0x890
pop rbx
ret
lea r8, str.Control_PanelPowerCfgGlobalPowerPolicy
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.14000441c
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140022964
lea rdx, str.Policies
lea rcx, [rsp + 0x460]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x670]
mov dword [rsp + 0x30], 0x104
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x460]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140022964
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x670]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rbx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rbx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rbx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rbx + 0x50], xmm1
movups xmmword [rbx + 0x60], xmm0
movups xmm0, xmmword [rax + 0x70]
sub rax, 0xffffffffffffff80
movups xmmword [rbx + 0x70], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbx + 0x80], xmm1
movups xmm1, xmmword [rax + 0x20]
mov al, 1
movups xmmword [rbx + 0x90], xmm0
movups xmmword [rbx + 0xa0], xmm1
jmp 0x140022966
Function at 0x14000249b
Capabilities:
Read file on windows

Disassembly:
jmp 0x14001d720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rcx
lea rcx, str.Inside_GetSystemDockingTransformation_n
call fcn.140003224
xor ebx, ebx
lea rcx, [0x1400a92f0]
mov edi, ebx
mov byte [rsp + 0x68], bl
mov dword [rsp + 0x70], ebx
mov esi, ebx
call fcn.140002766
mov rbp, rax
test rax, rax
je 0x14001d7fc
mov rdx, rax
lea rcx, str.GetSystemDockingTransformation:_DevicePath____ws__n
call fcn.140003224
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001d7b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetSystemDockingTransformation:_CreateFile_Error__08d__n
jmp 0x14001d809
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rbx
mov r8d, 1
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test eax, eax
jne 0x14001d7e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetSystemDockingTransformation:_ReadFile_Error__08d__n
jmp 0x14001d809
movzx edx, byte [rsp + 0x68]
lea rcx, str.GetSystemDockingTransformation:_ReadFile_0x_08x__n
mov dword [r14], edx
mov esi, 1
jmp 0x14001d80d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetSystemDockingTransformation:_GetDevicePath_Error__08d__n
mov ebx, eax
mov edx, eax
call fcn.140003224
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14001d828
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
lea rcx, str.Return_GetSystemDockingTransformation:_Status__08d__n
call fcn.140003224
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140002680
Capabilities:
Query environment variable

Disassembly:
jmp 0x140071c4c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x140071d20
mov rsi, rax
cmp word [rax], r14w
je 0x140071c9f
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x140071c87
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x140071c83
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbp, eax
test eax, eax
je 0x140071d20
mov rcx, rbp
call fcn.140003017
mov rdi, rax
test rax, rax
je 0x140071d13
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140071d13
mov rsi, rdi
mov rdi, r14
jmp 0x140071d16
mov rsi, r14
mov rcx, rdi
call fcn.140002c61
jmp 0x140071d23
mov rsi, r14
test rbx, rbx
je 0x140071d31
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400026ad
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14001d160
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rcx, str.Inside_GetLastSystemTransformation__._n
call fcn.140003224
lea rax, [rsp + 0x30]
mov dword [rsp + 0x60], 4
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
mov qword [rsp + 0x30], rbx
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesIBMPMSVCStatus
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001d221
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x68], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LastSystemTransformation
mov dword [rsp + 0x58], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001d218
mov edx, dword [rsp + 0x58]
lea rcx, str.GetLastSystemTransformation__:__d_n
mov dword [rdi], edx
call fcn.140003224
mov edx, dword [rdi]
lea rcx, str.GetLastSystemTransformation__:_pdwLastSystemTransformation_:_0x_08x__n
call fcn.140003224
mov ebx, 1
jmp 0x14001d22d
lea rcx, str.Error_:_RegQueryValueEx_:_GetLastSystemTransformation__._n
jmp 0x14001d228
lea rcx, str.Error_:_RegOpenKeyEx_:_GetLastSystemTransformation__._n
call fcn.140003224
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001d23d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400027a7
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
jmp 0x14001d290
sub rsp, 0x38
mov edx, 0x104
lea rcx, [0x1400d4570]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x14001d36e
lea rdx, str.LidBeep.ini
lea rcx, [0x1400d4570]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [0x1400d4570]
call fcn.140003224
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREWow6432NodeLenovoPWRMGRVPath
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001d36e
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x30], rbx
xor r8d, r8d
lea rbx, [0x1400d4780]
mov dword [rsp + 0x40], 0x104
xor edx, edx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x48], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001d35e
lea rdx, str.LidBeep.ini
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, rbx
call fcn.140003224
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
Function at 0x1400028dd
Capabilities:
Write file on windows

Disassembly:
jmp 0x140023390
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
lea rcx, str.Inside_RotationLockButtonPress_n
call fcn.140003224
lea rcx, [0x1400a92c0]
call fcn.140002766
xor ebx, ebx
mov rbp, rax
mov byte [rsp + 0x50], bl
mov esi, ebx
mov edi, ebx
test rax, rax
je 0x1400234a1
mov rdx, rax
lea rcx, str.RotationLockButtonPress_DevicePath____ws__n
call fcn.140003224
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140023421
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.RotationLockButtonPress:_CreateFile_Error__08d__n
jmp 0x1400234ae
xor r9d, r9d
mov byte [rsp + 0x50], 4
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
mov rcx, rsi
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
jne 0x140023455
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.RotationLockButtonPress:_WriteFile_Error__08d__n
jmp 0x1400234ae
xor r9d, r9d
mov byte [rsp + 0x50], 4
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
mov rcx, rsi
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
jne 0x140023489
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.RotationLockButtonPress:_WriteFile_Error__08d__n
jmp 0x1400234ae
movzx edx, byte [rsp + 0x50]
lea rcx, str.RotationLockButtonPress:_WriteFile_0x_08x__n
call fcn.140003224
mov edi, 1
jmp 0x1400234b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.RotationLockButtonPress:_GetDevicePath_Error__08d__n
mov edx, eax
mov ebx, eax
call fcn.140003224
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x1400234cd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
lea rcx, str.Return_RotationLockButtonPress:_Status__08d__n
call fcn.140003224
mov rbx, qword [rsp + 0x58]
mov eax, edi
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14000295f
Capabilities:
Persist via windows service
Set registry value

Disassembly:
jmp 0x140026170
mov dword [rsp + 8], ecx
push rbx
sub rsp, 0x50
xor ebx, ebx
lea rcx, str.Enter_SystemTransformationSetCurrentStatusToReg___n
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x68], ebx
call fcn.140003224
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetServicesIBMPMSVCTransformCurrentStatus
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400261e1
lea rcx, str.Error_SystemTransformationSetCurrentStatusToReg_RegCreateKeyEx_error____n
call fcn.140003224
jmp 0x140026237
mov rdx, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x60]
call fcn.140003977
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
lea rdx, [0x1400b8128]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14002622e
lea rcx, str.Error_SystemTransformationSetCurrentStatusToReg_RegSetValueEx_error____n
call fcn.140003224
jmp 0x140026237
mov ecx, dword [rsp + 0x60]
call fcn.1400033f5
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140026247
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.SystemTransformationSetCurrentStatusToReg___n
call fcn.140003224
xor eax, eax
add rsp, 0x50
pop rbx
ret
Function at 0x140002c7a
Capabilities:
Write file on windows

Disassembly:
jmp 0x140023cc0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rcx
lea rcx, str.Inside_SetSystemTransformation_n
call fcn.140003224
lea rcx, [0x1400a92d8]
call fcn.140002766
xor ebx, ebx
mov rbp, rax
mov byte [rsp + 0x68], bl
mov edi, ebx
mov esi, ebx
test rax, rax
je 0x140023d9e
mov rdx, rax
lea rcx, str.SetSystemTransformation_DevicePath____ws__n
call fcn.140003224
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140023d4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetSystemTransformation:_CreateFile_Error__08d__n
jmp 0x140023dab
movzx eax, byte [r14]
lea rdx, [rsp + 0x68]
xor r9d, r9d
mov byte [rsp + 0x68], al
mov rcx, rdi
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test eax, eax
jne 0x140023d86
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Inside_SetSystemTransformation:_WriteFile_Error__08d__n
jmp 0x140023dab
movzx edx, byte [rsp + 0x68]
lea rcx, str.SetSystemTransformation:_WriteFile_0x_08x__n
call fcn.140003224
mov esi, 1
jmp 0x140023db4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetSystemTransformation:_GetDevicePath_Error__08d__n
mov edx, eax
mov ebx, eax
call fcn.140003224
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140023dca
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
lea rcx, str.Return_SetSystemTransformation:_Status__08d__n
call fcn.140003224
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140002d83
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
jmp 0x140021840
cmp ecx, 1
jb 0x14002193c
push rbx
sub rsp, 0x30
mov ebx, ecx
lea rax, [rsp + 0x58]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
lea rdx, str.SYSTEMCurrentControlSetServicesIBMPMSVCParameters2Type20Notification
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140021937
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Type22
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002192c
lea ecx, [rbx - 1]
mov eax, 1
shl eax, cl
mov ecx, dword [rsp + 0x40]
test ecx, eax
je 0x1400218d9
not eax
and eax, ecx
jmp 0x1400218db
or eax, ecx
mov rcx, qword [rsp + 0x58]
lea rdx, str.Type22
mov dword [rsp + 0x40], eax
mov r9d, 4
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14002192c
lea rcx, str.NotifyPHType22Event:_Couldnt_write_registry_value._n
call fcn.140003224
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbx
ret
Function at 0x140002d9c
Capabilities:
Set registry value

Disassembly:
jmp 0x140023040
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x6a0
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rbx, rcx
xor esi, esi
lea rcx, [rsp + 0x270]
mov qword [rsp + 0x58], rsi
xor edx, edx
mov dword [rsp + 0x50], esi
mov r8d, 0x208
mov rdi, r9
call fcn.140002eeb
xor edx, edx
lea rcx, [rsp + 0x480]
mov r8d, 0x208
call fcn.140002eeb
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.140002eeb
cmp dword [0x1400d415c], esi
lea rcx, [rsp + 0x270]
mov r8d, dword [rbx]
je 0x14002313c
lea rdx, str..DEFAULTControl_PanelPowerCfgPowerPolicies_d
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x270]
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000003
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14002318d
xor al, al
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.140001ec4
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rdx, str.Control_PanelPowerCfgPowerPolicies_d
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x270]
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140023115
lea rdx, str.Policies
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
movups xmm0, xmmword [rdi]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
movups xmm1, xmmword [rdi + 0x10]
lea rdx, [rsp + 0x480]
mov dword [rsp + 0x28], 0x50
movaps xmmword [rsp + 0x60], xmm0
mov r9d, 3
movups xmm0, xmmword [rdi + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
movaps xmmword [rsp + 0x70], xmm1
movups xmm1, xmmword [rdi + 0x30]
movaps xmmword [rsp + 0x80], xmm0
movups xmm0, xmmword [rdi + 0x40]
movaps xmmword [rsp + 0x90], xmm1
movaps xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140023115
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x140023117
Function at 0x140002e2d
Capabilities:
Set registry value

Disassembly:
jmp 0x14001a640
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x288
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, r8
mov dword [rsp + 0x50], 0
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
mov ebp, r9d
call fcn.140002eeb
lea r9, str.IWTPAUTO.PMHELPER
mov qword [rsp + 0x20], rbx
lea r8, str._ls_ls
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.14000441c
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001a71c
mov rcx, qword [rsp + 0x58]
lea r9d, [rax + 3]
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14001a71c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140001ec4
add rsp, 0x288
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140002e46
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
jmp 0x140021980
cmp ecx, 1
jb 0x140021a7c
push rbx
sub rsp, 0x30
mov ebx, ecx
lea rax, [rsp + 0x58]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
lea rdx, str.SYSTEMCurrentControlSetServicesIBMPMSVCParametersNotification
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140021a77
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Type2
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140021a6c
lea ecx, [rbx - 1]
mov eax, 1
shl eax, cl
mov ecx, dword [rsp + 0x40]
test ecx, eax
je 0x140021a19
not eax
and eax, ecx
jmp 0x140021a1b
or eax, ecx
mov rcx, qword [rsp + 0x58]
lea rdx, str.Type2
mov dword [rsp + 0x40], eax
mov r9d, 4
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140021a6c
lea rcx, str.NotifyPHType2Event:_Couldnt_write_registry_value._n
call fcn.140003224
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbx
ret
Function at 0x140002e9b
Capabilities:
Set registry value

Disassembly:
jmp 0x14000bba0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
mov rax, r8
xor ecx, ecx
mov r10, rdx
mov qword [rsp + 0x40], rcx
mov rdi, r9
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rdx, rax
mov dword [rsp + 0x20], ecx
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000bc27
mov rcx, qword [rbx]
lea rax, [rsp + 0x80]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000bc27
mov eax, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x50
pop rdi
ret

Function at 0x140002ef5
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140032288
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1400bb2c0]
xor ecx, ecx
lea r8, [0x1400bb2b8]
lea rdx, [0x1400bb2c8]
call fcn.140031ce8
test rax, rax
je 0x1400322c1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [case.0x140027caa.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1400030c1
Capabilities:
Shutdown system

Disassembly:
jmp 0x1400215c0
sub rsp, 0x58
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [0x1400d415c], 0
jne 0x1400215f9
xor edx, edx
lea ecx, [rdx + 5]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001ec4
add rsp, 0x58
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14002166e
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140021668
xor eax, eax
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x140021682
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001ec4
add rsp, 0x58
ret
xor edx, edx
lea ecx, [rdx + 0xc]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140021668
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001ec4
add rsp, 0x58
ret