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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rbx, rdx
mov rdi, r9
mov rdx, qword [rdx]
mov r14, r8
mov rsi, rcx
cmp dword [rdx - 0x10], 0
jne 0x1400138c5
mov eax, 0x80070057
jmp 0x140013941
mov rcx, qword [rcx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rdi
xor r8d, r8d
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1400138f7
mov eax, ecx
jmp 0x140013941
mov ecx, dword [rdi]
call fcn.14002657c
mov qword [r14], rax
lea r9, [rsp + 0x48]
mov rdx, qword [rbx]
xor r8d, r8d
mov rcx, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x1400138f3
mov eax, dword [rsp + 0x48]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0x80004005
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140013958
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov edi, edx
mov rbx, rcx
xor esi, esi
mov dword [rax - 0x18], esi
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x140013a0d
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea ecx, [rsi + 1]
mov dword [rsp + 0x30], ecx
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
mov edx, 0x105
sub eax, edx
or ecx, eax
jge 0x1400139b4
mov rcx, rbx
call fcn.140002b54
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400139d8
mov eax, esi
jmp 0x1400139e6
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x140013a18
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140013a18
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], si
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400312f0
int3
mov ecx, 0x80070057
call fcn.1400312f0
int3
Function at 0x140014150
Capabilities:
Check for time delay via gettickcount
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [0x14008e4c8]
mov esi, 0x64
and dword [0x14008e2d4], 0
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
sete byte [0x14008e2c0]
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14008e4c8]
lea rdx, [0x14008d518]
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0xf003f
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegLoadAppKeyW]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
lea ecx, [rdi - 0x20]
mov dword [0x14008e2d0], eax
cmp ecx, 1
jbe 0x1400141e6
cmp edi, 6
je 0x1400141e6
cmp edi, 0xb7
jne 0x14001421d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
inc ebp
add dword [0x14008e2d4], eax
lea eax, [rsi + 0x64]
cmp esi, 0x3e8
cmovae eax, esi
mov esi, eax
cmp ebp, 0x1e
jl 0x140014197
mov rcx, qword [0x14008e4c8]
lea r8, [rsp + 0x38]
xorps xmm0, xmm0
xor eax, eax
xor edx, edx
mov dword [rsp + 0x58], eax
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x140014264
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x30]
mov qword [0x14008e2d8], rax
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400149e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rdi, rcx
mov rcx, rbp
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ebx, ebx
mov esi, eax
test eax, eax
jne 0x140014a1a
mov rcx, rdi
call fcn.140003970
jmp 0x140014a7e
test esi, esi
js 0x140014a95
mov rax, qword [rdi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, esi
or ecx, eax
jge 0x140014a3c
mov edx, esi
mov rcx, rdi
call fcn.140002b54
mov rdx, qword [rdi]
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140014a57
mov eax, ebx
jmp 0x140014a65
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x140014a95
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x140014a95
mov dword [rcx - 0x10], eax
mov rcx, qword [rdi]
mov edx, eax
mov word [rcx + rdx*2], bx
mov ebx, 1
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.1400312f0
int3
Function at 0x140014e38
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, str.InitPerf
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InitPerf2
mov rcx, rbx
mov qword [0x14008e338], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PerfCodeMarker
mov rcx, rbx
mov qword [0x14008e340], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnInitPerf
mov rcx, rbx
mov qword [0x14008df98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BeginLogging
mov rcx, rbx
mov qword [0x14008e348], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WriteLog
mov rcx, rbx
mov qword [0x14008e350], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetPerformanceRegRoot
mov rcx, rbx
mov qword [0x14008e358], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14008e360], rax
mov qword [0x14008e368], rbx
mov byte [0x14008dfa0], 1
add rsp, 0x20
pop rbx
ret

Function at 0x140014f70
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rdi, r9
mov rax, r8
mov rbx, rdx
test r9, r9
je 0x14001502d
mov rcx, qword [rcx]
xor r8d, r8d
mov qword [r11 - 0x10], r9
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], rdx
mov rdx, rax
mov dword [rsp + 0x58], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test eax, eax
jne 0x14001501b
test rbx, rbx
je 0x14001501b
cmp dword [rdi], esi
jbe 0x140015018
mov ecx, dword [rsp + 0x58]
sub ecx, 1
je 0x140014ffd
sub ecx, 1
je 0x140014ffd
cmp ecx, 5
jne 0x14001500e
test byte [rdi], 1
jne 0x14001500e
mov eax, dword [rdi]
shr eax, 1
cmp eax, 1
jb 0x14001500e
mov ecx, dword [rdi]
shr rcx, 1
cmp word [rbx + rcx*2 - 2], si
jne 0x14001500e
cmp eax, 1
jbe 0x14001501b
cmp word [rbx + rcx*2 - 4], si
jne 0x14001500e
jmp 0x14001501b
test byte [rdi], 1
jne 0x14001500e
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x14001501b
mov word [rbx], si
mov eax, SafeArrayDestroy
jmp 0x14001501d
mov word [rbx], si
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400312f0
int3
Function at 0x140016a10
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov rax, qword [0x14008ea50]
test rax, rax
jne 0x140016a8a
lea rcx, [0x14006a3f8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140016a51
lea rdx, str.CLRCreateInstance
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14008ea50], rax
jmp 0x140016a58
mov rax, qword [0x14008ea50]
test rax, rax
jne 0x140016a8a
lea r8, str.Could_not_locate_appropriate_CLR_version._Try_rebooting__reinstalling.
lea rdx, str.VisualStudio
lea ecx, [rax + 1]
call fcn.140003c50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140016add
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, [0x14006a510]
lea rcx, [0x14006a520]
call rax
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test eax, eax
js 0x140016ad0
test rcx, rcx
je 0x140016acb
mov rax, qword [rcx]
lea rdx, [0x140016ae4]
call qword [rax + 0x38]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
jmp 0x140016ad0
mov ebx, 0x8000ffff
test rcx, rcx
je 0x140016adb
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140016d98
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov rsi, rdx
xor edi, edi
mov rcx, qword [rcx + 0x10]
call fcn.14000d7fc
mov r14, rax
test rax, rax
je 0x140016e60
and dword [rbp + 0x30], edi
and dword [rbp + 0x40], edi
mov dword [rbp + 0x48], 4
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x30]
xor r8d, r8d
lea rdx, str.SegmentSize
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140016e60
cmp dword [rbp + 0x30], 4
jne 0x140016e60
and qword [rbp - 0x10], rdi
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea r8, [rbp - 0x10]
lea rdx, [0x1400768a8]
call qword [rax + 0x18]
mov edi, eax
test eax, eax
jns 0x140016e3e
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140016e60
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x140016e60
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, dword [rbp + 0x40]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
mov edi, eax
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140016e60
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x140016e6e
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, edi
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400185e4
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x140018611
xor al, al
jmp 0x14001864f
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x140018622
xor al, al
jmp 0x14001864f
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [rcx + r8]
cmp rbx, rax
jb 0x140018649
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x140018649
mov al, 1
jmp 0x14001864f
xor al, al
jmp 0x14001864f
add rsp, 0x50
pop rbx
ret

Function at 0x14001a534
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov r9, qword [r8]
xor ebx, ebx
test r9, r9
jne 0x14001a549
lea ecx, [rbx + 0xd]
jmp 0x14001a57e
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x14001a54d
mov rdx, qword [rdx]
lea eax, [rax*2 + 2]
mov rcx, qword [rcx]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
add rsp, 0x30
pop rbx
ret
Function at 0x14001af44
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x14008ea81], 0
jne 0x14001b0c1
lea rdx, str.user32.dll
lea rcx, [rsp + 0x30]
call fcn.14001b0c8
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdx, qword [rsp + 0x30]
mov rbx, rax
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001af94
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test rbx, rbx
je 0x14001aff7
lea rdx, str.GetDpiForWindow
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetWindowDpiAwarenessContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetProcessDpiAwarenessContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetThreadDpiAwarenessContext
mov rcx, rbx
mov qword [0x14008ea98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetThreadDpiHostingBehavior
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14008ea88], rax
lea rdx, str.shcore.dll
lea rcx, [rsp + 0x38]
call fcn.14001b0c8
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdx, qword [rsp + 0x38]
mov rbx, rax
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001b034
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test rbx, rbx
je 0x14001b077
lea rdx, str.GetDpiForMonitor
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProcessDpiAwareness
mov rcx, rbx
mov qword [0x14008eaa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetProcessDpiAwareness
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14008ea90], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
test rax, rax
je 0x14001b0ba
mov edx, 0x58
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, 0x5a
mov rcx, rbx
mov dword [0x14008e694], eax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov rdx, rbx
xor ecx, ecx
mov dword [0x14008e690], eax
call qword [sym.imp.USER32.dll_ReleaseDC]
mov byte [0x14008ea81], 1
add rsp, 0x20
pop rbx
ret
Function at 0x14001b0c8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
xor ebp, ebp
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x14001b1c0
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
mov edi, 0x104
lea r9d, [rbp + 1]
mov r8d, edi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.14000bb04
mov edx, edi
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [rsp + 0x38]
mov rdi, qword [rsp + 0x28]
cmp eax, 0xffffffff
jne 0x14001b14f
mov rcx, qword [rdi]
test rcx, rcx
jne 0x14001b145
mov eax, ebp
jmp 0x14001b153
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x14001b1ce
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x14001b1ce
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], bp
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140009ab0
mov rcx, qword [rsp + 0x60]
add rcx, 0xffffffffffffffe8
call fcn.1400028e4
add rax, 0x18
mov qword [rbx], rax
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001b1a8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400312f0
nop
jmp 0x14001b1cd
nop
mov ecx, 0x80070057
call fcn.1400312f0
int3
Function at 0x14001b608
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 8]
mov rbx, r8
mov rdi, rdx
mov qword [r11 - 0x20], rax
mov rdx, qword [rdx]
lea r9, [r11 + 0x10]
mov rsi, rcx
xor ebp, ebp
mov rcx, qword [rcx]
xor r8d, r8d
mov qword [r11 - 0x28], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14001b661
mov eax, ecx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbx]
mov r8d, 1
mov edx, dword [rsp + 0x50]
shr edx, 1
mov ecx, dword [rax - 0xc]
sub r8d, dword [rax - 8]
sub ecx, edx
or r8d, ecx
jge 0x14001b686
mov rcx, rbx
call fcn.140002b54
mov rax, qword [rbx]
lea rcx, [rsp + 0x50]
mov rdx, qword [rdi]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbx]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
test edx, edx
jns 0x14001b6d3
cmp dword [rcx - 0xc], ebp
jl 0x14001b705
mov dword [rcx - 0x10], ebp
mov eax, edx
mov rcx, qword [rbx]
mov word [rcx], bp
jmp 0x14001b654
test rcx, rcx
jne 0x14001b6dc
mov eax, ebp
jmp 0x14001b6ea
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x14001b705
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14001b705
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
xor eax, eax
jmp 0x14001b654
mov ecx, 0x80070057
call fcn.1400312f0
int3
Function at 0x14001d434
Capabilities:
Check if file exists
Create directory
Get file attributes
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r13
push rbp
push r14
push r15
lea rbp, [rax - 0x588]
sub rsp, 0x670
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x560], rax
mov rbx, rcx
mov edi, 0x208
mov r8d, edi
lea rcx, [rsp + 0x30]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r8d, edi
lea rcx, [rbp + 0x350]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor r15d, r15d
lea rax, [rsp + 0x30]
mov r13d, 0x104
lea rcx, [rsp + 0x30]
sub rbx, rax
mov sil, 1
mov r14d, r15d
mov edx, r13d
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14001d4d4
movzx eax, word [rbx + rcx]
test ax, ax
je 0x14001d4d4
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14001d4b2
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
je 0x14001d626
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001d59c
test al, 0x10
jne 0x14001d61f
mov r8, rdi
lea rcx, [rbp + 0x140]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov ebx, r15d
mov edi, 0x400
lea r9, [rsp + 0x30]
mov rdx, r13
lea rcx, [rbp + 0x140]
test ebx, ebx
jne 0x14001d54a
lea r8, str._s.bak
call fcn.14001d660
jmp 0x14001d55a
lea r8, str._s.bak__d
mov dword [rsp + 0x20], ebx
call fcn.14001d660
test eax, eax
js 0x14001d626
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001d57a
inc ebx
cmp ebx, edi
jl 0x14001d529
cmp ebx, edi
je 0x14001d626
lea rdx, [rbp + 0x140]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14001d626
mov rcx, qword [rsp + 0x30]
lea rbx, [rsp + 0x30]
cmp cx, 0x5c
jne 0x14001d5b9
cmp word [rsp + 0x32], cx
movzx esi, sil
cmove esi, r15d
lea rdi, [rbp + 0x350]
jmp 0x14001d61a
mov word [rdi], cx
add rbx, 2
add rdi, 2
cmp cx, 0x5c
jne 0x14001d5e3
test sil, sil
jne 0x14001d5ee
inc r14d
cmp r14d, 3
sete sil
movzx eax, word [rbx]
movzx ecx, ax
test ax, ax
jne 0x14001d5c2
lea rcx, [rbp + 0x350]
mov word [rdi], r15w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001d617
xor edx, edx
lea rcx, [rbp + 0x350]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14001d626
movzx ecx, word [rbx]
test cx, cx
jne 0x14001d5c2
mov eax, 1
jmp 0x14001d628
xor eax, eax
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x670]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001d704
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r15d, r9d
mov r14, r8
mov rbx, rdx
mov r8, rcx
mov rsi, qword [rbp + 0x3f0]
xor r12d, r12d
test rcx, rcx
je 0x14001d929
cmp word [rcx], r12w
je 0x14001d929
test r14, r14
je 0x14001d929
test rsi, rsi
je 0x14001d929
mov word [r14], r12w
mov dword [rsi], r12d
mov edi, r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x58], r12
mov r13d, 0x104
mov edx, r13d
lea rcx, [rsp + 0x60]
lea r9, str.SOFTWAREMicrosoftNET_Framework_SetupNDP_
lea rax, [rsp + 0x60]
sub r9, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14001d7c8
movzx eax, word [r9 + rcx]
test ax, ax
je 0x14001d7c8
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14001d7a5
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r12w
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.14001d958
test rbx, rbx
je 0x14001d813
cmp word [rbx], r12w
je 0x14001d813
lea r8, [0x140068fb0]
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.14001d958
mov r8, rbx
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.14001d958
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001d853
mov eax, r12d
mov rdi, qword [rsp + 0x38]
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], r12d
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001d917
mov dword [rsp + 0x40], r13d
lea r9, [rsp + 0x40]
lea r8, str.Version
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x48]
call fcn.140014f70
movzx ebx, ax
mov r13d, 0x80070000
or ebx, r13d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001d917
mov rdx, r15
lea r8, [rbp + 0x170]
mov rcx, r14
call fcn.140001f64
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x1400669e8]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001d8fb
cmp dword [rsp + 0x30], 4
jne 0x14001d914
movzx ecx, ax
or ecx, r13d
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x14001d914
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x14001d914
mov dword [rsi], eax
mov ebx, r12d
test rdi, rdi
je 0x14001d925
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14001d92e
mov eax, 0x80004003
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret