joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025710
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cx
mov eax, ebx
cmp ebx, 0x11c
ja 0x1400257ee
je 0x1400257e6
sub eax, 0x1d
cmp eax, 0x36
ja case.0x140025813.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x258e4]
mov ecx, dword [rdx + rax*4 + 0x25898]
add rcx, rdx
jmp rcx
mov al, 0xa0
add rsp, 0x20
pop rbx
ret
mov al, 0xa2
add rsp, 0x20
pop rbx
ret
mov al, 0xa4
add rsp, 0x20
pop rbx
ret
mov al, 0x6a
add rsp, 0x20
pop rbx
ret
mov al, 0x6d
add rsp, 0x20
pop rbx
ret
mov al, 0x6b
add rsp, 0x20
pop rbx
ret
mov al, 0x2e
add rsp, 0x20
pop rbx
ret
mov al, reloc.WSOCK32.dll_ioctlsocket
add rsp, 0x20
pop rbx
ret
mov al, 0x2d
add rsp, 0x20
pop rbx
ret
mov al, 0x26
add rsp, 0x20
pop rbx
ret
mov al, 0x28
add rsp, 0x20
pop rbx
ret
mov al, 0x25
add rsp, 0x20
pop rbx
ret
mov al, 0x27
add rsp, 0x20
pop rbx
ret
mov al, 0x24
add rsp, 0x20
pop rbx
ret
mov al, reloc.OLEAUT32.dll_SafeArrayAllocDescriptor
add rsp, 0x20
pop rbx
ret
mov al, 0x21
add rsp, 0x20
pop rbx
ret
mov al, SafeArrayAllocDescriptor
add rsp, 0x20
pop rbx
ret
mov al, reloc.WSOCK32.dll_send
add rsp, 0x20
pop rbx
ret
mov al, 0xd
add rsp, 0x20
pop rbx
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x140025813.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x25944]
mov ecx, dword [rdx + rax*4 + 0x2591c]
add rcx, rdx
jmp rcx
mov al, 0xa1
add rsp, 0x20
pop rbx
ret
mov al, 0xa3
add rsp, 0x20
pop rbx
ret
mov al, 0xa5
add rsp, 0x20
pop rbx
ret
mov al, 0x5b
add rsp, 0x20
pop rbx
ret
mov al, 0x5c
add rsp, 0x20
pop rbx
ret
mov al, 0x90
add rsp, 0x20
pop rbx
ret
mov al, reloc.WSOCK32.dll_WSAGetLastError
add rsp, 0x20
pop rbx
ret
mov al, 0x5d
add rsp, 0x20
pop rbx
ret
mov al, 0x2c
add rsp, 0x20
pop rbx
ret
bt bx, 8
jae 0x14002587c
movzx ecx, bl
mov edx, 1
or ecx, 0xe000
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x140025890
movzx ecx, bl
mov edx, 1
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_MapVirtualKeyW]
add rsp, 0x20
pop rbx
ret
invalid
cld
and al, 0x3f
jno 0x14027268e
or eax, esi
and al, cl
mov dl, byte [rcx + 0x362e3f7d]
jge 0x140272670
mov eax, 0xa028a0ab
mov eax, 0xa028a0ab
mov eax, 0xa028a0ab
invalid
sal edx, cl
ret 0xbaf7
invalid
adc byte [rdi + 0x1e], dil
sub eax, 0xc63b1f7e
and r13, rdx
insb byte [rdi], dx
push 0xffffffffffffffd9
xor al, 0xe3
scasd eax, dword [rdi]
not dl
leave
fistp word [rdx + 0x3ccb8ee0]
cmp al, 0xd9
int 0x8d
cmp al, 0xd9
int 0x8d
sbb edi, eax
pop rbp
mov dl, 0x67
invalid
jg 0x140272646
cmp esp, dword [rax + rax*8]
adc eax, 0x33b3c3f6
add al, 0xf3
mov ebp, 0xaa2047dc
stosb byte [rdi], al
stosb byte [rdi], al
sub cl, ch
sub dword [rsi + 0x700db0ad], edi
fdivr qword [rdx + rbx*2 + 0x4b]
jrcxz 0x1402726ff
mov ecx, 0x89e3ba3e
adc edi, dword [rdx]
invalid
cmp dh, bl
invalid
sar dword [rbx + 0x70], 0x2b
jnp 0x140272772
sub edi, dword [rcx + 0x14]
test ecx, ebx
invalid
cmp dl, bl
or ah, bl
or cl, byte [rcx + 0x7d07f87b]
xchg esp, eax
or al, 0xc6
jge 0x140272755
jnp 0x140272713
invalid
xor byte [rax + 0x5a], al
jmp 0x1402726c5
pop rdx
cdq
in eax, dx
scasb al, byte [rdi]
stosb byte [rdi], al
invalid
Function at 0x140d6d674
Capabilities:
Execute anti-debugging instructions

Disassembly:
push r10
ret
push r14
jmp 0x140e310a2
push r9
xor dword [rsp], edx
shl r9, 0x54
jmp 0x140dbfe0b
push rsi
movsx si, r13b
not sil
mov si, r11w
push rdi
mov sil, r9b
movzx rsi, di
movzx esi, sp
push rax
push r11
xchg dil, r11b
jmp 0x140d4cde7
rol r11d, 3
rdtsc
mov r10b, bpl
dec r11d
btc r10w, r12w
rcr al, 0x8c
neg r11d
add r9b, cl
movsx ax, r13b
test r10b, 0xac
lea r11, [r11 + rsi]
movabs rax, 0x100000000
lea r11, [r11 + rax]
sbb rdx, r13
mov rdi, rsp
rcl dl, 0xd7
neg r9
sub rsp, 0x180
and rsp, 0xfffffffffffffff0
bt r9w, r9w
mov r9, r11
movabs rdx, 0
sub r9, rdx
movsx r10w, bl
shrd r10w, r13w, 0xf5
lea r10, [0x140daa25e]
mov edx, dword [r11]
add r11, 4
test bpl, bpl
cmc
xor edx, r9d
cmc
not edx
clc
stc
rol edx, 1
stc
not edx
clc
cmc
ror edx, 3
test r14, 0x185e5e6f
jmp 0x140d66c9d
pop r9
cmc
test r9d, 0x5ef43990
cmp dil, 0xff
movsxd rdx, edx
add r10, rdx
jmp 0x140d45a19
push rbp
xchg dil, dil
bswap ax
movsx edi, r9w
push rcx
cwde
xchg r11, r11
push r10
lahf
push r12
movsxd rsi, esp
push rdx
push r9
push r8
jmp 0x140e34a64
push r13
rdtsc
movsx r10w, bpl
push rbx
push r15
movsx si, r11b
bswap rax
pushfq
add r10b, 0x43
movzx edx, ax
movabs rsi, 0
push rsi
cdq
bt dx, 0xd4
stc
mov r11, qword [rsp + 0x90]
shld rdx, rbx, 0xf6
sar dh, cl
rcl r9, cl
sub r11d, 0x6279622b
jmp 0x140daa1ef
Function at 0x1800011f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x620]
sub rsp, 0x720
xor eax, eax
lea rdi, [rbp - 0x70]
mov ecx, 0x68
rep stosb byte [rdi], al
lea rdi, [rsp + 0x70]
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, [rbp - 0x70]
mov dword [rbp - 0x70], 0x68
call fcn.180001110
xor eax, eax
lea rdi, [rbp]
mov ecx, 0x20a
lea rdx, str._systemroot__system32_
rep stosb byte [rdi], al
lea rdi, [rsp + 0x60]
mov ecx, 0x10
rep stosb byte [rdi], al
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp]
lea r9, [rbp + 0x630]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
xor ebx, ebx
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], 0x2080000
mov dword [rbp + 0x630], ebx
call qword [sym.imp.ntdll.dll_RtlExpandEnvironmentStrings_U]
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x1800012b8
cmp eax, 0xc0000023
je 0x1800012b8
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x1800013ae
mov eax, dword [rbp + 0x630]
shr eax, 1
dec eax
cmp eax, 0x102
ja 0x1800013ae
xor eax, eax
lea rdi, [rbp + 0x210]
mov ecx, 0x410
rep stosb byte [rdi], al
movzx ecx, word [rbp]
lea rdx, [rbp + 0x210]
test cx, cx
je 0x180001314
lea rdi, [rbp]
lea rax, [rbp + 0x210]
sub rdi, rax
nop dword [rax + rax]
movzx eax, word [rdi + rdx + 2]
mov word [rdx], cx
add rdx, 2
movzx ecx, ax
test ax, ax
jne 0x180001300
mov word [rdx], bx
lea rax, [rbp + 0x210]
cmp word [rbp + 0x210], bx
je 0x180001330
add rax, 2
cmp word [rax], bx
jne 0x180001327
lea rdi, str.cmd.exe
mov edx, 0x63
sub rdi, rax
nop
movzx ecx, word [rdi + rax + 2]
lea rax, [rax + 2]
movzx edx, cx
test cx, cx
jne 0x180001340
lea rax, [rsp + 0x70]
lea rdx, str.boom1_cccIcNsu2LFQhvLzJefABPrcg9d1_2FSc8CuU_2BPwYXnI7EJ5o5Cg6MDbm2lKtrW6DG6mbcCNl6tBdbS95j1nixEwD6_2Fg9v7Ndb9juRJYeB8X5iRAm0oO7DETaunLghwokydZgEHmAHb5vxyg3H91OZC6mBQcz2KBeLAlqrzBj4bFlBCb8rpDYkXM64b0AYNVYZlhhN7ie0jsev4ozQP6m1dmJQkiux3IP4DLjItux_2FMntN6d_2FWXakkCv1KFmaNE8Wcevk5Nxz
lea rcx, str.C:UsersUserAppDataLocalTemp9E1.exe
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rbp]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [0x180004210]
test eax, eax
je 0x1800013ae
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntdll.dll_NtClose]
xor edx, edx
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
lea r11, [rsp + 0x720]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140001460
Capabilities:
Query service status

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140010008]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14000149e
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140007350
add rsp, 0x70
pop rbx
ret
mov r8d, 4
mov qword [rsp + 0x88], rdi
lea rdx, str.LenovoVantageService
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x1400014d1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140001527
lea rax, [rsp + 0x30]
mov qword [rsp + 0x80], rsi
mov r9d, 0x24
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rdi
xor sil, sil
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140001509
cmp dword [rsp + 0x3c], 4
sete sil
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, sil
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140007350
add rsp, 0x70
pop rbx
ret

Function at 0x140001550
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140010008]
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 0x14000164b
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 0x14000164b
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.1400073ec
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 0x14000163e
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.1400073e4
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000165b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0x64
jle 0x140001678
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
cmp edx, 0x64
jg 0x140001660
cmp ebx, 0x15
setge al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007350
add rsp, 0x50
pop rbx
ret
Function at 0x1400018a0
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.1400086d0
sub rsp, rax
mov rax, qword [0x140010008]
xor rax, rsp
mov qword [rsp + 0x2070], rax
cmp byte [rcx + 0x28], 0
mov rdi, rcx
je 0x140001a49
lea rcx, str.C:_tmp_
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140001a49
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.140001080
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.140001020
cmp qword [rdi + 0x20], 8
lea rbx, [rdi + 8]
jb 0x1400019cc
mov rcx, qword [rbx]
jmp 0x1400019cf
mov rcx, rbx
mov r8d, 0x40
lea rdx, [0x140009860]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfsopen]
mov rsi, rax
test rax, rax
je 0x140001a39
lea r8, [rsp + 0x1070]
mov rcx, rax
lea rdx, [0x140009868]
call fcn.140006490
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]
inc dword [rdi + 0x2c]
cmp dword [rdi + 0x2c], 0x1400
jl 0x140001a39
mov dword [rdi + 0x2c], 0
cmp qword [rbx + 0x18], 8
jb 0x140001a30
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.140007350
add rsp, 0x2090
pop rdi
ret
Function at 0x140001a70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140010008]
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.SOFTWAREWOW6432NodeLenovoVantageserviceFileLogger
mov rcx, 0xffffffff80000002
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001b77
xor ecx, ecx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea rdx, str.LenovoBatteryGaugeAddin
mov dword [rsp + 0x30], ecx
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001b77
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.1400073ec
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.LenovoBatteryGaugeAddin
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001b6a
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.1400073e4
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001b87
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007350
add rsp, 0x50
pop rbx
ret
Function at 0x140002bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x860
mov rax, qword [0x140010008]
xor rax, rsp
mov qword [rsp + 0x850], rax
lea rax, [rsp + 0x40]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CLSIDE303DE81_073F_438A_B0D3_11C27526F607
mov rcx, 0xffffffff80000000
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140002c47
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 0x140002cd3
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.IsAddin
lea rax, [rsp + 0x50]
mov r9d, 0x20000002
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140002cb5
lea rdx, str.true
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
sete bl
jmp 0x140002cb7
xor bl, bl
movzx r8d, bl
lea r9, [rsp + 0x50]
lea rdx, str.Is_Installed_BG:_install_d__IsAddin___s
lea rcx, [0x140010748]
call fcn.1400018a0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140002cec
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], 0
movzx r8d, bl
lea rdx, str.Is_Installed_BG:_install_d
lea rcx, [0x140010748]
call fcn.1400018a0
movzx eax, bl
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140007350
add rsp, 0x860
pop rbx
ret

Function at 0x140002d20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140010008]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
xor ebx, ebx
mov r9d, 0x20019
mov dword [rsp + 0x38], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARELenovoBatteryGauge
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002db3
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 + 0x40], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ShowInTaskbar
mov dword [rsp + 0x3c], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140002dcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.IsShowInRegistry_failed_to_read_ShowInTaskbar_value__Error_d
jmp 0x140002dc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.IsShowInRegistry_failed_to_open_registry__Error_d
mov r8d, eax
lea rcx, [0x140010748]
call fcn.1400018a0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140002de4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x30], rbx
mov r8d, dword [rsp + 0x38]
lea rdx, str.IsShowInRegistry_show_d
lea rcx, [0x140010748]
call fcn.1400018a0
cmp dword [rsp + 0x38], 1
sete al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007350
add rsp, 0x50
pop rbx
ret
Function at 0x140002e20
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x20
call fcn.140001550
test al, al
je 0x140002e65
lea rdx, str.LenovoVantageToolbar
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov r8, rax
lea rdx, str.ShowInTaskbar_new_OS_TrayWnd___0x_X_
lea rcx, [0x140010748]
mov rbx, rax
call fcn.1400018a0
xor eax, eax
test rbx, rbx
setne al
add rsp, 0x20
pop rbx
ret
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov r8, rax
lea rdx, str.ShowInTaskbar_Win10_Parent___0x_X_
lea rcx, [0x140010748]
mov rbx, rax
call fcn.1400018a0
test rbx, rbx
je 0x140002f01
xor r9d, r9d
lea r8, str.ReBarWindow32
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov r8, rax
lea rdx, str.ShowInTaskbar_Win10_Rebar___0x_X_
lea rcx, [0x140010748]
mov rbx, rax
call fcn.1400018a0
test rbx, rbx
je 0x140002f01
xor r9d, r9d
lea r8, str.Lenovo_Hardware_Settings_Battery_Gauge
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov r8, rax
lea rdx, str.ShowInTaskbar_showtrue__Battery___0x_X_
lea rcx, [0x140010748]
mov rbx, rax
call fcn.1400018a0
xor eax, eax
test rbx, rbx
setne al
add rsp, 0x20
pop rbx
ret
lea rdx, str.ShowInTaskbar_showfalse
lea rcx, [0x140010748]
call fcn.1400018a0
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140002f20
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140010008]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.140001550
test al, al
je 0x140002fdf
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rbx
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov dword [rsp + 0x38], ebx
xor r8d, r8d
lea rdx, str.SOFTWARELenovoBatteryGaugeToast
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002fb0
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 + 0x40], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.NewOsDisplayTimes
mov dword [rsp + 0x3c], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140002fc0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x38], 3
mov rbx, qword [rsp + 0x50]
setb al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007350
add rsp, 0x58
ret
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007350
add rsp, 0x58
ret
Function at 0x140003000
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140010008]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.140001550
test al, al
jne 0x14000302e
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007350
add rsp, 0x58
ret
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rbx
xor ebx, ebx
mov dword [rsp + 0x3c], 4
mov r9d, 0xf003f
mov dword [rsp + 0x38], ebx
xor r8d, r8d
mov dword [rsp + 0x40], ebx
lea rdx, str.SOFTWARELenovoBatteryGaugeToast
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000310b
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.NewOsDisplayTimes
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400030b9
lea rdx, str.IsSetNewOsUpdateFlag_1_check_flag_value
lea rcx, [0x140010748]
call fcn.1400018a0
cmp dword [rsp + 0x38], ebx
jne 0x14000310b
mov eax, dword [rsp + 0x3c]
lea rdx, str.NewOsUpdateFlag
mov rcx, qword [rsp + 0x30]
mov r9d, 4
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000310b
lea rdx, str.IsSetNewOsUpdateFlag_2_set_new_flag_value:_1
lea rcx, [0x140010748]
call fcn.1400018a0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000311b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x38], ebx
mov rbx, qword [rsp + 0x50]
sete al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007350
add rsp, 0x58
ret

Function at 0x140003140
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140010008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ecx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
lea rdx, str.SOFTWARELenovoBatteryGauge
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400031c6
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.ShowInTaskbar
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400031c6
lea rdx, str.UpdateRegStatus_....OK
lea rcx, [0x140010748]
call fcn.1400018a0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400031d6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007350
add rsp, 0x58
ret