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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x98], rax
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
xor esi, esi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x50], rsi
call fcn.14001a970
test eax, eax
jne 0x1400949be
lea r8d, [rsi + 0x25]
lea rdx, str.SOFTWARESony_CorporationVAIO_Update
lea rcx, [rsp + 0x98]
call fcn.140001e80
jmp 0x140094a6a
cmp eax, 9
jne 0x140094a6a
lea r8d, [rax + 0x1c]
lea rdx, str.SOFTWARESony_CorporationVAIO_Update
lea rcx, [rsp + 0x98]
call fcn.140001e80
mov r8d, reloc.ATL100.DLL_Ordinal_49
lea rdx, str.SOFTWAREWow6432NodeSony_CorporationVAIO_Update
lea rcx, [rsp + 0x30]
call fcn.140001e80
mov r9d, 0x20006
mov rbx, qword [rsp + 0x30]
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.140008440
test eax, eax
jne 0x140094a6a
mov dword [rsp + 0x88], esi
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.LaunchInstaller
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rdi, rdi
je 0x140094a66
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], esi
mov r9d, 0x20006
mov r8, qword [rsp + 0x98]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.140008440
mov rdi, qword [rsp + 0x40]
test eax, eax
jne 0x140094add
mov dword [rsp + 0x90], esi
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.LaunchInstaller
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rdi, rdi
je 0x140094add
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rsi
mov qword [rsp + 0x40], rsi
test rdi, rdi
je 0x140094aec
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140094b0a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140094b2a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x140094ca0
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x150
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rdi, rdx
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x178], rax
mov r8, rdi
lea rdx, [0x1400e8a08]
lea rcx, [rsp + 0x178]
call fcn.140004440
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x170], rax
lea rdx, str.taskkill.exe__f__pid
test rdx, 0xffffffffffff0000
jne 0x140094d44
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x140094d58
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x170]
call fcn.140001f70
jmp 0x140094d58
mov r8d, Ordinal_23
lea rcx, [rsp + 0x170]
call fcn.140001e80
nop
mov rdx, qword [rsp + 0x178]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x170]
call fcn.140003c10
lea rdi, [rsp + 0xe0]
xor eax, eax
mov ecx, 0x70
rep stosb byte [rdi], al
xor edx, edx
lea r8d, [rax + 0x60]
lea rcx, [rsp + 0x78]
call sub.MSVCR100.dll_memset
xor ebx, ebx
mov qword [rsp + 0x50], rbx
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x70], 0x68
mov rdi, qword [rsp + 0x170]
cmp dword [rdi - 8], 1
jle 0x140094dd3
mov edx, dword [rdi - 0x10]
lea rcx, [rsp + 0x170]
call fcn.140001930
mov rdi, qword [rsp + 0x170]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140094e67
or edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140094e3b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x140094e5c
cmp eax, dword [rdi - 0xc]
jg 0x140094e5c
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], bx
jmp 0x140094e67
mov ecx, 0x80070057
call fcn.140001000
nop
lea rdx, [rdi - 0x18]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140094e85
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x178]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x140094ea5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret
Function at 0x140099970
Capabilities:
Identify system language via api
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov r14, rdx
mov r15, rcx
xor bpl, bpl
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x20], rdi
mov r9d, 1
sub r9d, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, 0x104
or eax, r9d
jge 0x1400999dc
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140001c20
mov rdi, qword [rsp + 0x20]
mov r8d, 0x104
mov rdx, rdi
lea rcx, str._SystemDrive_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x140099b85
cmp eax, dword [rdi - 0xc]
jg 0x140099b85
mov dword [rdi - 0x10], eax
cdqe
xor r12d, r12d
mov word [rdi + rax*2], r12w
test ebx, ebx
jne 0x140099a30
lea rdx, [rdi - 0x18]
or rsi, 0xffffffffffffffff
jmp 0x140099b6b
mov r8d, reloc.ATL100.DLL_Ordinal_30
lea rdx, str.WindowsSystem32Kernel32.dll
lea rcx, [rsp + 0x20]
call fcn.140003c10
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140099a63
or rsi, 0xffffffffffffffff
jmp 0x140099b67
lea rdx, str.GetUserPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
or rsi, 0xffffffffffffffff
test rax, rax
je 0x140099b3d
mov dword [rsp + 0x80], r12d
mov dword [rsp + 0x88], r12d
lea r9, [rsp + 0x80]
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea ecx, [rsi + 5]
call r13
test eax, eax
je 0x140099b67
mov ecx, dword [rsp + 0x80]
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400ca8e8
mov r12, rax
test rax, rax
je 0x140099b67
mov ecx, dword [rsp + 0x80]
add rcx, rcx
mov rdi, rax
xor eax, eax
rep stosb byte [rdi], al
lea r9, [rsp + 0x80]
mov r8, r12
lea rdx, [rsp + 0x88]
lea ecx, [rsi + 5]
call r13
test eax, eax
je 0x140099b33
mov eax, dword [rsp + 0x88]
mov dword [r15], eax
mov r8, r14
mov edx, dword [rsp + 0x80]
mov rcx, r12
call fcn.140099710
movzx ebp, bpl
test al, al
mov ecx, 1
cmovne ebp, ecx
mov rcx, r12
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
jmp 0x140099b67
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
cmp r12w, ax
je 0x140099b67
mov ecx, 1
mov dword [r15], ecx
movzx r8d, ax
lea rdx, [0x1400ec7c0]
mov rcx, r14
call fcn.140004440
mov bpl, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140099b7f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, bpl
jmp 0x140099b90
mov ecx, 0x80070057
call fcn.140001000
nop
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140099bb0
Capabilities:
Identify system language via api
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov r14, rdx
mov r15, rcx
xor bpl, bpl
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x20], rdi
mov r9d, 1
sub r9d, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, 0x104
or eax, r9d
jge 0x140099c1c
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140001c20
mov rdi, qword [rsp + 0x20]
mov r8d, 0x104
mov rdx, rdi
lea rcx, str._SystemDrive_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x140099dc5
cmp eax, dword [rdi - 0xc]
jg 0x140099dc5
mov dword [rdi - 0x10], eax
cdqe
xor r12d, r12d
mov word [rdi + rax*2], r12w
test ebx, ebx
jne 0x140099c70
lea rdx, [rdi - 0x18]
or rsi, 0xffffffffffffffff
jmp 0x140099dab
mov r8d, reloc.ATL100.DLL_Ordinal_30
lea rdx, str.WindowsSystem32Kernel32.dll
lea rcx, [rsp + 0x20]
call fcn.140003c10
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140099ca3
or rsi, 0xffffffffffffffff
jmp 0x140099da7
lea rdx, str.GetSystemPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
or rsi, 0xffffffffffffffff
test rax, rax
je 0x140099d7d
mov dword [rsp + 0x80], r12d
mov dword [rsp + 0x88], r12d
lea r9, [rsp + 0x80]
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea ecx, [rsi + 5]
call r13
test eax, eax
je 0x140099da7
mov ecx, dword [rsp + 0x80]
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400ca8e8
mov r12, rax
test rax, rax
je 0x140099da7
mov ecx, dword [rsp + 0x80]
add rcx, rcx
mov rdi, rax
xor eax, eax
rep stosb byte [rdi], al
lea r9, [rsp + 0x80]
mov r8, r12
lea rdx, [rsp + 0x88]
lea ecx, [rsi + 5]
call r13
test eax, eax
je 0x140099d73
mov eax, dword [rsp + 0x88]
mov dword [r15], eax
mov r8, r14
mov edx, dword [rsp + 0x80]
mov rcx, r12
call fcn.140099710
movzx ebp, bpl
test al, al
mov ecx, 1
cmovne ebp, ecx
mov rcx, r12
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
jmp 0x140099da7
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
cmp r12w, ax
je 0x140099da7
mov ecx, 1
mov dword [r15], ecx
movzx r8d, ax
lea rdx, [0x1400ec7c0]
mov rcx, r14
call fcn.140004440
mov bpl, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140099dbf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, bpl
jmp 0x140099dd0
mov ecx, 0x80070057
call fcn.140001000
nop
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14009d670
Capabilities:
Enumerate process modules

Disassembly:
push rdi
push r12
push r13
mov eax, 0x1050
call fcn.1400cb1f0
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1070], rbx
mov qword [rsp + 0x1078], rbp
mov qword [rsp + 0x1080], rsi
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
xor r13b, r13b
xor edi, edi
mov dword [rsp + 0x40], edi
xor edx, edx
mov r8d, 0xffc
lea rcx, [rsp + 0x44]
call sub.MSVCR100.dll_memset
mov dword [rsp + 0x20], edi
lea r8, [rsp + 0x20]
mov edx, 0x1000
lea rcx, [rsp + 0x40]
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x14009d7ee
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x24], edi
mov r12d, dword [rsp + 0x20]
shr r12d, 2
test r12d, r12d
je 0x14009d7d2
lea rsi, [rsp + 0x40]
nop dword [rax + rax]
mov r8d, dword [rsi]
test r8d, r8d
je 0x14009d7bf
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x14009d7bf
lea r9, [rsp + 0x24]
mov r8d, 8
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x14009d7bf
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x14009d795
mov edx, 0x104
lea rcx, [rsp + 0x28]
call fcn.140001c20
mov rbx, qword [rsp + 0x28]
mov r9d, 0x104
mov r8, rbx
mov rdx, qword [rsp + 0x30]
mov rcx, rbp
call sub.PSAPI.DLL_GetModuleBaseNameW
lea rdx, str.VAIOUpdt.exe
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll__wcsicmp]
test eax, eax
je 0x14009d7cf
inc edi
add rsi, 4
cmp edi, r12d
jae 0x14009d7d2
jmp 0x14009d730
mov r13b, 1
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14009d7ee
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
movzx eax, r13b
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400cafa0
lea r11, [rsp + 0x1050]
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 0x1400a1070
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [0x14011e2b0], 0
lea rdx, str.SOFTWARESony_CorporationVAIO_UpdatePatchListFromVUAX
mov rcx, 0xffffffff80000002
setne dil
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r11, qword [0x14011e2a8]
mov rbx, qword [r11]
cmp rbx, r11
je 0x1400a10d1
test dil, dil
je 0x1400a10d1
lea rdx, [rbx + 0x10]
mov ecx, esi
call fcn.1400a0b60
mov rbx, qword [rbx]
inc esi
cmp rbx, qword [0x14011e2a8]
movzx edi, al
jne 0x1400a10b0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
movzx eax, dil
add rsp, 0x20
pop rdi
ret
Function at 0x1400a3820
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x78
mov qword [rbp - 0x30], 0xfffffffffffffffe
xor sil, sil
xor r13d, r13d
mov qword [rbp - 0x28], r13
mov dword [rbp - 0x20], r13d
mov qword [rbp - 0x18], r13
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x50], rbx
lea r8, str.SOFTWARESony_CorporationVAIO_Update
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x38]
call fcn.140002ce0
nop
lea r8, [0x1400ddd20]
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140002ce0
nop
lea r8, str.EULA
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140002ce0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
or edi, 0xffffffff
cmp rcx, rbx
je 0x1400a38fc
cmp dword [rbx + 0x10], r13d
jl 0x1400a38ee
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400a38ee
call fcn.140001b90
mov r12, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400a38e3
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
lea rax, [r12 + 0x18]
mov qword [rbp + 0x50], rax
jmp 0x1400a38fc
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x50]
call fcn.140001e80
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a391b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a393a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a3958
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r9d, 0x20019
mov rbx, qword [rbp + 0x50]
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x28]
call fcn.140008440
test eax, eax
jne 0x1400a39e0
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 - 0x28]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a39ca
cmp dword [rbp + 0x48], 4
jne 0x1400a39ca
movzx esi, sil
mov eax, 1
cmp dword [rbp + 0x38], eax
cmove esi, eax
test r12, r12
je 0x1400a39dc
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x28], r13
mov dword [rbp - 0x20], r13d
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x1400a39fa
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400a3a09
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, sil
add rsp, 0x78
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400a5f60
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 rsi, rdx
xor r12b, r12b
xor r13d, r13d
mov qword [rax - 0x40], r13
mov dword [rax - 0x38], r13d
mov qword [rax - 0x30], r13
mov r9d, 0x2001f
lea r8, str.SOFTWARESony_CorporationVAIO_UpdateOffline_Mode
mov rdx, 0xffffffff80000002
lea rcx, [rax - 0x40]
call fcn.140008440
test eax, eax
jne 0x1400a6122
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, 4
or eax, ecx
jge 0x1400a5fd6
lea edx, [r13 + 4]
mov rcx, rsi
call fcn.140001c20
mov rbp, qword [rsi]
mov dword [rsp + 0x90], 8
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x98]
xor r8d, r8d
lea rdx, str.DiscDriverLetter
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400a6062
mov eax, dword [rsp + 0x98]
cmp eax, 1
je 0x1400a6034
cmp eax, 2
je 0x1400a6034
mov edi, Ordinal_17
jmp 0x1400a6062
test rbp, rbp
je 0x1400a605f
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x1400a605a
test al, 1
jne 0x1400a6053
shr rax, 1
cmp word [rbp + rax*2 - 2], 0
je 0x1400a605f
mov edi, Ordinal_17
jmp 0x1400a6062
mov word [rbp], r13w
mov edi, r13d
mov rcx, qword [rsi]
test rcx, rcx
jne 0x1400a606f
mov eax, r13d
jmp 0x1400a6081
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x1400a6117
mov rcx, qword [rsi]
cmp eax, dword [rcx - 0xc]
jg 0x1400a6117
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rsi]
mov word [rax + rcx*2], r13w
test edi, edi
je 0x1400a6101
mov rax, qword [rsi]
lea rdx, [rax - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x1400a6104
cmp dword [rdx + 0x10], 0
jge 0x1400a60d3
cmp dword [rax - 0xc], 0
jge 0x1400a60c6
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rax - 0x10], r13d
mov rax, qword [rsi]
mov word [rax], r13w
jmp 0x1400a6104
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400a60ea
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 [rsi], rax
mov rbx, qword [rsp + 0x38]
jmp 0x1400a6104
mov r12b, 1
test rbx, rbx
je 0x1400a6127
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
jmp 0x1400a6127
mov ecx, 0x80070057
call fcn.140001000
int3
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1400a6135
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, r12b
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a9590
Capabilities:
Get session user name
Impersonate user

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rsi, rcx
lea rdi, [r11 - 0x48]
xor eax, eax
xor ebx, ebx
mov ecx, reloc.ATL100.DLL_Ordinal_56
lea rdx, [r11 + 0x10]
rep stosb byte [rdi], al
xor ecx, ecx
mov qword [r11 + 0x18], rbx
mov dword [rsp + 0x78], ebx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ecx, dword [rsp + 0x78]
test eax, eax
jne 0x1400a95d6
test ecx, ecx
je 0x1400a9672
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400ca8e8
lea rdx, [rsp + 0x78]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1400a9665
test rdi, rdi
je 0x1400a9672
mov dword [rsp + 0x20], reloc.ATL100.DLL_Ordinal_56
mov qword [rsp + 0x28], rdi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea rdx, [rsp + 0x80]
mov ecx, eax
call sub.WTSAPI32.dll_WTSQueryUserToken
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400a9665
lea rdx, [rsp + 0x20]
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x1400a9665
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1400a9665
mov rcx, rsi
call fcn.1400a9500
mov ebx, eax
test rdi, rdi
je 0x1400a9672
mov rcx, rdi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x1400a9695
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400a96a8
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400a96a8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x88]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x1400aaf50
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rax, vtable.CWSAppsServerInfo.0
mov rbx, rcx
lea rdi, [0x1400de328]
mov qword [rcx], rax
mov rax, qword [rcx + 0x30]
mov ecx, 1
mov rsi, rax
repe cmpsw word [rsi], word [rdi]
je 0x1400aaf8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rbx + 0x30]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400aafac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rbx + 8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400a8950
Function at 0x1400adca0
Capabilities:
Get session user name
Impersonate user

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
sub rsp, 0x70
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov r12, rdx
xor bl, bl
lea rdi, [r11 - 0x50]
xor eax, eax
mov ecx, reloc.ATL100.DLL_Ordinal_56
rep stosb byte [rdi], al
mov qword [r11 - 0x68], rax
mov dword [r11 + 0x18], eax
lea rdx, [r11 + 0x18]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ecx, dword [rsp + 0xa0]
test eax, eax
jne 0x1400adcf5
test ecx, ecx
je 0x1400ade07
mov eax, 2
mul rcx
mov rbp, 0xffffffffffffffff
cmovo rax, rbp
mov rcx, rax
call fcn.1400ca8e8
mov rsi, rax
lea rdx, [rsp + 0xa0]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1400addfa
test rsi, rsi
je 0x1400ade07
mov dword [rsp + reloc.ATL100.DLL_Ordinal_56], 0x38
mov qword [rsp + 0x40], rsi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x20]
call sub.WTSAPI32.dll_WTSQueryUserToken
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400addfa
lea rdx, [rsp + 0x38]
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x1400addfa
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1400addfa
mov rdx, r12
lea rcx, [rsp + 0xa8]
call fcn.140099970
movzx ebx, al
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x28], rdi
test bl, bl
jne 0x1400addd0
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0xa8]
call fcn.140099bb0
mov rdi, qword [rsp + 0x28]
test al, al
je 0x1400addd2
mov bl, 1
mov r8d, dword [rdi - 0x10]
mov rdx, rdi
mov rcx, r12
call fcn.140003c10
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebp
dec ebp
test ebp, ebp
jg 0x1400addfa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test rsi, rsi
je 0x1400ade07
mov rcx, rsi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x1400ade27
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400ade37
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400ade37
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret