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

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x30], rbx
call fcn.140031c50
test eax, eax
je 0x140030de7
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x60], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DataFocus
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x38], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140030dad
mov edi, dword [rsp + 0x3c]
lea esi, [rbx + 1]
jmp 0x140030db3
mov edi, dword [rsp + 0x40]
mov esi, ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
mov rsi, qword [rsp + 0x60]
je 0x140030dcd
cmp edi, 4
cmovbe ebx, edi
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x50
pop rbx
ret
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x50
pop rbx
ret

Function at 0x1400316a0
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x140031772
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AdjustTokenPrivileges]
mov r9d, 1
mov dword [rsp + 0x28], 0x80030000
xor r8d, r8d
mov dword [rsp + 0x20], 1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_shutdown_l1_1_0.dll_InitiateSystemShutdownExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14003175b
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x58
ret
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x58
ret
Function at 0x140031790
Capabilities:
Create thread

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_power_base_l1_1_0.dll_GetPwrCapabilities]
test al, al
je 0x140031809
cmp byte [rsp + 0x35], 0
je 0x140031809
xor eax, eax
lea r8, [0x140031a80]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
je 0x1400317ec
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x98
ret
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x98
ret

Function at 0x140031830
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x90
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov edi, ecx
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_power_base_l1_1_0.dll_GetPwrCapabilities]
test al, al
je 0x1400318d9
cmp byte [rsp + 0x36], 0
je 0x1400318d9
cmp byte [rsp + 0x46], 1
je 0x1400318d9
mov ecx, 4
mov qword [rsp + 0xa0], rbx
call fcn.14004d694
mov rbx, rax
test rax, rax
je 0x1400318ca
mov dword [rax], edi
lea r8, [0x140031aa0]
xor eax, eax
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
je 0x1400318c2
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rbx, qword [rsp + 0xa0]
mov eax, 1
jmp 0x1400318db
mov rcx, rbx
call fcn.14004d69c
mov rbx, qword [rsp + 0xa0]
mov eax, 1
jmp 0x1400318db
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x90
pop rdi
ret
Function at 0x140031900
Capabilities:
Query or enumerate registry value
Shutdown system

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x60
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov esi, ecx
xor ebp, ebp
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
xor edx, edx
call fcn.140031c50
test eax, eax
je 0x1400319a4
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x78], rdi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LowBatteryAction
mov dword [rsp + 0x38], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14003197f
mov ebx, dword [rsp + 0x3c]
lea edi, [rbp + 1]
jmp 0x140031985
mov ebx, dword [rsp + 0x40]
mov edi, ebp
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
mov rdi, qword [rsp + 0x78]
je 0x1400319a4
test ebx, ebx
jne 0x1400319a4
xor eax, eax
jmp 0x140031a5a
mov edx, esi
lea rcx, str.Request_BatteryLowLow
call fcn.14003f770
xor ecx, ecx
call fcn.140031830
test eax, eax
jne 0x140031a55
mov qword [rsp + 0x30], rbp
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x140031a55
lea r8, [rsp + 0x4c]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor edx, edx
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x54], 2
mov qword [rsp + 0x20], rbp
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AdjustTokenPrivileges]
mov r9d, 1
mov dword [rsp + 0x28], 0x6000c
xor r8d, r8d
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_shutdown_l1_1_0.dll_InitiateSystemShutdownExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140031a55
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400406e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret

Function at 0x140031d40
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r8d
lea rax, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x48
ret
Function at 0x140031da0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.1400423d0
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x208
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x34]
mov rcx, rbx
mov dword [rsp + 0x34], 1
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140031e2d
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, rsi
call fcn.140044288
mov eax, 1
jmp 0x140031e2f
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret

Function at 0x140031e50
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r15, rcx
mov ebx, 0x200
mov ecx, ebx
mov r14, r9
mov rbp, r8
mov r12, rdx
xor edi, edi
call fcn.14004d694
mov rsi, rax
test rax, rax
je 0x140031f62
nop dword [rax]
nop dword [rax + rax]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, r12
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x140031ef4
lea ecx, [rbx + 0x1000]
cmp ebx, 0x1000
lea edx, [rbx + rbx]
cmovae edx, ecx
mov rcx, rsi
mov ebx, edx
call fcn.14004dea0
mov rsi, rax
test rax, rax
jne 0x140031ea0
jmp 0x140031f62
test eax, eax
jne 0x140031f5a
mov rbx, rsi
cmp word [rsi], di
je 0x140031f5a
lea r15d, [rax + 1]
test edi, edi
jne 0x140031f5a
test rbp, rbp
je 0x140031f21
mov rdx, rbp
mov rcx, rbx
call fcn.14004da60
test eax, eax
jne 0x140031f21
mov edi, r15d
jmp 0x140031f37
test r14, r14
je 0x140031f37
mov rdx, r14
mov rcx, rbx
call fcn.14004da60
test eax, eax
cmove edi, r15d
mov rax, 0xffffffffffffffff
nop
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140031f40
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], 0
jne 0x140031f04
mov rcx, rsi
call fcn.14004d69c
mov eax, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140031f80
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.1400423d0
mov r8, rbx
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140044288
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.14004d7f4
mov r9d, 1
mov rdx, rsi
mov rcx, rdi
lea r8d, [rax*2 + 2]
mov dword [rsp + 0x28], r8d
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret

Function at 0x140032030
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x30], rbx
call fcn.140031c50
test eax, eax
je 0x1400320c7
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x38], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400320bc
mov rcx, qword [rsp + 0x40]
test rdi, rdi
je 0x1400320b7
mov rax, rcx
mov dword [rdi], ecx
shr rax, 0x20
mov dword [rdi + 4], eax
mov ebx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400406e0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1400320f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov esi, edx
mov rdi, rcx
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
lea edx, [rbx + 1]
call fcn.140031c50
test eax, eax
je 0x140032166
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov dword [rsp + 0x38], esi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
sete bl
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400406e0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140032210
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov qword [rsp + 0x30], 0
mov rdi, rcx
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140031c50
test eax, eax
je 0x14003229d
test rbx, rbx
je 0x14003228b
mov ecx, dword [rbx]
mov r9d, 0xb
mov r8d, dword [rbx + 4]
mov rdx, rdi
shl r8, 0x20
or r8, rcx
mov dword [rsp + 0x28], 8
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, 1
jmp 0x14003229f
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400406e0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140034740
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x680
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.1400423d0
mov r9, rbx
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.14000a160
xor edx, edx
lea rcx, [rsp + 0x460]
mov r8d, 0x208
call fcn.1400423d0
lea rax, [rsp + 0x30]
xor ebx, ebx
mov r9d, 0x201
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140034872
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x208
call fcn.1400423d0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x250]
mov dword [rsp + 0x38], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.UninstallString
mov dword [rsp + 0x3c], 1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14003484b
lea r8, [rsp + 0x250]
mov edx, 0x104
lea rcx, [rsp + 0x460]
call fcn.140044288
mov ebx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x140034872
movzx ecx, word [rsp + 0x460]
cmp cx, word [0x140064c30]
je 0x140034872
mov eax, 1
jmp 0x140034874
xor eax, eax
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x680
pop rbx
ret
Function at 0x140035ce0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x170
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x160], rax
call fcn.14002af30
xor ebp, ebp
test eax, eax
jne 0x140035ec9
mov eax, dword [0x1400799dc]
cmp eax, 2
jne 0x140035d4e
call qword [sym.imp.POWRPROF.dll_PowerDeterminePlatformRole]
mov ecx, eax
mov eax, ebp
cmp ecx, 1
sete al
mov dword [0x1400799dc], eax
cmp ecx, 2
je 0x140035d44
mov dword [0x1400799d8], ebp
cmp ecx, 8
jne 0x140035d4e
mov dword [0x1400799d8], 1
cmp eax, 1
je 0x140035ec9
call fcn.14002b290
test eax, eax
jne 0x140035ec9
mov dword [rsp + 0x40], ebp
mov ecx, dword [0x7ffe02d8]
cmp ecx, 0xffffffff
je 0x140035d88
xor r9d, r9d
mov dword [rsp + 0x20], ebp
lea r8, [rsp + 0x40]
lea edx, [rax + 8]
call fcn.14003d1c0
xor edx, edx
mov qword [rsp + 0x38], rbp
lea rcx, [rsp + 0x38]
mov ebx, ebp
call fcn.140031c50
test eax, eax
je 0x140035e0d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x4c]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x180], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.OLEDPanel
mov dword [rsp + 0x44], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140035dea
mov edi, dword [rsp + 0x48]
lea esi, [rax + 1]
jmp 0x140035df0
mov edi, dword [rsp + 0x30]
mov esi, ebp
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
mov rsi, qword [rsp + 0x180]
je 0x140035e0d
cmp edi, 1
cmovbe ebx, edi
mov edi, dword [rsp + 0x40]
cmp edi, 0x71
jne 0x140035e35
test ebx, ebx
jne 0x140035eaf
lea edx, [rdi - 0x70]
lea rcx, str.OLEDPanel
call fcn.1400320f0
lea eax, [rdi - 0x70]
jmp 0x140035ee4
cmp edi, 0x70
je 0x140035eb6
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.1400423d0
mov eax, dword [0x1400799b0]
lea r8, str.OLED_panel_status_is_unknown_0x_x__lid_status___d
mov r9d, edi
mov dword [rsp + 0x20], eax
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140006720
mov rcx, qword [0x140079b70]
lea rax, [0x140079b70]
cmp rcx, rax
je 0x140035ea0
test byte [rcx + 0x1c], 4
je 0x140035ea0
mov rcx, qword [rcx + 0x10]
lea r8, [rsp + 0x50]
mov edx, 0xb
mov qword [rsp + 0x20], r8
call fcn.14003f070
lea rcx, [rsp + 0x50]
call fcn.14003fe60
cmp ebx, 1
jne 0x140035ec9
mov eax, 1
jmp 0x140035ee4
cmp ebx, 1
jne 0x140035ec9
xor edx, edx
lea rcx, str.OLEDPanel
call fcn.1400320f0
mov rcx, qword [0x14007d0b0]
test rcx, rcx
je 0x140035ee2
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x14007d0b0], rbp
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400406e0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140035fc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x30], rsi
mov ebx, 1
call fcn.140031c50
test eax, eax
je 0x140036073
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x60], rdi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.OLEDProtect
mov dword [rsp + 0x38], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14003603c
mov edi, dword [rsp + 0x3c]
mov esi, ebx
jmp 0x140036040
mov edi, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
je 0x140036054
cmp edi, ebx
cmovbe ebx, edi
mov rdi, qword [rsp + 0x60]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400406e0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
mov eax, ebx
jmp 0x14003605b

Function at 0x140036080
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x48], rax
test ecx, ecx
jne 0x1400360a4
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
jmp 0x1400360c2
cmp ecx, 1
jne 0x1400360b4
mov qword [rsp + 0x38], 0xffffffffffffffff
jmp 0x1400360c2
cmp ecx, 2
jne 0x14003612a
mov qword [rsp + 0x38], 0
mov edx, 1
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140031c50
test eax, eax
je 0x14003612a
mov eax, dword [rsp + 0x38]
lea rdx, str.OLEDProtectDate
mov ecx, dword [rsp + 0x3c]
mov r9d, 0xb
shl rcx, 0x20
xor r8d, r8d
or rcx, rax
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x58
ret
Function at 0x140037220
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rsi, r8
mov qword [rsp + 0x30], 0
mov rdi, rdx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x208
mov rbx, r9
call fcn.1400423d0
lea rax, str.OnBattery
mov edx, 0x104
lea r9, str.SYSTEMCurrentControlSetServicesEllipticVPS
mov qword [rsp + 0x20], rax
lea r8, str._sUserSettings_s
lea rcx, [rsp + 0x50]
call fcn.14000a160
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400373a3
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x38], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.EnableLeave
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140037307
test rdi, rdi
je 0x140037307
mov eax, dword [rsp + 0x3c]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x3c], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.EnableApproach
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14003734c
test rsi, rsi
je 0x14003734c
mov eax, dword [rsp + 0x38]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x3c], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LockScreenTimeout
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140037391
test rbx, rbx
je 0x140037391
mov eax, dword [rsp + 0x38]
mov dword [rbx], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, 1
jmp 0x1400373a5
xor eax, eax
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400406e0
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400373d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r15d, r15d
lea r12, str.PluggedIn
mov edi, r15d
mov ebx, r15d
mov r14d, r8d
mov ebp, edx
mov esi, ecx
nop dword [rax + rax]
xor edx, edx
mov qword [rsp + 0x30], r15
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.1400423d0
cmp ebx, 1
lea rax, str.OnBattery
lea r9, str.SYSTEMCurrentControlSetServicesEllipticVPS
mov edx, 0x104
cmove rax, r12
lea r8, str._sUserSettings_s
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.14000a160
lea rax, [rsp + 0x30]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140037538
cmp esi, 1
ja 0x1400374ba
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.EnableLeave
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], esi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
cmp ebp, 1
ja 0x1400374f0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.EnableApproach
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], ebp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
cmp r14d, 0xa
jl 0x140037528
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.LockScreenTimeout
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], r14d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov edi, 1
inc ebx
cmp ebx, 2
jb 0x140037410
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x260
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret