joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400215c0
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

Function at 0x140021840
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 0x140021980
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 0x140022670
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140022670
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rbp + 0x790], rax
xor eax, eax
mov rbx, rcx
lea rcx, [rbp + 0x370]
mov qword [rsp + 0x38], rax
xor edx, edx
mov dword [rsp + 0x30], eax
mov r8d, 0x208
mov dword [rsp + 0x40], eax
call fcn.140002eeb
xor edx, edx
lea rcx, [rbp + 0x580]
mov r8d, 0x208
call fcn.140002eeb
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140002eeb
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x208
call fcn.140002eeb
cmp dword [0x1400d415c], 0
je 0x14002276f
lea rcx, [rbp + 0x160]
call fcn.140003a3f
lea r8, [rbp + 0x160]
lea rdx, str._lsControl_PanelPowerCfg
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400227aa
xor al, al
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.140001ec4
mov rbx, qword [rsp + 0x8b8]
add rsp, 0x8a0
pop rbp
ret
lea rdx, str.Control_PanelPowerCfg
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002274d
lea rdx, str.CurrentPowerPolicy
lea rcx, [rbp + 0x370]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0x580]
mov dword [rsp + 0x30], 0x104
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x370]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002274d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp + 0x580]
call fcn.140003bde
mov dword [rbx], eax
mov al, 1
jmp 0x14002274f
Function at 0x140022890
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 0x140022b20
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140022b20
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rbp + 0x790], rax
xor eax, eax
mov rbx, rdx
mov edi, ecx
mov qword [rsp + 0x38], rax
xor edx, edx
mov dword [rsp + 0x30], eax
lea rcx, [rbp + 0x160]
mov dword [rsp + 0x40], eax
mov r8d, 0x208
call fcn.140002eeb
xor edx, edx
lea rcx, [rbp + 0x580]
mov r8d, 0x208
call fcn.140002eeb
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140002eeb
xor edx, edx
lea rcx, [rbp + 0x370]
mov r8d, 0x208
call fcn.140002eeb
cmp dword [0x1400d415c], 0
je 0x140022c31
lea rcx, [rbp + 0x370]
call fcn.140003a3f
mov r9d, edi
lea r8, [rbp + 0x370]
lea rdx, str._lsControl_PanelPowerCfgPowerPolicies_d
lea rcx, [rbp + 0x160]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x160]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140022c73
xor al, al
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.140001ec4
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov r8d, edi
lea rdx, str.Control_PanelPowerCfgPowerPolicies_d
lea rcx, [rbp + 0x160]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x160]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140022c0b
lea rdx, str.Policies
lea rcx, [rbp + 0x580]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], 0x104
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x580]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140022c0b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movaps xmm0, xmmword [rsp + 0x50]
mov al, 1
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx + 0x10], xmm1
movaps xmm1, xmmword [rbp - 0x80]
movups xmmword [rbx + 0x20], xmm0
movaps xmm0, xmmword [rbp - 0x70]
movups xmmword [rbx + 0x30], xmm1
movaps xmm1, xmmword [rbp - 0x60]
movups xmmword [rbx + 0x40], xmm0
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [rbx + 0x50], xmm1
movaps xmm1, xmmword [rbp - 0x40]
movups xmmword [rbx + 0x60], xmm0
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rbx + 0x70], xmm1
movups xmmword [rbx + 0x80], xmm0
jmp 0x140022c0d
Function at 0x140022ea0
Capabilities:
Set registry value

