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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rdx
mov dword [rsp + 0x88], r8d
cmp qword [rdx + 0x18], 8
jb 0x14009b4b4
mov rdx, qword [rdx]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
jne 0x14009b502
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401a9440
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa0
pop rdi
ret
lea r8, [rsp + 0x88]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400420b0
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.140051d30
mov rbx, rax
call fcn.140015e70
mov r8, rax
mov r9, rbx
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140045dc0
lea rdx, [0x1402b97a8]
lea rcx, [rsp + 0x40]
call fcn.1401cf69c
int3

Function at 0x14009b550
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x90
mov rdi, r8
mov rbx, rdx
mov eax, dword [r8 + 0x10]
lea r8d, [rax*2 + 2]
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x14009b57a
mov rax, qword [rdi]
cmp qword [rdx + 0x18], 8
jb 0x14009b584
mov rdx, qword [rdx]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
jne 0x14009b5b1
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400420b0
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.140051e90
mov rbx, rax
call fcn.140015e70
mov r8, rax
mov r9, rbx
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.140045dc0
lea rdx, [0x1402b97a8]
lea rcx, [rsp + 0x40]
call fcn.1401cf69c
int3
Function at 0x14009b600
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, r8
mov esi, edx
mov rbp, rcx
mov qword [rsp + 0x30], rbx
mov ecx, reloc.msi.dll_MsiOpenDatabaseW
call fcn.1401a9704
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14009b666
mov rdx, rbx
mov rcx, rax
call fcn.1400150a0
mov dword [rdi + 0x40], esi
mov qword [rdi + 0x48], rbp
lea rax, [0x14008e110]
mov qword [rdi + 0x50], rax
jmp 0x14009b668
xor edi, edi
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rdi
lea r8, [0x14003c340]
xor edx, edx
xor ecx, ecx
call fcn.1401e90b4
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14009b724
cmp dword [rsp + 0x48], 0
je 0x14009b737
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.1401adedc
test eax, eax
jne 0x14009b71c
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov eax, dword [rbx + 0x38]
and eax, 3
sub rax, 1
je 0x14009b6e4
cmp rax, 1
jne 0x14009b6f1
mov rcx, rbx
jmp 0x14009b6e8
mov rcx, qword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rdx, qword [rax]
call rdx
mov qword [rbx + 0x38], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401a9440
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, eax
call fcn.1401ac6fc
nop
mov dword [rsp + 0x48], 0
mov ecx, 6
call fcn.1401ac738
nop
mov ecx, 1
call fcn.1401ac738
int3
Function at 0x1400a5db0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, r8
mov dword [rsp + 0x58], r9d
lea rax, [rsp + 0x50]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r8d, r8d
test eax, eax
jne 0x1400a5e2a
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x1400a5e66
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov rdx, rsi
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ecx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400a5e64
xor r8d, r8d
jmp 0x1400a5df5
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401a9440
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400a5e80
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, r9
lea rax, [rsp + 0x50]
mov rdi, r8
mov qword [rsp + 0x50], rbx
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a5f14
cmp qword [rbx + 0x18], 8
mov eax, dword [rbx + 0x10]
lea ecx, [rax*2 + 2]
mov rax, rbx
jb 0x1400a5edd
mov rax, qword [rbx]
mov dword [rsp + 0x28], ecx
mov r9d, 1
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.1400272a0
mov al, 1
jmp 0x1400a5f5a
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rcx
mov rdx, rbp
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400a5ec6
mov rcx, rbx
call fcn.1400272a0
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401a9440
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400a6650
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], bx
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rcx + r8*2], 0
jne 0x1400a6690
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.140018360
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], 3
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x42], xmm0
mov dword [rsp + 0x52], ebx
mov word [rsp + 0x56], bx
mov qword [rsp + 0x38], rbx
mov eax, 0x614
mov word [rsp + 0x40], ax
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.14009a240
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete bl
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400a6747
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a6742
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a6760
call fcn.1401a9460
movzx eax, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401a9440
add rsp, 0x80
pop rbx
ret
call fcn.1401e37cc
int3
Function at 0x1400a7210
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rbx, rcx
mov qword [rsp + 0x60], rcx
xor esi, esi
mov qword [rsp + 0x70], rsi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], si
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREATI_TechnologiesInstaller
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400a7298
mov rcx, rbx
call fcn.1400a6770
jmp 0x1400a73cd
mov word [rbp - 0x70], si
mov dword [rsp + 0x6c], esi
mov dword [rsp + 0x68], 0x208
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
lea rdx, str.BaseLocation
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a7315
lea rax, [rbp - 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400a72e4
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.140018360
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsp + 0x70], xmm0
jmp 0x1400a73b1
lea rcx, [rsp + 0x40]
call fcn.1400a6770
mov rdi, rax
lea rax, [rsp + 0x70]
cmp rax, rdi
je 0x1400a7360
lea rcx, [rsp + 0x70]
call fcn.1400272a0
movups xmm1, xmmword [rdi]
movups xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x30], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
jmp 0x1400a7373
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsp + 0x70], xmm0
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400a73b1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a73ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a73f8
call fcn.1401a9460
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx], xmm0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx + 0x10], xmm0
mov rax, rbx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1401a9440
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1401e37cc
nop
int3
Function at 0x1400a7400
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor r12d, r12d
mov word [rbp + 0x70], r12w
mov edx, 0x104
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1400a748b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbx], r12
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
xor r8d, r8d
lea rdx, [0x14022de70]
mov rcx, rbx
call fcn.140018360
jmp 0x1400a764b
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r12w
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 7
lea rax, [rbp + 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400a74c2
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.140018360
lea rcx, [rsp + 0x48]
call fcn.1400272a0
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsp + 0x48], xmm0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x58], xmm0
lea rdi, [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x20]
movq r14, xmm1
psrldq xmm0, 8
movq r15, xmm0
cmp r15, 8
cmovae rdi, r14
movups xmm0, xmmword [rsp + 0x30]
movq rsi, xmm0
test rsi, rsi
je 0x1400a7644
mov r13d, 0x100
mov r8d, r13d
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1401cff00
lea rcx, [0x1402301b0]
lea rdx, [0x1402301b2]
movzx eax, word [rcx]
cmp ax, r13w
jae 0x1400a759b
movzx eax, al
mov byte [rsp + rax + 0x70], 1
add rcx, 2
cmp rcx, rdx
jne 0x1400a7550
lea rdx, [rdi + rsi*2]
mov rax, rdi
cmp rdi, rdx
jae 0x1400a763a
movzx ecx, word [rax]
cmp cx, r13w
jae 0x1400a758a
cmp byte [rsp + rcx + 0x70], 0
jne 0x1400a7593
add rax, 2
cmp rax, rdx
jmp 0x1400a7574
sub rax, rdi
sar rax, 1
jmp 0x1400a75ee
lea r9, [rdi + rsi*2]
mov rax, rdi
cmp rdi, r9
jae 0x1400a75e7
mov r10d, 0x5c
nop dword [rax]
mov edx, 1
movzx r8d, word [rax]
lea rcx, [0x1402301b0]
cmp r10w, r8w
je 0x1400a7593
cmp rdx, 1
je 0x1400a75de
dec rdx
add rcx, 2
cmp word [rcx], r8w
jne 0x1400a75c6
test rcx, rcx
jne 0x1400a7593
add rax, 2
cmp rax, r9
jb 0x1400a75b0
mov rax, 0xffffffffffffffff
cmp rax, 0xffffffffffffffff
je 0x1400a763a
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 7
lea r8, [rax + 1]
cmp rsi, r8
cmovb r8, rsi
lea rdx, [rsp + 0x48]
cmp r15, 8
cmovae rdx, r14
lea rcx, [rsp + 0x20]
call fcn.140018360
lea rcx, [rsp + 0x48]
call fcn.1400272a0
movups xmm0, xmmword [rsp + 0x30]
jmp 0x1400a763f
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm1
movups xmmword [rbx + 0x10], xmm0
mov rax, rbx
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.1401a9440
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400a7680
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], rdx
mov rbx, r8
mov qword [rsp + 0x30], rbx
mov rsi, r9
cmp qword [rdx + 0x18], 8
mov rdi, rdx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
jb 0x1400a76cd
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a7742
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1400a76f7
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x1400a773c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.1400272a0
mov rcx, rbx
call fcn.1400272a0
mov al, 1
jmp 0x1400a7754
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.1400272a0
mov rcx, rbx
call fcn.1400272a0
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401a9440
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400a7770
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x268
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, r9
mov qword [rsp + 0x30], 0
mov rdi, r8
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a7845
xor edx, edx
mov dword [rsp + 0x3c], 1
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.1401cff00
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x38], 0x104
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x1400a783f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400a7823
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140018360
mov al, 1
jmp 0x1400a7847
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401a9440
add rsp, 0x268
pop rdi
pop rbx
ret
Function at 0x1400a7870
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
mov qword [rsp + 0x30], 0
mov edx, ecx
lea rax, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test rcx, rcx
je 0x1400a792b
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1400a78f8
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400a78e0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140018360
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], 0
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x1400a792b
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401a9440
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x1400a7980
Capabilities:
Query or enumerate 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, 0x280
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor bl, bl
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSystemInformation
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a7bc6
mov dword [rsp + 0x3c], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.1401cff00
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
lea rdx, str.SystemProductName
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a7bc6
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 7
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400a7a60
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140018360
lea rbx, [rsp + 0x40]
mov r11, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
cmp rdi, 8
cmovae rbx, r11
lea rax, [rsp + 0x40]
cmp rdi, 8
cmovae rax, r11
mov rcx, qword [rsp + 0x50]
lea rax, [rax + rcx*2]
cmp rbx, rax
je 0x1400a7ac7
movzx ecx, word [rbx]
call fcn.1401e9258
mov word [rbx], ax
add rbx, 2
mov rdi, qword [rsp + 0x58]
mov r11, qword [rsp + 0x40]
jmp 0x1400a7a91
lea rbx, [rsp + 0x40]
cmp rdi, 8
setae bpl
cmovae rbx, r11
cmp rcx, 7
jb 0x1400a7b82
lea rsi, [rcx - 6]
lea rsi, [rbx + rsi*2]
mov rax, rbx
lea r14, [0x14023c480]
nop dword [rax]
nop dword [rax + rax]
mov rcx, rsi
sub rcx, rax
sar rcx, 1
mov edx, 0
je 0x1400a7b2c
cmp word [rax], 0x76
je 0x1400a7b29
cmp rcx, 1
je 0x1400a7b2c
dec rcx
add rax, 2
cmp word [rax], 0x76
jne 0x1400a7b16
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x1400a7b82
mov r8d, 7
mov rcx, r14
movzx edx, word [rdx]
mov r9d, reloc.msi.dll_MsiRecordSetStreamA
cmp dx, r9w
jb 0x1400a7b74
mov r10, rax
sub r10, r14
cmp dx, r9w
ja 0x1400a7b74
cmp r8, 1
je 0x1400a7b7a
dec r8
add rcx, 2
movzx edx, word [r10 + rcx]
movzx r9d, word [rcx]
cmp dx, r9w
jae 0x1400a7b56
add rax, 2
jmp 0x1400a7b00
sub rax, rbx
sar rax, 1
jmp 0x1400a7b89
mov rax, 0xffffffffffffffff
cmp rax, 0xffffffffffffffff
setne bl
test bpl, bpl
je 0x1400a7bc6
lea rdx, [rdi*2 + 2]
mov rax, r11
cmp rdx, 0x1000
jb 0x1400a7bbe
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a7c02
mov rcx, r11
call fcn.1401a9460
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401a9440
lea r11, [rsp + 0x280]
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
call fcn.1401e37cc
int3
Function at 0x1400a9130
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400a9204
cmp byte [rcx + 0x72], 0
je 0x1400a9204
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x1400a9200
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x1400a91c6
sub eax, 1
je 0x1400a91ca
cmp eax, 2
jne 0x1400a9200
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401a9440
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400a91f7
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.1401e0494
cmp rdi, rax
jne 0x1400a9200
cmp byte [rbx + 0x72], 0
sete al
jmp 0x1400a91ae
xor al, al
jmp 0x1400a91ae
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401a9440
add rsp, 0x60
pop rbx
ret
Function at 0x1400ac8e0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebx, ecx
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 2
lea rdx, str.SOFTWAREAIX_InstallerInstall
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400ac93f
mov rcx, qword [rsp + 0x50]
lea rdx, str.DriverInstalledTimeStamp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], ebx
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREAIX_InstallerInstall
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400ac9bb
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.InstallScenario
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401a9440
add rsp, 0x70
pop rbx
ret
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r8
lea rdx, str.SOFTWAREAIX_InstallerInstall
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r8
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400ac96e
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401a9440
add rsp, 0x70
pop rbx
ret
Function at 0x1400acc90
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, 0xffff
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x1400accc1
xor eax, eax
jmp 0x1400ace0f
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x1400accfe
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x1400accfe
lea ecx, [r10 - 1]
movzx eax, si
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x1400ace0f
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x1400ace04
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400acd45
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400acd6e
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.1401e9fa4
cmp ax, di
je 0x1400ace04
movzx edi, si
jmp 0x1400ace04
lea r8, [rsp + 0x40]
mov word [rsp + 0x50], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x52]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x1400acdc4
sub eax, 1
je 0x1400acdc4
cmp eax, 2
jne 0x1400ace04
movzx ecx, word [rsp + 0x50]
jmp 0x1400acd51
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x1400acdf1
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call fcn.1401e0494
cmp rbp, rax
jne 0x1400ace04
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
movzx eax, si
jne 0x1400ace07
movzx eax, di
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401a9440
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret