joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400013d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rsi, rcx
xor r14d, r14d
cmp qword [rcx + 0x18], 0xe
jb 0x140001423
mov rbx, qword [rcx]
mov qword [rcx + 0x10], 0xe
lea r8d, [r14 + 0x1c]
lea rdx, str.C:ProgramData
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + 0x1c], r14w
jmp 0x140001434
lea r9, str.C:ProgramData
mov edx, 0xe
call fcn.140005a50
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rbp, [0x14000ecf8]
mov eax, dword [rdx + rcx]
cmp dword [0x14000ed18], eax
jle 0x1400014af
lea rcx, [0x14000ed18]
call fcn.140006840
cmp dword [0x14000ed18], 0xffffffff
jne 0x1400014af
xorps xmm0, xmm0
movups xmmword [0x14000ecf8], xmm0
mov qword [0x14000ed08], r14
mov qword [0x14000ed10], r14
xor r8d, r8d
lea rdx, [0x140008938]
mov rcx, rbp
call fcn.140005760
lea rcx, [0x140007a00]
call fcn.140006bc4
nop
lea rcx, [0x14000ed18]
call fcn.1400067e0
mov rdx, qword [0x14000ed08]
test rdx, rdx
jne 0x140001555
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rcx, [0x1400086f0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x14000153e
mov r9, qword [rsp + 0x20]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x1400014f0
mov rax, qword [0x14000ed10]
cmp rdx, rax
ja 0x140001536
mov rdi, rbp
cmp rax, 8
cmovae rdi, qword [0x14000ecf8]
mov qword [0x14000ed08], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r14w
jmp 0x14000153e
mov rcx, rbp
call fcn.140005a50
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdx, qword [0x14000ed08]
test rdx, rdx
je 0x1400015a7
cmp rsi, rbp
je 0x1400015a7
cmp qword [0x14000ed10], 8
cmovae rbp, qword [0x14000ecf8]
mov rax, qword [rsi + 0x18]
cmp rdx, rax
ja 0x14000159c
mov rdi, rsi
cmp rax, 8
jb 0x14000157f
mov rdi, qword [rsi]
mov qword [rsi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r14w
jmp 0x1400015a7
mov r9, rbp
mov rcx, rsi
call fcn.140005a50
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140006690
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140001e10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor esi, esi
xor bl, bl
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREWOW6432NodeLenovoVantageserviceFileLogger
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001f1c
mov dword [rsp + 0x60], esi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.LenovoBatteryGaugeAddin
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001f1c
mov ecx, dword [rsp + 0x60]
inc ecx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140006bdc
mov rdi, rax
mov r8d, dword [rsp + 0x60]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.LenovoBatteryGaugeAddin
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001f14
lea rdx, str.Trace
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
sete bl
mov rcx, rdi
call fcn.1400066b0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140001f2c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x14000203c
mov byte [0x14000e0e0], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov r8d, 7
lea rdx, str.C:_tmp_
lea rcx, [rsp + 0x30]
call fcn.140005760
nop
lea rdx, str.QSHelper.txt
lea rcx, [rsp + 0x30]
call fcn.140005520
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [0x14000e0d8]
cmp rdx, 8
jb 0x140001fe2
mov rcx, qword [0x14000e0c0]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140001fd3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002030
mov rcx, r8
call fcn.1400066b0
movups xmm0, xmmword [rsp + 0x68]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [0x14000e0c0], xmm0
movups xmmword [0x14000e0d0], xmm1
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14000203c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002037
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002037
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400066b0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140006690
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140002070
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
mov eax, 0x2090
call fcn.1400077b0
sub rsp, rax
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x2070], rax
cmp byte [rcx + 0x28], 0
mov rdi, rcx
je 0x14000221a
lea rcx, str.C:_tmp_
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000221a
mov qword [rsp + 0x2088], rbx
lea rcx, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x2080], rsi
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
mov r9, qword [rsp + 0x20a8]
lea rax, [rsp + 0x20b0]
mov edx, 0x800
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x70]
call fcn.140001330
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
xor edx, edx
lea rcx, [rsp + 0x1070]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
movzx ecx, word [rsp + 0x6c]
lea rsi, [rsp + 0x70]
movzx r8d, word [rsp + 0x6a]
mov edx, 0x800
movzx eax, word [rsp + 0x6e]
movzx r10d, word [rsp + 0x68]
movzx r11d, word [rsp + 0x66]
movzx ebx, word [rsp + 0x62]
movzx r9d, word [rsp + 0x60]
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rcx, [rsp + 0x1070]
mov dword [rsp + 0x38], r8d
lea r8, str._04d__02d__02d__02d:_02d:_02d._03d___s_n
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ebx
call fcn.1400012e0
cmp qword [rdi + 0x20], 8
lea rbx, [rdi + 8]
mov rcx, rbx
jb 0x14000219d
mov rcx, qword [rbx]
mov r8d, 0x40
lea rdx, [0x140008ac0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfsopen]
mov rsi, rax
test rax, rax
je 0x14000220a
lea r8, [rsp + 0x1070]
mov rcx, rax
lea rdx, [0x140008ac8]
call fcn.1400010d0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [rdi + 0x2c]
inc eax
mov dword [rdi + 0x2c], eax
cmp eax, 0x1400
jl 0x14000220a
mov dword [rdi + 0x2c], 0
cmp qword [rbx + 0x18], 8
jb 0x140002201
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x2088]
mov rsi, qword [rsp + 0x2080]
mov rcx, qword [rsp + 0x2070]
xor rcx, rsp
call fcn.140006690
add rsp, 0x2090
pop rdi
ret
Function at 0x140003320
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x30], rax
movzx edi, dl
mov rbx, rcx
mov r8, rcx
lea rdx, str.RemoveQsTrayIcon_1__hWnd0x_X__bHideCmd_d
mov r9d, edi
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.140002f10
test dil, dil
je 0x1400033b2
lea rdx, str.RemoveQsTrayIcon_2______RemoveRegAutoStartup
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
xor eax, eax
cmp ax, word [str.LenovoVantageToolbar]
je 0x1400033a4
lea r8, str.LenovoVantageToolbar
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
xor ecx, ecx
call fcn.140003ff0
xor ecx, ecx
call fcn.140003940
mov rcx, qword [0x14000e098]
mov byte [0x14000e0a0], 1
test rcx, rcx
je 0x1400033cb
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rax, str.QuickSetting.exe
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
lea rax, str.QuickSettingEx.exe
mov qword [rsp + 0x28], rax
call fcn.1400019d0
lea rdx, str.RemoveQsTrayIcon_3__end
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140006690
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140003940
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rbp - 0x10], rax
movzx edi, cl
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xor esi, esi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
xor r8d, r8d
lea rdx, [0x140008938]
lea rcx, [rbp - 0x30]
call fcn.140005760
nop
lea rdx, [rbp - 0x30]
lea rcx, str.ToolbarPinIcon.exe
call fcn.140003b30
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess_s]
test eax, eax
jne 0x1400039f9
lea rbx, [rbp - 0x30]
mov rcx, qword [rbp - 0x18]
cmp rcx, 8
jb 0x1400039ce
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x140003a01
cmp word [rbx], 0
je 0x1400039ed
call fcn.140006510
mov rdx, qword [rax]
mov rax, qword [rdx]
test rax, rax
je 0x1400039ed
mov rcx, rbx
call rax
test eax, eax
je 0x140003a14
mov rcx, rbx
call fcn.1400022d0
test al, al
jne 0x140003a14
mov rcx, qword [rbp - 0x18]
mov rbx, qword [rbp - 0x30]
lea rax, [rbp - 0x30]
cmp rcx, 8
cmovae rax, rbx
mov qword [rbp - 0x20], rsi
mov word [rax], si
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r8, qword [rbp - 0x30]
lea rdx, str.Toolbar_PinIcon_path____s_
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x20], 0
ja 0x140003a61
cmp qword [rbp - 0x18], 8
cmovae r8, qword [rbp - 0x30]
lea rdx, str.get_toolbar_pinIcon_path_failed:_path____s_
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
xor bl, bl
jmp 0x140003abc
lea rax, str.NotifyShowBatteryGauge
lea rbx, str.NotifyHideBatteryGauge
test dil, dil
cmovne rbx, rax
cmp qword [rbp - 0x18], 8
cmovae r8, qword [rbp - 0x30]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r9, qword [rbp - 0x30]
mov r8, rbx
lea rdx, str.Launch_to_notify_PinStatus:_CmdLine____s___FilePath____s_
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
mov bl, 1
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140003aff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003afa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003afa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400066b0
movzx eax, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140006690
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140003ff0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx edi, cl
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
lea rdx, str.SOFTWARELenovoBatteryGauge
xor r8d, r8d
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140004078
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r8
lea rdx, str.SOFTWARELenovoBatteryGauge
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r8
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400040b6
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.ShowInTaskbar
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x58], edi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400040c6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140006690
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x1400045f0
Capabilities:
Find taskbar
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140004666
xor r9d, r9d
lea r8, str.TrayNotifyWnd
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
test rax, rax
je 0x140004666
xor r9d, r9d
lea r8, str.SysPager
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
test rax, rax
je 0x140004666
xor r9d, r9d
lea r8, str.ToolbarWindow32
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rcx, rax
call fcn.1400040f0
xor edx, edx
lea rcx, str.NotifyIconOverflowWindow
mov edi, eax
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140004699
xor r9d, r9d
lea r8, str.ToolbarWindow32
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rcx, rax
call fcn.1400040f0
lea rax, [rsp + 0x30]
xor ebx, ebx
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
lea rdx, str.SOFTWARELenovoBatteryGauge
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000470a
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
cmp edi, 1
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
sete bl
lea rdx, str.ShowShareIcon
xor r8d, r8d
mov dword [rsp + 0x38], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000471a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140006690
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140004740
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov dword [rcx], 0xffffffff
lea rax, [rsp + 0x30]
xor ebx, ebx
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWARELenovoBatteryGauge
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400047d7
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.ShowShareIcon
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400047d7
cmp dword [rsp + 0x3c], ebx
setne bl
mov dword [rdi], ebx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400047e7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140006690
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140004800
Capabilities:
Get session user name
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
xor r8d, r8d
lea rdx, [0x140008938]
lea rcx, [rbp - 0x80]
call fcn.140005760
nop
lea rcx, [rbp - 0x80]
call fcn.140005170
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae r8, qword [rbp - 0x80]
lea rdx, str.NeedToLaunchInstanceAsUser__read_file_outside_impersonate__FilePath__:__s
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
xor dil, dil
xor ebx, ebx
mov qword [rsp + 0x60], rbx
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x7c], 0x100
lea rdx, [rsp + 0x7c]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [rsp + 0x70], ebx
mov word [rsp + 0x74], 0x500
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8d, [rbx + 0x12]
mov dl, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x78], eax
test eax, eax
je 0x140004916
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x78], ebx
jne 0x14000492b
lea rdx, [rbp - 0x60]
lea rcx, str.system
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140004988
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea rdx, [rsp + 0x60]
mov ecx, eax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x140004988
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140004988
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x140004988
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x60]
call fcn.140004a00
movzx edi, al
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x140004988
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400049cb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400049c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400049c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400066b0
movzx eax, dil
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140006690
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140004c40
Capabilities:
Find taskbar

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rdx, str.Refresh_TrayArea_1
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
xor r9d, r9d
lea r8, str.TrayNotifyWnd
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowExW]
xor r9d, r9d
lea r8, str.SysPager
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowExW]
lea r9, str.User_Promoted_Notification_Area
xor edx, edx
mov rcx, rax
lea r8, str.ToolbarWindow32
mov rbx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rdi, rax
test rax, rax
jne 0x140004cd2
xor r9d, r9d
lea r8, str.ToolbarWindow32
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rdi, rax
xor edx, edx
lea rcx, str.NotifyIconOverflowWindow
call qword [sym.imp.USER32.dll_FindWindowW]
lea r9, str.Overflow_Notification_Area
xor edx, edx
mov rcx, rax
lea r8, str.ToolbarWindow32
mov rbx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
test rax, rax
jne 0x140004d17
xor r9d, r9d
lea r8, str.ToolbarWindow32
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rcx, rax
call 0x140004d40
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140004d40
test rcx, rcx
je 0x140004e15
push rbp
sub rsp, 0x40
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x60], rsi
mov rbp, rcx
call qword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [rsp + 0x28]
mov eax, 0x320
xor esi, esi
cmp edx, eax
cmovl eax, edx
test eax, eax
jle 0x140004dfe
mov eax, 0x320
mov qword [rsp + 0x58], rbx
cmp dword [rsp + 0x2c], eax
mov qword [rsp + 0x68], rdi
cmovl eax, dword [rsp + 0x2c]
nop dword [rax]
xor edi, edi
test eax, eax
jle 0x140004de3
mov ebx, esi
nop dword [rax + rax]
movsxd r9, ebx
xor r8d, r8d
mov edx, 0x200
mov rcx, rbp
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 0x320
add edi, 5
add ebx, 0x50000
cmp dword [rsp + 0x2c], eax
cmovl eax, dword [rsp + 0x2c]
cmp edi, eax
jl 0x140004db0
mov edx, dword [rsp + 0x28]
add esi, 5
mov ecx, 0x320
cmp edx, ecx
cmovl ecx, edx
cmp esi, ecx
jl 0x140004da0
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140006690
add rsp, 0x40
pop rbp
ret
Function at 0x140005080
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx edi, cl
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000001
mov byte [0x14000e8d1], dil
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], 0
lea rdx, str.SOFTWARELenovoBatteryGauge
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000514e
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rbx
mov rbx, qword [rsp + 0x30]
lea rdx, str.DelayShowRemainTime
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov r9d, 4
mov dword [rsp + 0x30], edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test rbx, rbx
je 0x14000511e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test edi, edi
sete dil
test rbx, rbx
je 0x140005132
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x58]
movzx eax, dil
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140006690
add rsp, 0x40
pop rdi
ret
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140006690
add rsp, 0x40
pop rdi
ret

Function at 0x140007198
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400071e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400071e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400071e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400071e2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400071e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400071e4
xor al, al
add rsp, 0x28
ret