joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400202b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rcx, rdx
mov r14, r8
mov rsi, rdx
xor ebx, ebx
call qword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
je 0x1400202e8
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x1400202d5
mov rcx, rsi
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140020429
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x140020329
cmp eax, 0xb7
jmp 0x140020438
inc r14
mov eax, 2
mov rdi, 0xffffffffffffffff
mul r14
cmovo rax, rdi
mov rcx, rax
call fcn.1400218b8
mov rbp, rax
test rax, rax
je 0x14002043f
mov r8, rsi
mov rdx, r14
mov rcx, rax
call fcn.1400229ec
mov eax, 2
mul r14
cmovo rax, rdi
mov rcx, rax
call fcn.1400218b8
mov rdi, rax
test rax, rax
je 0x14002041f
mov r8, rbp
mov rdx, r14
mov rcx, rax
call fcn.1400229ec
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov rdx, r14
mov rcx, rbp
mov r8, rax
call fcn.1400229ec
lea rdx, [0x14004f64c]
mov rcx, rbp
call fcn.140023300
test rax, rax
je 0x1400203fe
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400203eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400203fe
lea rdx, [0x14004f64c]
xor ecx, ecx
call fcn.140023300
test rax, rax
jne 0x1400203c3
mov rdx, rsi
mov rcx, rdi
call fcn.14002120c
mov ecx, ebx
mov ebx, 1
test eax, eax
cmove ecx, ebx
mov ebx, ecx
mov rcx, rdi
call fcn.140021960
mov rcx, rbp
call fcn.140021960
jmp 0x14002043f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14002043a
test eax, eax
jne 0x14002043f
mov ebx, 1
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x140020460
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140065340]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
mov rbx, rdx
xor eax, eax
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], ax
call fcn.140021100
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400204f2
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
cmp eax, 1
jne 0x1400204f2
lea rax, str.NVInstaller.log
lea r9, [rsp + 0x30]
lea r8, str._sTemp_s
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400237c0
cmp word [rbx], 0
je 0x1400204f2
mov eax, 1
jmp 0x1400204f4
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400215b0
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
Function at 0x140049a18
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x140049a44
call fcn.140025438
mov dword [rax], 0x16
call fcn.140024194
jmp 0x140049b4a
mov eax, dword [rcx + 0x18]
test al, 0x83
je 0x140049b4a
test al, 0x40
jne 0x140049b4a
test al, 2
je 0x140049a66
or eax, 0x20
mov dword [rcx + 0x18], eax
jmp 0x140049b4a
or eax, 1
mov dword [rcx + 0x18], eax
test eax, 0x10c
jne 0x140049a7a
call fcn.1400372e0
jmp 0x140049a81
mov rax, qword [rcx + 0x10]
mov qword [rcx], rax
mov rcx, rdi
call fcn.140030114
mov r8d, dword [rdi + 0x24]
mov rdx, qword [rdi + 0x10]
mov ecx, eax
call fcn.14004b674
mov dword [rdi + 8], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140049b39
test byte [rdi + 0x18], 0x82
jne 0x140049b07
mov rcx, rdi
call fcn.140030114
cmp eax, 0xffffffff
je 0x140049af2
mov rcx, rdi
call fcn.140030114
cmp eax, 0xfffffffe
je 0x140049af2
mov rcx, rdi
call fcn.140030114
mov rcx, rdi
lea rsi, [0x140067670]
movsxd rbx, eax
sar rbx, 5
call fcn.140030114
and eax, 0x1f
imul rcx, rax, 0x58
add rcx, qword [rsi + rbx*8]
jmp 0x140049af9
lea rcx, [0x1400664d0]
mov al, byte [rcx + 8]
and al, 0x82
cmp al, 0x82
jne 0x140049b07
bts dword [rdi + 0x18], 0xd
cmp dword [rdi + 0x24], 0x200
jne 0x140049b26
test byte [rdi + 0x18], 8
je 0x140049b26
test dword [rdi + 0x18], 0x400
jne 0x140049b26
mov dword [rdi + 0x24], 0x1000
mov rcx, qword [rdi]
add dword [rdi + 8], 0xfffffffe
movzx eax, word [rcx]
add rcx, 2
mov qword [rdi], rcx
jmp 0x140049b4f
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [rdi + 0x18], eax
and dword [rdi + 8], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140002760
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rdi
mov eax, 0x10060
call fcn.140027060
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10078], rbx
mov qword [rsp + 0x10080], rsi
mov rax, qword [0x14003b010]
xor rax, rsp
mov qword [rsp + 0x10050], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
call fcn.140001230
mov rcx, rax
test rax, rax
je 0x1400028c2
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rdi], rax
lea rdx, [0x140031900]
lea rbx, [rsi - 1]
cmp rdx, 0x10000
jae 0x1400027e7
movzx edx, dx
mov rcx, rdi
call fcn.140002e30
jmp 0x140002806
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400027f0
mov r8d, eax
mov rcx, rdi
call fcn.1400030e0
nop
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x50]
call fcn.1400134f0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14000289a
lea rcx, [rsp + 0x50]
mov rax, rbx
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140002850
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x140002878
lea rax, [rax*2 - 2]
cmp rax, 0xfffe
jae 0x1400028cd
mov word [rsp + rax + 0x50], si
lea rax, [rsp + 0x50]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140002880
mov r8d, ebx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400030e0
mov rax, rdi
mov rcx, qword [rsp + 0x10050]
xor rcx, rsp
call fcn.140011050
lea r11, [rsp + 0x10060]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400014c0
int3
call fcn.14001177c
int3
Function at 0x1400036c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rdx
mov r15, rcx
test rdx, rdx
jne 0x1400036ec
xor eax, eax
add rsp, 0x50
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, str.CEdid::SetEdidByRegistry__s__n
call fcn.140001130
xor edi, edi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x48], rdi
call fcn.140001230
mov rcx, rax
test rax, rax
je 0x14000388a
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x98], rax
lea rdx, str.SYSTEMCurrentControlSetEnum_
lea rsi, [rdi - 1]
cmp rdx, 0x10000
jae 0x140003751
movzx edx, dx
lea rcx, [rsp + 0x98]
call fcn.140002e30
jmp 0x14000376f
mov rax, rsi
inc rax
cmp word [rdx + rax*2], 0
jne 0x140003754
mov r8d, eax
lea rcx, [rsp + 0x98]
call fcn.1400030e0
nop
mov rax, rsi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140003772
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x98]
call fcn.140003200
lea rdx, str.Device_Parameters
mov rax, rsi
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400037a0
mov r8d, eax
lea rcx, [rsp + 0x98]
call fcn.140003200
mov r9d, 0x20019
mov rbx, qword [rsp + 0x98]
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.1400015b0
test eax, eax
jne 0x140003855
mov dword [rsp + 0x88], 0x100
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x90]
xor r8d, r8d
lea rdx, str.EDID
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test eax, eax
jne 0x14000382b
mov ebp, edi
mov eax, 0xd
cmp dword [rsp + 0x90], 3
cmovne ebp, eax
cmp qword [rsp + 0x38], 0
je 0x140003843
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x40], edi
test ebp, ebp
jne 0x140003855
mov rcx, r15
call fcn.140003cf0
mov edi, eax
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14000386d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000387d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x50
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.1400014c0
int3
Function at 0x1400053b0
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x40
mov qword [rcx + 0x18], rdx
mov rsi, rcx
test rdx, rdx
je 0x140005577
mov eax, dword [rdx + 0x19c]
shr eax, 2
and eax, 7
mov dword [rcx + 0x20], eax
je 0x140005577
cmp dword [rcx + 0x14], 0
jne 0x140005577
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov dword [rcx + 0x14], 1
xor r8d, r8d
mov qword [rsp + 0x60], rbp
xor ecx, ecx
xor edx, edx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [rsi + 0x20]
mov ecx, 0xb0
mov qword [rsi], rax
call fcn.140011910
mov rdi, rax
mov qword [rsp + 0x50], rax
xor ebp, ebp
lea rax, vtable.CMMEndpointNotify.0
mov qword [rdi + 0x48], rax
lea rax, vtable.CMMControlNotify.1.0
mov qword [rdi + 0x50], rbp
mov qword [rdi + 0x58], rax
lea rax, vtable.CMMControlNotify.0
mov qword [rdi + 0x60], rax
lea rax, vtable.CHpDevMonitor.0
mov qword [rdi + 0x68], rbp
mov qword [rdi + 0x40], rbp
mov qword [rdi + 0x20], rbp
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], rbp
mov qword [rdi + 0x28], rbp
mov qword [rdi + 0x30], rbp
mov qword [rdi], rax
call fcn.140001230
test rax, rax
je 0x14000557d
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rdi + 0x90], rax
call fcn.140001230
test rax, rax
je 0x14000557d
mov rdx, qword [rax]
mov rcx, rax
mov qword [rsp + 0x30], r14
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea r14, [rdi + 0xa8]
mov qword [0x14003db58], rdi
add rax, 0x18
mov qword [rdi + 0x98], rax
mov qword [rdi + 0x70], rbp
mov qword [rdi + 0x78], rbp
mov qword [rdi + 0x80], rbp
mov qword [rdi + 0x88], rbp
mov qword [rdi + 0xa0], rbp
mov dword [r14], ebp
test bl, 4
je 0x1400054f7
mov dword [rdi + 0x70], 1
test bl, 2
je 0x140005503
mov dword [rdi + 0x78], 1
mov rcx, rdi
call fcn.1400103d0
mov rcx, rdi
movzx ebx, al
call fcn.140010310
test bl, bl
je 0x14000553e
mov qword [rsp + 0x28], r14
lea r8, [0x1400101b0]
mov r9, rdi
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0xa0], rax
lea rax, [rsi + 0x10]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140005740]
xor edx, edx
mov dword [rsp + 0x20], ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x38]
mov qword [rsi + 8], rax
add rsp, 0x40
pop rsi
ret
mov ecx, 0x80004005
call fcn.1400014c0
int3
Function at 0x1400083f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0xff80]
mov eax, 0x10080
call fcn.140027060
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x10090], rbx
mov qword [rsp + 0x10098], rsi
mov qword [rsp + 0x100a0], rdi
mov rax, qword [0x14003b010]
xor rax, rsp
mov qword [rbp + 0xff70], rax
test dword [rcx + 0x15c], 0x200
jne 0x14000844c
xor eax, eax
jmp 0x14000857f
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rbx
call fcn.140001230
mov rcx, rax
test rax, rax
je 0x140008634
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [0x140031900]
lea rdi, [rbx - 1]
cmp rdx, 0x10000
jae 0x14000849f
movzx edx, dx
lea rcx, [rsp + 0x38]
call fcn.140002e30
jmp 0x1400084ba
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400084a2
mov r8d, eax
lea rcx, [rsp + 0x38]
call fcn.1400030e0
nop
mov r9d, 0x20019
lea r8, str.SOFTWARERealtekWOV
lea rcx, [rsp + 0x48]
call fcn.1400015b0
mov rsi, qword [rsp + 0x48]
test eax, eax
jne 0x140008538
mov dword [rsp + 0x30], 0xfffe
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.VoiceAssistantApplication
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008538
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x140008538
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400085a7
test al, 1
jne 0x140008538
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x1400085ac
test rsi, rsi
je 0x14000854b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14000856d
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000857d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xff70]
xor rcx, rsp
call fcn.140011050
lea r11, [rsp + 0x10080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov word [rsp + 0x70], bx
lea rcx, [rsp + 0x70]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400085b4
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.1400030e0
mov rdx, qword [rsp + 0x38]
lea r8, str.LenovoVoiceAssistant
mov rcx, rdi
nop
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140008602
add rcx, 2
cmp rcx, 0x15
je 0x140008630
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x1400085e0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140008538
test rsi, rsi
je 0x140008622
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov ebx, 1
jmp 0x14000854f
mov eax, ebx
jmp 0x140008607
mov ecx, 0x80004005
call fcn.1400014c0
int3
Function at 0x140008640
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0xff80]
mov eax, 0x10080
call fcn.140027060
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x10090], rbx
mov qword [rsp + 0x10098], rsi
mov qword [rsp + 0x100a0], rdi
mov rax, qword [0x14003b010]
xor rax, rsp
mov qword [rbp + 0xff70], rax
test dword [rcx + 0x15c], 0x200
jne 0x14000869c
xor eax, eax
jmp 0x1400087cf
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rbx
call fcn.140001230
mov rcx, rax
test rax, rax
je 0x140008884
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [0x140031900]
lea rdi, [rbx - 1]
cmp rdx, 0x10000
jae 0x1400086ef
movzx edx, dx
lea rcx, [rsp + 0x38]
call fcn.140002e30
jmp 0x14000870a
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400086f2
mov r8d, eax
lea rcx, [rsp + 0x38]
call fcn.1400030e0
nop
mov r9d, 0x20019
lea r8, str.SOFTWARERealtekAudioWOV
lea rcx, [rsp + 0x48]
call fcn.1400015b0
mov rsi, qword [rsp + 0x48]
test eax, eax
jne 0x140008788
mov dword [rsp + 0x30], 0xfffe
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.VoiceAssistantApplication
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008788
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x140008788
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400087f7
test al, 1
jne 0x140008788
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x1400087fc
test rsi, rsi
je 0x14000879b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400087bd
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400087cd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xff70]
xor rcx, rsp
call fcn.140011050
lea r11, [rsp + 0x10080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov word [rsp + 0x70], bx
lea rcx, [rsp + 0x70]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140008804
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.1400030e0
mov rdx, qword [rsp + 0x38]
lea r8, str.LenovoVoiceAssistant
mov rcx, rdi
nop
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140008852
add rcx, 2
cmp rcx, 0x15
je 0x140008880
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x140008830
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140008788
test rsi, rsi
je 0x140008872
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov ebx, 1
jmp 0x14000879f
mov eax, ebx
jmp 0x140008857
mov ecx, 0x80004005
call fcn.1400014c0
int3
Function at 0x14000bb00
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rcx
cmp qword [rcx + 0x4a0], 0
jne 0x14000bd2e
mov ecx, 0x70
call fcn.140011910
mov rbx, rax
mov qword [rsp + 0x68], rax
lea rax, vtable.CSimpleOrientationSensorManagerEvents.0
mov qword [rbx], rax
xor esi, esi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x30], rsi
mov dword [rbx + 0x38], SafeArrayUnaccessData
mov dword [rbx + 0x58], esi
mov dword [rbx + 0x5c], 0xa
mov qword [rbx + 0x60], rsi
mov qword [rbx + 0x68], rsi
mov dword [rbx + 0x3c], 0x3f400000
mov dword [rbx + 0x40], 0x3e800000
mov dword [rbx + 0x44], 0x40100000
xor ecx, ecx
movss xmm1, dword [0x140033d5c]
movabs rdx, 0x8000000000000000
movss xmm0, dword [0x140033d64]
comiss xmm1, xmm0
jb 0x14000bba7
subss xmm1, xmm0
comiss xmm1, xmm0
jae 0x14000bba7
mov rcx, rdx
cvttss2si rax, xmm1
add rax, rcx
mov qword [rbx + 0x48], rax
xor ecx, ecx
movss xmm1, dword [0x140033d58]
comiss xmm1, xmm0
jb 0x14000bbce
subss xmm1, xmm0
comiss xmm1, xmm0
jae 0x14000bbce
mov rcx, rdx
cvttss2si rax, xmm1
add rax, rcx
mov qword [rbx + 0x50], rax
cmp rax, 0x11
jae 0x14000bbe4
mov qword [rbx + 0x50], rsi
mov qword [rbx + 0x10], rdi
mov dword [rbx + 8], 1
mov ecx, 0x100
call fcn.140011910
mov qword [rsp + 0x78], rax
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.140008c90
nop
mov qword [rbx + 0x18], rax
mov qword [rdi + 0x4a0], rbx
mov rcx, rbx
call fcn.14000a910
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWARERealtekAudio
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000bc87
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.InitSensorAPI_HRESULT_
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x60], 0
jl 0x14000bd04
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWARERealtekAudio
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000bcf7
mov dword [rsp + 0x68], 0x752f
mov dword [rsp + 0x28], 4
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
lea r9d, [rax + 4]
xor r8d, r8d
lea rdx, str.SensorAPI_uninit_HRESULT_
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rdi + 0x4a0]
call fcn.14000ab10
mov rcx, qword [rdi + 0x4a0]
test rcx, rcx
je 0x14000bd27
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x20]
mov qword [rdi + 0x4a0], rsi
xor eax, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000d820
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push r12
sub rsp, 0x70
mov rsi, rcx
call fcn.14000bd40
mov dword [rsi + 0x18], eax
test eax, eax
je 0x14000da7f
lea rbx, [rsi + 0x64]
xor edx, edx
mov rcx, rbx
mov r8d, 0x1f0
call fcn.1400134f0
movups xmm0, xmmword [str._alsC]
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x40]
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x1f0
movaps xmmword [rsp + 0x40], xmm0
lea r8d, [r12 + 0x19]
mov qword [rsp + 0x20], rbx
call fcn.1400016b0
test eax, eax
je 0x14000da7f
mov eax, dword [rsi + 0x104]
shr eax, 3
and eax, 1
mov dword [0x14003d334], eax
jne 0x14000d8b0
test byte [rsi + 0x19c], 0x24
je 0x14000da69
mov rcx, qword [rsi + 0x258]
mov qword [rsp + 0x68], r14
test rcx, rcx
je 0x14000d8cd
call fcn.14000b1d0
mov qword [rsi + 0x258], r12
mov ecx, 0x7b0
call fcn.140011910
mov r14, rax
mov qword [rsp + 0x90], rax
mov rax, qword [rsi + 8]
test rax, rax
je 0x14000da5d
mov qword [rsp + 0xa0], rbp
mov ebp, 0x5c00
mov qword [rsp + 0xa8], rdi
mov rdi, r14
mov qword [rsp + 0x60], r15
mov qword [r14 + 0x7a0], rax
nop dword [rax]
nop word [rax + rax]
xor r9d, r9d
mov qword [rdi + 8], r12
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi], rax
test rax, rax
je 0x14000d9e5
movups xmm0, xmmword [rdi]
mov rcx, qword [r14 + 0x7a0]
xor eax, eax
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], r12d
mov edx, 0xc0000000
movaps xmmword [rsp + 0x50], xmm0
lea r8d, [rax + 3]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14000d9d7
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
mov edx, ebp
mov dword [rsp + 0x28], SafeArrayUnaccessData
lea rax, [rsp + 0x40]
or edx, 0x220000
mov r9d, 0x10
mov qword [rsp + 0x20], rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x14000d9dc
mov qword [rsp + 0x40], r12
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdi + 0x10], xmm0
add ebp, 0xc
add rdi, 0x20
cmp ebp, 0x5ed0
jl 0x14000d920
xor r9d, r9d
mov qword [r14 + 0x788], r12
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r15, qword [rsp + 0x60]
mov rdi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xa0]
mov qword [r14 + 0x780], rax
test rax, rax
je 0x14000da5d
lea rax, [rsp + 0x98]
mov r9, r14
mov qword [rsp + 0x28], rax
lea r8, [0x140005cb0]
xor edx, edx
mov dword [rsp + 0x20], r12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14 + 0x7a8], rax
mov qword [rsi + 0x258], r14
mov r14, qword [rsp + 0x68]
mov rcx, rsi
call fcn.14000d240
mov eax, 1
add rsp, 0x70
pop r12
pop rsi
pop rbx
ret
xor eax, eax
add rsp, 0x70
pop r12
pop rsi
pop rbx
ret