joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012f60
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov rbx, r8
call fcn.140010700
mov rdx, rax
mov rcx, rsi
call fcn.14000c1e0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140012fd9
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012fd4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400130e9
call fcn.14001c70c
cmp qword [rsi + 0x10], 0
mov qword [rsp + 0x90], r14
lea r14, [rsi + 0x10]
je 0x1400130c6
cmp qword [rsi + 0x18], 8
mov rcx, rsi
jb 0x140012ffd
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rsi + 0x18], 8
mov rdx, rsi
jb 0x140013010
mov rdx, qword [rsi]
mov r9d, 2
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSaveKeyExW]
test eax, eax
je 0x14001309d
mov rdi, qword [0x14005eb48]
lea rdx, str.Unable_to_backup_registry_key__ls___d_
mov r9, rbx
mov dword [rsp + 0x20], eax
mov r8d, 2
lea rcx, [rsp + 0x30]
call fcn.14000edc0
cmp qword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x30]
mov rcx, rdi
cmovae rdx, qword [rsp + 0x30]
call fcn.14000f340
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14001309d
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013098
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400130e3
call fcn.14001c70c
cmp qword [rsi + 0x18], 8
mov rcx, rsi
jb 0x1400130aa
mov rcx, qword [rsi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400130c6
cmp qword [rsi + 0x18], 8
jb 0x1400130be
mov rsi, qword [rsi]
xor eax, eax
mov qword [r14], rax
mov word [rsi], ax
mov r14, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001c460
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
call fcn.140025138
int3
call fcn.140025138
int3
Function at 0x1400137b0
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, str.HKLMSoftwareMicrosoftWindowsCurrentVersionUninstall33023371_7761_4F81_BBB1_0E0D0D175ACF
lea rcx, [rsp + 0x20]
call fcn.140012db0
mov rbx, qword [0x14005eb48]
lea rdx, str.Removing_uninstall_entry
xor r8d, r8d
lea rcx, [rsp + 0x30]
call fcn.14000edc0
cmp qword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x30]
mov rcx, rbx
cmovae rdx, qword [rsp + 0x30]
call fcn.14000f340
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140013847
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013842
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400138e7
call fcn.14001c70c
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x1400138ce
mov rbx, qword [0x14005eb48]
lea rdx, str.Failed_to_delete_uninstall_entry___d_
mov r9d, eax
lea rcx, [rsp + 0x30]
mov r8d, 1
call fcn.14000edc0
cmp qword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x30]
mov rcx, rbx
cmovae rdx, qword [rsp + 0x30]
call fcn.14000f340
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400138ce
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400138c9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400138e1
call fcn.14001c70c
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001c460
add rsp, 0x60
pop rbx
ret
call fcn.140025138
int3
call fcn.140025138
int3
Function at 0x1400138f0
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, qword [0x14005eb48]
lea rdx, str.Removing_run_entries
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.14000edc0
cmp qword [rsp + 0x38], 0x10
lea rdx, [rsp + 0x20]
mov rcx, rbx
cmovae rdx, qword [rsp + 0x20]
call fcn.14000f340
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140013976
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013971
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013a51
call fcn.14001c70c
movdqa xmm0, xmmword [0x140051dc0]
mov qword [rsp + 0x80], rdi
lea rdi, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
mov rcx, qword [rdi]
lea r8, [0x140050820]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
test eax, eax
je 0x140013a24
cmp eax, 2
je 0x140013a24
mov rbx, qword [0x14005eb48]
lea rdx, str.Unable_to_delete_run_entry___d_
mov r9d, eax
lea rcx, [rsp + 0x40]
mov r8d, 1
call fcn.14000edc0
cmp qword [rsp + 0x58], 0x10
lea rdx, [rsp + 0x40]
mov rcx, rbx
cmovae rdx, qword [rsp + 0x40]
call fcn.14000f340
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140013a24
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013a1f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013a57
call fcn.14001c70c
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x140013991
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001c460
add rsp, 0x70
pop rbx
ret
call fcn.140025138
int3
call fcn.140025138
int3
Function at 0x140013bf0
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp byte [rcx + 0x19], 0
je 0x140013d73
cmp qword [0x14005bd70], 8
mov qword [rsp + 0x60], rbx
lea rbx, [0x14005bd58]
mov rcx, rbx
cmovae rcx, qword [0x14005bd58]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140013d01
cmp qword [0x14005bd70], 8
lea rax, str.start
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
cmovae rbx, qword [0x14005bd58]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x28]
mov rcx, rbx
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14000f9e0
mov rbx, qword [0x14005eb48]
lea rdx, str.Rollback_service_start_returned__d
mov r9d, eax
lea rcx, [rsp + 0x30]
mov r8d, 1
call fcn.14000edc0
cmp qword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x30]
mov rcx, rbx
cmovae rdx, qword [rsp + 0x30]
call fcn.14000f340
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140013d6e
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013d69
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013d8b
jmp 0x140013d69
mov rbx, qword [0x14005eb48]
lea rdx, str.Rollback_service_start_not_possible
xor r8d, r8d
lea rcx, [rsp + 0x30]
call fcn.14000edc0
cmp qword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x30]
mov rcx, rbx
cmovae rdx, qword [rsp + 0x30]
call fcn.14000f340
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140013d6e
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013d69
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013d85
call fcn.14001c70c
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001c460
add rsp, 0x68
ret
call fcn.140025138
int3
call fcn.140025138
int3
Function at 0x140013ee0
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp byte [0x14005eb41], 0
je 0x140014066
cmp qword [0x14005bd70], 8
mov qword [rsp + 0x60], rbx
lea rbx, [0x14005bd58]
mov rcx, rbx
cmovae rcx, qword [0x14005bd58]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140013ff4
cmp qword [0x14005bd70], 8
lea rax, str.install
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
cmovae rbx, qword [0x14005bd58]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x28]
mov rcx, rbx
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14000f9e0
mov rbx, qword [0x14005eb48]
lea rdx, str.Rollback_service_install_returned__d
mov r9d, eax
lea rcx, [rsp + 0x30]
mov r8d, 1
call fcn.14000edc0
cmp qword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x30]
mov rcx, rbx
cmovae rdx, qword [rsp + 0x30]
call fcn.14000f340
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140014061
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001405c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001407e
jmp 0x14001405c
mov rbx, qword [0x14005eb48]
lea rdx, str.Rollback_service_install_not_possible
xor r8d, r8d
lea rcx, [rsp + 0x30]
call fcn.14000edc0
cmp qword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x30]
mov rcx, rbx
cmovae rdx, qword [rsp + 0x30]
call fcn.14000f340
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140014061
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001405c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014078
call fcn.14001c70c
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001c460
add rsp, 0x68
ret
call fcn.140025138
int3
call fcn.140025138
int3
Function at 0x140001570
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000166b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.CurrentBuildNumber
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000166b
mov ecx, dword [rsp + 0x30]
mov eax, 2
inc ecx
mov qword [rsp + 0x60], rdi
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140008d20
mov r8d, dword [rsp + 0x30]
xor edx, edx
inc r8d
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.CurrentBuildNumber
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000165e
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov ebx, eax
mov rcx, rdi
call fcn.140008cb0
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000167b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0x64
jle 0x140001691
mov eax, 0xcccccccd
mul ebx
shr edx, 3
mov ebx, edx
cmp edx, 0x64
jg 0x140001680
cmp ebx, 0x15
setge al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008c90
add rsp, 0x50
pop rbx
ret
Function at 0x1400016b0
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 [0x140011010]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor esi, esi
xor bl, bl
lea rax, [rsp + 0x78]
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 0x1400017c2
mov dword [rsp + 0x70], esi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x80]
xor r8d, r8d
lea rdx, str.LenovoBatteryGaugeAddin
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400017c2
mov ecx, dword [rsp + 0x70]
inc ecx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140008d20
mov rdi, rax
mov r8d, dword [rsp + 0x70]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x80]
xor r8d, r8d
lea rdx, str.LenovoBatteryGaugeAddin
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400017ba
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.140008cb0
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400017d2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x1400018d8
mov byte [0x140011070], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov r8d, 7
lea rdx, [0x14000b858]
lea rcx, [rsp + 0x30]
call fcn.140007b10
nop
lea rdx, str.BGHelper.txt
lea rcx, [rsp + 0x30]
call fcn.140007a60
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea rdx, [rsp + 0x50]
lea rcx, [0x140011050]
call fcn.140007890
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140001893
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000188d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000188d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008cb0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400018d8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400018d3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008cb0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140008c90
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140001900
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.140009da0
sub rsp, rax
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x2070], rax
cmp byte [rcx + 0x28], 0
mov rdi, rcx
je 0x140001aaa
lea rcx, [0x14000b858]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140001aaa
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.140001290
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.1400011d0
cmp qword [rdi + 0x20], 8
lea rbx, [rdi + 8]
mov rcx, rbx
jb 0x140001a2d
mov rcx, qword [rbx]
mov r8d, 0x40
lea rdx, [0x14000b8c0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfsopen]
mov rsi, rax
test rax, rax
je 0x140001a9a
lea r8, [rsp + 0x1070]
mov rcx, rax
lea rdx, [0x14000b8c8]
call fcn.1400080d0
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 0x140001a9a
mov dword [rdi + 0x2c], 0
cmp qword [rbx + 0x18], 8
jb 0x140001a91
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.140008c90
add rsp, 0x2090
pop rdi
ret
Function at 0x140003c90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1060
call fcn.140009da0
sub rsp, rax
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x1050], rax
cmp qword [rcx + 0x18], 8
mov rdi, rcx
mov rax, rcx
jb 0x140003ccf
mov rax, qword [rcx]
lea rbx, [rcx + 0x10]
xor ebp, ebp
mov qword [rbx], rbp
lea rdx, str.CLSIDE303DE81_073F_438A_B0D3_11C27526F607
mov word [rax], bp
mov r9d, 0x20119
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor sil, sil
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140003d38
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CLSIDE303DE81_073F_438A_B0D3_11C27526F607
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003e75
xor edx, edx
mov dword [rsp + 0x48], 0x400
mov r8d, 0x800
lea rcx, [rsp + 0x850]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r8, str.IsAddin
lea rax, [rsp + 0x850]
mov r9d, 0x20000002
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140003daa
lea rdx, str.true
lea rcx, [rsp + 0x850]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
sete sil
xor edx, edx
mov dword [rsp + 0x48], 0x400
mov r8d, 0x800
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r8, str.MenuTextPUI
lea rax, [rsp + 0x50]
mov r9d, 0x20000002
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140003e4c
lea rax, [rsp + 0x50]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], bp
jne 0x140003e07
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x140003e3f
cmp rax, 8
jb 0x140003e22
mov rdi, qword [rdi]
mov qword [rbx], rdx
mov rcx, rdi
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], bp
jmp 0x140003e4c
lea r9, [rsp + 0x50]
mov rcx, rdi
call fcn.140007c50
lea rax, [rsp + 0x50]
movzx r8d, sil
lea r9, [rsp + 0x850]
mov qword [rsp + 0x20], rax
lea rdx, str.Is_Installed_BG:_install_d__IsAddin___s__MenuVersion___s
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140003e8a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
movzx r8d, sil
lea rdx, str.Is_Installed_BG:_install_d
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
movzx eax, sil
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140008c90
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140003ed0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWARELenovoBatteryGauge
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003f63
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
lea rdx, str.ShowInTaskbar
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x3c], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140003f7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.IsShowInRegistry_failed_to_read_ShowInTaskbar_value__Error_d
jmp 0x140003f70
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.IsShowInRegistry_failed_to_open_registry__Error_d
mov r8d, eax
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140003f98
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x30], 0
mov r8d, dword [rsp + 0x38]
lea rdx, str.IsShowInRegistry_show_d
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
cmp dword [rsp + 0x38], 1
sete al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008c90
add rsp, 0x58
ret

Function at 0x140003fd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.140001570
test al, al
je 0x140004087
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWARELenovoBatteryGaugeToast
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000405d
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
lea rdx, str.NewOsDisplayTimes
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x3c], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000406d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x38], 3
setb al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008c90
add rsp, 0x58
ret
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008c90
add rsp, 0x58
ret