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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rbp + 0x360], rax
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftMediaPlayerPreferences
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001c739
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rbp + 0x150]
mov dword [rsp + 0x30], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ObfuscatedSamplePlaylistsPath
mov dword [rsp + 0x34], 0x105
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001c728
cmp dword [rsp + 0x30], 1
jne 0x14001c728
lea ebx, [rax + 1]
lea rax, str.Plylst
mov dword [rsp + 0x28], ebx
lea r9, [rbp + 0x150]
mov qword [rsp + 0x20], rax
lea r8, str._s_s_d.wpl
mov edx, 0x105
lea rcx, [rsp + 0x40]
call fcn.1400104f4
test eax, eax
js 0x14001c721
lea rcx, [rsp + 0x40]
call fcn.140019eb0
test eax, eax
je 0x14001c721
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
inc ebx
cmp ebx, 0x10
jl 0x14001c6d1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140001660
mov rbx, qword [rsp + 0x480]
add rsp, 0x470
pop rbp
ret
Function at 0x14001cf64
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rbp + 0x390], rax
or rbx, 0xffffffffffffffff
mov dword [rdx], 1
xor r12d, r12d
mov r15, rdx
mov rdi, rcx
inc rbx
cmp word [rcx + rbx*2], r12w
jne 0x14001cfa7
lea rax, [rbx + 3]
mov r13d, 0x104
cmp rax, r13
jbe 0x14001cff0
call fcn.14001c58c
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140001660
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8, rdi
lea rcx, [rbp + 0x180]
mov rdx, r13
call fcn.1400104bc
test rbx, rbx
je 0x14001d030
cmp word [rdi + rbx*2 - 2], 0x3a
je 0x14001d030
cmp word [rdi + rbx*2 - 2], 0x5c
je 0x14001d030
lea r8, [0x140043760]
mov rdx, r13
lea rcx, [rbp + 0x180]
call fcn.140010470
inc rbx
lea r8, [0x140043dfc]
mov rdx, r13
lea rcx, [rbp + 0x180]
call fcn.140010470
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14001d06f
mov rcx, rdi
jmp 0x14001cfc0
lea rsi, [rbx + rbx]
cmp rsi, 0x208
jae 0x14001d20c
mov word [rbp + rsi + 0x180], r12w
lea rcx, [rbp + 0x164]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x14001d094
test rax, rax
lea rcx, [rbp + 0x164]
lea r8, [rsp + 0x5c]
mov rdx, r13
cmovne r8, rcx
lea rcx, [rbp + 0x180]
call fcn.140010470
mov ebx, dword [rsp + 0x30]
test bl, 0x10
je 0x14001d12d
movzx ecx, word [rsp + 0x5c]
mov ebx, 0x2e
sub ecx, ebx
jne 0x14001d0e2
movzx ecx, word [rsp + 0x5e]
movzx eax, r12w
sub ecx, eax
test ecx, ecx
je 0x14001d1dc
movzx ecx, word [rsp + 0x5c]
sub ecx, ebx
jne 0x14001d107
movzx ecx, word [rsp + 0x5e]
sub ecx, ebx
jne 0x14001d107
movzx ecx, word [rsp + 0x60]
movzx eax, r12w
sub ecx, eax
test ecx, ecx
je 0x14001d1dc
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x180]
call fcn.14001cf64
test eax, eax
je 0x14001d1dc
jmp 0x14001d1d9
test bl, 1
je 0x14001d14a
mov edx, ebx
lea rcx, [rbp + 0x180]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001d1dc
lea rcx, [rbp + 0x164]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x14001d16c
test rax, rax
je 0x14001d1c4
cmp rsi, 0x208
jae 0x14001d20c
lea r8, [rsp + 0x5c]
mov word [rbp + rsi + 0x180], r12w
mov rdx, r13
lea rcx, [rbp + 0x180]
call fcn.140010470
lea r8, [rbp + 0x164]
mov word [rbp + rsi + 0x180], r12w
mov rdx, r13
lea rcx, [rbp + 0x180]
call fcn.140010470
mov edx, ebx
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
mov dword [r15], r12d
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001d080
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
jmp 0x14001d067
call fcn.1400017a8
int3
Function at 0x14001d334
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x50
mov ebx, dword [0x140053804]
lea rax, [r11 + 8]
xor edi, edi
lea rdx, str.SoftwareMicrosoftMediaPlayerSetupUserOptions
mov qword [r11 - 0x18], rdi
xor r9d, r9d
mov qword [r11 - 0x20], rax
xor r8d, r8d
mov qword [r11 - 0x28], rdi
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], edi
mov qword [r11 + 8], rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001d3f3
test ebx, ebx
lea rax, [0x140043b74]
lea rcx, [0x1400420d8]
cmove rcx, rax
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x14001d3a8
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.DesktopShortcut
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x14001d750
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlSession_Manager
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14001d7dc
mov rcx, qword [rsp + 0x48]
lea r9d, [rax + 4]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AllowProtectedRenames
mov dword [rsp + 0x40], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x14001d7f0
mov r8d, ebx
lea rdx, str.ERROR:_Could_not_set_AllowProtectedRename_flag_for_SFP.__Error:_0x_x_r_n
mov ecx, 2
call fcn.140018ed8
add rsp, 0x30
pop rbx
ret
Function at 0x14001e68c
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop dword [rax + rax]
test eax, eax
je 0x14001e758
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop dword [rax + rax]
test eax, eax
je 0x14001e742
mov r9d, 4
mov dword [rsp + 0x20], 0x80040002
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001e758
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001660
add rsp, 0x58
ret

Function at 0x14001f11c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, [0x14003f100]
mov rbx, rcx
mov qword [rcx], rax
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x14001f146
call fcn.1400012c0
and qword [rbx + 0x30], 0
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14001f159
call fcn.1400012c0
and qword [rbx + 0x38], 0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14001f16c
call fcn.1400012c0
and qword [rbx + 0x40], 0
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x14001f17f
call fcn.1400012c0
and qword [rbx + 0x48], 0
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14001f192
call fcn.1400012c0
and qword [rbx + 0x50], 0
mov rcx, qword [rbx + 0x260]
test rcx, rcx
je 0x14001f1aa
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x260]
test rcx, rcx
je 0x14001f1c3
call fcn.1400012c0
and qword [rbx + 0x260], 0
mov rcx, qword [rbx + 0x2a0]
test rcx, rcx
je 0x14001f1ee
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400401a8]
and qword [rbx + 0x2a0], 0
mov rax, qword [rbx + 8]
test rax, rax
je 0x14001f234
mov rcx, qword [rax]
mov rdi, qword [rax + 8]
test rcx, rcx
je 0x14001f215
mov edx, 1
call fcn.14001f458
mov rax, qword [rbx + 8]
and qword [rax], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001f228
mov edx, 0x10
call fcn.140001684
mov qword [rbx + 8], rdi
mov rax, rdi
test rdi, rdi
jne 0x14001f1f7
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140021f60
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor ebx, ebx
mov esi, edx
mov rdi, rcx
test rcx, rcx
je 0x1400220c9
lea rdx, str.wmfdist11.exe
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
jne 0x140021fcf
lea rdx, str.wmfdist11_64.exe
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
jne 0x140021fcf
lea ebx, [rax + 1]
jmp 0x1400220c9
mov edi, 0x104
lea rcx, [rsp + 0x250]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x1400220c9
lea r9, [rsp + 0x250]
mov edx, edi
lea r8, str._sdrmupgds.exe
lea rcx, [rsp + 0x40]
call fcn.1400104f4
test eax, eax
js 0x1400220c9
xor r8d, r8d
cmp esi, 0xd2af9
jne 0x1400220b5
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
lea r9d, [r8 + 2]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400220c9
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x14002205e
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.WMFSDK11_DRMUpgrade
lea rax, [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x1400220c9
mov r9d, 0xffff
lea rdx, [rsp + 0x40]
xor ecx, ecx
call fcn.140019884
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400220f8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebp, ebp
mov esi, edx
mov rbx, rcx
cmp dword [rcx + 0x7c], ebp
je 0x140022236
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x140022236
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x140022142
cmp rax, 6
jbe 0x140022236
mov edx, 0x5c
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
mov r8, qword [rbx + 0x30]
lea rdx, str.Package_clean_up:_Cleaning_up_files_at__S._r_n
mov ecx, 4
mov dword [rsp + 0x20], 1
mov rdi, rax
call fcn.140018ed8
test rdi, rdi
je 0x14002218e
mov word [rdi], bp
mov edi, 0x104
lea rdx, [rsp + 0x240]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPath2W]
nop dword [rax + rax]
test eax, eax
je 0x140022236
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
mov r8, qword [rbx + 0x30]
lea rcx, [rsp + 0x30]
mov edx, edi
call fcn.1400104bc
mov edx, 0x5c
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x1400221f4
mov word [rax + 2], bp
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140022225
mov rcx, qword [rbx + 0x30]
lea rdx, [rsp + 0x20]
call fcn.14001cf64
mov rcx, qword [rbx + 0x30]
jmp 0x14002222a
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
cmp dword [rbx + 0x80], ebp
je 0x140022257
test esi, esi
je 0x140022257
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140022257
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
cmp dword [rbx + 0x84], ebp
je 0x140022281
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140022281
call fcn.140019df8
test eax, eax
je 0x140022281
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14002299c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
lea r14, [rcx + 0x18]
mov rdi, rcx
cmp qword [r14], rbx
jne 0x140022b0d
mov ecx, 0x80
mov ebx, 0x80004005
call fcn.14000130c
mov qword [r14], rax
test rax, rax
je 0x140022b14
mov ecx, dword [rdi + 4]
test ecx, ecx
je 0x140022afc
sub ecx, 1
je 0x140022afc
sub ecx, 1
je 0x1400229fb
cmp ecx, 1
je 0x140022afc
xor r15d, r15d
cmp qword [rdi + 0x10], r15
je 0x140022af3
mov ecx, 0x208
call fcn.14000130c
mov rsi, rax
test rax, rax
je 0x140022af3
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140022ae6
mov rcx, qword [rdi + 0x10]
lea edx, [r15 + 0x5c]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
je 0x140022a5c
add rbp, 2
jmp 0x140022a60
mov rbp, qword [rdi + 0x10]
and dword [rsp + 0x78], r15d
mov rcx, rsi
and dword [rsp + 0x70], r15d
call fcn.14001937c
mov r8, rbp
mov edx, 0x104
mov rcx, rsi
call fcn.140010470
lea r8, [rsp + 0x70]
mov rcx, rsi
lea rdx, [rsp + 0x78]
call fcn.14001a1cc
test eax, eax
js 0x140022ae6
mov r8d, dword [rsp + 0x70]
mov edx, 0x104
mov r9d, dword [rsp + 0x78]
movzx ecx, r8w
mov dword [rsp + 0x30], ecx
mov rcx, rsi
shr r8d, 0x10
mov dword [rsp + 0x28], r8d
lea r8, str._lu._lu._lu._lu
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.1400104f4
mov rdx, rsi
mov rcx, r14
call fcn.14001d218
mov ebx, eax
mov r15d, 1
mov rcx, rsi
call fcn.1400012c0
test r15d, r15d
jne 0x140022b0d
lea rdx, str.1.0.0.0
jmp 0x140022b03
lea rdx, str.0.0.0.0
mov rcx, r14
call fcn.14001d218
mov ebx, eax
not ebx
shr ebx, 0x1f
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022d7c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor eax, eax
mov r15, r8
mov qword [rbp - 8], rax
mov rbx, rcx
mov edi, eax
mov r12d, 0x80004005
test rcx, rcx
je 0x140022fcb
test r8, r8
je 0x140022fcb
lea rsi, [rdx + 1]
lea eax, [rdi + 2]
mul rsi
lea r14, [rdi - 1]
cmovo rax, r14
mov rcx, rax
call fcn.14000130c
mov r13, rax
test rax, rax
je 0x140022fcb
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call fcn.1400104bc
lea ebx, [rdi + 0x2c]
mov rcx, r13
mov edx, ebx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
mov rsi, rax
xor eax, eax
test rsi, rsi
je 0x140022fbe
lea ecx, [rdi + 0x20]
mov word [rsi], ax
add rsi, 2
cmp cx, word [rsi]
je 0x140022e12
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
mov rbx, rax
xor eax, eax
test rbx, rbx
je 0x140022e86
lea ecx, [rax + 0x20]
mov word [rbx], ax
add rbx, 2
cmp cx, word [rbx]
je 0x140022e3c
mov edx, 0x2c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
mov rdi, rax
xor eax, eax
test rdi, rdi
je 0x140022e75
lea ecx, [rax + 0x20]
mov word [rdi], ax
add rdi, 2
cmp cx, word [rdi]
je 0x140022e69
inc r14
cmp word [rbx + r14*2], ax
jne 0x140022e75
test r14, r14
cmove rbx, rax
mov rdx, 0xffffffff80000001
mov rcx, r13
call fcn.14001d890
lea rcx, [rbp - 8]
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140022fbe
mov r14d, 0x208
mov ecx, r14d
call fcn.14000130c
mov dword [rbp + 0x40], r14d
mov rsi, rax
xor r14d, r14d
test rax, rax
je 0x140022fae
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rbx
mov dword [rbp + 0x58], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140022fa6
mov ecx, dword [rbp + 0x58]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x140022f84
cmp ecx, 4
jne 0x140022fa6
lea rax, [rbp + 0x40]
mov dword [rbp + 0x40], ecx
mov rcx, qword [rbp - 8]
lea r9, [rbp + 0x58]
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp - 0x10]
mov dword [rbp - 0x10], r14d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140022fa6
mov r9d, dword [rbp - 0x10]
lea r8, [0x140043750]
mov edx, 0x104
mov rcx, rsi
call fcn.1400104f4
test eax, eax
js 0x140022fa6
mov r12d, r14d
mov qword [r15], rsi
jmp 0x140022fae
mov r12d, r14d
test rdi, rdi
je 0x140022f7f
mov rcx, rsi
call fcn.14001937c
mov r8, rdi
mov edx, 0x104
mov rcx, rsi
call fcn.140010470
jmp 0x140022f7f
mov rcx, rsi
call fcn.1400012c0
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, r13
call fcn.1400012c0
mov eax, r12d
jmp 0x140022fd0
mov eax, 0x8007000e
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140023308
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xa0], 0
mov esi, edx
mov rbx, rcx
jne 0x140023407
mov ecx, dword [rcx + 0x58]
sub ecx, 1
je 0x14002337e
sub ecx, 1
je 0x14002334a
sub ecx, 1
je 0x14002334a
sub ecx, 1
je 0x14002334a
cmp ecx, 2
jne 0x140023407
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140023368
mov rdx, qword [rbx + 0x28]
call fcn.140032ea4
mov qword [rbx + 0xa0], rax
jmp 0x140023407
lea rdx, str._FAILURE:_Attempted_to_get_INF_size_for_unknown_INF._r_n
mov ecx, 2
call fcn.140018e9c
jmp 0x140023407
mov rcx, qword [rbx + 0x30]
and dword [rsp + 0x58], 0
call fcn.140019eb0
test eax, eax
je 0x140023407
and qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, qword [rbx + 0x30]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140023407
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400233f8
mov edx, dword [rsp + 0x58]
shl rdx, 0x20
mov ecx, eax
or rdx, rcx
mov qword [rbx + 0xa0], rdx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
cmp dword [rbx + 0x88], 0
jne 0x14002343e
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002343e
call fcn.140019eb0
test eax, eax
jne 0x14002343e
mov rcx, qword [rbx + 0x38]
call fcn.140019eb0
test eax, eax
jne 0x14002343e
lea rdx, str.Warning:_Need_to_account_for_cabinet_download_and_extraction_size._r_n
lea ecx, [rax + 4]
call fcn.140018e9c
mov rax, qword [rbx + 0xa0]
test esi, esi
jne 0x140023450
add rax, qword [rbx + 0xb0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400235f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], r9d
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
mov dword [rbp - 0x10], 1
mov r12, r8
mov rdi, rdx
mov r13, rcx
mov ebx, r15d
mov r14d, r15d
mov dword [rbp + 0x48], r15d
cmp dword [rbp + 0x50], r15d
je 0x14002376a
or rcx, 0xffffffffffffffff
mov rsi, rcx
inc rsi
cmp word [rdx + rsi*2], r15w
jne 0x140023649
add rsi, 0x15
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.14000130c
mov r15, rax
test rax, rax
jne 0x14002368c
lea rdx, str.ERROR:_Out_of_memory._r_n
lea ecx, [rax + 2]
call fcn.140018e9c
mov eax, 0x8007000e
jmp 0x1400237d3
mov eax, dword [0x140051604]
cmp eax, 0xff
jne 0x1400236a4
call fcn.14001a86c
mov dword [0x140051604], eax
test eax, eax
je 0x140023754
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, str._s_NT_lu
mov rdx, rsi
mov rcx, r15
call fcn.1400104f4
lea rax, [rbp + 0x48]
mov ebx, 0x208
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, r15
mov dword [rbp + 0x48], ebx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140023706
cmp dword [rbp - 0x10], 1
jne 0x140023706
xor ebx, ebx
lea r14d, [rbx + 1]
jmp 0x140023754
mov r9, rdi
lea r8, str._s_NT
mov rdx, rsi
mov rcx, r15
call fcn.1400104f4
lea rax, [rbp + 0x48]
mov dword [rbp + 0x48], ebx
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, r15
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002374f
cmp dword [rbp - 0x10], 1
je 0x1400236fe
mov ebx, 0x80004005
mov rcx, r15
call fcn.1400012c0
xor r15d, r15d
test r14d, r14d
je 0x14002376a
test ebx, ebx
js 0x1400237d1
jmp 0x1400237a5
lea rax, [rbp + 0x48]
mov dword [rbp + 0x48], 0x208
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400237cc
cmp dword [rbp - 0x10], 1
jne 0x1400237cc
mov ebx, r15d
test rdi, rdi
lea rax, [0x140043970]
mov r8, r12
lea rdx, str.Reg_Parser:_Obtained_value__S_for_attribute__S._r_n
cmove rdi, rax
mov ecx, 4
mov r9, rdi
call fcn.140018ed8
jmp 0x1400237d1
mov ebx, 0x80004005
mov eax, ebx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret