joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ed2c
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r9d, dword [rcx + 0x14]
lea r8, str._08x
mov rdi, rdx
lea rcx, [rsp + 0x38]
xor ebx, ebx
lea edx, [rbx + 0x10]
call fcn.14001ee64
test eax, eax
js 0x14001edaf
lea rax, [rsp + 0x30]
mov rdx, rdi
lea r9d, [rbx + 2]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call fcn.14000b3f8
test eax, eax
jne 0x14001edaf
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
mov edx, 1
test eax, eax
movzx ebx, bl
cmove ebx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov al, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002c9c0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x14001f160
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
je 0x14001f18d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, eax
je 0x14003cb88
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
add rsp, 0x28
ret
mov ecx, 6
jmp 0x14001f180
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 1
jmp 0x14001f188
Function at 0x14001f2a8
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 0x14003cb9a
mov ecx, edi
lea rax, [rsp + 0x140]
cmp word [rax], bx
je 0x14001f321
add rax, 2
sub rcx, 1
jne 0x14001f312
mov rax, rcx
neg rax
sbb r9d, r9d
not r9d
and r9d, 0x80070057
test rcx, rcx
je 0x14003cbab
mov rax, rdi
sub rax, rcx
test rcx, rcx
je 0x14001f3aa
sub rdi, rax
lea rcx, [rsp + 0x140]
lea rcx, [rcx + rax*2]
je 0x14001f38c
lea rdx, [rax + 0x7ffffefa]
add rdx, rdi
lea r8, str.propsys.dll
sub r8, rcx
test rdx, rdx
je 0x14001f38c
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14001f38c
mov word [rcx], ax
add rcx, 2
dec rdx
sub rdi, 1
jne 0x14001f36d
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 0x14003cbb3
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 0x14003cbc4
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x80]
call fcn.14001e5d0
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.140026560
test eax, eax
je 0x14003cbd5
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 0x14003cbd5
mov byte [rsp + 0x30], bl
lea rcx, [rsp + 0x80]
call fcn.140011e24
nop
mov al, bl
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.14002c9c0
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.140051b24
mov rax, rbx
jmp 0x14001f343
lea r8, str.onecoreuap_base_appmodel_search_searchcommonpropertyschemainspectionpropertyschemainspection.cpp
mov edx, 0xde
call fcn.140043ca0
lea r8, str.onecoreuap_base_appmodel_search_searchcommonpropertyschemainspectionpropertyschemainspection.cpp
mov edx, 0xe1
call fcn.140051b24
mov eax, dword [rsp + 0x64]
mov dword [rsi], eax
mov eax, dword [rsp + 0x68]
mov dword [rsi + 4], eax
mov bl, 1
jmp 0x14001f456
Function at 0x14001f564
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 0x14001f5e8
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 0x14003cc08
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 0x14001f5de
cmp dword [rbp + 0x28], edi
cmove ebx, edi
jmp 0x14001f5de

Function at 0x140020178
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.14001fd00
test eax, eax
jne 0x140020268
mov rcx, qword [str.0s_f_]
lea edx, [rax + 2]
call fcn.14001fb5c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
call fcn.140020404
mov ebx, eax
test eax, eax
js 0x14003ce40
call fcn.140020318
mov ebx, eax
test eax, eax
js 0x14003ce67
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 0x14003ce6e
mov rcx, qword [str.0s_f_]
mov edx, 4
call fcn.14001fb5c
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x80]
call qword [case.0x140002c98.0]
mov ebx, eax
test eax, eax
js 0x14003ce47
mov r8d, SafeArrayGetLBound
lea rdx, [0x140095070]
lea rcx, [rsp + 0x38]
call fcn.1400202a4
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.14002027c
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 0x215
jmp 0x14003ce4c
mov edx, 0x21f
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreuap_base_appmodel_search_searchcommondcomsvcdcomsvc.cxx
mov r9d, ebx
call fcn.1400433e4
mov eax, ebx
jmp 0x14002026a
mov edx, 0x217
jmp 0x14003ce4c
mov edx, 0x21b
jmp 0x14003ce4c
Function at 0x1400204a8
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.14000add4
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 0x140020592
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 0x14002064e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
jne 0x140020598
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 0x14002055f
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14002f9f0
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 0x1400205ad
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x140020653
movzx eax, ax
or eax, 0x80070000
jmp 0x140020653
cmp qword [rsi], rdi
je 0x14002064e
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 0x1400205e9
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 0x140020655
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 0x1400205d0
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 0x14002063a
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 0x140020659
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x140020657
movzx eax, ax
or eax, 0x80070000
jmp 0x140020657
mov eax, 0x80004005
mov edi, eax
mov eax, edi
mov edi, eax
lea rcx, [rbp + 8]
call fcn.14002bb80
mov eax, edi
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14002c9c0
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 0x14002613c
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.14000b3f8
test eax, eax
jg 0x14003f2a0
js 0x1400261cd
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 0x1400261bd
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x14003f2af
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 0x140026172
cmp dword [rbp + 0x18], 4
je 0x14003f2ba
call fcn.14008874c
cmp dword [rbp + 0x20], 4
je 0x14003f2c5
call fcn.14008874c
mov eax, dword [rbp + 0x28]
neg eax
sbb cl, cl
and bl, cl
jmp 0x1400261c3

Function at 0x140026560
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 0x14003f2e4
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 0x14003f2fa
test eax, eax
jne 0x14003f2eb
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 0x14003f2ed
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x1400265cb
mov ecx, 0x7a
jmp 0x14003f2ed
Function at 0x14002913c
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 0x14003fac2
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 0x1400292c3
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 0x1400292c3
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 0x14003face
mov ecx, eax
lea edx, [rbx + 2]
call fcn.14002a550
cmp rax, 0x400
jbe 0x14003faee
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14002a524
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14003fb17
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 0x1400292c3
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.140029ca4
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 0x140029293
lea rcx, [rsp + 0x70]
call fcn.1400292d4
nop
lea rcx, [rsp + 0x48]
call fcn.140029764
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14002c9c0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r14
pop rdi
pop rsi
ret
call fcn.14004b604
nop
jmp 0x140029270
call fcn.14004b604
mov ebx, eax
jmp 0x14002927c
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14003fae4
lea rcx, [rsp + 0x70]
call fcn.1400292d4
mov ebx, 0x8007000e
jmp 0x140029293
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140029227
mov ebx, 0x8007000e
jmp 0x140029272
Function at 0x14002c758
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140161000
add rsp, 0x28
jmp 0x14002c758
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 0x14002c7a2
cmp rax, rbx
jne 0x14002c7b7
mov edi, 1
mov eax, dword [0x1400c5c20]
cmp eax, 1
jne 0x14002c7c4
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14002c831
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14002c78b
mov eax, dword [0x1400c5c20]
test eax, eax
jne 0x14002c827
mov dword [0x1400c5c20], 1
lea r14, [0x140092a00]
lea rbx, [0x1400929e8]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x14002c819
test eax, eax
jne 0x14002c81d
cmp qword [rbx], 0
je 0x14002c80e
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 0x14002c7ef
test eax, eax
je 0x14002c831
mov eax, 0xff
jmp 0x14002c986
mov dword [0x1400c5320], 1
mov eax, dword [0x1400c5c20]
cmp eax, 1
jne 0x14002c859
lea rdx, [0x1400929e0]
lea rcx, [0x140092800]
call sub.msvcrt.dll__initterm
mov dword [0x1400c5c20], 2
test edi, edi
jne 0x14002c866
xor eax, eax
xchg qword [0x1400c5c18], rax
cmp qword [0x1400c5c38], 0
je 0x14002c89a
lea rcx, [0x1400c5c38]
call fcn.14002d2c0
test eax, eax
je 0x14002c89a
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 0x14002c925
test cl, cl
je 0x14002c8bc
test edi, edi
jne 0x14002c925
dec cl
cmp cl, 0x1f
ja 0x14002c8cf
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x14002c8bc
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 0x14002c90e
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400c5320], 0
jne 0x14002c923
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400c531c]
jmp 0x14002c986
cmp cl, 0x22
jne 0x14002c937
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 0x14002c94c
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14002c8ad
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x14002d1bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002d208
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002d200
cmp dword [rcx + 0x3c], edx
jl 0x14002d200
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14002d200
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 0x14002d208
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14002d46c
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002d478
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 0x14002d4f5
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 0x14002d515
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.14002c9c0
add rsp, 0x540
pop rbx
ret

Function at 0x14002d478
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002d478
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 0x14002d4f5
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 0x14002d515
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.14002c9c0
add rsp, 0x540
pop rbx
ret
Function at 0x1400451ec
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.14000b47c
test eax, eax
jne 0x14004540b
cmp dword [rsp + 0x4c], r14d
je 0x14004540b
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 0x14004540b
mov ecx, 0x104
lea rax, [rsp + 0x60]
mov edx, ecx
cmp word [rax], r14w
je 0x1400452ae
add rax, 2
sub rdx, 1
jne 0x14004529e
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdx, rdx
je 0x1400452cb
mov rax, rcx
sub rax, rdx
jmp 0x1400452ce
mov rax, r14
test rdx, rdx
je 0x140045330
lea rdx, [rsp + 0x60]
lea rdx, [rdx + rax*2]
sub rcx, rax
je 0x140045314
lea r8, [rax + 0x7ffffefa]
add r8, rcx
lea r9, str.MicrosoftSearchCatalogCorruptionLoglogdata.txt
sub r9, rdx
test r8, r8
je 0x140045314
movzx eax, word [r9 + rdx]
test ax, ax
je 0x140045314
mov word [rdx], ax
dec r8
add rdx, 2
sub rcx, 1
jne 0x1400452f5
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 0x14004540b
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 0x1400453e5
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 0x140045396
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140045396
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1400453da
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 0x1400453da
mov byte [rsi], 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14004540b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400453fa
movzx ebx, ax
or ebx, 0x80070000
lea eax, [rbx + 0x7ff8fffe]
cmp eax, 1
ja 0x14004540b
mov ebx, r14d
mov byte [rsi], 1
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14002c9c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret