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

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov r12, rdx
mov rsi, rcx
mov qword [rsp + 0x38], 0
xor bpl, bpl
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, str.SOFTWARESony_CorporationShared_InfoAppDBVAIO_UpdatePatchList
test rdx, 0xffffffffffff0000
jne 0x140005beb
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x140005bfc
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001f70
jmp 0x140005bfc
mov r8d, Ordinal_68
lea rcx, [rsp + 0x30]
call fcn.140001e80
nop
mov rax, qword [rsi + 0x18]
or rbx, 0xffffffffffffffff
cmp dword [rax - 0x10], 0
je 0x140005d4d
lea r8d, [rbx + 2]
lea rdx, [0x1400ddd20]
lea rcx, [rsp + 0x30]
call fcn.140003c10
mov rdx, qword [rsi + 0x18]
test rdx, rdx
jne 0x140005c30
xor ecx, ecx
jmp 0x140005c41
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
lea rcx, [rsp + 0x30]
call fcn.140003c10
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005d4d
mov dword [rsp + 0x88], 1
mov dword [rsp + 0x80], eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.version
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005d41
mov ecx, dword [rsp + 0x80]
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.1400ca8e8
mov rsi, rax
mov ecx, dword [rsp + 0x80]
add rcx, rcx
mov rdi, rax
xor eax, eax
rep stosb byte [rdi], al
test rsi, rsi
je 0x140005d41
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.version
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005d39
mov rdx, rsi
mov rcx, r12
call fcn.1400022e0
mov bpl, 1
mov rcx, rsi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140005d6a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, bpl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret
Function at 0x140006c20
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r13, rcx
xor r14d, r14d
mov qword [rcx], r14
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rdi, [rsp + 0x30]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
xor r9d, r9d
lea r8d, [r14 + 0x26]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, r14d
test eax, eax
setne cl
or rbp, 0xffffffffffffffff
test ecx, ecx
je 0x140006de1
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140006d24
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140006da1
cmp dword [rdx + 0x10], eax
jge 0x140006cfa
cmp dword [rbx - 0xc], eax
jge 0x140006ced
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x140006da1
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140006d10
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
jmp 0x140006da1
mov r12d, dword [rbx - 0x10]
lea rsi, [rsp + 0x30]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
jns 0x140006d42
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140006d64
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140001c20
mov rbx, qword [rsp + 0x20]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x140006d89
lea r8, [rbx + rsi*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x140006d94
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x140006dd6
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], r14w
mov r8d, reloc.ATL100.DLL_Ordinal_17
lea rdx, str.SonyVAIO_Update
lea rcx, [rsp + 0x20]
call fcn.140003c10
mov r8d, 9
lea rdx, str.VUWP.dll
lea rcx, [rsp + 0x20]
call fcn.140003c10
mov rbx, qword [rsp + 0x20]
jmp 0x140006de1
mov ecx, 0x80070057
call fcn.140001000
int3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [r13], rax
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
dec ebp
test ebp, ebp
jg 0x140006e06
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, r13
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400cafa0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140008540
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov eax, dword [r9]
mov rbx, r8
mov rdi, r9
add eax, eax
xor esi, esi
xor r8d, r8d
mov dword [r9], esi
mov rcx, qword [rcx]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400085d1
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x140008595
cmp eax, 2
jne 0x1400085b3
mov ecx, dword [rsp + 0x68]
test rbx, rbx
je 0x1400085cb
test ecx, ecx
je 0x1400085c8
test cl, 1
jne 0x1400085b3
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x1400085cb
mov eax, Ordinal_17
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov word [rbx], si
shr ecx, 1
xor eax, eax
mov dword [rdi], ecx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400085f0
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rbp + 0x200], rax
lea rax, [rbp - 0x80]
xor r13d, r13d
lea rdi, [rbp - 0x10]
mov qword [rsp + 0x70], rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rdi, [rbp - 0x10]
mov esi, r13d
mov ecx, 0x208
xor r12b, r12b
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0x78], esi
mov word [rsp + 0x7c], 0x500
mov qword [rsp + 0x68], r13
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea rdx, [rsp + 0x68]
mov ecx, eax
call sub.WTSAPI32.dll_WTSQueryUserToken
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400087c1
cmp rcx, 0xffffffffffffffff
je 0x1400087c1
mov r9d, dword [rsp + 0x60]
lea rax, [rsp + 0x60]
lea edx, [r13 + 2]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400086b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140008789
mov edx, dword [rsp + 0x60]
mov ecx, reloc.ATL100.DLL_Ordinal_64
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x140008789
mov r9d, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov r8, rsi
mov edx, 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140008789
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x78]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov r8d, reloc.ATL100.DLL_Ordinal_32
mov dl, 2
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140008789
mov edi, r13d
cmp dword [rsi], r13d
jbe 0x140008789
mov qword [rsp + 0x330], rbx
lea rbx, [rsi + 8]
nop word [rax + rax]
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14000877e
inc edi
add rbx, 0x10
cmp edi, dword [rsi]
jb 0x140008760
jmp 0x140008781
mov r12b, 1
mov rbx, qword [rsp + 0x330]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000879e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], r13
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400087b3
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x70], r13
test rsi, rsi
je 0x1400087c1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
movzx eax, r12b
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400cafa0
lea r11, [rsp + 0x310]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
Function at 0x1400088b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r12, rdx
xor bpl, bpl
xor r13d, r13d
mov qword [rax - 0x40], r13
mov dword [rax - 0x38], r13d
mov qword [rax - 0x30], r13
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov r9d, 0x20019
lea r8, str.SOFTWARESony_CorporationVAIO_Care
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.140008440
test eax, eax
jne 0x140008a89
mov dword [rsp + 0xa0], r13d
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.UpdateAppId
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008a71
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x140008971
cmp eax, 2
jne 0x140008a71
mov edi, dword [rsp + 0xa0]
shr edi, 1
jns 0x140008987
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400089a9
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140001c20
mov rbx, qword [rsp + 0x38]
lea eax, [rdi + rdi]
mov dword [rsp + 0xa8], eax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.UpdateAppId
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008a71
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x1400089f3
cmp eax, 2
jne 0x140008a71
test rbx, rbx
je 0x140008a18
mov eax, dword [rsp + 0xa8]
test eax, eax
je 0x140008a14
test al, 1
jne 0x140008a71
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x140008a18
jmp 0x140008a71
mov word [rbx], r13w
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x140008a66
cmp eax, dword [rbx - 0xc]
jg 0x140008a66
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r13w
mov rdx, qword [r12]
mov eax, r13d
test rdx, rdx
setne al
test eax, eax
jne 0x140008a54
mov ecx, 0x80004005
call fcn.140001000
int3
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll__wcsicmp]
test eax, eax
jne 0x140008a71
mov bpl, 1
jmp 0x140008a71
mov ecx, 0x80070057
call fcn.140001000
int3
test rsi, rsi
je 0x140008a84
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x50], r13d
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140008aa6
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140008ab6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bpl
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008b80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
xor sil, sil
xor r13d, r13d
mov qword [rbp - 0x18], r13
mov dword [rbp - 0x10], r13d
mov qword [rbp - 8], r13
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x40], rbx
lea r8, str.SOFTWARESony_CorporationVAIO_Update
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x28]
call fcn.140002ce0
nop
lea r8, [0x1400ddd20]
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140002ce0
nop
lea r8, str.EULA
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.140002ce0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
or edi, 0xffffffff
cmp rcx, rbx
je 0x140008c63
cmp dword [rbx + 0x10], r13d
jl 0x140008c55
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140008c55
call fcn.140001b90
mov r12, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140008c4a
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
lea rax, [r12 + 0x18]
mov qword [rbp - 0x40], rax
jmp 0x140008c63
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x40]
call fcn.140001e80
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140008c82
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140008ca1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140008cbf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r9d, 0x20019
mov rbx, qword [rbp - 0x40]
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x18]
call fcn.140008440
test eax, eax
jne 0x140008d47
mov dword [rbp + 0x38], r13d
mov dword [rbp + 0x40], 4
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x48]
xor r8d, r8d
lea rdx, str.EULAAgreed
mov r12, qword [rbp - 0x18]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008d31
cmp dword [rbp + 0x48], 4
jne 0x140008d31
movzx esi, sil
mov eax, 1
cmp dword [rbp + 0x38], eax
cmove esi, eax
test r12, r12
je 0x140008d43
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x18], r13
mov dword [rbp - 0x10], r13d
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x140008d61
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140008d70
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, sil
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140010c90
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor esi, esi
mov qword [r11 - 0x48], rsi
call qword [sym.imp.MSVCR100.dll__tzset]
xor ecx, ecx
call qword [sym.imp.MSVCR100.dll__time64]
mov qword [rsp + 0x60], rax
test rax, rax
js 0x140010ddb
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140010a70
nop
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareSony_CorporationVAIO_Update5.0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rbx, qword [rsp + 0x50]
test eax, eax
jne 0x140010dc0
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x78], rdi
mov eax, esi
test rbx, rbx
setne al
test eax, eax
je 0x140010d9a
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
lea r9d, [rsi + 1]
xor r8d, r8d
lea rdx, str.LastVUMCheck
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rdi, rdi
je 0x140010db0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rsi
mov qword [rsp + 0x78], rsi
test rdi, rdi
je 0x140010dc0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140010dc0
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140010ddb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400cafa0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140010e00
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r13, rdx
mov r12, rcx
xor sil, sil
xor r14d, r14d
mov qword [rax - 0x40], r14
mov dword [rax - 0x38], r14d
mov qword [rax - 0x30], r14
mov rdx, 0xffffffff80000002
mov r9d, 0x20019
lea rcx, [rax - 0x40]
call fcn.140008440
mov rbx, qword [rsp + 0x38]
test eax, eax
jne 0x140010f43
mov dword [rsp + 0x98], r14d
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010f32
mov ecx, dword [rsp + 0x98]
mov eax, 2
mul rcx
mov r15, 0xffffffffffffffff
cmovo rax, r15
mov rcx, rax
call fcn.1400ca8e8
mov rbp, rax
mov ecx, dword [rsp + 0x98]
add rcx, rcx
mov rdi, rax
xor eax, eax
rep stosb byte [rdi], al
test rbp, rbp
je 0x140010f32
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010f2a
xor eax, eax
mov rcx, r15
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rbp
mov rcx, r13
call fcn.140001e80
mov rdx, qword [r13]
movzx esi, sil
mov eax, 1
cmp dword [rdx - 0x10], r14d
cmovne esi, eax
mov rcx, rbp
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
test rbx, rbx
je 0x140010f43
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r14
test rbx, rbx
je 0x140010f51
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, sil
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140019210
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
lea rax, [rbp + 0x38]
xor edi, edi
lea rdx, str.SOFTWARESony_CorporationVAIO_UpdateRegion
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov ebx, edi
mov qword [rbp + 0x38], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400192e9
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400192e9
lea rax, [rbp + 0x28]
lea r9, [rbp + 0x30]
lea rdx, str.dwLocation
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
xor r8d, r8d
mov dword [rbp + 0x28], 4
mov dword [rbp + 0x20], edi
mov dword [rbp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400192d7
mov ebx, dword [rbp + 0x20]
cmp ebx, 0x7ef
jne 0x1400192d7
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x28]
lea r9, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
lea rdx, str.subdwLocation
xor r8d, r8d
mov dword [rbp + 0x20], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove ebx, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400193ab
lea rax, [rbp + 0x38]
lea rdx, str.softwareSony_CorporationShared_Info
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rbp + 0x38], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400193ab
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400193ab
lea rax, [rbp + 0x28]
lea r9, [rbp + 0x30]
lea rdx, str.dwLocation
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
xor r8d, r8d
mov dword [rbp + 0x28], 4
mov dword [rbp + 0x20], edi
mov dword [rbp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400193a1
mov ebx, dword [rbp + 0x20]
cmp ebx, 0x7ef
jne 0x1400193a1
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x28]
lea r9, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
lea rdx, str.subdwLocation
xor r8d, r8d
mov dword [rbp + 0x20], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove ebx, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
Function at 0x14001f4d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x240
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
xor eax, eax
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], ax
call sub.MSVCR100.dll_memset
xor r9d, r9d
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, eax
test eax, eax
je 0x14001f583
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x250], rdi
xor eax, eax
lea rdi, [rsp + 0x20]
lea rdx, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rsi
call fcn.140001e80
lea rdx, str.Sony_CorporationVAIO_Update
mov r8d, Ordinal_32
mov rcx, rsi
call fcn.140003c10
lea rdx, str.Debug.dat
mov r8d, 0xa
mov rcx, rsi
call fcn.140003c10
mov rdi, qword [rsp + 0x250]
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400cafa0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rsi
ret

Function at 0x140021e20
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140021e94
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x140021eaf
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x140021eaf
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x140021eaf
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x68
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmmword [rsp + 0x30], xmm1
movdqa xmmword [rsp + 0x40], xmm2
movdqa xmmword [rsp + 0x50], xmm3
mov rdx, rax
lea rcx, [0x140116ee8]
call fcn.1400cbd04
movdqa xmm0, xmmword [rsp + 0x20]
movdqa xmm1, xmmword [rsp + 0x30]
movdqa xmm2, xmmword [rsp + 0x40]
movdqa xmm3, xmmword [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0x88]
add rsp, 0x68
jmp 0x1400ca34e
jmp rax
lea rax, sym.imp.ADVAPI32.dll_RegDeleteKeyW
jmp 0x1400ca2d7