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

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x360
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov rsi, rcx
xor ebx, ebx
mov byte [rsp + 0x30], bl
mov edi, 0x104
mov edx, edi
lea rcx, [r11 - 0x228]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
test eax, eax
sete al
mov rcx, qword [rsp + 0x368]
test al, al
jne 0x14003caa0
mov ecx, edi
lea rax, [rsp + 0x140]
cmp word [rax], bx
je 0x14001f2c1
add rax, 2
sub rcx, 1
jne 0x14001f2b2
mov rax, rcx
neg rax
sbb r9d, r9d
not r9d
and r9d, 0x80070057
test rcx, rcx
je 0x14003cab1
mov rax, rdi
sub rax, rcx
test rcx, rcx
je 0x14001f34a
sub rdi, rax
lea rcx, [rsp + 0x140]
lea rcx, [rcx + rax*2]
je 0x14001f32c
lea rdx, [rax + 0x7ffffefa]
add rdx, rdi
lea r8, str.propsys.dll
sub r8, rcx
test rdx, rdx
je 0x14001f32c
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14001f32c
mov word [rcx], ax
add rcx, 2
dec rdx
sub rdi, 1
jne 0x14001f30d
lea rax, [rcx - 2]
test rdi, rdi
cmovne rax, rcx
mov word [rax], bx
neg rdi
sbb r9d, r9d
not r9d
and r9d, 0x8007007a
mov rcx, qword [rsp + 0x368]
test r9d, r9d
js 0x14003cab9
lea r8, [rsp + 0x50]
xor edx, edx
lea rcx, [rsp + 0x140]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesExW]
mov rcx, qword [rsp + 0x368]
test eax, eax
je 0x14003caca
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x80]
call fcn.14001e570
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], 8
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, str.SchemaCacheTimestamp
lea rcx, [rsp + 0x80]
call fcn.140026500
test eax, eax
je 0x14003cadb
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x64]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
test eax, eax
jne 0x14003cadb
mov byte [rsp + 0x30], bl
lea rcx, [rsp + 0x80]
call fcn.140011e14
nop
mov al, bl
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.14002c960
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea r8, str.onecoreuap_base_appmodel_search_searchcommonpropertyschemainspectionpropertyschemainspection.cpp
mov edx, 0xdd
call fcn.140051a34
mov rax, rbx
jmp 0x14001f2e3
lea r8, str.onecoreuap_base_appmodel_search_searchcommonpropertyschemainspectionpropertyschemainspection.cpp
mov edx, 0xde
call fcn.140043bb0
lea r8, str.onecoreuap_base_appmodel_search_searchcommonpropertyschemainspectionpropertyschemainspection.cpp
mov edx, 0xe1
call fcn.140051a34
mov eax, dword [rsp + 0x64]
mov dword [rsi], eax
mov eax, dword [rsp + 0x68]
mov dword [rsi + 4], eax
mov bl, 1
jmp 0x14001f3f6
Function at 0x14001f504
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
xor ebx, ebx
lea rax, [rbp + 0x38]
xor r8d, r8d
mov qword [rbp + 0x38], rbx
lea rdx, str.SystemSetup
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea edi, [rbx + 1]
mov r9d, edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001f588
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Upgrade
mov dword [rbp + 0x30], 4
mov dword [rbp + 0x20], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x14003cb0e
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
cmp dword [rbp + 0x20], 4
jne 0x14001f57e
cmp dword [rbp + 0x28], edi
cmove ebx, edi
jmp 0x14001f57e

Function at 0x140020118
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, qword [str.0s_f_]
mov rcx, rdi
call fcn.14001fca0
test eax, eax
jne 0x140020208
mov rcx, qword [str.0s_f_]
lea edx, [rax + 2]
call fcn.14001fafc
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
call fcn.1400203a4
mov ebx, eax
test eax, eax
js 0x14003cd46
call fcn.1400202b8
mov ebx, eax
test eax, eax
js 0x14003cd6d
mov rcx, qword [str.0s_f_]
mov rax, qword [rcx]
mov dword [rcx + 0xd0], 1
mov rax, qword [rax + 0x68]
call qword [case.0x140002c98.0]
mov ebx, eax
test eax, eax
js 0x14003cd74
mov rcx, qword [str.0s_f_]
mov edx, 4
call fcn.14001fafc
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x80]
call qword [case.0x140002c98.0]
mov ebx, eax
test eax, eax
js 0x14003cd4d
mov r8d, SafeArrayGetLBound
lea rdx, [0x140095070]
lea rcx, [rsp + 0x38]
call fcn.140020244
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov edx, 4
mov dword [rsp + 0x30], 1
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
lea rcx, [rsp + 0x38]
call fcn.14002021c
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 0x215
jmp 0x14003cd52
mov edx, 0x21f
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreuap_base_appmodel_search_searchcommondcomsvcdcomsvc.cxx
mov r9d, ebx
call fcn.1400432f4
mov eax, ebx
jmp 0x14002020a
mov edx, 0x217
jmp 0x14003cd52
mov edx, 0x21b
jmp 0x14003cd52
Function at 0x140020448
Capabilities:
Compare security identifiers

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov qword [rbp + 0x48], r14
mov rax, qword [0x1400c5228]
xor rax, rbp
mov qword [rbp + 0x18], rax
mov r14, rdx
mov rbx, rcx
xor edi, edi
lea rcx, [rbp + 8]
xor edx, edx
mov qword [rbp + 8], rdi
call fcn.14000adc4
lea r8, [rbp + 8]
mov edx, 0x88
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x140020532
mov rcx, qword [rbp + 8]
lea rax, [rbp]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rdi + 6]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
jne 0x1400205ee
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
jne 0x140020538
mov rcx, r14
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
mov r9d, dword [rbp]
add r9d, 0xc
add r9d, eax
mov eax, r9d
mov dword [rbp], r9d
lea rcx, [r9 + 0xf]
cmp rcx, rax
ja 0x1400204ff
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14002f8a0
sub rsp, rcx
lea rax, [rbp]
mov rcx, qword [rbp + 8]
mov edx, 6
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8, rsi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
jne 0x14002054d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x1400205f3
movzx eax, ax
or eax, 0x80070000
jmp 0x1400205f3
cmp qword [rsi], rdi
je 0x1400205ee
mov rbx, qword [rsi]
mov rcx, r14
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
add ax, 8
add word [rbx + 2], ax
mov ebx, edi
xor edx, edx
jmp 0x140020589
mov rdx, qword [rbp + 0x10]
mov rcx, r14
add rdx, 8
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
test eax, eax
jne 0x1400205f5
inc ebx
mov edx, ebx
mov rcx, qword [rsi]
lea r8, [rbp + 0x10]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
test eax, eax
jne 0x140020570
mov rcx, qword [rsi]
lea edx, [rax + 2]
mov r9, r14
mov r8d, 0x10000000
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AddAccessAllowedAce]
test eax, eax
je 0x1400205da
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_IsValidAcl]
mov rax, qword [rsi]
mov r8, rsi
mov rcx, qword [rbp + 8]
mov edx, 6
movzx r9d, word [rax + 2]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetTokenInformation]
test eax, eax
jne 0x1400205f9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x1400205f7
movzx eax, ax
or eax, 0x80070000
jmp 0x1400205f7
mov eax, 0x80004005
mov edi, eax
mov eax, edi
mov edi, eax
lea rcx, [rbp + 8]
call fcn.14002bb20
mov eax, edi
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14002c960
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
mov r14, qword [rbp + 0x48]
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400260dc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x38
lea rax, [rbp + 0x30]
mov ebx, 1
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov rcx, 0xffffffff80000002
call fcn.14000b3e8
test eax, eax
jg 0x14003f1a6
js 0x14002616d
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
and dword [rbp + 0x28], 0
lea r9, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r8, str.EnableDefaultScope
lea rax, [rbp + 0x28]
mov dword [rbp + 0x20], 4
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x18], 4
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
test eax, eax
jle 0x14002615d
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x14003f1b5
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov al, bl
add rsp, 0x38
pop rbx
pop rbp
ret
movzx eax, ax
or eax, 0x80070000
test eax, eax
jmp 0x140026112
cmp dword [rbp + 0x18], 4
je 0x14003f1c0
call fcn.14008840c
cmp dword [rbp + 0x20], 4
je 0x14003f1cb
call fcn.14008840c
mov eax, dword [rbp + 0x28]
neg eax
sbb cl, cl
and bl, cl
jmp 0x140026163

Function at 0x140026500
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, r9
xor ecx, ecx
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x14003f1ea
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x14003f200
test eax, eax
jne 0x14003f1f1
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, 6
jmp 0x14003f1f3
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x14002656b
mov ecx, 0x7a
jmp 0x14003f1f3
Function at 0x1400290dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x490
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rsp + 0x480], 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 + 0x70], 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]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14003f9c8
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov rdi, rax
test rax, rax
je 0x140029263
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140029263
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jb 0x14003f9d4
mov ecx, eax
lea edx, [rbx + 2]
call fcn.14002a4f0
cmp rax, 0x400
jbe 0x14003f9f4
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14002a4c4
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14003fa1d
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]
test eax, eax
je 0x140029263
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140029c44
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140029233
lea rcx, [rsp + 0x70]
call fcn.140029274
nop
lea rcx, [rsp + 0x48]
call fcn.140029704
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14002c960
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r14
pop rdi
pop rsi
ret
call fcn.14004b514
nop
jmp 0x140029210
call fcn.14004b514
mov ebx, eax
jmp 0x14002921c
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14003f9ea
lea rcx, [rsp + 0x70]
call fcn.140029274
mov ebx, 0x8007000e
jmp 0x140029233
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1400291c7
mov ebx, 0x8007000e
jmp 0x140029212
Function at 0x14002c6f8
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.14002d2f4
add rsp, 0x28
jmp 0x14002c6f8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x1400c5c18], rbx
je 0x14002c742
cmp rax, rbx
jne 0x14002c757
mov edi, 1
mov eax, dword [0x1400c5c20]
cmp eax, 1
jne 0x14002c764
lea ecx, [rax + 0x1e]
call fcn.140161000
jmp 0x14002c7d1
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14002c72b
mov eax, dword [0x1400c5c20]
test eax, eax
jne 0x14002c7c7
mov dword [0x1400c5c20], 1
lea r14, [0x140092a00]
lea rbx, [0x1400929e8]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x14002c7b9
test eax, eax
jne 0x14002c7bd
cmp qword [rbx], 0
je 0x14002c7ae
mov rax, qword [rbx]
mov rcx, qword [case.0x140002c98.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14002c78f
test eax, eax
je 0x14002c7d1
mov eax, 0xff
jmp 0x14002c926
mov dword [0x1400c5320], 1
mov eax, dword [0x1400c5c20]
cmp eax, 1
jne 0x14002c7f9
lea rdx, [0x1400929e0]
lea rcx, [0x140092800]
call sub.msvcrt.dll__initterm
mov dword [0x1400c5c20], 2
test edi, edi
jne 0x14002c806
xor eax, eax
xchg qword [0x1400c5c18], rax
cmp qword [0x1400c5c38], 0
je 0x14002c83a
lea rcx, [0x1400c5c38]
call fcn.14002d260
test eax, eax
je 0x14002c83a
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400c5c38]
mov r9, qword [case.0x140002c98.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
mov cl, byte [rbx]
cmp cl, 0x20
ja 0x14002c8c5
test cl, cl
je 0x14002c85c
test edi, edi
jne 0x14002c8c5
dec cl
cmp cl, 0x1f
ja 0x14002c86f
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x14002c85c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140005480
mov dword [0x1400c531c], eax
cmp dword [0x1400c5340], 0
jne 0x14002c8ae
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400c5320], 0
jne 0x14002c8c3
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400c531c]
jmp 0x14002c926
cmp cl, 0x22
jne 0x14002c8d7
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14002c8ec
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14002c84d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x14002d15c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002d1a8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002d1a0
cmp dword [rcx + 0x3c], edx
jl 0x14002d1a0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14002d1a0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14002d1a8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14002d40c
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002d418
push rbx
sub rsp, 0x540
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14002d495
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlVirtualUnwind]
jmp 0x14002d4b5
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14002c960
add rsp, 0x540
pop rbx
ret

Function at 0x14002d418
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002d418
push rbx
sub rsp, 0x540
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14002d495
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlVirtualUnwind]
jmp 0x14002d4b5
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14002c960
add rsp, 0x540
pop rbx
ret
Function at 0x1400450fc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor r14d, r14d
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x48]
mov byte [rcx], r14b
mov qword [rsp + 0x30], rax
lea r8, str.CatalogLogOnCorruption
lea rax, [rsp + 0x4c]
mov rsi, rcx
lea r9d, [r14 + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov ebx, r14d
call fcn.14000b46c
test eax, eax
jne 0x14004531b
cmp dword [rsp + 0x4c], r14d
je 0x14004531b
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r14 + 0x23]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
mov ebx, eax
test eax, eax
js 0x14004531b
mov ecx, 0x104
lea rax, [rsp + 0x60]
mov edx, ecx
cmp word [rax], r14w
je 0x1400451be
add rax, 2
sub rdx, 1
jne 0x1400451ae
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdx, rdx
je 0x1400451db
mov rax, rcx
sub rax, rdx
jmp 0x1400451de
mov rax, r14
test rdx, rdx
je 0x140045240
lea rdx, [rsp + 0x60]
lea rdx, [rdx + rax*2]
sub rcx, rax
je 0x140045224
lea r8, [rax + 0x7ffffefa]
add r8, rcx
lea r9, str.MicrosoftSearchCatalogCorruptionLoglogdata.txt
sub r9, rdx
test r8, r8
je 0x140045224
movzx eax, word [r9 + rdx]
test ax, ax
je 0x140045224
mov word [rdx], ax
dec r8
add rdx, 2
sub rcx, 1
jne 0x140045205
test rcx, rcx
lea rax, [rdx - 2]
cmovne rax, rdx
neg rcx
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
mov word [rax], r14w
test ebx, ebx
js 0x14004531b
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], r14d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400452f5
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileTime]
test eax, eax
jne 0x1400452a6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400452a6
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1400452ea
mov rax, qword [rsp + 0x40]
movabs rcx, 0xc92a69c000
add rax, rcx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
test eax, eax
jns 0x1400452ea
mov byte [rsi], 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14004531b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14004530a
movzx ebx, ax
or ebx, 0x80070000
lea eax, [rbx + 0x7ff8fffe]
cmp eax, 1
ja 0x14004531b
mov ebx, r14d
mov byte [rsi], 1
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14002c960
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140045b94
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x358]
sub rsp, 0x450
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov rdi, rcx
lea rax, [rbp + 0x130]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
mov ebx, eax
xor esi, esi
test eax, eax
js 0x140045d50
mov ecx, 0x104
mov edx, ecx
lea rax, [rbp + 0x130]
cmp word [rax], si
je 0x140045c16
add rax, 2
sub rdx, 1
jne 0x140045c07
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdx, rdx
je 0x140045c33
mov rax, rcx
sub rax, rdx
jmp 0x140045c36
mov rax, rsi
test rdx, rdx
je 0x140045c9b
sub rcx, rax
lea rdx, [rbp + 0x130]
lea rdx, [rdx + rax*2]
je 0x140045c80
lea r8, [rax + 0x7ffffefa]
add r8, rcx
lea rax, str.MicrosoftSearchCatalogCorruptionLogData_
sub rax, rdx
test r8, r8
je 0x140045c80
movzx r9d, word [rax + rdx]
test r9w, r9w
je 0x140045c80
mov word [rdx], r9w
add rdx, 2
dec r8
sub rcx, 1
jne 0x140045c5f
lea rax, [rdx - 2]
test rcx, rcx
cmovne rax, rdx
mov word [rax], si
neg rcx
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test ebx, ebx
js 0x140045d50
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x48]
call fcn.14001e294
mov rdx, rax
mov rcx, rdi
call fcn.140053528
xor r8d, r8d
lea rdx, [rbp + 0x130]
xor ecx, ecx
call qword [sym.imp.api_ms_win_shell_shdirectory_l1_1_0.dll_Ordinal_290]
test eax, eax
je 0x140045cf2
cmp eax, 0x50
je 0x140045cf2
cmp eax, 0xb7
je 0x140045cf2
test eax, eax
jg 0x140045ce9
mov ebx, eax
jmp 0x140045cf2
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140045d50
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x18]
call fcn.14001e294
mov rbx, rax
lea rdx, [rdi + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.14001e21c
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x88]
call fcn.14001cf44
nop
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.1400531e8
mov ebx, eax
test eax, eax
js 0x140045d50
call fcn.14004c67c
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.14002c960
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret