joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026920
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x110
call fcn.1401f5d40
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14002698d
cmp dword [rsp + 0x24], 6
jb 0x14002698d
cmp dword [rsp + 0x28], 0
jbe 0x14002698d
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140072680
add rsp, 0x158
ret
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140072680
add rsp, 0x158
ret

Function at 0x1400269b0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x110
call fcn.1401f5d40
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140026a1d
cmp dword [rsp + 0x24], 6
ja 0x140026a1d
cmp dword [rsp + 0x28], 2
jae 0x140026a1d
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140072680
add rsp, 0x158
ret
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140072680
add rsp, 0x158
ret
Function at 0x140026a40
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x2f]
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140026bf0
mov rcx, qword [rbp + 0x2f]
lea rax, [rbp + 0x27]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x27], edi
lea edx, [rdi + 2]
mov r14d, edi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140026abb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140026b09
mov eax, dword [rbp + 0x27]
test eax, eax
je 0x140026be6
mov ecx, eax
call fcn.140073210
mov r8d, dword [rbp + 0x27]
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.1401f5d40
mov r9d, dword [rbp + 0x27]
lea rax, [rbp + 0x37]
mov rcx, qword [rbp + 0x2f]
mov r8, rsi
mov edx, 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140026b1a
mov rcx, rsi
call fcn.14001dee0
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140026bf2
lea rax, [rbp + 0x3f]
mov qword [rbp + 0x3f], rdi
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x47]
mov dword [rsp + 0x48], edi
mov r9d, 0x220
mov dword [rsp + 0x40], edi
mov r8d, 0x20
mov dword [rsp + 0x38], edi
mov dl, 2
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov dword [rbp + 0x47], edi
mov word [rbp + 0x4b], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140026b01
mov qword [rsp + 0xa0], rbx
mov ebx, edi
cmp dword [rsi], edi
jbe 0x140026b9b
mov rdx, qword [rbp + 0x3f]
mov ecx, ebx
add rcx, rcx
mov rcx, qword [rsi + rcx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140026b95
inc ebx
mov r14d, edi
cmp ebx, dword [rsi]
jb 0x140026b72
jmp 0x140026b9b
mov r14d, 1
mov rcx, qword [rbp + 0x3f]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rsi
call fcn.14001dee0
mov rbx, qword [rsp + 0xa0]
test r14d, r14d
je 0x140026be6
mov rcx, qword [rbp + 0x2f]
lea rax, [rbp + 0x37]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x47]
lea edx, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140026b09
mov edi, dword [rbp + 0x47]
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140072680
lea r11, [rsp + 0x90]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140026c80
Capabilities:
Check mutex on windows
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x40
mov rbx, rcx
lea r8, str.GlobalTecoPower_mutex
xor ecx, ecx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
test rax, rax
je 0x140026cda
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140026ce7
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140026ce7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
mov qword [rsp + 0x58], rdi
xor edi, edi
mov qword [rsp + 0x30], rdi
test rbx, rbx
je 0x140026d61
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1402a3e68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140026d61
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140026d61
mov dword [rsp + 0x28], SafeArrayUnaccessData
lea r9d, [rdi + 3]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, [0x1402a3d88]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete dil
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret

Function at 0x140026d90
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [0x14023e410]
xor eax, eax
mov dword [rsp + 0x30], SafeArrayUnaccessData
mov dword [rsp + 0x34], eax
lea rdx, [0x1402a3e68]
mov qword [rsp + 0x38], rax
mov rdi, rcx
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140026e84
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140026e84
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x1402a3d88]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x78]
jne 0x140026e84
mov rax, qword [rsp + 0x40]
cmp rax, qword [0x14023e410]
jne 0x140026e64
mov rax, qword [rsp + 0x48]
cmp rax, qword [0x14023e418]
je 0x140026e84
movups xmm0, xmmword [rsp + 0x40]
mov eax, 1
movups xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140072680
add rsp, 0x60
pop rdi
ret
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140072680
add rsp, 0x60
pop rdi
ret
Function at 0x1400273e0
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x68
movaps xmmword [rsp + 0x40], xmm6
test ecx, ecx
je 0x140027415
sub ecx, 1
je 0x14002740c
cmp ecx, 1
je 0x140027403
xor eax, eax
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x68
ret
movups xmm6, xmmword [0x14023e4c0]
jmp 0x14002741c
movups xmm6, xmmword [0x14023e450]
jmp 0x14002741c
movups xmm6, xmmword [0x14023e520]
call fcn.140002c10
mov rcx, rax
test rax, rax
je 0x140027577
mov rax, qword [rax]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x58], rsi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
xor ebp, ebp
movdqa xmmword [rsp + 0x30], xmm6
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x80], rbp
lea rcx, [rsp + 0x30]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
mov rdx, qword [rsp + 0x80]
lea rsi, [rbp - 1]
test rdx, rdx
je 0x140027544
mov rax, rsi
inc rax
cmp word [rdx + rax*2], bp
jne 0x140027486
mov r8d, eax
lea rcx, [rsp + 0x78]
call fcn.140004720
lea rcx, [rsp + 0x80]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov rbx, qword [rsp + 0x78]
cmp dword [rbx - 0x10], ebp
je 0x140027544
cmp dword [rbx - 8], 1
jle 0x1400274d0
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x78]
call fcn.140002f00
mov rbx, qword [rsp + 0x78]
mov qword [rsp + 0x88], rbp
test rbx, rbx
je 0x140027544
lea rax, [rsp + 0x88]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionAppletsSysTrayBattMeterFlyout
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140027544
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140027544
mov rdx, rbx
mov qword [rsp + 0x50], rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x88]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
mov rdi, qword [rsp + 0x50]
jne 0x140027544
mov ebp, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
mov rbx, qword [rsp + 0x70]
sub esi, 1
mov rsi, qword [rsp + 0x58]
jg 0x140027566
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movaps xmm6, xmmword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov ecx, 0x80004005
call fcn.140002ad0
int3
Function at 0x140027860
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x60
mov rdi, rcx
call fcn.140002c10
test rax, rax
je 0x1400279e6
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x88], rax
call fcn.140002c10
test rax, rax
je 0x1400279e6
mov rdx, qword [rax]
mov rcx, rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rsi
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
movaps xmm0, xmmword [rdi]
lea rdx, [rsp + 0x78]
xor esi, esi
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x78], rsi
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
mov rdx, qword [rsp + 0x78]
lea rdi, [rsi - 1]
test rdx, rdx
je 0x14002799b
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], si
jne 0x1400278f0
mov r8d, eax
lea rcx, [rsp + 0x88]
call fcn.140004720
lea rcx, [rsp + 0x78]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov r9, qword [rsp + 0x88]
lea r8, str.SYSTEMCurrentControlSetControlPowerUserDefaultPowerSchemes
lea rdx, str._s_s
lea rcx, [rsp + 0x30]
call fcn.1400056c0
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x80]
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
mov qword [rsp + 0x80], rsi
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140027996
mov rcx, qword [rsp + 0x80]
call fcn.140027a00
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, 1
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
mov rbx, qword [rsp + 0x58]
sub eax, 1
jg 0x1400279b9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400279d9
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, esi
mov rsi, qword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
mov ecx, 0x80004005
call fcn.140002ad0
int3
Function at 0x140027a00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
xor edi, edi
nop dword [rax]
nop dword [rax + rax]
xor edx, edx
mov dword [rsp + 0x48], 0x208
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.1401f5d40
mov qword [rsp + 0x38], rdi
lea r9, [rsp + 0x48]
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140027aee
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140027a30
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], rdi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140027aea
mov rcx, qword [rsp + 0x40]
call fcn.140027a00
test eax, eax
je 0x140027adf
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140027a30
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140027af3
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140072680
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
Function at 0x14002b310
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x458
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rax, qword [0x1416b9c40]
test rax, rax
jne 0x14002b392
mov edx, 0x208
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14002b363
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140072680
add rsp, 0x458
ret
lea r9, str.Powrprof.dll
lea r8, [rsp + 0x20]
lea rdx, str._s_s
lea rcx, [rsp + 0x230]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140072680
add rsp, 0x458
ret

Function at 0x14002c1c0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
sub rsp, 0x60
lea rax, [r11 + 8]
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x28], rax
lea rdx, [0x1402a4120]
xor ebx, ebx
mov qword [r11 - 0x10], rdi
lea rax, [r11 + 0x20]
mov qword [r11 - 0x18], r14
mov qword [r11 - 0x30], rax
mov r14, r8
mov qword [r11 - 0x38], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
mov qword [r11 + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002c270
mov rbx, qword [rsp + 0x88]
lea rax, [rsp + 0x78]
mov rcx, rbx
mov dword [rsp + 0x28], 8
mov r9d, 3
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.NotifyLastSatisfiedDate
mov rsi, rbx
mov rdi, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14002c29d
test rbx, rbx
je 0x14002c270
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
xor eax, eax
mov dword [r14], eax
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x80]
test rbx, rbx
je 0x14002c295
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x60
pop rbx
ret
test rbx, rbx
je 0x14002c2ab
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov eax, 1
test rdi, rdi
cmove rbx, rsi
jmp 0x14002c272
Function at 0x14002c2c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
sub rsp, 0x68
mov rsi, r8
mov ebp, edx
cmp edx, 2
jb 0x14002c2e5
mov dword [r8], 0
xor eax, eax
add rsp, 0x68
pop rsi
pop rbp
ret
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
lea rdx, [0x1402a4120]
xor ebx, ebx
mov qword [rsp + 0x58], r14
lea rax, [rsp + 0x98]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x98], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002c39e
mov rbx, qword [rsp + 0x98]
lea rax, [rsp + 0x88]
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov r9d, 4
mov dword [rsp + 0x88], ebp
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AutoSetBatterySatisfied
mov r15, rbx
mov r14, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14002c3c8
test rbx, rbx
je 0x14002c39e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
xor eax, eax
mov dword [rsi], eax
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
test rbx, rbx
je 0x14002c3ba
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x68
pop rsi
pop rbp
ret
test rbx, rbx
je 0x14002c3d6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov eax, 1
test r14, r14
cmove rbx, r15
jmp 0x14002c3a0

Function at 0x14002c3f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rdi, rdx
test rdx, rdx
jne 0x14002c40a
xor eax, eax
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x70]
xor ebx, ebx
mov qword [rsp + 0x40], rbp
mov r9d, 0x20019
mov qword [rsp + 0x70], rbx
xor r8d, r8d
mov qword [rsp + 0x38], rsi
lea rdx, [0x1402a4120]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002c4cf
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x60], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AutoSetBatteryLastDate
mov rcx, rbx
mov rbp, rbx
mov rsi, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002c4bf
cmp dword [rsp + 0x68], 3
jne 0x14002c4bf
test rbx, rbx
je 0x14002c4a7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x78]
xor ebx, ebx
test rsi, rsi
mov qword [rdi], rax
mov edi, 1
cmove rbx, rbp
jmp 0x14002c4d1
test rbx, rbx
je 0x14002c4cf
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
xor edi, edi
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
test rbx, rbx
je 0x14002c4e9
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x50
pop rdi
ret
Function at 0x14002c500
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rbx
sub rsp, 0x70
mov qword [r11 - 0x10], rbp
lea rax, [r11 + 8]
xor ebp, ebp
mov qword [r11 - 0x38], rax
test rdx, rdx
mov qword [r11 - 0x18], rsi
lea rax, [r11 + 0x10]
mov qword [r11 - 0x20], rdi
cmove rdx, rbp
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], rbp
xor r9d, r9d
mov qword [r11 - 0x28], r14
mov rcx, 0xffffffff80000002
mov qword [r11 + 0x20], rdx
mov r14, r8
lea rdx, [0x1402a4120]
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov qword [r11 + 0x10], rbp
mov ebx, ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002c5be
mov rbx, qword [rsp + 0x88]
lea rax, [rsp + 0x98]
mov rcx, rbx
mov dword [rsp + 0x28], 8
lea r9d, [rbp + 3]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.AutoSetBatteryLastDate
mov rsi, rbx
mov rdi, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14002c5ed
test rbx, rbx
je 0x14002c5be
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, ebp
mov eax, ebp
mov dword [r14], eax
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
test rbx, rbx
je 0x14002c5e5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x70
pop rbx
ret
test rbx, rbx
je 0x14002c5fb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
mov rbx, rbp
mov eax, 1
cmove rbx, rsi
jmp 0x14002c5c0

Function at 0x14002c610
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rdi, rdx
test rdx, rdx
jne 0x14002c62a
xor eax, eax
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x70]
xor ebx, ebx
mov qword [rsp + 0x40], rbp
mov r9d, 0x20019
mov qword [rsp + 0x70], rbx
xor r8d, r8d
mov qword [rsp + 0x38], rsi
lea rdx, [0x1402a4120]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002c6ef
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x60], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AutoSetBatteryLast2Date
mov rcx, rbx
mov rbp, rbx
mov rsi, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002c6df
cmp dword [rsp + 0x68], 3
jne 0x14002c6df
test rbx, rbx
je 0x14002c6c7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x78]
xor ebx, ebx
test rsi, rsi
mov qword [rdi], rax
mov edi, 1
cmove rbx, rbp
jmp 0x14002c6f1
test rbx, rbx
je 0x14002c6ef
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
xor edi, edi
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
test rbx, rbx
je 0x14002c709
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x50
pop rdi
ret
Function at 0x14002c720
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rbx
sub rsp, 0x70
mov qword [r11 - 0x10], rbp
lea rax, [r11 + 8]
xor ebp, ebp
mov qword [r11 - 0x38], rax
test rdx, rdx
mov qword [r11 - 0x18], rsi
lea rax, [r11 + 0x10]
mov qword [r11 - 0x20], rdi
cmove rdx, rbp
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], rbp
xor r9d, r9d
mov qword [r11 - 0x28], r14
mov rcx, 0xffffffff80000002
mov qword [r11 + 0x20], rdx
mov r14, r8
lea rdx, [0x1402a4120]
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov qword [r11 + 0x10], rbp
mov ebx, ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002c7de
mov rbx, qword [rsp + 0x88]
lea rax, [rsp + 0x98]
mov rcx, rbx
mov dword [rsp + 0x28], 8
lea r9d, [rbp + 3]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.AutoSetBatteryLast2Date
mov rsi, rbx
mov rdi, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14002c80d
test rbx, rbx
je 0x14002c7de
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, ebp
mov eax, ebp
mov dword [r14], eax
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
test rbx, rbx
je 0x14002c805
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x70
pop rbx
ret
test rbx, rbx
je 0x14002c81b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
mov rbx, rbp
mov eax, 1
cmove rbx, rsi
jmp 0x14002c7e0

Function at 0x14002c830
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rdi, rdx
test rdx, rdx
jne 0x14002c84a
xor eax, eax
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x70]
xor ebx, ebx
mov qword [rsp + 0x40], rbp
mov r9d, 0x20019
mov qword [rsp + 0x70], rbx
xor r8d, r8d
mov qword [rsp + 0x38], rsi
lea rdx, [0x1402a4120]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002c90f
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x60], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AutoSetBatteryLast3Date
mov rcx, rbx
mov rbp, rbx
mov rsi, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002c8ff
cmp dword [rsp + 0x68], 3
jne 0x14002c8ff
test rbx, rbx
je 0x14002c8e7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x78]
xor ebx, ebx
test rsi, rsi
mov qword [rdi], rax
mov edi, 1
cmove rbx, rbp
jmp 0x14002c911
test rbx, rbx
je 0x14002c90f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
xor edi, edi
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
test rbx, rbx
je 0x14002c929
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x50
pop rdi
ret