joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008a30
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov ebx, 0x104
lea rcx, [rsp + 0x20]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140008a8c
lea r8, [0x140048df0]
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140010d0c
test eax, eax
js 0x140008a8c
lea rcx, [rsp + 0x20]
call fcn.140008420
test eax, eax
jne 0x140008ac9
mov edx, ebx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140008ad0
lea r8, str.wmvcore.dll
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140010d0c
test eax, eax
js 0x140008ad0
lea rcx, [rsp + 0x20]
call fcn.140008420
test eax, eax
je 0x140008ad0
mov eax, 1
jmp 0x140008ad5
call fcn.140008d30
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400017f0
add rsp, 0x240
pop rbx
ret

Function at 0x140008d30
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
nop dword [rax + rax]
test rax, rax
je 0x140008dcc
xor r9d, r9d
lea r8, str.RebarWindow32
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140008dcc
xor r9d, r9d
lea r8, str.WMPDeskBand
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
nop dword [rax + rax]
test rax, rax
jne 0x140008e3c
xor r9d, r9d
lea r8, str.WMP9DeskBand
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_FindWindowExW]
nop dword [rax + rax]
test rax, rax
jne 0x140008e3c
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001b20c
mov ebx, 0x104
test eax, eax
je 0x140008e06
lea r8, str.wmdband.dll
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140010d0c
test eax, eax
js 0x140008e06
lea rcx, [rsp + 0x20]
call fcn.140008420
test eax, eax
jne 0x140008e3c
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001b20c
test eax, eax
je 0x140008e43
lea r8, str.wmpband.dll
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140010d0c
test eax, eax
js 0x140008e43
lea rcx, [rsp + 0x20]
call fcn.140008420
test eax, eax
je 0x140008e43
mov eax, 1
jmp 0x140008e45
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400017f0
add rsp, 0x240
pop rbx
ret
Function at 0x14000d284
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x14000d33f
mov qword [r11 - 0x18], rbx
lea rax, [r11 + 8]
mov qword [r11 - 0x20], rax
xor r9d, r9d
mov qword [r11 - 0x28], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 2
test edx, edx
mov dword [rsp + 0x20], ebx
lea rdx, str.SoftwareMicrosoftMultimediaWMPlayerWMPQFEBackup
mov qword [r11 + 8], rbx
mov rcx, 0xffffffff80000002
jne 0x14000d2e1
lea rdx, str.SoftwareMicrosoftMultimediaWMPlayerWMFDistQFEBackup
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000d33f
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000d33f
lea rax, [0x1400486c8]
mov dword [rsp + 0x28], 2
mov esi, 1
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
test eax, eax
cmove ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140015b9c
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rcx, qword [0x140059d90]
lea r8, [rsp + 0x30]
mov r9d, pe_nt_image_headers64
mov ebx, 0x80004005
lea edx, [r9 - 0x40]
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
xor edi, edi
test eax, eax
je 0x140015c34
lea r8d, [rdi + 8]
lea rdx, str.https:__
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140015c34
mov dword [rsp + 0x28], 0xa
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop dword [rax + rax]
cmp rax, 0x20
cmova ebx, edi
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400017f0
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret

Function at 0x1400160b4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
and qword [rbp + 0x20], 0
lea rax, [rbp + 0x20]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftWindowsMediaPlayer
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140016197
and dword [rbp + 0x10], eax
lea rdx, str.PreventCDDVDMetadataRetrieval
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp + 0x10]
mov dword [rbp + 0x18], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140016140
cmp dword [rbp + 0x10], 1
jne 0x140016140
and dword [0x14005a718], 0xfffffffe
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.PreventMusicFileMetadataRetrieval
lea rax, [rbp + 0x10]
mov dword [rbp + 0x18], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140016187
cmp dword [rbp + 0x10], 1
jne 0x140016187
and dword [0x14005a718], 0xfffffffd
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
add rsp, 0x30
pop rbp
ret
Function at 0x140016d04
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rdi, qword [rcx + 0x18]
mov rbx, rcx
test rdi, rdi
jne 0x140016d21
xor eax, eax
jmp 0x140016d77
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rax, qword [rbx + 0x20]
lea rcx, [rsp + 0x20]
and dword [rsp + 0x24], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x48], 0
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0x70
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x50], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
Function at 0x140018f5c
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
and qword [rsp + 0x48], 0
mov rcx, qword [0x14005a748]
test rcx, rcx
je 0x140018fa6
call qword [sym.imp.USER32.dll_IsWindow]
nop dword [rax + rax]
test eax, eax
je 0x140018fa6
mov r9d, dword [rsp + 0x40]
xor r8d, r8d
mov rcx, qword [0x14005a748]
mov edx, 0x5c7
call qword [sym.imp.USER32.dll_PostMessageW]
nop dword [rax + rax]
lea rax, [rsp + 0x48]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerSetup
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140019016
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.Progress_CurrentInstall
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
add rsp, 0x38
ret

Function at 0x14001923c
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
and qword [rsp + 0x48], 0
mov rcx, qword [0x14005a748]
test rcx, rcx
je 0x140019286
call qword [sym.imp.USER32.dll_IsWindow]
nop dword [rax + rax]
test eax, eax
je 0x140019286
mov r9d, dword [rsp + 0x40]
xor r8d, r8d
mov rcx, qword [0x14005a748]
mov edx, 0x5c6
call qword [sym.imp.USER32.dll_PostMessageW]
nop dword [rax + rax]
lea rax, [rsp + 0x48]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerSetup
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140019308
mov eax, dword [rsp + 0x40]
lea rdx, str.Progress_MaxInstall
test eax, eax
mov ecx, 1
cmove eax, ecx
xor r8d, r8d
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
lea r9d, [rcx + 3]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
add rsp, 0x38
ret
Function at 0x140019ae0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [0x140059318], 0xffffffffffffffff
mov rdi, rdx
mov ebx, ecx
jne 0x140019b00
mov edx, ecx
call fcn.140019418
mov r8, rdi
mov edx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140019c5c

Function at 0x140019c5c
Capabilities:
Write file on windows

Disassembly:
test r8, r8
je 0x140019cb3
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [0x140059318]
mov rax, r8
or r8, 0xffffffffffffffff
xor r9d, r9d
cmp rcx, r8
je 0x140019caf
cmp edx, dword [0x14005a750]
jg 0x140019caf
mov dword [rsp + 0x40], r9d
inc r8
cmp byte [rax + r8], r9b
jne 0x140019c8d
mov qword [rsp + 0x20], r9
mov rdx, rax
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
add rsp, 0x38
ret

Function at 0x140019cbc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rsp + 0x170], rax
or rbx, 0xffffffffffffffff
mov rsi, rdx
cmp qword [0x140059318], rbx
mov edi, ecx
jne 0x140019cf9
mov edx, ecx
call fcn.140019418
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
nop dword [rax + rax]
movzx ecx, word [rsp + 0x52]
lea r8, str._02lu:_02lu_:_02lu____s
movzx eax, word [rsp + 0x54]
mov edx, 0x104
movzx r9d, word [rsp + 0x50]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x60]
call fcn.140018504
xor edx, edx
test eax, eax
js 0x140019d88
mov rcx, qword [0x140059318]
cmp rcx, rbx
je 0x140019d92
cmp edi, dword [0x14005a750]
jg 0x140019d92
mov dword [rsp + 0x40], edx
lea rax, [rsp + 0x60]
inc rbx
cmp byte [rax + rbx], dl
jne 0x140019d60
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
jmp 0x140019d92
mov r8, rsi
mov edx, edi
call fcn.140019c5c
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140019f40
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140019fb4
lea rcx, str.wmp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140019fb4
mov edx, 0xbba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140019fa5
movabs r10, 0x8241b6605edba270
mov rcx, rdi
call qword [0x140048188]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001a31c
Capabilities:
Check if file exists
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, rcx
or rcx, 0xffffffffffffffff
mov rsi, rcx
xor r12d, r12d
inc rsi
cmp word [r14 + rsi*2], r12w
jne 0x14001a346
add rsi, 0x14
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.1400014a0
mov rbx, rax
test rax, rax
je 0x14001a47f
mov r8, r14
mov rdx, rsi
mov rcx, rax
call fcn.140010dd0
lea rdx, [0x14004b368]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
je 0x14001a477
add rbp, 4
mov r15d, r12d
lea rdx, [0x14004b370]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
je 0x14001a466
mov rcx, rbx
mov word [rax], r12w
lea rbp, [rax + 2]
call fcn.14001aa34
test eax, eax
jne 0x14001a436
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14001a406
lea edi, [rax + 0x57]
jmp 0x14001a408
jle 0x14001a411
movzx edi, di
or edi, 0x80070000
mov rcx, rbx
call fcn.14001aa34
mov r8, rbx
test eax, eax
je 0x14001a452
xor r9d, r9d
lea edx, [r9 + 5]
lea ecx, [rdx + 3]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
nop dword [rax + rax]
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call fcn.140010dd0
inc r15d
cmp r15d, 0xa
jge 0x14001a466
jmp 0x14001a3ab
mov r9d, edi
lea rdx, str.ERROR:_Could_not_create_directory__S.__Error:_0x_x._r_n
mov ecx, 2
call fcn.140019b1c
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
mov rcx, rbx
call fcn.140001454
mov rcx, r14
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
jmp fcn.14001aa34
Function at 0x14001aa34
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebx, ebx
test rcx, rcx
je 0x14001aafd
lea rax, [rsp + 0x20]
mov r8d, 0x104
sub rcx, rax
lea rdx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x14001aa8f
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14001aa8f
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x14001aa6d
test r8, r8
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], bx
je 0x14001aafd
or rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x20]
mov rax, rcx
inc rax
cmp word [rdx + rax*2], bx
jne 0x14001aaab
test rax, rax
je 0x14001aade
cmp word [rsp + rax*2 + 0x1e], 0x5c
jne 0x14001aade
lea rdx, [rsp + 0x20]
mov rax, rcx
inc rax
cmp word [rdx + rax*2], bx
jne 0x14001aac9
test rax, rax
je 0x14001aade
mov word [rsp + rax*2 + 0x1e], bx
jmp 0x14001aaa3
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14001aafd
test al, 0x10
je 0x14001aafd
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400017f0
add rsp, 0x240
pop rbx
ret

Function at 0x14001ab20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14001ab45
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14001ab45
test al, 0x10
jne 0x14001ab45
mov eax, 1
jmp 0x14001ab47
xor eax, eax
add rsp, 0x28
ret
Function at 0x14001ac48
Capabilities:
Get common file path
Get disk size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x378]
sub rsp, 0x470
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov edx, 0x104
lea rcx, [rbp + 0x150]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14001ad9c
lea r8, [rbp + 0x150]
mov edx, 0x103
lea rax, [rsp + 0x40]
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefb]
test rax, rax
je 0x14001acd5
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14001acd5
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14001acb2
test rdx, rdx
lea rax, [rcx - 2]
mov edx, 0x5c
cmovne rax, rcx
lea rcx, [rsp + 0x40]
mov word [rax], bx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14001ad9c
lea r9, [rsp + 0x28]
mov word [rax + 2], bx
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001ad64
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14001ad44
mov eax, 0x57
jmp 0x14001ad46
jle 0x14001ad4e
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rdx, str.GetDiskFreeSpaceEx_failed.__Error:__x_r_n
mov ecx, 2
call fcn.140019b1c
jmp 0x14001ad9c
mov rdi, qword [rsp + 0x20]
test rdi, rdi
jne 0x14001ad99
lea r9, [rsp + 0x28]
mov word [rsi], bx
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
nop dword [rax + rax]
test eax, eax
cmovne rdi, qword [rsp + 0x20]
mov rbx, rdi
mov rax, rbx
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14001ba0c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
mov rsi, rcx
test rcx, rcx
jne 0x14001ba3f
xor eax, eax
jmp 0x14001baf3
mov ebp, 0x104
lea rcx, [rsp + 0x20]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14001ba8c
lea r8, [0x140048780]
mov edx, ebp
lea rcx, [rsp + 0x20]
call fcn.140010d0c
test eax, eax
js 0x14001ba8c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14001ba8c
test al, 0x10
je 0x14001bad7
mov edx, ebp
lea rcx, [rsp + 0x20]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14001baf1
lea r8, str.msdxm.ocx
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140010d0c
test eax, eax
js 0x14001baf1
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14001baf1
test al, 0x10
jne 0x14001baf1
shr rdi, 1
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rsi
call fcn.140010dd0
xor ebx, ebx
test eax, eax
setns bl
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400017f0
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001bd70
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor r12d, r12d
lea rax, [rbp + 0x48]
mov qword [r11 - 0x50], r12
mov r15, r8
mov qword [r11 - 0x58], r12
xor r9d, r9d
mov qword [r11 - 0x60], r12
xor r8d, r8d
mov qword [r11 - 0x68], r12
xor edx, edx
mov qword [r11 - 0x70], r12
mov r14, rcx
mov qword [r11 - 0x78], r12
mov qword [r11 - 0x80], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x58], r12d
mov dword [rbp + 0x48], r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x14001bf51
or r13, 0xffffffffffffffff
lea rbx, str.FilesFile
mov rcx, r13
inc rcx
cmp word [rbx + rcx*2], r12w
jne 0x14001bdf1
mov eax, dword [rbp + 0x48]
cmp ecx, eax
mov dword [rbp - 0x10], ecx
cmova eax, ecx
add eax, 5
mov ecx, eax
mov dword [rbp + 0x48], eax
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.1400014a0
mov rdi, rax
test rax, rax
je 0x14001bf51
mov esi, r12d
mov qword [rbp - 8], r12
cmp dword [rbp + 0x58], r12d
jbe 0x14001bf27
mov edx, dword [rbp + 0x48]
lea r8, str._s_lu
mov r9, rbx
mov dword [rsp + 0x20], esi
mov rcx, rdi
call fcn.140010e44
lea rax, [rbp - 8]
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001bf1c
mov ecx, 0x208
call fcn.1400014a0
mov rbx, rax
test rax, rax
je 0x14001bf05
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0xc]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
mov dword [rbp - 0xc], 1
mov dword [rbp - 0x10], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001befd
cmp dword [rbp - 0xc], 1
jne 0x14001befd
mov rax, r13
inc rax
cmp word [rbx + rax*2], r12w
jne 0x14001bed8
test rax, rax
je 0x14001befd
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14001bf37
mov rcx, rbx
call fcn.140001454
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
lea rbx, str.FilesFile
inc esi
cmp esi, dword [rbp + 0x58]
jb 0x14001be3f
mov rcx, rdi
call fcn.140001454
mov rdi, r12
mov rax, rdi
jmp 0x14001bf53
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, rbx
call fcn.140001454
jmp 0x14001bf32
xor eax, eax
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001c278
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
xor ebx, ebx
lea rcx, [0x14004c538]
mov dword [rsp + 0x48], ebx
call fcn.14001ab20
test eax, eax
je 0x14001c32d
lea rdx, [rsp + 0x48]
lea rcx, [0x14004c538]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
nop dword [rax + rax]
mov ecx, eax
mov ebp, eax
call fcn.1400014a0
mov rdi, rax
test rax, rax
je 0x14001c32d
mov r9, rax
lea rcx, [0x14004c538]
mov r8d, ebp
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
nop dword [rax + rax]
test eax, eax
je 0x14001c325
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 4
lea r8, [rsp + 0x58]
mov rcx, rdi
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.VERSION.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
je 0x14001c325
mov rcx, qword [rsp + 0x58]
mov ebx, 1
movzx edx, word [rcx]
mov word [rsi], dx
mov rcx, rdi
call fcn.140001454
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001c428
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x48]
and qword [rsp + 0x48], 0
lea rdx, [0x14004b4c8]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x14001c4a7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.PendingFileRenameOperations
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x14001c7ec
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, edx
mov rdi, rcx
test rcx, rcx
je 0x14001c832
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14001c832
mov edx, esi
lea r8, str.unregmp2.exe
mov rcx, rdi
call fcn.140010d0c
test eax, eax
lea ecx, [rbx + 1]
cmovns ebx, ecx
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret