joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043474
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400434a4
xor eax, eax
jmp 0x140043567
mov rbp, rbx
cmp word [rax], si
je 0x1400434c9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400434b0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400434ac
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14003c2c4
movsxd r14, eax
test eax, eax
jne 0x140043507
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004349d
mov rcx, r14
call fcn.14003ba04
mov rdi, rax
test rax, rax
jne 0x140043520
xor ecx, ecx
call fcn.14003b9c8
jmp 0x1400434fc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14003c2c4
test eax, eax
jne 0x140043551
mov rcx, rdi
call fcn.14003b9c8
jmp 0x14004355b
xor ecx, ecx
call fcn.14003b9c8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140045de8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14003b668
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140045e89
cmp ebx, dword [rsp + 0x30]
je 0x140045e82
test esi, esi
je 0x140045e82
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140045e5d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140045e6a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140045e47
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140045e6e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140045e8b
mov eax, 1
jmp 0x140045e8b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140049ea0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140049ec8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140049ec8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14009f010
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14009f0a1
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x14009f0a1
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14009f0a1
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14009f085
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14009f07f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14009f087
add rdx, 0x28
jmp 0x14009f064
xor edx, edx
test rdx, rdx
jne 0x14009f090
xor al, al
jmp 0x14009f0a7
test dword [rdx + 0x24], 0x80000000
je 0x14009f09d
xor al, al
jmp 0x14009f0a7
mov al, 1
jmp 0x14009f0a7
xor al, al
jmp 0x14009f0a7
add rsp, 0x18
ret

Function at 0x1400a2914
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400a26e8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a26e8
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a26e8
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a26e8
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a26e8
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a26e8
cmp dword [rcx + 0xf8], esi
je 0x1400a26e8
mov ecx, r14d
call fcn.1400a2830
mov ecx, 2
call fcn.1400a76d4
nop
cmp byte [0x1400bf2a8], 0
jne 0x1400a27b2
mov r15d, 1
mov eax, r15d
xchg dword [0x1400bf298], eax
test ebx, ebx
jne 0x1400a275b
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400bf2a0]
cmp rcx, rax
je 0x1400a2752
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14009f6d0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400bf2e8]
jmp 0x1400a2767
cmp ebx, r15d
jne 0x1400a276d
lea rcx, [0x1400bf300]
call fcn.1400a2e5c
nop
test ebx, ebx
jne 0x1400a2784
lea rdx, [0x1400af3b0]
lea rcx, [0x1400af390]
call fcn.1400a25a8
lea rdx, [0x1400af3c0]
lea rcx, [0x1400af3b8]
call fcn.1400a25a8
movzx eax, byte [0x1400bf2a8]
test esi, esi
cmove eax, r15d
mov byte [0x1400bf2a8], al
jmp 0x1400a27b2
mov ecx, 2
call fcn.1400a7728
test esi, esi
jne 0x1400a27c9
mov ecx, r14d
call fcn.1400a27e4
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400a2678
Function at 0x140002760
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rdi
mov eax, 0x10060
call fcn.140026740
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, [0x140031920]
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.140011000
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.14001172c
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.1400118c0
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 [0x14003db08], 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.140010380
mov rcx, rdi
movzx ebx, al
call fcn.1400102c0
test bl, bl
je 0x14000553e
mov qword [rsp + 0x28], r14
lea r8, [0x140010160]
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 0x140008480
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0xff80]
mov eax, 0x10080
call fcn.140026740
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 0x1400084dc
xor eax, eax
jmp 0x14000860f
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 0x1400086c4
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [0x140031920]
lea rdi, [rbx - 1]
cmp rdx, 0x10000
jae 0x14000852f
movzx edx, dx
lea rcx, [rsp + 0x38]
call fcn.140002e30
jmp 0x14000854a
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x140008532
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 0x1400085c8
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 0x1400085c8
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x1400085c8
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140008637
test al, 1
jne 0x1400085c8
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x14000863c
test rsi, rsi
je 0x1400085db
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 0x1400085fd
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 0x14000860d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xff70]
xor rcx, rsp
call fcn.140011000
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 0x140008644
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 0x140008692
add rcx, 2
cmp rcx, 0x15
je 0x1400086c0
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x140008670
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400085c8
test rsi, rsi
je 0x1400086b2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov ebx, 1
jmp 0x1400085df
mov eax, ebx
jmp 0x140008697
mov ecx, 0x80004005
call fcn.1400014c0
int3
Function at 0x1400086d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0xff80]
mov eax, 0x10080
call fcn.140026740
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 0x14000872c
xor eax, eax
jmp 0x14000885f
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 0x140008914
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [0x140031920]
lea rdi, [rbx - 1]
cmp rdx, 0x10000
jae 0x14000877f
movzx edx, dx
lea rcx, [rsp + 0x38]
call fcn.140002e30
jmp 0x14000879a
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x140008782
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 0x140008818
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 0x140008818
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x140008818
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140008887
test al, 1
jne 0x140008818
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x14000888c
test rsi, rsi
je 0x14000882b
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 0x14000884d
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 0x14000885d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xff70]
xor rcx, rsp
call fcn.140011000
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 0x140008894
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 0x1400088e2
add rcx, 2
cmp rcx, 0x15
je 0x140008910
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x1400088c0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140008818
test rsi, rsi
je 0x140008902
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov ebx, 1
jmp 0x14000882f
mov eax, ebx
jmp 0x1400088e7
mov ecx, 0x80004005
call fcn.1400014c0
int3
Function at 0x140009610
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov dword [rsp + 0x40], 0
mov r9d, 0x11
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlPriorityControl
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009691
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], eax
lea rdx, str.ConvertibleSlateMode
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x1400096a0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rax, [rsp + 0x40]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARERealtekRealtekEffectsAP
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009742
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 4
lea rdx, str.AutoRotationState
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
lea rdx, str.SensorIndex
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x38
ret
Function at 0x14000a9a0
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov rsi, rcx
lea r14, [rcx + 0x20]
mov qword [rsp + 0x20], r14
lea r9, [0x140032c18]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x140029660]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14000ab91
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x30]
test eax, eax
js 0x14000ab91
xor r15d, r15d
mov qword [rbp + 0x50], r15
mov qword [rbp + 0x40], r15
mov rcx, qword [r14]
mov rax, qword [rcx]
lea r8, [rbp + 0x50]
lea rdx, [0x140029620]
call qword [rax + 0x20]
mov ebx, eax
test eax, eax
js 0x14000aaa1
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14000aaa1
mov dword [rbp + 0x38], r15d
mov rax, qword [rcx]
lea rdx, [rbp + 0x38]
call qword [rax + 0x20]
mov ebx, eax
test eax, eax
js 0x14000aaa1
mov edi, r15d
cmp dword [rbp + 0x38], r15d
jbe 0x14000aaa1
nop dword [rax]
mov qword [rbp + 0x48], r15
mov rcx, qword [rbp + 0x50]
mov rax, qword [rcx]
lea r8, [rbp + 0x48]
mov edx, edi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x14000aa8b
mov rdx, qword [rbp + 0x48]
mov rcx, rsi
call fcn.14000ae70
mov ebx, eax
test eax, eax
js 0x14000aa8b
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rsi + 0x18]
call fcn.140009df0
mov ebx, eax
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14000aa9a
mov rax, qword [rcx]
call qword [rax + 0x10]
inc edi
cmp edi, dword [rbp + 0x38]
jb 0x14000aa50
mov rax, qword [rsi + 0x10]
test byte [rax + 0x19c], 0x20
je 0x14000ab3c
mov rcx, qword [r14]
mov rax, qword [rcx]
lea r8, [rbp + 0x40]
lea rdx, [0x140029670]
call qword [rax + 0x20]
test eax, eax
js 0x14000ab3c
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14000ab40
mov dword [rbp + 0x38], r15d
mov rax, qword [rcx]
lea rdx, [rbp + 0x38]
call qword [rax + 0x20]
mov edi, r15d
cmp dword [rbp + 0x38], r15d
jbe 0x14000ab3c
nop word [rax + rax]
mov qword [rbp + 0x48], r15
mov rcx, qword [rbp + 0x40]
mov rax, qword [rcx]
lea r8, [rbp + 0x48]
mov edx, edi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
js 0x14000ab26
mov rdx, qword [rbp + 0x48]
mov rcx, rsi
call fcn.14000ae70
test eax, eax
js 0x14000ab26
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rsi + 0x18]
call fcn.140009df0
nop
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14000ab35
mov rax, qword [rcx]
call qword [rax + 0x10]
inc edi
cmp edi, dword [rbp + 0x38]
jb 0x14000aaf0
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14000ab4c
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14000ab5b
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
js 0x14000ab8f
mov rdi, qword [rsi + 0x18]
cmp dword [rdi + 8], 0
je 0x14000ab8f
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rdi
lea r8, [0x140009130]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x18], rax
mov eax, ebx
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000bab0
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 + 0x498], 0
jne 0x14000bcde
mov ecx, 0x70
call fcn.1400118c0
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 [0x140033c9c]
movabs rdx, 0x8000000000000000
movss xmm0, dword [0x140033ca4]
comiss xmm1, xmm0
jb 0x14000bb57
subss xmm1, xmm0
comiss xmm1, xmm0
jae 0x14000bb57
mov rcx, rdx
cvttss2si rax, xmm1
add rax, rcx
mov qword [rbx + 0x48], rax
xor ecx, ecx
movss xmm1, dword [0x140033c98]
comiss xmm1, xmm0
jb 0x14000bb7e
subss xmm1, xmm0
comiss xmm1, xmm0
jae 0x14000bb7e
mov rcx, rdx
cvttss2si rax, xmm1
add rax, rcx
mov qword [rbx + 0x50], rax
cmp rax, 0x11
jae 0x14000bb94
mov qword [rbx + 0x50], rsi
mov qword [rbx + 0x10], rdi
mov dword [rbx + 8], 1
mov ecx, 0x100
call fcn.1400118c0
mov qword [rsp + 0x78], rax
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.140008d20
nop
mov qword [rbx + 0x18], rax
mov qword [rdi + 0x498], rbx
mov rcx, rbx
call fcn.14000a9a0
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 0x14000bc37
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 0x14000bcb4
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 0x14000bca7
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 + 0x498]
call fcn.14000aba0
mov rcx, qword [rdi + 0x498]
test rcx, rcx
je 0x14000bcd7
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x20]
mov qword [rdi + 0x498], rsi
xor eax, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret