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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400c7228]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, qword [rsp + 0x2b8]
mov rbp, r8
mov rbx, qword [rsp + 0x2c0]
lea r8, [rsp + 0x40]
mov rcx, 0xffffffff80000002
mov r14d, r9d
mov rsi, rdx
call fcn.140014a78
test al, al
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rdi
cmove rdx, rsi
mov r9d, r14d
and qword [rsp + 0x20], 0
mov r8, rbp
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002c150
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140015914
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rdi, r8
xor ecx, ecx
mov rsi, rdx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov rcx, qword [rbx + 0xb0]
mov dword [rsp + 0x50], 4
test rcx, rcx
je 0x14001599f
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x30]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140015993
cmp dword [rsp + 0x68], 4
jne 0x140015993
mov eax, dword [rsp + 0x30]
mov dword [rdi], eax
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x140015983
mov ecx, 6
jmp 0x140015995
Function at 0x14001b378
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xa8]
sub rsp, 0x1a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400c7228]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, rcx
mov eax, dword [rcx + 0x1d8]
mov dword [rsp + 0x28], eax
mov eax, dword [rcx + 0x1dc]
mov dword [rsp + 0x2c], eax
mov rax, qword [rcx + 0x1e0]
mov qword [rsp + 0x30], rax
mov eax, dword [rcx + 0x1c8]
mov dword [rsp + 0x38], eax
mov eax, dword [rcx + 0x1cc]
mov dword [rsp + 0x3c], eax
mov rax, qword [rcx + 0x1d0]
mov qword [rsp + 0x40], rax
mov ebx, 0x7c
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.14001b5cc
cmp eax, 0xffffffff
jne 0x14001b5bd
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.14001b5cc
cmp eax, 0xffffffff
jne 0x14001b5bd
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x10]
call fcn.140014f60
nop
lea ecx, [rbx - 0x14]
mov rax, qword [0x14008e028]
call qword [case.0x1400022d4.0]
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14003c67e
mov qword [rsp + 0x28], rax
mov rdx, qword [rbp - 8]
mov rcx, rax
call fcn.14001b6f0
nop
mov eax, dword [rbx + 4]
lea rcx, [rbx + 0x30]
and qword [rcx + 8], 0
and dword [rcx + 0x10], 0
and dword [rcx + 0x14], 0
add rax, 0x20
shr rax, 5
mov dword [rcx], eax
call fcn.14001b630
nop
mov eax, dword [rbx + 4]
mov dword [rbx + 0x4c], eax
and qword [rbx + 0x50], 0
and qword [rbx + 0x58], 0
mov dword [rbx + 0x60], 0xbb8
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x64], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [rbx + 0x64], eax
mov rcx, rbx
call fcn.14001ba90
nop
mov qword [rdi], rbx
mov edx, 0x2a
lea rcx, [rsp + 0x38]
call fcn.14001b5cc
cmp eax, 0xffffffff
je 0x14003c685
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.140014f60
nop
mov edx, 0x5c
lea r8d, [rdx - 0x2d]
lea rcx, [rsp + 0x50]
call fcn.14001cb10
mov ecx, 0x68
mov rax, qword [0x14008e028]
call qword [case.0x1400022d4.0]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14001b5c1
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.14001b6f0
nop
mov eax, dword [rbx + 4]
lea rcx, [rbx + 0x30]
and qword [rcx + 8], 0
and dword [rcx + 0x10], 0
and dword [rcx + 0x14], 0
add rax, 0x20
shr rax, 5
mov dword [rcx], eax
call fcn.14001b630
nop
mov eax, dword [rbx + 4]
mov dword [rbx + 0x4c], eax
and qword [rbx + 0x50], 0
and qword [rbx + 0x58], 0
mov dword [rbx + 0x60], 0xbb8
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x64], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [rbx + 0x64], eax
mov rcx, rbx
call fcn.14001ba90
nop
mov qword [rdi + 8], rbx
lea rcx, [rsp + 0x50]
call fcn.14001acc4
nop
lea rcx, [rbp - 0x10]
call fcn.14001acc4
mov eax, 1
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14002c150
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
xor eax, eax
jmp 0x14001b599
xor ebx, ebx
jmp 0x14001b57c
xor ebx, ebx
jmp 0x14001b4b4
mov edx, 0x3f
lea rcx, [rsp + 0x38]
call fcn.14001b5cc
cmp eax, 0xffffffff
je 0x14001b58b
jmp 0x14001b4cf
Function at 0x14001e1a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
movzx ebx, dl
mov dword [rsp + 0x30], 0
lea rdx, [r8 + 0x10]
mov rdi, r8
movzx r11d, cl
mov r8d, 8
lea rcx, [rsp + 0x30]
call fcn.14001e264
mov r8d, dword [rsp + 0x30]
add r11b, 2
cmp r11b, bl
jae 0x14001e23f
mov qword [rsp + 0x38], rsi
movzx esi, r11b
shl rsi, 4
add rsi, rdi
sub bl, r11b
movzx r11d, bl
nop word [rax + rax]
mov r9d, dword [rsi + 8]
xor eax, eax
mov r10, qword [rsi]
test r9, r9
je 0x14001e230
nop
movzx ecx, byte [rax + r10]
inc rax
add ecx, r8d
imul edx, ecx, 0x401
mov r8d, edx
shr r8d, 6
xor r8d, edx
cmp rax, r9
jb 0x14001e210
add rsi, 0x10
sub r11, 1
jne 0x14001e200
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
lea eax, [r8 + r8*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
add rsp, 0x20
pop rdi
ret

Function at 0x14001e264
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
test r8, r8
je 0x14001e28d
movzx eax, byte [r10 + rdx]
inc r10
add eax, dword [rcx]
imul r9d, eax, 0x401
mov eax, r9d
shr eax, 6
xor eax, r9d
mov dword [rcx], eax
cmp r10, r8
jb 0x14001e26c
ret
Function at 0x140027db0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rdx, rdx
je 0x140027de0
movzx eax, byte [r9 + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc r9
imul r8, r10
cmp r9, rdx
jb 0x140027dc2
mov rax, r8
shr rax, 0x20
xor rax, r8
ret

Function at 0x140027fac
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 [0x1400c7228]
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 0x140040102
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 0x140028133
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 0x140028133
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 0x14004010e
mov ecx, eax
lea edx, [rbx + 2]
call fcn.1400293c0
cmp rax, 0x400
jbe 0x14004012e
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140029394
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140040157
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 0x140028133
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.140028b14
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 0x140028103
lea rcx, [rsp + 0x70]
call fcn.140028144
nop
lea rcx, [rsp + 0x48]
call fcn.1400285d4
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14002c150
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r14
pop rdi
pop rsi
ret
call fcn.14004bf34
nop
jmp 0x1400280e0
call fcn.14004bf34
mov ebx, eax
jmp 0x1400280ec
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140040124
lea rcx, [rsp + 0x70]
call fcn.140028144
mov ebx, 0x8007000e
jmp 0x140028103
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140028097
mov ebx, 0x8007000e
jmp 0x1400280e2
Function at 0x14002bee8
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.14002cae4
add rsp, 0x28
jmp 0x14002bee8
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 [0x1400c7c18], rbx
je 0x14002bf32
cmp rax, rbx
jne 0x14002bf47
mov edi, 1
mov eax, dword [0x1400c7c20]
cmp eax, 1
jne 0x14002bf54
lea ecx, [rax + 0x1e]
call fcn.140163000
jmp 0x14002bfc1
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14002bf1b
mov eax, dword [0x1400c7c20]
test eax, eax
jne 0x14002bfb7
mov dword [0x1400c7c20], 1
lea r14, [0x140093a10]
lea rbx, [0x1400939f8]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x14002bfa9
test eax, eax
jne 0x14002bfad
cmp qword [rbx], 0
je 0x14002bf9e
mov rax, qword [rbx]
mov rcx, qword [case.0x1400022d4.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14002bf7f
test eax, eax
je 0x14002bfc1
mov eax, 0xff
jmp 0x14002c116
mov dword [0x1400c7320], 1
mov eax, dword [0x1400c7c20]
cmp eax, 1
jne 0x14002bfe9
lea rdx, [0x1400939f0]
lea rcx, [0x1400937f8]
call sub.msvcrt.dll__initterm
mov dword [0x1400c7c20], 2
test edi, edi
jne 0x14002bff6
xor eax, eax
xchg qword [0x1400c7c18], rax
cmp qword [0x1400c7c38], 0
je 0x14002c02a
lea rcx, [0x1400c7c38]
call fcn.14002ca50
test eax, eax
je 0x14002c02a
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400c7c38]
mov r9, qword [case.0x1400022d4.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 0x14002c0b5
test cl, cl
je 0x14002c04c
test edi, edi
jne 0x14002c0b5
dec cl
cmp cl, 0x1f
ja 0x14002c05f
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x14002c04c
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.1400229fc
mov dword [0x1400c731c], eax
cmp dword [0x1400c7340], 0
jne 0x14002c09e
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400c7320], 0
jne 0x14002c0b3
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400c731c]
jmp 0x14002c116
cmp cl, 0x22
jne 0x14002c0c7
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 0x14002c0dc
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14002c03d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x14002c94c
Capabilities:
Parse pe header

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

Function at 0x14002cbfc
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002cc08
push rbx
sub rsp, 0x540
mov rax, qword [0x1400c7228]
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 0x14002cc85
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 0x14002cca5
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.14002c150
add rsp, 0x540
pop rbx
ret

Function at 0x14002cc08
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002cc08
push rbx
sub rsp, 0x540
mov rax, qword [0x1400c7228]
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 0x14002cc85
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 0x14002cca5
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.14002c150
add rsp, 0x540
pop rbx
ret
Function at 0x140045b1c
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 [0x1400c7228]
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.140014158
test eax, eax
jne 0x140045d3b
cmp dword [rsp + 0x4c], r14d
je 0x140045d3b
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 0x140045d3b
mov ecx, 0x104
lea rax, [rsp + 0x60]
mov edx, ecx
cmp word [rax], r14w
je 0x140045bde
add rax, 2
sub rdx, 1
jne 0x140045bce
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdx, rdx
je 0x140045bfb
mov rax, rcx
sub rax, rdx
jmp 0x140045bfe
mov rax, r14
test rdx, rdx
je 0x140045c60
lea rdx, [rsp + 0x60]
lea rdx, [rdx + rax*2]
sub rcx, rax
je 0x140045c44
lea r8, [rax + 0x7ffffefa]
add r8, rcx
lea r9, str.MicrosoftSearchCatalogCorruptionLoglogdata.txt
sub r9, rdx
test r8, r8
je 0x140045c44
movzx eax, word [r9 + rdx]
test ax, ax
je 0x140045c44
mov word [rdx], ax
dec r8
add rdx, 2
sub rcx, 1
jne 0x140045c25
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 0x140045d3b
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 0x140045d15
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 0x140045cc6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140045cc6
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140045d0a
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 0x140045d0a
mov byte [rsi], 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x140045d3b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140045d2a
movzx ebx, ax
or ebx, 0x80070000
lea eax, [rbx + 0x7ff8fffe]
cmp eax, 1
ja 0x140045d3b
mov ebx, r14d
mov byte [rsi], 1
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14002c150
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 0x1400465b4
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 [0x1400c7228]
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 0x140046770
mov ecx, 0x104
mov edx, ecx
lea rax, [rbp + 0x130]
cmp word [rax], si
je 0x140046636
add rax, 2
sub rdx, 1
jne 0x140046627
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdx, rdx
je 0x140046653
mov rax, rcx
sub rax, rdx
jmp 0x140046656
mov rax, rsi
test rdx, rdx
je 0x1400466bb
sub rcx, rax
lea rdx, [rbp + 0x130]
lea rdx, [rdx + rax*2]
je 0x1400466a0
lea r8, [rax + 0x7ffffefa]
add r8, rcx
lea rax, str.MicrosoftSearchCatalogCorruptionLogData_
sub rax, rdx
test r8, r8
je 0x1400466a0
movzx r9d, word [rax + rdx]
test r9w, r9w
je 0x1400466a0
mov word [rdx], r9w
add rdx, 2
dec r8
sub rcx, 1
jne 0x14004667f
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 0x140046770
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x48]
call fcn.14000cfd0
mov rdx, rax
mov rcx, rdi
call fcn.140054918
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 0x140046712
cmp eax, 0x50
je 0x140046712
cmp eax, 0xb7
je 0x140046712
test eax, eax
jg 0x140046709
mov ebx, eax
jmp 0x140046712
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140046770
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x18]
call fcn.14000cfd0
mov rbx, rax
lea rdx, [rdi + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.14000cf58
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x88]
call fcn.14000c414
nop
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.1400545d8
mov ebx, eax
test eax, eax
js 0x140046770
call fcn.14004d09c
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.14002c150
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
Function at 0x1400467ac
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1400c7228]
xor rax, rsp
mov qword [rbp + 0x170], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 9
lea rdx, str.SOFTWAREMicrosoftWindows_SearchCatalogListApplicationsWindowsCatalogs
mov rcx, 0xffffffff80000002
call fcn.1400140d4
mov ebx, eax
test eax, eax
jle 0x140046812
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x188]
test ebx, ebx
jns 0x140046836
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x9de
call fcn.14002a6ec
jmp 0x1400469a2
xor edi, edi
mov dword [rsp + 0x40], 0xff
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov edx, edi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x140046997
test eax, eax
jne 0x14004696d
lea rdx, str.SystemIndex
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140046961
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x1400980b8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, str._l_t_b
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
mov ebx, eax
mov rcx, qword [rbp + 0x188]
test eax, eax
jns 0x1400468e7
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x9f8
call fcn.14002a6ec
xor ecx, ecx
mov qword [rsp + 0x48], rcx
test ebx, ebx
js 0x140046937
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x70]
mov rax, qword [rax + 0x80]
call qword [case.0x1400022d4.0]
mov ebx, eax
mov rcx, qword [rbp + 0x188]
test eax, eax
jns 0x140046932
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x9ff
call fcn.14002a6ec
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14004694a
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400022d4.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140046961
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400022d4.0]
inc edi
test ebx, ebx
jns 0x140046838
jmp 0x140046997
jg 0x140046973
mov ebx, eax
jmp 0x14004697c
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x188]
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x9ef
call fcn.14004b168
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14002c150
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret