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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x23]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
nop dword [rax + rax]
xor esi, esi
mov ebx, eax
test eax, eax
js 0x140052e69
mov edx, 0x104
lea rax, [rsp + 0x50]
mov r8d, edx
cmp word [rax], si
je 0x140052cee
add rax, 2
sub r8, 1
jne 0x140052cdf
mov rcx, rdx
mov rax, r8
sub rcx, r8
neg rax
mov rax, r8
sbb r9, r9
and r9, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test r8, r8
je 0x140052d6e
lea rcx, [rsp + 0x50]
lea rcx, [rcx + r9*2]
sub rdx, r9
je 0x140052d53
lea r8, str.MicrosoftSearchCatalogCorruptionLoglogdata.txt
mov eax, 0x7ffffffe
sub r8, rcx
test rax, rax
je 0x140052d53
movzx r9d, word [r8 + rcx]
test r9w, r9w
je 0x140052d53
mov word [rcx], r9w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140052d32
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
neg rdx
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
mov word [rax], si
test ebx, ebx
js 0x140052e69
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140052dbd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140052da6
movzx ebx, ax
or ebx, 0x80070000
lea eax, [rbx + 0x7ff8fffe]
cmp eax, 1
jbe 0x140052dbb
test ebx, ebx
js 0x140052e69
jmp 0x140052dbd
mov ebx, esi
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], esi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140052e10
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140052e69
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140052e69
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
nop dword [rax + rax]
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileTime]
nop dword [rax + rax]
test eax, eax
jne 0x140052e5a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140052e5a
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140024bd0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14005a4d8
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
or ebx, 0xffffffff
cmp dword [0x1400dc880], ebx
je 0x14005a4ee
call fcn.1400a84fc
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
nop dword [rax + rax]
cmp eax, ebx
mov dword [0x1400dc880], eax
sete bl
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14005a51d
movzx eax, ax
or eax, 0x80070000
test bl, bl
je 0x14005a53a
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreuap_base_appmodelSearchcommonincludePerUserCatalogResetHelper.h
mov r9d, eax
mov edx, 0x24
call fcn.14002061c
add rsp, 0x20
pop rbx
ret

Function at 0x14005c928
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rbp + 0x170], rax
and qword [rsp + 0x48], 0
mov rsi, rdx
and qword [rsp + 0x50], 0
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x48]
mov r9d, 0x2001f
call fcn.14005b1e8
jmp 0x14005c98a
lea rdx, [rsp + 0x70]
call fcn.14005c928
mov ebx, eax
test eax, eax
jne 0x14005c9ec
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
lea rcx, [rsp + 0x48]
test eax, eax
je 0x14005c980
call fcn.140058160
mov rdx, rsi
mov rcx, rdi
call fcn.1400592f8
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140058160
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140024bd0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005cbb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x480
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r14, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14005cc1f
call fcn.14002daa0
mov ebx, eax
jmp 0x14005cd57
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14005cc49
call fcn.14002daa0
jmp 0x14005cd45
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
nop dword [rax + rax]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14005cc3f
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
nop dword [rax + rax]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x14005cca6
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14005cc9c
lea rcx, [rsp + 0x60]
call fcn.1400595a8
mov ebx, 0x8007000e
jmp 0x14005cd6e
mov ecx, eax
mov edx, 2
call fcn.1400543d4
cmp rax, 0x400
jbe 0x14005ccce
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140057a84
mov rax, qword [rsp + 0x60]
jmp 0x14005ccd8
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14005ccef
test rax, rax
jne 0x14005ccfb
mov ebx, 0x8007000e
jmp 0x14005cd47
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
nop dword [rax + rax]
test eax, eax
je 0x14005cc3f
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4c0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14005ca24
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop dword [rax + rax]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14005cd6e
lea rcx, [rsp + 0x60]
call fcn.1400595a8
nop
lea rcx, [rsp + 0x48]
call fcn.1400560d8
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140024bd0
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x480
pop r14
pop rdi
pop rsi
ret
Function at 0x14005dd78
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r10, rdx
mov r11, rcx
test r8, r8
jne 0x14005dd96
mov ecx, 0x80004005
call fcn.14004a284
int3
mov r9d, ebx
mov rdx, r8
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], bx
jne 0x14005dda0
inc ecx
lea rdx, [rdx + rcx*2]
lea r9d, [r9 + rcx*2]
cmp ecx, 1
jne 0x14005dd9c
mov dword [rsp + 0x28], r9d
mov rdx, r10
mov qword [rsp + 0x20], r8
lea r9d, [rcx + 6]
mov rcx, qword [r11]
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
add rsp, 0x30
pop rbx
ret

Function at 0x14005f03c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
nop dword [rax + rax]
test rax, rax
je 0x14005f0c5
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14005f0c5
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
nop dword [rax + rax]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14005f0b2
cmp rbx, rcx
jae 0x14005f0c5
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14005f09d
cmp rbx, rcx
jae 0x14005f0c5
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x14005f0c7
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140060c28
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
lea rax, [rsp + 0x68]
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov dword [rsp + 0x20], 0xf003f
call fcn.14001ec70
xor edi, edi
mov ebx, eax
test eax, eax
jle 0x140060c65
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140060d0c
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov eax, 4
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x60], eax
lea r8, str.SetupCompletedSuccessfully
mov dword [rsp + 0x58], eax
xor edx, edx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140060cc0
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140060cfb
cmp dword [rsp + 0x50], 1
jne 0x140060cfb
mov rcx, qword [rsp + 0x68]
lea rdx, str.PreviousSettings
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHDeleteKeyW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140060cf2
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x80070002
cmove ebx, edi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x1400627f8
Capabilities:
Create thread
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov r14, r8
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov rdx, r8
lea rcx, [rsp + 0x58]
call fcn.140049130
mov rdi, rax
mov qword [rsp + 0x50], rax
mov rdx, rsi
lea rcx, [rbp - 8]
call fcn.140049130
mov rbx, rax
mov qword [rsp + 0x30], rax
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.140049130
nop
mov rdx, rdi
lea rcx, [rbp + 0x140]
call fcn.140049130
and dword [rbp + 0x1e0], 0
and qword [rbp + 0x1e8], 0
mov rcx, rbx
call fcn.14000e3c0
nop
mov rcx, rdi
call fcn.14000e3c0
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r9, [rbp + 0xa0]
lea r8, [0x140062780]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
mov qword [rbp + 0x1e8], rax
xor ebx, ebx
mov edi, 0x80070000
test rax, rax
jne 0x1400628fc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400628fc
movzx ebx, ax
or ebx, edi
test ebx, ebx
js 0x140062976
lea rcx, str.CSM____Ping__n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
nop dword [rax + rax]
mov edx, 2
mov rcx, qword [r15 + 8]
call fcn.14002e574
mov edx, 0x7d0
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
cmp eax, 0x102
je 0x140062900
test eax, eax
jne 0x14006294c
mov ebx, dword [rbp + 0x1e0]
jmp 0x140062963
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140062963
movzx ebx, ax
or ebx, edi
lea rcx, str.Catalog_move:_end_copy__acknowledged_from_main_thread__n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
nop dword [rax + rax]
lea rcx, [rbp + 0xa0]
call fcn.140062660
nop
mov rcx, rsi
call fcn.14000e3c0
nop
mov rcx, r14
call fcn.14000e3c0
mov eax, ebx
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140024bd0
mov rbx, qword [rsp + 0x348]
add rsp, 0x300
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140062a0c
Capabilities:
Create directory

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x240
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, r8
mov r14, rdx
mov qword [rsp + 0x38], rdx
xor r15d, r15d
test r8, r8
je 0x140062a43
mov byte [r8], r15b
mov edx, 2
mov rcx, qword [rcx + 8]
call fcn.14002e574
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140049130
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.1400626d4
nop
mov ebx, r15d
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0xf8]
call fcn.1400633d0
test al, al
jne 0x140062b88
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathSkipRootW]
nop dword [rax + rax]
mov rdi, rax
mov r9, rdi
sub r9, qword [rsp + 0xf8]
sar r9, 1
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xf0]
call fcn.1400114d0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x190]
call fcn.1400625e8
mov rcx, qword [rsp + 0x198]
call fcn.1400633d0
test al, al
jne 0x140062b5a
xor edx, edx
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140062b5a
test ebx, ebx
js 0x140062b5a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140062b21
movzx ebx, bx
or ebx, 0x80070000
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x268]
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x28], rax
lea rax, str.PathComponent:__ls
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutillindexmove.cxx
mov edx, 0x190
call fcn.1400506c8
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFindNextComponentW]
nop dword [rax + rax]
mov rdi, rax
lea rcx, [rsp + 0x190]
call fcn.14000e3c0
test rdi, rdi
je 0x140062b88
cmp word [rdi], r15w
jne 0x140062aa2
mov rcx, qword [rsp + 0xf8]
call fcn.1400633d0
test al, al
jne 0x140062baf
test rsi, rsi
je 0x140062ba1
mov byte [rsi], 1
mov rcx, qword [rsp + 0xf8]
call fcn.140065af4
nop
jmp 0x140062bba
lea rcx, [rsp + 0xf0]
call fcn.14000e3c0
nop
mov rcx, r14
call fcn.14000e3c0
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140024bd0
add rsp, 0x240
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerW]
nop dword [rax + rax]
test eax, eax
jne 0x140063423
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerShareW]
nop dword [rax + rax]
test eax, eax
jne 0x140063423
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140063423
test al, 0x10
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140063504
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rdx
lea rcx, [rbp + 0x120]
call fcn.140049130
nop
mov rdx, rsi
lea rcx, [rbp + 0x80]
call fcn.140049130
nop
mov rax, qword [rbp + 0x80]
movabs r10, 0x8cc4973714525370
mov r9d, dword [rbp + 0x134]
mov r8d, dword [rbp + 0x94]
mov rdx, qword [rbp + 0x128]
lea rcx, [rbp + 0x80]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rax, qword [rbp + 0x80]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rbp + 0x94]
lea rdx, [0x1400b35ec]
lea rcx, [rbp + 0x80]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
xor edi, edi
mov ebx, edi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp + 0x1c0]
xor edx, edx
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileExW]
nop dword [rax + rax]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140063700
test byte [rbp + 0x1c0], 0x10
je 0x1400636ab
cmp word [rbp + 0x1ec], 0x2e
je 0x1400636b2
inc qword [rsi + 0xa8]
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x20]
call fcn.140049130
nop
mov rax, qword [rbp - 0x20]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rbp - 0xc]
lea rdx, [0x1400b3884]
lea rcx, [rbp - 0x20]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rax, qword [rbp - 0x20]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rbp - 0xc]
lea rdx, [rbp + 0x1ec]
lea rcx, [rbp - 0x20]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x40]
call fcn.140049130
mov rdx, rax
mov rcx, rsi
call fcn.140063504
mov ebx, eax
lea rcx, [rbp - 0x20]
call fcn.14000e3c0
jmp 0x1400636b2
inc qword [rsi + 0xa0]
test ebx, ebx
js 0x1400636ef
lea rdx, [rbp + 0x1c0]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400635fc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400636ef
movzx ebx, ax
or ebx, 0x80070000
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
jmp 0x14006371b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14006371b
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x80070012
cmovne edi, ebx
lea rcx, [rbp + 0x80]
call fcn.14000e3c0
nop
lea rcx, [rbp + 0x120]
call fcn.14000e3c0
nop
mov rcx, r15
call fcn.14000e3c0
mov eax, edi
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.140024bd0
mov rbx, qword [rsp + 0x560]
add rsp, 0x520
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140064c74
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x4e0]
sub rsp, 0x5e0
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rbp + 0x4d0], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x60], rdx
and dword [rsp + 0x30], 0
call fcn.140049130
mov dword [rsp + 0x30], 1
mov rdx, qword [rdi + 8]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathCanonicalizeW]
nop dword [rax + rax]
or esi, 0xffffffff
test eax, eax
je 0x140064d1d
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.14000e5c8
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
movabs r10, 0x8cc4973714525370
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
nop
lea rcx, [rsp + 0x70]
call fcn.14000e3c0
mov r8d, 0x104
lea rdx, [rbp + 0x2c0]
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x140064d65
mov rax, qword [rbx]
movabs r10, 0x8cc4973714525370
mov r9d, esi
xor r8d, r8d
lea rdx, [rbp + 0x2c0]
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140049130
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140064be0
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
movabs r10, 0x8cc4973714525370
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
nop
lea rcx, [rbp + 0x10]
call fcn.14000e3c0
cmp dword [rbx + 0x14], 0xb
jb 0x140064e28
mov r8d, SafeArrayGetDim
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140011510
lea rdx, [0x1400bcc30]
mov rcx, rax
call fcn.14001186c
test eax, eax
jne 0x140064e28
mov edx, dword [rbx + 0x14]
sub edx, 0xb
mov rcx, rbx
call fcn.14001d5c8
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.140049130
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140064be0
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
movabs r10, 0x8cc4973714525370
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
nop
jmp 0x140064ea1
cmp dword [rbx + 0x14], 6
jb 0x140064eac
mov r8d, 6
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140011510
lea rdx, [0x1400b3168]
mov rcx, rax
call fcn.14001186c
test eax, eax
jne 0x140064eac
mov edx, dword [rbx + 0x14]
sub edx, 6
mov rcx, rbx
call fcn.14001d5c8
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.140049130
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140064be0
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
movabs r10, 0x8cc4973714525370
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
nop
lea rcx, [rsp + 0x70]
call fcn.14000e3c0
nop
mov rcx, rdi
call fcn.14000e3c0
mov rax, rbx
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.140024bd0
mov rbx, qword [rsp + 0x610]
add rsp, 0x5e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140065938
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x768]
sub rsp, 0x860
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rbp + 0x750], rax
mov rdi, rcx
xor esi, esi
test rcx, rcx
je 0x140065ab7
cmp word [rcx], si
je 0x140065ab7
xor r8d, r8d
xor edx, edx
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdi + rcx*2], si
jne 0x14006599a
lea ebx, [rcx + rax]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0x401
mov word [rsp + 0x48], si
lea rax, [0x1400ada90]
mov qword [rsp + 0x30], rax
lea edx, [rbx + 0x104]
lea rcx, [rsp + 0x30]
call fcn.14001d2a4
mov rdx, rax
lea r8d, [rbx + 0x104]
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.14001c114
mov rax, qword [rsp + 0x30]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x44]
lea rdx, [0x1400bcf2c]
lea rcx, [rsp + 0x30]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rax, qword [rsp + 0x30]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x44]
mov rdx, rdi
lea rcx, [rsp + 0x30]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rdx, qword [rsp + 0x38]
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
jne 0x140065aad
lea r8, [0x1400bcf30]
mov edx, 0x8c
lea rcx, str.onecoreuap_base_appmodel_searchcommonpkmutill_ssfsutil.cxx
call fcn.14004de6c
mov rcx, qword [rbp + 0x768]
mov r9d, 0x8000ffff
lea r8, [0x1400bcee0]
mov edx, 0x8d
call fcn.140065804
nop
lea rcx, [rsp + 0x30]
call fcn.1400497e4
xor eax, eax
mov rcx, qword [rbp + 0x750]
xor rcx, rsp
call fcn.140024bd0
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret