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

Disassembly:
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbp
mov rdi, r8
mov rax, rdx
mov rbp, rcx
xor esi, esi
mov qword [rsp + 0x60], rsi
cmp qword [rcx], rsi
jne 0x1400158eb
mov rdx, qword [r8]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400158e4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14001597c
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140015590
test eax, eax
js 0x14001595a
mov rbx, qword [rdi]
mov eax, esi
test rbx, rbx
setne al
test eax, eax
jne 0x140015916
mov ecx, 0x80004005
call fcn.140001950
int3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r12d, 1
mov r9d, r12d
xor r8d, r8d
mov rbx, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmove esi, r12d
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001597a
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, esi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x140015f80
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 0x140015fa6
xor eax, eax
jmp 0x1400160e5
test rbx, rbx
jne 0x140015fb2
xor eax, eax
jmp 0x1400160e5
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x40]
call fcn.1400150b0
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 0x1400160c1
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 0x14001608b
cmp dword [rsp + 0x30], 4
jne 0x14001608b
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 0x140016074
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 0x140016084
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400160e5
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400160ad
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 0x1400160bd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1400160e5
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400160e3
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 0x140016110
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 0x140016151
mov rdx, qword [rdx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140016144
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 0x140016125
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 0x140016259
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 0x14001621a
cmp dword [rsp + 0x30], 4
jne 0x14001621a
test rbx, rbx
mov eax, dword [rsp + 0x50]
mov dword [rsi], eax
je 0x1400161e5
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 0x140016205
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 0x140016228
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 0x140016247
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 0x140016128
Function at 0x140016270
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 0x1400162b1
mov rdx, qword [rdx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400162a6
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, [0x1400c1af8]
mov ecx, 1
mov rsi, rdx
repe cmpsw word [rsi], word [rdi]
jne 0x1400162e8
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jmp 0x140016432
mov r9d, r8d
mov r8, rdx
lea rcx, str.CCommon::SetRegUI4Property__s__s__d_n
mov rdx, rbp
call fcn.1400022c0
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 0x140016330
mov rdi, qword [rsp + 0x78]
xor esi, esi
test eax, eax
sete sil
test rdi, rdi
je 0x140016346
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x14001635d
mov rdx, rbp
mov rcx, 0xffffffff80000002
call fcn.140015e90
test eax, eax
je 0x1400163d4
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 0x14001641e
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 0x1400163ea
test rdi, rdi
je 0x1400163d4
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 0x140016432
test rdi, rdi
je 0x1400163f8
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 0x140016417
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x14001643f
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001643d
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 0x140016460
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 0x140016486
xor eax, eax
jmp 0x140016598
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call fcn.1400150b0
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 0x140016574
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 0x14001653b
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140016527
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 0x140016537
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140016598
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001655d
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 0x14001656d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140016598
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140016596
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 0x1400165d0
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.1400022c0
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 0x140016639
mov rbx, qword [rsp + 0x60]
xor ebp, ebp
test eax, eax
sete bpl
test rbx, rbx
je 0x14001664f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jne 0x140016666
mov rdx, qword [rdi]
mov rcx, 0xffffffff80000002
call fcn.140015e90
test eax, eax
je 0x1400166ca
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 0x1400166ca
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 0x140016721
test rbx, rbx
je 0x1400166ca
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 0x1400166ea
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 0x140016706
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 0x14001672f
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 0x14001674f
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 0x14001676b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x140016708
Function at 0x140016780
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 0x140016860
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 0x140016852
cmp dword [rsp + 0x60], 3
jne 0x140016852
test rbx, rbx
je 0x14001680e
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 0x14001682e
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 0x14001684b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
jmp 0x14001689e
test rbx, rbx
je 0x140016860
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 0x140016880
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 0x14001689c
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 0x140016c30
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x150
mov rax, qword [0x1400f2bd8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbp, rcx
mov rcx, qword [0x1400fd108]
lea rdx, [0x1400c3664]
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call fcn.140090510
test eax, eax
jne 0x140016dcb
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 0x140016d1c
mov rax, qword [0x1400fd108]
cmp dword [rax - 0x10], ebx
mov rdi, qword [rax - 0x18]
lea rdx, [rax - 0x18]
je 0x140016dd2
cmp dword [rdx + 0x10], ebx
jge 0x140016ceb
cmp dword [rax - 0xc], ebx
jge 0x140016cd3
mov ecx, 0x80070057
call fcn.140001950
int3
mov dword [rax - 0x10], ebx
mov rax, qword [0x1400fd108]
mov byte [rax], bl
mov rax, qword [0x1400fd108]
jmp 0x140016dd2
lock xadd dword [rdx + 0x10], r8d
add r8d, 0xffffffff
test r8d, r8d
jg 0x140016d03
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 [0x1400fd108], rax
jmp 0x140016dd2
mov r10, qword [0x1400fd108]
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 0x140016d5f
lea rcx, [0x1400fd108]
mov edx, edi
call fcn.140018dd0
mov r10, qword [0x1400fd108]
cmp rsi, rbx
ja 0x140016d7b
movsxd rbx, edi
lea r8, [r10 + rsi]
mov rcx, r10
mov r9, rbx
mov rdx, rbx
call fcn.14008ea80
jmp 0x140016d91
movsxd rbx, edi
lea r8, [rsp + 0x30]
mov rcx, r10
mov r9, rbx
mov rdx, rbx
call fcn.14008f260
test edi, edi
mov rsi, qword [rsp + 0x168]
js 0x140016dc0
mov rax, qword [0x1400fd108]
cmp edi, dword [rax - 0xc]
jg 0x140016dc0
mov dword [rax - 0x10], edi
mov rax, qword [0x1400fd108]
mov byte [rbx + rax], 0
mov rax, qword [0x1400fd108]
jmp 0x140016dd2
mov ecx, 0x80070057
call fcn.140001950
int3
mov rax, qword [0x1400fd108]
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 0x140016df8
cmp rax, qword [rdi]
jne 0x140016df8
mov rbx, rdi
lock add dword [rdi + 0x10], 1
jmp 0x140016e33
mov rax, qword [rax]
mov edx, dword [rdi + 8]
mov r8d, 1
call qword [rax]
test rax, rax
mov rbx, rax
jne 0x140016e14
call fcn.140001a80
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.14008f260
lea rcx, [rbx + 0x18]
mov rax, rbp
mov qword [rbp], rcx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14008f240
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140016e70
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rdi
mov eax, 0x10060
call fcn.1400b2640
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10078], rbx
mov rax, qword [0x1400f2bd8]
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.140063708
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x140016ece
mov ecx, 0x80004005
call fcn.140001950
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbx], rax
lea rdx, [0x1400c1af8]
test rdx, 0xffffffffffff0000
jne 0x140016f0a
movzx edi, dx
mov ecx, edi
call fcn.140063514
test rax, rax
je 0x140016f26
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.140001fe0
jmp 0x140016f26
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.140001bd0
nop
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x50]
call fcn.1400935f0
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 0x140016f9e
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 0x140016f7e
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.140001bd0
mov rax, rbx
mov rcx, qword [rsp + 0x10050]
xor rcx, rsp
call fcn.14008f240
mov rbx, qword [rsp + 0x10078]
add rsp, 0x10060
pop rdi
ret
Function at 0x140017d90
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400fbfa4]
test eax, eax
jne 0x140017dbb
lea rcx, [0x1400fbfa0]
mov dword [0x1400fbfa0], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x1400fbfa4]
cmp eax, 6
jne 0x140017dd3
cmp dword [0x1400fbfa8], 2
jne 0x140017dd3
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x140018730
Capabilities:
Get file version info

Disassembly:
push rdi
sub rsp, 0xa30
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xa50], rbx
mov rax, qword [0x1400f2bd8]
xor rax, rsp
mov qword [rsp + 0xa20], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x24], 0
mov r8d, edx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
call fcn.140063708
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x14001879e
mov ecx, 0x80004005
call fcn.140001950
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x24], 1
test rdi, rdi
je 0x140018866
mov word [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.1400935f0
mov dword [rsp + 0x28], 0x103
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140001bd0
mov word [rsp + 0x250], 0
xor edx, edx
mov r8d, 0x7cc
lea rcx, [rsp + 0x252]
call fcn.1400935f0
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
lea r9, [rsp + 0x250]
mov r8d, 0x3e7
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoW
mov rax, rbx
mov rcx, qword [rsp + 0xa20]
xor rcx, rsp
call fcn.14008f240
mov rbx, qword [rsp + 0xa50]
add rsp, 0xa30
pop rdi
ret
Function at 0x140018c50
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 0x140018db9
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140018db9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140018db9
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140018cea
cmp rdi, r11
jae 0x140018db9
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140018cd4
cmp rdi, r11
jae 0x140018db9
movzx eax, word [rdi]
test ax, ax
je 0x140018db9
mov qword [rsp + 0x60], r13
movzx ebx, ax
call qword [0x1400f44f0]
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 0x140018d5a
mov edx, esi
mov rcx, rbp
call fcn.140018dd0
mov rbx, qword [rbp]
movzx edi, word [rdi]
call qword [0x1400f44f0]
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 0x140018dae
mov rcx, qword [rbp]
cmp esi, dword [rcx - 0xc]
jg 0x140018dae
mov dword [rcx - 0x10], esi
mov rcx, qword [rbp]
mov eax, 1
mov byte [rsi + rcx], 0
jmp 0x140018dbb
mov ecx, 0x80070057
call fcn.140001950
int3
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret