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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rax, qword [str.GetDiskFreeSpaceExW]
lea rcx, str.kernel32.dll
mov rbx, rdx
mov qword [rsp + 0x30], rax
mov rax, qword [0x1400e6f80]
mov qword [rsp + 0x38], rax
mov eax, dword [0x1400e6f88]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140065434
xor ecx, ecx
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rcx
mov word [rsp + 0x50], cx
lea rcx, [rsp + 0x52]
call sub.MSVCR100.dll_memset
lea rdx, [rsp + 0x50]
lea rcx, str._SystemDrive_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140065440
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
xor r9d, r9d
call rdi
cmp eax, 1
jne 0x14006542b
mov rax, qword [rsp + 0x20]
mov qword [rbx], rax
mov al, 1
jmp 0x140065442
lea rcx, str.CPatchUpdateController::GetFreeSpaceSize:call_GetDiskFreeSpace_method_error
jmp 0x14006543b
lea rcx, str.CPatchUpdateController::GetFreeSpaceSize:get_GetDiskFreeSpace_function_pointer_error
call fcn.1400191f0
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400cafa0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x140065600
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r12
sub rsp, 0x50
mov qword [rsp + 0x70], rbp
mov esi, edx
xor bl, bl
call fcn.14001a970
xor ebp, ebp
lea r12d, [rbp + 1]
cmp eax, 9
jne 0x1400656b5
lea r8, str.SOFTWARESony_CorporationVAIO_Update
lea rcx, [rsp + 0x30]
mov r9d, 0x20206
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x40], rbp
call fcn.140008440
test eax, eax
jne 0x1400656a5
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x80]
lea r9d, [rbp + 4]
lea rdx, str.LaunchInstaller
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x80], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, bl
test eax, eax
cmove ebx, r12d
test rdi, rdi
je 0x1400656b5
mov rcx, rdi
jmp 0x1400656af
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400656b5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, str.SOFTWARESony_CorporationVAIO_Update
lea rcx, [rsp + 0x30]
mov r9d, 0x20006
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x40], rbp
call fcn.140008440
mov rbp, qword [rsp + 0x70]
test eax, eax
jne 0x140065737
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x80]
lea rdx, str.LaunchInstaller
mov r9d, 4
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x80], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, bl
test eax, eax
cmove ebx, r12d
test rdi, rdi
je 0x140065747
mov rcx, rdi
jmp 0x140065741
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140065747
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret
Function at 0x140065760
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rsi, rcx
xor dil, dil
xor r12d, r12d
mov qword [rax - 0x20], r12
mov dword [rax - 0x18], r12d
mov qword [rax - 0x10], r12
mov r9d, 0x2001f
lea r8, str.Control_PanelDesktop
mov rdx, qword [rdx + 0x30]
lea rcx, [rax - 0x20]
call fcn.140008440
test eax, eax
jne 0x140065818
lea rbx, reloc.ATL100.DLL_Ordinal_49
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 ebp, 1
mov r9d, ebp
xor r8d, r8d
lea rdx, str.ScreenSaveActive
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx edi, dil
test eax, eax
cmove edi, ebp
test rbx, rbx
je 0x140065811
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, r12d
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], r12d
jmp 0x14006581d
mov rbx, qword [rsp + 0x38]
call fcn.1400193c0
cmp eax, 0x51
je 0x14006583f
add eax, 0xffffffa0
cmp eax, 2
ja 0x14006584b
xor edx, edx
mov rcx, qword [rsi + 0xd8]
call fcn.140033520
jmp 0x14006584b
mov ecx, 0x80000000
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
nop
test rbx, rbx
je 0x140065859
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret

Function at 0x140065880
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
sub rsp, 0x50
xor eax, eax
mov rbp, r9
lea rcx, [rsp + 0x30]
mov r9d, 0x20006
xor bl, bl
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], rax
call fcn.140008440
test eax, eax
jne 0x140065922
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x1400658fc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
lea eax, [rax + rax + 2]
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov esi, 1
mov r9d, esi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, bl
test eax, eax
cmove ebx, esi
cmp qword [rsp + 0x30], 0
mov rsi, qword [rsp + 0x60]
je 0x140065932
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140065932
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x140065940
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
sub rsp, 0x50
xor eax, eax
mov rbp, r9
lea rcx, [rsp + 0x30]
mov r9d, 0x20206
xor bl, bl
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], rax
call fcn.140008440
test eax, eax
jne 0x1400659e2
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x1400659bc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
lea eax, [rax + rax + 2]
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov esi, 1
mov r9d, esi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, bl
test eax, eax
cmove ebx, esi
cmp qword [rsp + 0x30], 0
mov rsi, qword [rsp + 0x60]
je 0x1400659f2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400659f2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret

Function at 0x140065a00
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x60], rbp
mov esi, edx
xor bl, bl
call fcn.14001a970
xor ebp, ebp
cmp eax, 9
jne 0x140065aae
lea r8, str.SOFTWARESony_CorporationVAIO_Update
lea rcx, [rsp + 0x30]
mov r9d, 0x20206
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x40], rbp
call fcn.140008440
mov rdi, qword [rsp + 0x30]
test eax, eax
jne 0x140065a9e
lea rax, [rsp + 0x70]
lea r9d, [rbp + 4]
lea rdx, str.SilentExecution
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], esi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rdi, rdi
je 0x140065a9a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebp
mov bl, 1
jmp 0x140065aa0
xor bl, bl
test rdi, rdi
je 0x140065aae
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, str.SOFTWARESony_CorporationVAIO_Update
lea rcx, [rsp + 0x30]
mov r9d, 0x20006
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x40], rbp
call fcn.140008440
mov rbp, qword [rsp + 0x60]
test eax, eax
jne 0x140065b21
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
lea rdx, str.SilentExecution
mov r9d, 4
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x70], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rdi, rdi
je 0x140065b31
mov rcx, rdi
jmp 0x140065b2b
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140065b31
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x78]
movzx eax, bl
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140065eb0
Capabilities:
Check if file exists
Copy file

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rbx, rdx
mov r12, rcx
mov rdx, qword [rdx]
lea rcx, str.DownPatchFile_:__s
call fcn.1400191f0
xor esi, esi
mov rcx, qword [rbx]
sub rcx, 0x18
call fcn.140001b90
lea rdi, [rax + 0x18]
mov qword [rsp + 0x60], rdi
movsxd rcx, dword [r12 + 0x18]
shl rcx, 6
add rcx, qword [r12 + 0xa8]
mov rcx, qword [rcx + 0x30]
sub rcx, 0x18
call fcn.140001b90
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140065f2f
lea esi, [rax + 1]
jmp 0x140065fe9
cmp dword [rbx - 8], 1
jle 0x140065f47
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140001930
mov rbx, qword [rsp + 0x58]
cmp dword [rdi - 8], 1
jle 0x140065f5f
mov edx, dword [rdi - 0x10]
lea rcx, [rsp + 0x60]
call fcn.140001930
mov rdi, qword [rsp + 0x60]
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x140065fd5
cmp eax, dword [rdi - 0xc]
jg 0x140065fd5
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], si
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x140065fcb
cmp eax, dword [rbx - 0xc]
jg 0x140065fcb
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], si
movsxd rcx, dword [r12 + 0x18]
shl rcx, 6
mov rax, qword [r12 + 0xa8]
mov rcx, qword [rcx + rax]
mov qword [r12 + 0x40], rcx
jmp 0x140065fe9
mov ecx, 0x80070057
call fcn.140001000
mov ecx, 0x80070057
call fcn.140001000
nop
mov esi, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140066007
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140066025
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, esi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400660a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r12, r9
xor bl, bl
xor r13d, r13d
mov qword [rax - 0x38], r13
mov dword [rax - 0x30], r13d
mov qword [rax - 0x28], r13
mov r9d, 0x20019
lea rcx, [rax - 0x38]
call fcn.140008440
mov rbp, qword [rsp + 0x40]
test eax, eax
jne 0x1400661fb
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400661fb
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x140066133
cmp eax, 2
jne 0x1400661fb
mov ebx, dword [rsp + 0x30]
shr ebx, 1
jns 0x140066146
mov ecx, 0x80070057
call fcn.140001000
int3
mov rdi, qword [rsp + 0xa0]
mov rax, qword [rdi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or eax, ecx
jge 0x14006616c
mov edx, ebx
mov rcx, rdi
call fcn.140001c20
mov rsi, qword [rdi]
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 + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400661bb
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x1400661ab
cmp eax, 2
jne 0x1400661bb
test rsi, rsi
je 0x1400661bb
cmp dword [rsp + 0x30], 0
jne 0x1400661bb
mov word [rsi], r13w
mov rcx, qword [rdi]
test rcx, rcx
jne 0x1400661c8
mov eax, r13d
jmp 0x1400661d6
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x1400661f0
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x1400661f0
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], r13w
mov bl, 1
jmp 0x1400661fb
mov ecx, 0x80070057
call fcn.140001000
nop
test rbp, rbp
je 0x140066209
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140066230
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r12, r9
xor bl, bl
xor r13d, r13d
mov qword [rax - 0x38], r13
mov dword [rax - 0x30], r13d
mov qword [rax - 0x28], r13
mov r9d, 0x20219
lea rcx, [rax - 0x38]
call fcn.140008440
mov rbp, qword [rsp + 0x40]
test eax, eax
jne 0x14006638b
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006638b
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x1400662c3
cmp eax, 2
jne 0x14006638b
mov ebx, dword [rsp + 0x30]
shr ebx, 1
jns 0x1400662d6
mov ecx, 0x80070057
call fcn.140001000
int3
mov rdi, qword [rsp + 0xa0]
mov rax, qword [rdi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or eax, ecx
jge 0x1400662fc
mov edx, ebx
mov rcx, rdi
call fcn.140001c20
mov rsi, qword [rdi]
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 + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006634b
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x14006633b
cmp eax, 2
jne 0x14006634b
test rsi, rsi
je 0x14006634b
cmp dword [rsp + 0x30], 0
jne 0x14006634b
mov word [rsi], r13w
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140066358
mov eax, r13d
jmp 0x140066366
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x140066380
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x140066380
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], r13w
mov bl, 1
jmp 0x14006638b
mov ecx, 0x80070057
call fcn.140001000
nop
test rbp, rbp
je 0x140066399
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1400663c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r12, rcx
xor dil, dil
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 + 0x98], rbx
mov r9d, 0x20019
lea r8, str.SOFTWARESony_CorporationVAIO_UpdateOffline_Mode
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.140008440
or esi, 0xffffffff
test eax, eax
jne 0x14006658d
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 4
or eax, ecx
jge 0x140066460
lea edx, [rsi + 5]
lea rcx, [rsp + 0x98]
call fcn.140001c20
mov rbx, qword [rsp + 0x98]
mov dword [rsp + 0x88], 8
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x90]
xor r8d, r8d
lea rdx, str.DiscDriverLetter
mov rbp, qword [rsp + 0x38]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140066575
mov eax, dword [rsp + 0x90]
cmp eax, 1
je 0x1400664ba
cmp eax, 2
jne 0x140066575
test rbx, rbx
je 0x1400664e6
mov eax, dword [rsp + 0x88]
test eax, eax
je 0x1400664e2
test al, 1
jne 0x140066575
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x1400664e6
jmp 0x140066575
mov word [rbx], r13w
cmp dword [rbx - 0xc], 3
jl 0x14006656a
mov dword [rbx - 0x10], 3
mov word [rbx + 6], r13w
cmp dword [rbx - 0x10], 0
je 0x140066565
lea rcx, [rbx - 0x18]
mov rdi, qword [r12]
sub rdi, 0x18
cmp rcx, rdi
je 0x140066565
cmp dword [rdi + 0x10], 0
jl 0x140066556
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140066556
call fcn.140001b90
mov rbx, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14006653f
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [r8 + 8]
lea rax, [rbx + 0x18]
mov qword [r12], rax
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x98]
jmp 0x140066565
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
mov rcx, r12
call fcn.140001e80
mov dil, 1
jmp 0x140066575
mov ecx, 0x80070057
call fcn.140001000
int3
test rbp, rbp
je 0x140066588
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x40], r13d
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400665a7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400665b7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400675b0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
xor eax, eax
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], ax
call sub.MSVCR100.dll_memset
lea rdx, [rsp + 0x20]
lea rcx, str._SystemDrive_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14006764e
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, rbx
call fcn.140001e80
lea rdx, [0x1400e73b8]
mov r8d, 7
mov rcx, rbx
call fcn.140003c10
mov rdi, qword [rsp + 0x250]
mov al, 1
jmp 0x140067650
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400cafa0
add rsp, 0x240
pop rbx
ret

Function at 0x140067800
Capabilities:
Create directory

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x58], rsi
mov rbp, rdx
mov rdi, rcx
xor bl, bl
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400675b0
xor edx, edx
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
or rsi, 0xffffffffffffffff
test eax, eax
jne 0x140067872
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400678d8
mov bl, 1
mov r8d, 1
lea rdx, [0x1400ddd20]
lea rcx, [rsp + 0x50]
call fcn.140003c10
test rbp, rbp
jne 0x140067894
xor ecx, ecx
jmp 0x1400678a5
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.140003c10
xor edx, edx
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400678d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400678d8
mov bl, 1
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400678f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, bl
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400687d0
Capabilities:
Move file

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rbp, rdx
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x60], rbx
or rsi, 0xffffffffffffffff
test rbp, rbp
je 0x14006884b
test rbp, 0xffffffffffff0000
jne 0x140068838
movzx edi, bp
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x140068862
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140001f70
jmp 0x14006885d
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
dec rcx
jmp 0x14006884d
xor ecx, ecx
mov r8d, ecx
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.140001e80
mov rbx, qword [rsp + 0x60]
mov r8d, dword [rbx - 0x10]
add r8d, 0xfffffffd
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call fcn.140001d30
mov rdi, qword [rsp + 0x68]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll__wrename]
test eax, eax
sete bl
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400688aa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400688c7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret