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

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov r10, rdx
mov rsi, rcx
test r9, r9
jne 0x140011bf5
xor eax, eax
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
xor edi, edi
sub r8d, 3
je 0x140011cbe
sub r8d, 1
je 0x140011c78
sub r8d, 7
je 0x140011c30
cmp r8d, 8
jne 0x140011d2c
mov r8d, dword [r9]
call fcn.140011d50
mov edi, eax
jmp 0x140011d2c
xor eax, eax
mov qword [rbp + 0x28], rdi
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov eax, VariantTimeToDosDateTime
mov word [rbp - 0x20], ax
movzx eax, word [r9]
mov word [rbp - 0x18], ax
cmp qword [rcx], rdi
je 0x140011d2c
lea rdx, [rbp + 0x28]
mov rcx, r10
call fcn.140011a50
test eax, eax
js 0x140011d2c
mov r9d, 3
jmp 0x140011cf7
movss xmm0, dword [r9]
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov eax, 4
mov word [rbp - 0x20], ax
movss dword [rbp - 0x18], xmm0
mov qword [rbp + 0x28], rdi
cmp qword [rcx], rdi
je 0x140011d2c
lea rdx, [rbp + 0x28]
mov rcx, r10
call fcn.140011a50
test eax, eax
js 0x140011d2c
mov r9d, 3
jmp 0x140011cf7
xor eax, eax
mov qword [rbp + 0x28], rdi
mov ebx, 3
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov eax, dword [r9]
mov dword [rbp - 0x18], eax
mov word [rbp - 0x20], bx
cmp qword [rcx], rdi
je 0x140011d2c
lea rdx, [rbp + 0x28]
mov rcx, r10
call fcn.140011a50
test eax, eax
js 0x140011d2c
mov r9d, ebx
mov rdx, qword [rbp + 0x28]
lea rax, [rbp - 0x20]
mov rcx, qword [rsi]
xor r8d, r8d
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayGetElement
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove edi, ecx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret

Function at 0x140011d50
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov ebx, r8d
mov rax, rdx
mov rsi, rcx
mov qword [rsp + 0x58], rdi
cmp qword [rcx], rdi
jne 0x140011d86
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140011a50
test eax, eax
js 0x140011dd9
mov rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov rcx, qword [rsi]
mov r9d, 4
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove edi, ecx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140011df0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbp
mov rsi, r8
mov rax, rdx
mov r15, rcx
xor edi, edi
mov qword [rsp + 0x60], rdi
cmp qword [rcx], rdi
jne 0x140011e4d
mov rdx, qword [r8]
sub rdx, 0x18
mov rbx, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140011e46
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140011ed6
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140011a50
mov rbx, 0xffffffffffffffff
test eax, eax
js 0x140011eb9
mov rcx, qword [rsi]
test rcx, rcx
jne 0x140011e72
lea ebp, [rbx + 0xe]
jmp 0x140011ea8
mov rax, rbx
lea rax, [rax + 1]
cmp word [rcx + rax*2], di
jne 0x140011e75
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebp, ebp
sete dil
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140011ed4
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop rdi
pop rsi
ret
Function at 0x140012400
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rdi, r8
mov rsi, rcx
test rcx, rcx
jne 0x140012436
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
test rdi, rdi
je 0x140012424
xor ebp, ebp
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x38]
call fcn.140011740
mov dword [rsp + 0x80], ebp
mov ebx, 1
mov r9d, ebx
mov r8, rsi
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.14000ddf0
test eax, eax
jne 0x1400124cf
mov dword [rsp + 0x98], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400124cf
cmp dword [rsp + 0x30], 4
jne 0x1400124cf
mov eax, dword [rsp + 0x80]
mov dword [rdi], eax
jmp 0x1400124d1
mov ebx, ebp
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400124f4
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 0x140012504
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012520
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rsi, r8
mov rbx, rdx
test rcx, rcx
jne 0x140012542
mov rdx, qword [rdx]
jmp 0x14001262c
test rsi, rsi
jne 0x14001254f
mov rdx, qword [rdx]
jmp 0x14001262c
xor eax, eax
mov r8, rcx
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rax
lea r9d, [rax + 1]
mov dword [rsp + 0x60], eax
call fcn.14000ddf0
test eax, eax
je 0x140012592
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140012629
jmp 0x140012623
mov rdi, qword [rsp + 0x38]
lea rax, [rsp + 0x78]
mov rdx, qword [rbx]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov dword [rsp + 0x78], 4
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001261b
cmp dword [rsp + 0x30], 4
jne 0x14001261b
mov eax, dword [rsp + 0x60]
mov dword [rsi], eax
test rdi, rdi
je 0x1400125e6
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx]
mov eax, 0xffffffff
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140012606
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
test rdi, rdi
je 0x140012629
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140012648
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x68]
xor eax, eax
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140012660
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x60
mov rbx, rdx
mov rdx, qword [rdx]
mov ebp, r8d
mov rdi, rcx
test rcx, rcx
jne 0x140012689
add rdx, 0xffffffffffffffe8
jmp 0x14001278e
movzx eax, word [rdx]
cmp ax, word [0x140280a28]
jne 0x14001269e
add rdx, 0xffffffffffffffe8
jmp 0x14001278e
mov r8, rdx
mov qword [rsp + 0x78], rsi
mov rdx, rdi
lea rcx, str.CCommon::SetRegUI4Property__s__s__d_n
mov r9d, ebp
call fcn.1400056e0
xor esi, esi
lea rcx, [rsp + 0x48]
mov r9d, 0x20019
mov qword [rsp + 0x30], rsi
mov r8, rdi
mov dword [rsp + 0x38], esi
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x58], rsi
call fcn.14000ddf0
mov rcx, qword [rsp + 0x48]
test eax, eax
sete sil
test rcx, rcx
je 0x140012706
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov rsi, qword [rsp + 0x78]
jne 0x14001271b
mov rdx, rdi
call fcn.140012350
test eax, eax
je 0x140012787
mov r9d, 2
lea rcx, [rsp + 0x30]
mov r8, rdi
mov rdx, 0xffffffff80000002
call fcn.14000ddf0
test eax, eax
je 0x140012745
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140012787
jmp 0x140012781
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
mov rdx, qword [rbx]
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x70], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400127ba
test rdi, rdi
je 0x140012787
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400127a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rdi, rdi
je 0x1400127c8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx]
mov eax, 0xffffffff
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400127e7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r11, [rsp + 0x60]
mov eax, 1
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140012800
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov esi, r8d
mov rdi, rcx
test rcx, rcx
jne 0x140012836
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x78]
call fcn.140011740
lea r9d, [rbx + 2]
mov r8, rdi
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.14000ddf0
test eax, eax
jne 0x1400128a0
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400128a0
lea ebx, [rax + 1]
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400128c3
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 0x1400128d3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400128f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov r14, r8
mov rsi, rdx
mov r8, qword [rdx]
mov rdi, rcx
mov rdx, qword [rcx]
mov ebp, r9d
lea rcx, str.CCommon::SetRegBinaryValue__s__s_nBytes___d_n
call fcn.1400056e0
mov r8, qword [rdi]
lea rcx, [rsp + 0x48]
xor ebx, ebx
mov r9d, 0x20019
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rbx
call fcn.14000ddf0
mov rcx, qword [rsp + 0x48]
test eax, eax
sete bl
test rcx, rcx
je 0x140012975
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140012985
mov rdx, qword [rdi]
call fcn.140012350
test eax, eax
je 0x1400129e4
mov r8, qword [rdi]
lea rcx, [rsp + 0x30]
mov r9d, 2
mov rdx, 0xffffffff80000002
call fcn.14000ddf0
test eax, eax
je 0x1400129af
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400129e4
jmp 0x1400129de
mov rbx, qword [rsp + 0x30]
mov r9d, 3
mov rdx, qword [rsi]
mov rcx, rbx
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140012a23
test rbx, rbx
je 0x1400129e4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
mov ebx, 0xffffffff
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140012a05
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
sub ebx, 1
jg 0x140012a1f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140012a71
test rbx, rbx
je 0x140012a31
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
mov ebx, 0xffffffff
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140012a52
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
sub ebx, 1
jg 0x140012a6c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140012a90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor eax, eax
mov rbp, r8
mov r8, qword [rcx]
mov rbx, r9
mov rdi, rdx
mov qword [rsp + 0x30], rax
mov rsi, rcx
mov dword [rsp + 0x38], eax
lea r9d, [rax + 1]
mov qword [rsp + 0x40], rax
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x30]
call fcn.14000ddf0
test eax, eax
je 0x140012aef
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140012b7c
jmp 0x140012b76
mov rdx, qword [rdi]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012b6e
cmp dword [rsp + 0x60], 3
jne 0x140012b6e
test rbx, rbx
je 0x140012b2b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsi]
mov ebx, 0xffffffff
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140012b4c
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
sub ebx, 1
jg 0x140012b67
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
jmp 0x140012bb9
test rbx, rbx
je 0x140012b7c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsi]
mov ebx, 0xffffffff
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140012b9d
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
sub ebx, 1
jg 0x140012bb7
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, 0x50
pop rdi
ret
Function at 0x140012bd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x58], 0xfffffffffffffffe
mov rbp, r9
mov r14, r8
mov r15, rdx
xor r12d, r12d
mov qword [rax - 0x50], r12
mov dword [rax - 0x48], r12d
mov qword [rax - 0x40], r12
lea r9d, [r12 + 1]
mov r8, qword [rdx]
mov rdx, 0xffffffff80000002
lea rcx, [rax - 0x50]
call fcn.14000ddf0
test eax, eax
je 0x140012c3c
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140012cf8
jmp 0x140012cf1
mov dword [rsp + 0xa0], r12d
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [r14]
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012ce9
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140012ce9
mov ebx, dword [rsp + 0xa0]
shr ebx, 1
mov ecx, ebx
add rcx, rcx
call fcn.1401ee594
mov rsi, rax
test rax, rax
je 0x140012ce9
lea eax, [rbx + rbx]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012ce9
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
ja 0x140012ce9
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140012d47
test al, 1
jne 0x140012ce9
shr rax, 1
cmp word [rsi + rax*2 - 2], 0
je 0x140012d4b
test rdi, rdi
je 0x140012cf8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r15]
mov rbx, 0xffffffffffffffff
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140012d1c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140012d36
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov word [rsi], r12w
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [rsi + rax*2], 0
jne 0x140012d55
mov r8d, eax
mov rdx, rsi
mov rcx, rbp
call fcn.1400054e0
mov rcx, rsi
call fcn.1401ee580
nop
test rdi, rdi
je 0x140012d85
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140012da2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140012dbd
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140012de0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1402da8d8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [0x1402ea5a8]
lea rdx, [0x140282684]
call fcn.1401ef8d8
test eax, eax
jne 0x140012e53
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rax, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], 0
jne 0x140012e36
mov r8d, ecx
lea rdx, [rsp + 0x30]
lea rcx, [0x1402ea5a8]
call fcn.140014370
mov rcx, qword [0x1402ea5a8]
add rcx, 0xffffffffffffffe8
call fcn.140014260
add rax, 0x18
mov qword [rbx], rax
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401e35b0
add rsp, 0x150
pop rbx
ret

Function at 0x140012e90
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rdi
mov eax, 0x10060
call fcn.1401e4170
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10078], rbx
mov qword [rsp + 0x10080], rbp
mov qword [rsp + 0x10088], rsi
mov rax, qword [0x1402da8d8]
xor rax, rsp
mov qword [rsp + 0x10050], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
call fcn.14004aa80
mov rcx, rax
test rax, rax
je 0x140012ff6
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rdi], rax
lea rsi, [0x140280a28]
mov rdx, rsi
mov rcx, rdi
call fcn.1400050a0
lea rbx, [rbp - 1]
test al, al
jne 0x140012f39
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x140012f20
mov r8d, eax
mov rdx, rsi
mov rcx, rdi
call fcn.1400054e0
nop
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x50]
call fcn.1401e67e0
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 0x140012fca
lea rcx, [rsp + 0x50]
mov rax, rbx
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140012f80
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x140012fa8
lea rax, [rax*2 - 2]
cmp rax, 0xfffe
jae 0x140013001
mov word [rsp + rax + 0x50], bp
lea rax, [rsp + 0x50]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140012fb0
mov r8d, ebx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400054e0
mov rax, rdi
mov rcx, qword [rsp + 0x10050]
xor rcx, rsp
call fcn.1401e35b0
lea r11, [rsp + 0x10060]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.140005680
int3
call fcn.1401e3cd4
int3
Function at 0x1400136d0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1402e9b74]
test eax, eax
jne 0x1400136fb
lea rcx, [0x1402e9b70]
mov dword [0x1402e9b70], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x1402e9b74]
cmp eax, 6
jne 0x140013713
cmp dword [0x1402e9b78], 2
jne 0x140013713
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret