joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140042550
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov edi, r8d
mov rbx, rcx
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x38]
call fcn.14003c380
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140042658
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x78], edi
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14004261f
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004260b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14004261b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14004267c
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140042641
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140042651
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x14004267c
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004267a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400426b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov ebx, r8d
mov rdi, rcx
test rcx, rcx
jne 0x1400426d6
xor eax, eax
jmp 0x14004283c
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.14003c380
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140042818
mov rdi, qword [rsp + 0x48]
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x88], 4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140042778
cmp dword [rsp + 0x30], 4
jne 0x140042778
cmp dword [rsp + 0x70], ebx
je 0x1400427df
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400427df
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400427cb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400427db
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14004283c
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140042801
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140042811
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x14004283c
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004283a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140042870
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x80
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov edi, r8d
mov rbx, rcx
test rcx, rcx
jne 0x14004289e
xor eax, eax
jmp 0x140042a01
xor esi, esi
mov qword [rsp + 0x50], rsi
lea rcx, [rsp + 0x58]
call fcn.14003c380
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 2]
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400428e5
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x50], rcx
jmp 0x14004293a
mov qword [rsp + 0x68], rsi
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400429dd
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x90], edi
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400429a4
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140042990
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400429a0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140042a01
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400429c6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400429d6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140042a01
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400429ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140042a40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x10080
call fcn.140248980
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x100b8], rbx
mov rax, qword [0x140315d90]
xor rax, rsp
mov qword [rsp + 0x10070], rax
mov r13, r9
mov r12, r8
mov rbp, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x60], r9
xor ebx, ebx
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x48], rbx
call fcn.1401fa4b0
mov rcx, rax
mov eax, ebx
test rcx, rcx
setne al
test eax, eax
jne 0x140042aba
mov ecx, 0x80004005
call fcn.140003d20
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp], rax
lea rdx, [0x140273028]
or rsi, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x140042afb
movzx edi, dx
mov ecx, edi
call fcn.1401fc234
test rax, rax
je 0x140042b16
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call fcn.140007610
jmp 0x140042b16
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbp
call fcn.140007880
nop
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140042bde
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x48], rbx
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 + 0x38]
xor r8d, r8d
mov rdx, qword [r13]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140042bde
mov eax, dword [rsp + 0x38]
cmp eax, 1
je 0x140042b9c
cmp eax, 2
jne 0x140042bde
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140042bb5
test al, 1
jne 0x140042bde
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x140042bbc
jmp 0x140042bde
mov word [rsp + 0x70], 0
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x70]
mov rcx, rbp
call fcn.140007880
nop
test rbx, rbx
je 0x140042bed
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140042c0d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r13]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140042c2a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbp
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.1402272f0
mov rbx, qword [rsp + 0x100b8]
add rsp, 0x10080
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400440c0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rdi
mov eax, 0x10060
call fcn.140248980
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10078], rbx
mov rax, qword [0x140315d90]
xor rax, rsp
mov qword [rsp + 0x10050], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
call fcn.1401fa4b0
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x14004411e
mov ecx, 0x80004005
call fcn.140003d20
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rdx, [0x140273028]
test rdx, 0xffffffffffff0000
jne 0x14004415a
movzx edi, dx
mov ecx, edi
call fcn.1401fc234
test rax, rax
je 0x140044176
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.140007610
jmp 0x140044176
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbx
call fcn.140007880
nop
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x50]
call fcn.14022a8c0
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400441ee
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x4c], 0x5c
jne 0x1400441ce
mov word [rsp + rcx*2 + 0x4c], ax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140007880
mov rax, rbx
mov rcx, qword [rsp + 0x10050]
xor rcx, rsp
call fcn.1402272f0
mov rbx, qword [rsp + 0x10078]
add rsp, 0x10060
pop rdi
ret
Function at 0x140044270
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rdi
mov eax, 0x10060
call fcn.140248980
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10078], rbx
mov rax, qword [0x140315d90]
xor rax, rsp
mov qword [rsp + 0x10050], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
call fcn.1401fa4b0
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x1400442ce
mov ecx, 0x80004005
call fcn.140003d20
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rdx, [0x140273028]
test rdx, 0xffffffffffff0000
jne 0x14004430a
movzx edi, dx
mov ecx, edi
call fcn.1401fc234
test rax, rax
je 0x140044326
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.140007610
jmp 0x140044326
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbx
call fcn.140007880
nop
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x50]
call fcn.14022a8c0
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x2a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14004439e
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x4c], 0x5c
jne 0x14004437e
mov word [rsp + rcx*2 + 0x4c], ax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140007880
mov rax, rbx
mov rcx, qword [rsp + 0x10050]
xor rcx, rsp
call fcn.1402272f0
mov rbx, qword [rsp + 0x10078]
add rsp, 0x10060
pop rdi
ret

Function at 0x140044420
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x60], rbx
call fcn.1401fa4b0
mov rcx, rax
mov edx, ebx
test rax, rax
setne dl
test edx, edx
jne 0x140044462
mov ecx, 0x80004005
call fcn.140003d20
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
lea rdx, [0x140273028]
test rdx, 0xffffffffffff0000
jne 0x14004449e
movzx edi, dx
mov ecx, edi
call fcn.1401fc234
test rax, rax
je 0x1400444ba
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call fcn.140007610
jmp 0x1400444ba
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rsi
call fcn.140007880
nop
mov dword [rsp + 0x58], 1
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14026bf28]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x1400444f4
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea ebx, [rcx - 1]
mov r8d, ebx
mov rcx, rsi
call fcn.140007880
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rsi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140045470
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140326104]
test eax, eax
jne 0x14004549b
lea rcx, [0x140326100]
mov dword [0x140326100], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x140326104]
cmp eax, 6
jne 0x1400454b3
cmp dword [0x140326108], 2
jne 0x1400454b3
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400454c0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140326104]
test eax, eax
jne 0x1400454eb
lea rcx, [0x140326100]
mov dword [0x140326100], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x140326104]
cmp eax, 6
jne 0x140045503
cmp dword [0x140326108], 3
jne 0x140045503
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x140048b20
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rdi
sub rsp, 0x88
mov rcx, qword [rcx + 0x4c8]
mov qword [rsp + 0x80], rsi
test rcx, rcx
jne 0x140048b4a
xor esi, esi
mov edi, esi
jmp 0x140048c77
mov rax, qword [0x140270768]
xor esi, esi
lea rdx, [rsp + 0x50]
mov qword [rdx], rax
mov rax, qword [0x140270770]
mov qword [rsp + 0x30], rsi
mov qword [rdx + 8], rax
xor eax, eax
lea r8d, [rsi + 3]
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x60], esi
mov dword [rsp + 0xa0], esi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x140048bba
mov edi, esi
jmp 0x140048c77
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rsi
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
mov r9d, 0x18
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov rcx, rdi
mov qword [rdx + 8], rax
lea rax, [rsp + 0xa0]
mov edx, 0x2f0003
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xa8]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x74], 2
mov dword [rsp + 0x70], 0x2b
mov dword [rsp + 0xa0], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140048c72
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.14003c180
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140048c6e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, esi
jmp 0x140048c77
mov edi, 1
lea rax, [rsp + 0xb8]
lea rdx, str.SOFTWAREDolbyDolbyDigitalPlusStaticKeys
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rsi, qword [rsp + 0x80]
test eax, eax
jne 0x140048d07
mov ecx, dword [rsp + 0xa8]
mov rbx, qword [rsp + 0xb8]
lea rax, [rsp + 0xb0]
mov dword [rsp + 0xb0], ecx
lea rdx, str.DD0DF94B_53A2_4A92_854E_91F42E28FD7B_999
mov r9d, 4
mov rcx, rbx
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x140048d07
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x88
pop rdi
pop rbx
ret
Function at 0x140048eb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREReal_Sound_LabCONEQAPOSettings
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140048f87
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, str.DisableSpeakerModeMonitoring
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov edi, eax
jne 0x140048f46
cmp dword [rsp + 0x68], 4
mov eax, SafeArrayDestroy
cmovne edi, eax
test rbx, rbx
je 0x140048f56
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test edi, edi
jne 0x140048f79
test rbx, rbx
mov edi, dword [rsp + 0x58]
je 0x140048f6c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
test rbx, rbx
je 0x140048f87
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14004eaf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140315d90]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov qword [rsp + 0x48], rdx
xor ebx, ebx
mov dword [rsp + 0x3c], ebx
mov qword [rsp + 0x40], rbx
call fcn.1401fa4b0
mov rcx, rax
mov eax, ebx
test rcx, rcx
setne al
test eax, eax
jne 0x14004eb50
mov ecx, 0x80004005
call fcn.140003d20
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
lea rdx, [0x140273028]
test rdx, 0xffffffffffff0000
jne 0x14004eb8c
movzx edi, dx
mov ecx, edi
call fcn.1401fc234
test rax, rax
je 0x14004eba8
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call fcn.140007610
jmp 0x14004eba8
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rsi
call fcn.140007880
nop
mov dword [rsp + 0x3c], 1
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsAudCtr.exe
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004ec74
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rbx
mov eax, dword [rsp + 0x30]
add eax, eax
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004ec74
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x14004ec31
cmp eax, 2
jne 0x14004ec74
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14004ec4a
test al, 1
jne 0x14004ec74
shr rax, 1
cmp word [rsp + rax*2 + 0x5e], 0
je 0x14004ec51
jmp 0x14004ec74
mov word [rsp + 0x60], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140007880
nop
test rbx, rbx
je 0x14004ec82
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1402272f0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400c7300
Capabilities:
Check os version

Disassembly:
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [rcx + 0x30]
mov r13, r9
mov r14d, r8d
test rax, rax
mov r11d, edx
mov r15, rcx
jne 0x1400c732c
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop r13
ret
mov r8, qword [rax + 0x208]
test r8, r8
je 0x1400c731f
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r12
xor r12d, r12d
lea rbp, [0x1403183e0]
lea rbx, [0x140318488]
lea rsi, [0x140318488]
mov r10d, r12d
mov r9, r12
lea rdi, str.AutoSelectChannelByJackConf
test r11d, r11d
je 0x1400c73d9
mov edx, dword [r8]
mov rcx, r12
mov rax, rbp
cmp dword [rax], edx
je 0x1400c73c0
add rax, 0x18
add rcx, 1
cmp rax, rbx
jl 0x1400c7384
mov rcx, r12
mov rax, rsi
nop
nop
cmp dword [rax], edx
je 0x1400c73b6
add rax, 0x18
add rcx, 1
cmp rax, rdi
jl 0x1400c73a0
mov eax, r12d
jmp 0x1400c73c8
lea rax, [rcx + rcx*2]
mov eax, dword [rsi + rax*8 + 8]
jmp 0x1400c73c8
lea rax, [rcx + rcx*2]
mov eax, dword [rbp + rax*8 + 8]
cmp eax, r11d
jne 0x1400c73df
test r10d, r10d
jns 0x1400c73f8
xor eax, eax
jmp 0x1400c74a9
cmp dword [r8 + 4], r12d
jne 0x1400c73cd
add r9, 1
add r10d, 1
add r8, 8
cmp r9, 7
jl 0x1400c7376
xor eax, eax
jmp 0x1400c74a9
mov edx, dword [0x140326104]
xor di, di
mov esi, r12d
movsxd rbp, r10d
lea rbx, reloc.OLEAUT32.dll_VariantClear
nop
test edx, edx
jne 0x1400c7431
lea rcx, [0x140326100]
mov dword [0x140326100], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [0x140326104]
cmp edx, 6
jne 0x1400c7444
cmp dword [0x140326108], 0
jne 0x1400c7444
lea eax, [rdx + 0x12]
jmp 0x1400c7449
mov eax, 0x1b
cmp esi, eax
jge 0x1400c749c
mov rax, qword [r15 + 0x30]
mov rcx, qword [rax + 0x208]
mov eax, dword [rcx + rbp*8 + 4]
test dword [rbx - 8], eax
je 0x1400c747f
cmp dword [rbx - 4], r14d
jne 0x1400c747f
test di, di
mov r12d, 1
jne 0x1400c7475
movzx edi, word [rbx]
movzx eax, word [r13]
cmp word [rbx], ax
je 0x1400c7488
add esi, 1
add rbx, 0x14
jmp 0x1400c7410
movsxd rax, esi
lea rcx, [rax + rax*4]
lea rax, reloc.OLEAUT32.dll_VariantClear
mov di, word [rax + rcx*4]
jmp 0x1400c74a1
test r12d, r12d
je 0x1400c74a6
mov word [r13], di
mov eax, r12d
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r12, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop r13
ret