Disassembly:
jmp 0x140022ea0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x490
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rcx
xor esi, esi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x58], rsi
xor edx, edx
mov dword [rsp + 0x50], esi
mov r8d, 0x208
call fcn.140002eeb
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x208
call fcn.140002eeb
cmp dword [0x1400d415c], esi
lea ebx, [rsi + 1]
lea rcx, [rsp + 0x60]
je 0x140022f1f
lea rdx, str..DEFAULTControl_PanelPowerCfgGlobalPowerPolicy
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, 0xffffffff80000003
jmp 0x140022f33
lea rdx, str.Control_PanelPowerCfgGlobalPowerPolicy
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, 0xffffffff80000001
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 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 0x140022f71
xor al, al
jmp 0x140022fc2
lea rdx, str.Policies
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x270]
mov r9d, 3
mov dword [rsp + 0x28], 0xb0
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmovne ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140001ec4
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140023040
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 0x140023390
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 0x1400236e0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
jmp 0x1400236e0
push rbx
sub rsp, 0x30
lea rcx, str.Inside_SetLastSystemTransformationNotebookMode__._n
call fcn.140003224
lea rax, [rsp + 0x48]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesIBMPMSVCStatus
mov rcx, 0xffffffff80000002
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140023765
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov ebx, 1
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov dword [rsp + 0x40], ebx
lea rdx, str.LastSystemTransformation
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 3]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [rsp + 0x40]
lea rcx, str.SetLastSystemTransformationNotebookMode___:_Set_last_system_status_0x00000001__in_Notebook_Mode:__d_n
call fcn.140003224
jmp 0x140023771
lea rcx, str.Error_:_RegOpenKeyEx_:_SetLastSystemTransformationNotebookMode__._n
call fcn.140003224
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140023781
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400237c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
jmp 0x1400237c0
sub rsp, 0x38
lea rcx, str.Inside_SetLastSystemTransformationTabletMode__._n
call fcn.140003224
lea rax, [rsp + 0x48]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesIBMPMSVCStatus
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002383e
mov rcx, qword [rsp + 0x48]
lea rdx, str.LastSystemTransformation
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
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [rsp + 0x40]
lea rcx, str.SetLastSystemTransformationTabletMode___:_Set_last_system_status_0x00000000__in_Tablet_Mode_:__d_n
call fcn.140003224
jmp 0x14002384a
lea rcx, str.Error_:_RegOpenKeyEx_:_SetLastSystemTransformationTabletMode__._n
call fcn.140003224
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002385a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x38
ret
Function at 0x140023890
Capabilities:
Write file on windows

Disassembly:
jmp 0x140023890
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_SetSystemDockingTransformation_n
call fcn.140003224
lea rcx, [0x1400a92f0]
call fcn.140002766
xor ebx, ebx
mov rbp, rax
mov byte [rsp + 0x68], bl
mov edi, ebx
mov esi, ebx
test rax, rax
je 0x14002396e
mov rdx, rax
lea rcx, str.SetSystemDockingTransformation_DevicePath____ws__n
call fcn.140003224
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002391f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetSystemDockingTransformation:_CreateFile_Error__08d__n
jmp 0x14002397b
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 0x140023956
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Inside_SetSystemDockingTransformation:_WriteFile_Error__08d__n
jmp 0x14002397b
movzx edx, byte [rsp + 0x68]
lea rcx, str.SetSystemDockingTransformation:_WriteFile_0x_08x__n
call fcn.140003224
mov esi, 1
jmp 0x140023984
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetSystemDockingTransformation:_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 0x14002399a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
lea rcx, str.Return_SetSystemDockingTransformation:_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 0x140023b00
Capabilities:
Set registry value

Disassembly:
jmp 0x140023b00
push rbx
sub rsp, 0x30
lea rcx, str.Inside_SetSystemScreenRotationStateNotebookMode__._n
call fcn.140003224
lea rax, [rsp + 0x48]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionAutoRotation
mov rcx, 0xffffffff80000002
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140023b85
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Enable
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [rsp + 0x40]
lea rcx, str.SetSystemScreenRotationStateNotebookMode__:_Disable_Auto_Rotation_:__d_n
call fcn.140003224
mov ebx, 1
jmp 0x140023b91
lea rcx, str.Error_:_RegOpenKeyEx_:_SetSystemScreenRotationStateNotebookMode__._n
call fcn.140003224
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140023ba1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret