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

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
sub rsp, 0x40
mov rax, qword [0x140074150]
xor rax, rsp
mov qword [rsp + 0x38], rax
movdqa xmm0, xmmword [str.__p]
xor r12d, r12d
mov rsi, rcx
mov ebx, r12d
mov r14d, r12d
mov ebp, r12d
cmp dword [0x140078100], ebx
movdqu xmmword [rsp + 0x20], xmm0
jne 0x14004731d
lea edx, [r12 + 2]
mov r8b, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [r12 + 1]
mov r8b, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [r12 + 0x20]
mov r8b, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [r12 + 0x23]
lea rcx, [0x140078100]
mov r8, rax
mov dword [0x140078100], 0x11c
mov dword [0x140078104], 6
mov dword [0x140078108], 1
mov word [0x140078214], r12w
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, r12d
test eax, eax
sete cl
mov dword [0x140075a28], ecx
jmp 0x140047323
mov ecx, dword [0x140075a28]
test ecx, ecx
je 0x140047331
mov eax, 1
jmp 0x1400474b2
test rsi, rsi
je 0x14004749e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x78], rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test eax, eax
je 0x140047499
mov edx, edi
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x140047499
xor r9d, r9d
mov r8, rax
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp edi, eax
jbe 0x140047499
mov rsi, r12
or rdi, 0xffffffffffffffff
nop word [rax + rax]
mov ecx, dword [rsp + rsi*4 + 0x20]
lea rdx, [0x14005d214]
call fcn.140046c60
mov rbx, rax
test rax, rax
je 0x140047499
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], r12w
jne 0x1400473c0
mov rdx, rax
mov rcx, r14
call fcn.14003dc24
mov ebp, r12d
test eax, eax
sete bpl
test ebp, ebp
jne 0x140047499
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc rsi
mov rbx, r12
cmp rsi, 4
jl 0x1400473a0
movups xmm0, xmmword [str.WinSxS_]
movzx eax, word [0x140068608]
lea rcx, str._SystemRoot_
xor r8d, r8d
xor edx, edx
mov word [rsp + 0x30], ax
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x140047499
lea rdx, [rsi + 0x12]
lea ecx, [rbp + 0x40]
mov qword [rsp + 0x80], r15
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140047491
lea rcx, str._SystemRoot_
mov r8d, esi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, eax
jne 0x140047491
lea r8, [rsp + 0x20]
lea rdx, [rsi + 0x12]
mov rcx, rbx
call fcn.1400013cf
inc rdi
cmp word [rbx + rdi*2], r12w
jne 0x140047470
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.14003dc24
mov ebp, r12d
test eax, eax
sete bpl
mov r15, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001cc60
add rsp, 0x40
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x140011800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x140011962
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140011962
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140011962
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x1400118a6
nop
cmp rdi, r11
jae 0x140011962
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140011890
cmp rdi, r11
jae 0x140011962
movzx eax, word [rdi]
test ax, ax
je 0x140011962
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x1400118dc
mov edx, ebx
mov rcx, rsi
call fcn.140011a20
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x1400118f9
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.140082b00
test eax, eax
je 0x140011938
cmp eax, 0xc
je 0x140011932
cmp eax, 0x16
je 0x14001192c
cmp eax, 0x22
je 0x14001192c
cmp eax, 0x50
je 0x140011938
call fcn.140057a98
int3
call fcn.140057a98
int3
call fcn.140057a50
int3
test ebx, ebx
js 0x140011957
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x140011957
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x140011964
mov ecx, 0x80070057
call fcn.1400120d0
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x140011980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400119b3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x1400119f7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1400119f2
cmp rbx, r11
jae 0x1400119f7
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1400119e0
cmp rbx, r11
jb 0x1400119fb
xor eax, eax
jmp 0x140011a07
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140012f90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
sub rsp, 0x48
test rcx, rcx
mov rbp, r8
mov rdi, rdx
jne 0x140012fca
mov rdx, qword [rdx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140012fc1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
add rsp, 0x48
pop rdi
pop rbp
ret
test r8, r8
je 0x140012fa2
xor eax, eax
mov rdx, rcx
mov qword [rsp + 0x40], rsi
mov qword [r8], rax
mov qword [r8 + 8], rax
xor esi, esi
mov qword [r8 + 0x10], rax
lea rax, [rsp + 0x38]
lea r9d, [rsi + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001311e
mov rdx, qword [rdi]
mov qword [rsp + 0x68], rbx
mov rbx, qword [rsp + 0x38]
lea r9, [rsp + 0x60]
mov rcx, rbx
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140013048
test rbx, rbx
je 0x14001305d
jmp 0x140013054
cmp dword [rsp + 0x60], 4
je 0x14001308f
test rbx, rbx
je 0x14001305d
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 0x14001307c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x48
pop rdi
pop rbp
ret
lea rcx, [rsp + 0x78]
mov word [rbp], SafeArrayUnaccessData
mov rdx, qword [rdi]
mov qword [rsp + 0x28], rcx
lea rax, [rbp + 8]
lea r9, [rsp + 0x30]
mov rcx, rbx
xor r8d, r8d
mov dword [rsp + 0x78], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400130d7
cmp dword [rsp + 0x30], 4
mov eax, esi
mov ecx, SafeArrayGetDim
cmovne eax, ecx
test eax, eax
sete sil
test rbx, rbx
je 0x1400130eb
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 0x14001310b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rbx, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x40]
add rsp, 0x48
pop rdi
pop rbp
ret
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001313d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x48
pop rdi
pop rbp
ret
Function at 0x140013450
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
xor edi, edi
sub r8d, 3
mov r10, rdx
mov rsi, rcx
je 0x140013512
sub r8d, 1
je 0x1400134ea
sub r8d, 7
je 0x1400134c7
cmp r8d, 8
jne 0x14001358b
cmp qword [rcx], rdi
mov ebx, dword [r9]
mov qword [rsp + 0x30], rdi
je 0x14001358b
lea rdx, [rsp + 0x30]
mov rcx, r10
call fcn.1400132a0
test eax, eax
js 0x14001358b
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x70]
lea r9d, [rdi + 4]
jmp 0x14001355f
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
movzx eax, word [r9]
mov word [rsp + 0x38], VariantTimeToDosDateTime
mov word [rsp + 0x40], ax
jmp 0x140013531
movss xmm0, dword [r9]
xor eax, eax
cmp qword [rcx], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
movss dword [rsp + 0x40], xmm0
mov qword [rsp + 0x48], rax
mov word [rsp + 0x38], 4
jmp 0x140013534
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov eax, dword [r9]
mov word [rsp + 0x38], 3
mov dword [rsp + 0x40], eax
cmp qword [rcx], rdi
mov qword [rsp + 0x30], rdi
je 0x14001358b
lea rdx, [rsp + 0x30]
mov rcx, r10
call fcn.1400132a0
test eax, eax
js 0x14001358b
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayGetElement
lea rax, [rsp + 0x38]
mov r9d, 3
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsi]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
test eax, eax
cmove edi, ecx
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x50
pop rdi
ret
Function at 0x1400135a0
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 0x1400135fb
mov rdx, qword [r8]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400135f4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14001368c
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.1400132a0
test eax, eax
js 0x14001366a
mov rbx, qword [rdi]
mov eax, esi
test rbx, rbx
setne al
test eax, eax
jne 0x140013626
mov ecx, 0x80004005
call fcn.1400120d0
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 0x14001368a
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 0x140013c90
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 0x140013cb6
xor eax, eax
jmp 0x140013df5
test rbx, rbx
jne 0x140013cc2
xor eax, eax
jmp 0x140013df5
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x40]
call fcn.140012dc0
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 0x140013dd1
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 0x140013d9b
cmp dword [rsp + 0x30], 4
jne 0x140013d9b
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 0x140013d84
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 0x140013d94
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140013df5
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140013dbd
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 0x140013dcd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140013df5
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140013df3
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 0x140013e20
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 0x140013e61
mov rdx, qword [rdx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140013e54
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 0x140013e35
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 0x140013f69
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 0x140013f2a
cmp dword [rsp + 0x30], 4
jne 0x140013f2a
test rbx, rbx
mov eax, dword [rsp + 0x50]
mov dword [rsi], eax
je 0x140013ef5
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 0x140013f15
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 0x140013f38
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 0x140013f57
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 0x140013e38
Function at 0x140013f80
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 0x140013fc1
mov rdx, qword [rdx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140013fb6
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 0x140013ff8
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jmp 0x140014142
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 0x140014040
mov rdi, qword [rsp + 0x78]
xor esi, esi
test eax, eax
sete sil
test rdi, rdi
je 0x140014056
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x14001406d
mov rdx, rbp
mov rcx, 0xffffffff80000002
call fcn.140013ba0
test eax, eax
je 0x1400140e4
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 0x14001412e
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 0x1400140fa
test rdi, rdi
je 0x1400140e4
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 0x140014142
test rdi, rdi
je 0x140014108
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 0x140014127
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x14001414f
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001414d
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 0x140014170
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 0x140014196
xor eax, eax
jmp 0x1400142a8
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call fcn.140012dc0
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 0x140014284
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 0x14001424b
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140014237
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 0x140014247
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1400142a8
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001426d
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 0x14001427d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400142a8
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400142a6
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 0x1400142e0
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 0x140014349
mov rbx, qword [rsp + 0x60]
xor ebp, ebp
test eax, eax
sete bpl
test rbx, rbx
je 0x14001435f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jne 0x140014376
mov rdx, qword [rdi]
mov rcx, 0xffffffff80000002
call fcn.140013ba0
test eax, eax
je 0x1400143da
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 0x1400143da
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 0x140014431
test rbx, rbx
je 0x1400143da
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 0x1400143fa
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 0x140014416
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 0x14001443f
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 0x14001445f
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 0x14001447b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x140014418