joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rbx, r8
mov rdi, rcx
test rcx, rcx
jne 0x140013cc6
xor eax, eax
jmp 0x140013e05
test rbx, rbx
jne 0x140013cd2
xor eax, eax
jmp 0x140013e05
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x40]
call fcn.140012dd0
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013de1
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x48], rcx
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]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013dab
cmp dword [rsp + 0x30], 4
jne 0x140013dab
mov eax, dword [rsp + 0x70]
mov dword [rbx], eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140013d94
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140013da4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140013e05
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140013dcd
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 0x140013ddd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140013e05
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140013e03
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 0x140013e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test rcx, rcx
mov rsi, r8
mov rdi, rdx
jne 0x140013e71
mov rdx, qword [rdx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140013e64
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
test r8, r8
je 0x140013e45
xor eax, eax
mov rdx, rcx
mov r9d, 1
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013f79
mov rdx, qword [rdi]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rbx
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013f3a
cmp dword [rsp + 0x30], 4
jne 0x140013f3a
test rbx, rbx
mov eax, dword [rsp + 0x50]
mov dword [rsi], eax
je 0x140013f05
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140013f25
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
test rbx, rbx
je 0x140013f48
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140013f67
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
mov rdx, qword [rdi]
jmp 0x140013e48
Function at 0x140013f90
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x40
test rcx, rcx
mov r12d, r8d
mov rbx, rdx
mov rbp, rcx
jne 0x140013fd1
mov rdx, qword [rdx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140013fc6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
mov rdx, qword [rdx]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rdi
lea rdi, [0x1400b70b8]
mov ecx, 1
mov rsi, rdx
repe cmpsw word [rsi], word [rdi]
jne 0x140014008
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jmp 0x140014152
mov r9d, r8d
mov r8, rdx
lea rcx, str.CCommon::SetRegUI4Property__s__s__d_n
mov rdx, rbp
call fcn.140001030
lea rax, [rsp + 0x78]
xor edi, edi
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x78], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014050
mov rdi, qword [rsp + 0x78]
xor esi, esi
test eax, eax
sete sil
test rdi, rdi
je 0x140014066
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x14001407d
mov rdx, rbp
mov rcx, 0xffffffff80000002
call fcn.140013bb0
test eax, eax
je 0x1400140f4
lea rax, [rsp + 0x30]
mov r9d, 2
xor r8d, r8d
mov rdx, rbp
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001413e
mov rdi, qword [rsp + 0x30]
mov rdx, qword [rbx]
lea rax, [rsp + 0x60]
mov rcx, rdi
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14001410a
test rdi, rdi
je 0x1400140f4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jmp 0x140014152
test rdi, rdi
je 0x140014118
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140014137
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x14001415f
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001415d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
Function at 0x140014180
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov edi, r8d
mov rbx, rcx
test rcx, rcx
jne 0x1400141a6
xor eax, eax
jmp 0x1400142b8
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call fcn.140012dd0
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x78]
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 0x140014294
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14001425b
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140014247
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140014257
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1400142b8
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001427d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14001428d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400142b8
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400142b6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400142f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov r13, r8
mov r8, qword [rdx]
mov rsi, rdx
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, str.CCommon::SetRegBinaryValue__s__s_nBytes___d_n
mov r12d, r9d
call fcn.140001030
mov rdx, qword [rdi]
lea rax, [rsp + 0x60]
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014359
mov rbx, qword [rsp + 0x60]
xor ebp, ebp
test eax, eax
sete bpl
test rbx, rbx
je 0x14001436f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jne 0x140014386
mov rdx, qword [rdi]
mov rcx, 0xffffffff80000002
call fcn.140013bb0
test eax, eax
je 0x1400143ea
mov rdx, qword [rdi]
lea rax, [rsp + 0x30]
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400143ea
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsi]
lea r9d, [rax + 3]
mov rcx, rbx
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140014441
test rbx, rbx
je 0x1400143ea
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
or ebx, 0xffffffff
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14001440a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x140014426
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
test rbx, rbx
je 0x14001444f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14001446f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14001448b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x140014428
Function at 0x1400144a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rdi, rdx
mov rdx, qword [rcx]
lea rax, [rsp + 0x30]
mov rbp, r9
mov r12, r8
mov rsi, rcx
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014580
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rdi]
lea r9, [rsp + 0x60]
mov rcx, rbx
xor r8d, r8d
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014572
cmp dword [rsp + 0x60], 3
jne 0x140014572
test rbx, rbx
je 0x14001452e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsi]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14001454e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14001456b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
jmp 0x1400145be
test rbx, rbx
je 0x140014580
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsi]
or ebx, 0xffffffff
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400145a0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x1400145bc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x140014950
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x150
mov rax, qword [0x1400e2bd8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbp, rcx
mov rcx, qword [0x1400ecc68]
lea rdx, [0x1400b7228]
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call fcn.140083be0
test eax, eax
jne 0x140014aeb
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or r8, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
mov rcx, r8
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
test ecx, ecx
mov rdi, rcx
jne 0x140014a3c
mov rax, qword [0x1400ecc68]
cmp dword [rax - 0x10], ebx
mov rdi, qword [rax - 0x18]
lea rdx, [rax - 0x18]
je 0x140014af2
cmp dword [rdx + 0x10], ebx
jge 0x140014a0b
cmp dword [rax - 0xc], ebx
jge 0x1400149f3
mov ecx, 0x80070057
call fcn.1400120e0
int3
mov dword [rax - 0x10], ebx
mov rax, qword [0x1400ecc68]
mov byte [rax], bl
mov rax, qword [0x1400ecc68]
jmp 0x140014af2
lock xadd dword [rdx + 0x10], r8d
add r8d, 0xffffffff
test r8d, r8d
jg 0x140014a23
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [0x1400ecc68], rax
jmp 0x140014af2
mov r10, qword [0x1400ecc68]
mov qword [rsp + 0x168], rsi
mov ecx, 1
mov eax, dword [r10 - 0xc]
sub ecx, dword [r10 - 8]
mov ebx, dword [r10 - 0x10]
lea rsi, [rsp + 0x30]
sub eax, edi
sub rsi, r10
or ecx, eax
jge 0x140014a7f
lea rcx, [0x1400ecc68]
mov edx, edi
call fcn.140015a50
mov r10, qword [0x1400ecc68]
cmp rsi, rbx
ja 0x140014a9b
movsxd rbx, edi
lea r8, [r10 + rsi]
mov rcx, r10
mov r9, rbx
mov rdx, rbx
call fcn.140082450
jmp 0x140014ab1
movsxd rbx, edi
lea r8, [rsp + 0x30]
mov rcx, r10
mov r9, rbx
mov rdx, rbx
call fcn.140082af0
test edi, edi
mov rsi, qword [rsp + 0x168]
js 0x140014ae0
mov rax, qword [0x1400ecc68]
cmp edi, dword [rax - 0xc]
jg 0x140014ae0
mov dword [rax - 0x10], edi
mov rax, qword [0x1400ecc68]
mov byte [rbx + rax], 0
mov rax, qword [0x1400ecc68]
jmp 0x140014af2
mov ecx, 0x80070057
call fcn.1400120e0
int3
mov rax, qword [0x1400ecc68]
mov rcx, qword [rax - 0x18]
lea rdi, [rax - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
cmp dword [rdi + 0x10], 0
mov rcx, rax
jl 0x140014b18
cmp rax, qword [rdi]
jne 0x140014b18
mov rbx, rdi
lock add dword [rdi + 0x10], 1
jmp 0x140014b53
mov rax, qword [rax]
mov edx, dword [rdi + 8]
mov r8d, 1
call qword [rax]
test rax, rax
mov rbx, rax
jne 0x140014b34
call fcn.1400158c0
int3
mov ecx, dword [rdi + 8]
lea r8, [rdi + 0x18]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 8]
add ecx, 1
movsxd rdx, ecx
lea rcx, [rax + 0x18]
mov r9, rdx
call fcn.140082af0
lea rcx, [rbx + 0x18]
mov rax, rbp
mov qword [rbp], rcx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140082430
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140014b90
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400ebb04]
test eax, eax
jne 0x140014bbb
lea rcx, [0x1400ebb00]
mov dword [0x1400ebb00], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x1400ebb04]
cmp eax, 6
jne 0x140014bd3
cmp dword [0x1400ebb08], 2
jne 0x140014bd3
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400158d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov eax, r8d
mov rsi, rdx
mov ebx, r8d
shr eax, 4
mov rbp, rcx
mov r8d, 6
add ax, 1
mov rcx, rsi
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x140015a39
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140015a39
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140015a39
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x14001596a
cmp rdi, r11
jae 0x140015a39
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140015954
cmp rdi, r11
jae 0x140015a39
movzx eax, word [rdi]
test ax, ax
je 0x140015a39
mov qword [rsp + 0x60], r13
movzx ebx, ax
call qword [str.l__n_]
xor r13d, r13d
lea r12, [rdi + 2]
mov r9d, ebx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rbp]
mov edx, 1
movsxd rsi, eax
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, esi
or edx, ecx
jge 0x1400159da
mov edx, esi
mov rcx, rbp
call fcn.140015a50
mov rbx, qword [rbp]
movzx edi, word [rdi]
call qword [str.l__n_]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r9d, edi
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
mov r13, qword [rsp + 0x60]
js 0x140015a2e
mov rcx, qword [rbp]
cmp esi, dword [rcx - 0xc]
jg 0x140015a2e
mov dword [rcx - 0x10], esi
mov rcx, qword [rbp]
mov eax, 1
mov byte [rsi + rcx], 0
jmp 0x140015a3b
mov ecx, 0x80070057
call fcn.1400120e0
int3
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x14001bc30
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov r13, rcx
call fcn.1400578a4
mov rcx, rax
xor ebx, ebx
mov edx, ebx
test rax, rax
setne dl
test edx, edx
jne 0x14001bc72
mov ecx, 0x80004005
call fcn.1400120e0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], rbx
lea r9, [rsp + 0x80]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400b5158]
call sub.SHELL32.dll_SHGetKnownFolderPath
or rsi, 0xffffffffffffffff
test eax, eax
js 0x14001bdfd
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001bccc
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea ebx, [rcx - 1]
mov r8d, ebx
lea rcx, [rsp + 0x78]
call fcn.140011e40
xor eax, eax
mov rcx, rsi
lea r12, str.driversDTSU2PClearAudio.DAT
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
mov rbp, r12
mov rdi, qword [rsp + 0x78]
sub rbp, rdi
sar rbp, 1
mov r14d, dword [rdi - 0x10]
lea ebx, [r14 + rcx - 1]
mov edx, 1
sub edx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, ebx
or eax, edx
jge 0x14001bd2b
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.140011a30
mov rdi, qword [rsp + 0x78]
cmp rbp, r14
ja 0x14001bd34
lea r12, [rdi + rbp*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rdi + r14*2]
mov r9, rdx
mov r8, r12
call fcn.140082af0
test ebx, ebx
js 0x14001bdf2
cmp ebx, dword [rdi - 0xc]
jg 0x14001bdf2
mov dword [rdi - 0x10], ebx
movsxd rax, ebx
mov word [rdi + rax*2], 0
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x14001bd8f
cmp rax, qword [rdi - 0x18]
jne 0x14001bd8f
lea rbp, [rdi - 0x18]
lock add dword [rdi - 8], 1
mov rdi, qword [rsp + 0x78]
jmp 0x14001bdcd
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbp, rax
test rax, rax
jne 0x14001bdab
call fcn.1400158c0
int3
mov eax, dword [rdi - 0x10]
mov dword [rbp + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbp + 0x18]
call fcn.140082af0
lea rax, [rbp + 0x18]
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x88]
lea rdx, [0x1400b5da0]
mov rcx, r13
call fcn.1400135b0
jmp 0x14001bdfd
mov ecx, 0x80070057
call fcn.1400120e0
int3
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14001be11
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x14001be2a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret