joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021560
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400da318]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor r14d, r14d
mov sil, r14b
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x41
mov word [rbp - 0x80], r14w
lea rax, [0x14009a690]
mov qword [rsp + 0x68], rax
lea rax, [0x14009a5a0]
mov qword [rsp + 0x60], rax
mov dword [rbp + 8], r14d
mov qword [rbp + 0x10], r14
mov qword [rsp + 0x20], r14
mov r9d, 0x2001f
lea r8, str.SOFTWAREMicrosoftWindows_SearchCrawlScopeManagerWindows
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x60]
call fcn.1400120b0
test eax, eax
js 0x140021742
mov eax, r14d
mov dword [rsp + 0x30], eax
lea edi, [r14 + 6]
lea r15d, [r14 + 4]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14003b3b2
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
nop dword [rax + rax]
mov ecx, eax
mov eax, dword [rsp + 0x30]
cmp ecx, 0x7a
jne 0x140021742
mov ecx, eax
lea rdx, [0x1400a6224]
call fcn.14002a7bc
mov rbx, rax
test rax, rax
je 0x140021731
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14002167d
lea r9, [rsp + 0x30]
mov r8, rax
mov edx, r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
nop dword [rax + rax]
mov edi, eax
test edi, edi
jg 0x14003b3b9
js 0x140021731
mov qword [rsp + 0x40], r14
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x34]
mov rcx, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorDacl]
nop dword [rax + rax]
test eax, eax
je 0x14003b3c9
cmp dword [rsp + 0x34], r14d
je 0x140021731
mov dword [rsp + 0x38], 0x44
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x20]
xor edx, edx
lea ecx, [rdx + 0x1a]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
nop dword [rax + rax]
test eax, eax
je 0x14003b3db
mov edi, r14d
mov r15d, 1
lea r8, [rsp + 0x48]
mov edx, edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
nop dword [rax + rax]
test eax, eax
je 0x140021731
mov rdx, qword [rsp + 0x48]
add rdx, 8
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x140021779
add edi, r15d
test sil, sil
je 0x1400216f0
mov rcx, rbx
mov rax, qword [0x14009d348]
call qword [case.0x1400244c5.0]
nop
lea rcx, [rsp + 0x60]
call fcn.140014250
mov al, sil
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14002a310
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 4]
and ecx, 0xf003f
movzx esi, sil
cmp ecx, 0xf003f
cmove esi, r15d
jmp 0x140021729
mov ecx, edi
jmp 0x140021638
movzx edi, di
or edi, 0x80070000
test edi, edi
jmp 0x140021685
call fcn.14000b310
test eax, eax
js 0x140021731
jmp 0x1400216b6
call fcn.14000b310
test eax, eax
js 0x140021731
jmp 0x1400216e7
Function at 0x140024e80
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
nop dword [rax + rax]
mov r9d, 0x7cf
lea r12, [0x1400db790]
mov r8, rax
mov rcx, r12
lea r13d, [r9 + 1]
mov edx, r13d
call fcn.140025260
xor r15d, r15d
test eax, eax
js 0x1400250bc
mov rbx, r12
mov dword [rdi], r15d
lea edx, [r15 + 0x22]
cmp word [rbx], r15w
je 0x140024f73
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jae 0x140024f18
movzx ecx, word [rbx]
test cx, cx
je 0x140024f13
call qword [sym.imp.msvcrt.dll_iswspace]
nop dword [rax + rax]
test eax, eax
jne 0x1400250a1
mov edx, 0x22
mov rax, rbx
sub rax, r12
and rax, 0xfffffffffffffffe
cmp rax, 0xfa0
je 0x140024f73
movzx ecx, word [rbx]
test cx, cx
je 0x140024f73
cmp cx, dx
je 0x14003c824
call qword [sym.imp.msvcrt.dll_iswspace]
nop dword [rax + rax]
test eax, eax
jne 0x140024f5a
cmp word [rbx], r15w
je 0x140024f5a
add rbx, 2
movzx ecx, word [rbx]
jmp 0x140024f3b
inc dword [rdi]
mov rcx, rbx
sub rcx, r12
mov edx, 0x22
sar rcx, 1
cmp rcx, r13
jb 0x140024edf
cmp dword [rdi], r15d
je 0x1400250bc
movsxd rcx, dword [rdi]
mov eax, 8
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
mov rax, qword [0x14009d340]
call qword [case.0x1400244c5.0]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400250bc
mov rbx, r12
mov ebp, r15d
mov r14, rax
mov esi, 0x22
cmp word [rbx], r15w
je 0x14002507e
cmp ebp, dword [rdi]
jge 0x14002507e
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jae 0x140024ffa
movzx ecx, word [rbx]
test cx, cx
je 0x140024ffa
call qword [sym.imp.msvcrt.dll_iswspace]
nop dword [rax + rax]
test eax, eax
jne 0x14003c84c
mov rcx, rbx
sub rcx, r12
sar rcx, 1
cmp rcx, r13
je 0x14002507e
cmp word [rbx], r15w
je 0x14002507e
cmp word [rbx], si
lea r8, [rbx + 2]
mov rax, rbx
cmove rax, r8
inc ebp
mov qword [r14], rax
add r14, 8
cmp word [rbx], si
je 0x14003c855
cmp rcx, r13
jae 0x14002505e
movzx ecx, word [rbx]
call qword [sym.imp.msvcrt.dll_iswspace]
nop dword [rax + rax]
test eax, eax
jne 0x14002505e
cmp word [rbx], r15w
je 0x14002506c
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140025033
cmp word [rbx], r15w
je 0x14002506c
mov word [rbx], r15w
add rbx, 2
mov rcx, rbx
sub rcx, r12
sar rcx, 1
cmp rcx, r13
jb 0x140024fbe
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140024ef7
jmp 0x140024f13
xor eax, eax
jmp 0x140025083
lea rcx, [rbx + 2]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14003c845
add rbx, 2
jmp 0x140024f5a
inc dword [rdi]
jmp 0x140024f73
add rbx, 2
jmp 0x140024fd0
mov edx, esi
mov rcx, r8
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14002507e
jmp 0x14002505e
Function at 0x140027ca0
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]
nop dword [rax + rax]
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x14003da46
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]
nop dword [rax + rax]
cmp eax, 0xea
je 0x14003da62
test eax, eax
jne 0x14003da4d
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 0x14003da4f
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140027d17
mov ecx, 0x7a
jmp 0x14003da4f
Function at 0x14002a0a8
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140177000
add rsp, 0x28
jmp 0x14002a0a8
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 [0x1400dad08], rbx
je 0x14002a0f2
cmp rax, rbx
jne 0x14002a107
mov edi, 1
mov eax, dword [0x1400dad10]
cmp eax, 1
jne 0x14002a114
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14002a181
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14002a0db
mov eax, dword [0x1400dad10]
test eax, eax
jne 0x14002a177
mov dword [0x1400dad10], 1
lea r14, [0x1400a2ce8]
lea rbx, [0x1400a2cd0]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x14002a169
test eax, eax
jne 0x14002a16d
cmp qword [rbx], 0
je 0x14002a15e
mov rax, qword [rbx]
mov rcx, qword [case.0x1400244c5.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14002a13f
test eax, eax
je 0x14002a181
mov eax, 0xff
jmp 0x14002a2d4
mov dword [0x1400da400], 1
mov eax, dword [0x1400dad10]
cmp eax, 1
jne 0x14002a1a9
lea rdx, [0x1400a2cc8]
lea rcx, [0x1400a2ae8]
call sub.msvcrt.dll__initterm
mov dword [0x1400dad10], 2
test edi, edi
jne 0x14002a1b6
xor eax, eax
xchg qword [0x1400dad08], rax
cmp qword [0x1400dad28], 0
je 0x14002a1ea
lea rcx, [0x1400dad28]
call fcn.14002ac30
test eax, eax
je 0x14002a1ea
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400dad28]
mov r9, qword [case.0x1400244c5.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]
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x14002a276
test cl, cl
je 0x14002a20d
test edi, edi
jne 0x14002a276
dec cl
cmp cl, 0x1f
ja 0x14002a220
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x14002a20d
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.1400062a8
mov dword [0x1400da3fc], eax
cmp dword [0x1400da420], 0
jne 0x14002a25f
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400da400], 0
jne 0x14002a274
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400da3fc]
jmp 0x14002a2d4
cmp cl, 0x22
jne 0x14002a288
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14002a29a
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14002a1fd
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x14002ab1c
Capabilities:
Parse pe header

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

Function at 0x14002addc
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002ade8
push rbx
sub rsp, 0x540
mov rax, qword [0x1400da318]
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 0x14002ae65
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 0x14002ae85
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.14002a310
add rsp, 0x540
pop rbx
ret

Function at 0x14002ade8
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002ade8
push rbx
sub rsp, 0x540
mov rax, qword [0x1400da318]
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 0x14002ae65
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 0x14002ae85
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.14002a310
add rsp, 0x540
pop rbx
ret
Function at 0x1400454a4
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 [0x1400da318]
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]
nop dword [rax + rax]
mov ebx, eax
xor esi, esi
test eax, eax
js 0x14004566c
mov ecx, 0x104
mov edx, ecx
lea rax, [rbp + 0x130]
cmp word [rax], si
je 0x14004552c
add rax, 2
sub rdx, 1
jne 0x14004551d
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdx, rdx
je 0x140045549
mov rax, rcx
sub rax, rdx
jmp 0x14004554c
mov rax, rsi
test rdx, rdx
je 0x1400455b1
sub rcx, rax
lea rdx, [rbp + 0x130]
lea rdx, [rdx + rax*2]
je 0x140045596
lea r8, [rax + 0x7ffffefa]
add r8, rcx
lea rax, str.MicrosoftSearchCatalogCorruptionLogData_
sub rax, rdx
test r8, r8
je 0x140045596
movzx r9d, word [rax + rdx]
test r9w, r9w
je 0x140045596
mov word [rdx], r9w
add rdx, 2
dec r8
sub rcx, 1
jne 0x140045575
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 0x14004566c
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x48]
call fcn.14001c064
mov rdx, rax
mov rcx, rdi
call fcn.140055f3c
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]
nop dword [rax + rax]
test eax, eax
je 0x14004560e
cmp eax, 0x50
je 0x14004560e
cmp eax, 0xb7
je 0x14004560e
test eax, eax
jg 0x140045605
mov ebx, eax
jmp 0x14004560e
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14004566c
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x18]
call fcn.14001c064
mov rbx, rax
lea rdx, [rdi + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.14001bfe4
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x88]
call fcn.14001c428
nop
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.140055bd4
mov ebx, eax
test eax, eax
js 0x14004566c
call fcn.14004c3b0
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.14002a310
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 0x1400456ac
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 [0x1400da318]
xor rax, rsp
mov qword [rbp + 0x170], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 9
lea r8, str.SOFTWAREMicrosoftWindows_SearchCatalogListApplicationsWindowsCatalogs
mov rdx, 0xffffffff80000002
call fcn.14000a928
mov ebx, eax
test eax, eax
jle 0x140045714
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x188]
test ebx, ebx
jns 0x140045738
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x9f8
call fcn.1400427b0
jmp 0x1400458bc
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]
nop dword [rax + rax]
cmp eax, 0x103
je 0x1400458ab
test eax, eax
jne 0x140045881
lea rdx, str.SystemIndex
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140045875
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x1400a7608]
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]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rbp + 0x188]
test eax, eax
jns 0x1400457fb
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0xa12
call fcn.1400427b0
xor ecx, ecx
mov qword [rsp + 0x48], rcx
test ebx, ebx
js 0x14004584b
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.0x1400244c5.0]
mov ebx, eax
mov rcx, qword [rbp + 0x188]
test eax, eax
jns 0x140045846
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0xa19
call fcn.1400427b0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14004585e
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400244c5.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140045875
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400244c5.0]
inc edi
test ebx, ebx
jns 0x14004573a
jmp 0x1400458ab
jg 0x140045887
mov ebx, eax
jmp 0x140045890
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, 0xa09
call fcn.14004a398
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14002a310
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140049ab0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x188]
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400da318]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rsi, rdx
mov rdi, rcx
call fcn.14002afec
test al, al
jne 0x140049afb
mov ebx, 0x80004001
jmp 0x140049c28
and qword [rsp + 0x20], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
xor edx, edx
lea rcx, str.IndexUserProfilesRoot
call fcn.140003140
lea rcx, [rsp + 0x20]
test al, al
je 0x140049b32
call fcn.1400426b8
lea rcx, [0x1400a6dc8]
jmp 0x140049b3e
call fcn.1400426b8
lea rcx, [0x1400a6dd8]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r8
lea r9, [rsp + 0x20]
mov edx, 0x4400
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140049bb6
mov r8, qword [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.14000c43c
mov ebx, eax
test eax, eax
js 0x140049bb6
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathAddBackslashW]
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rdi], rax
mov ecx, 0x8007000e
test rax, rax
cmove ebx, ecx
test ebx, ebx
jns 0x140049c1e
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.14004a2bc
mov r9d, dword [rsi + 0x10]
mov r8, qword [rsi + 8]
mov edx, 0x7de
lea rcx, [rsp + 0x38]
call fcn.14004a310
mov dword [rsi + 0x14], eax
lea rcx, [rsp + 0x38]
call fcn.140029434
nop
lea rcx, [rsp + 0x20]
call fcn.1400426b8
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14002a310
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004a060
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400da318]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14004a09c
xor eax, eax
jmp 0x14004a0a5
call fcn.14000b310
test eax, eax
js 0x14004a0ad
movzx ecx, word [rsp + 0x20]
mov word [rbx], cx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14002a310
add rsp, 0x240
pop rbx
ret

Function at 0x14004a0d0
Capabilities:
Check for time delay via gettickcount
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x40
cmp dword [0x1400dca04], 0
je 0x14004a0fc
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
sub eax, dword [0x1400dca00]
cmp eax, 0x4e20
jbe 0x14004a1aa
and dword [rsp + 0x50], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea r8, str.SystemIndexNormalization
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
lea rdx, str.SOFTWAREMicrosoftWindows_Search
and qword [rsp + 0x20], 0
mov r9d, SafeArrayPutElement
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x14004a18e
mov edi, 1
mov dword [rsp + 0x50], edi
call fcn.14004a1c0
xor edx, edx
xor r8d, r8d
cmp r8d, 0x44
jae 0x14004a17d
lea r9, [0x1400b42f0]
cmp ax, word [r9 + r8*2]
cmove edx, edi
add r8d, edi
test edx, edx
je 0x14004a161
test edx, edx
je 0x14004a18e
mov eax, dword [rsp + 0x50]
or eax, 2
mov dword [rsp + 0x50], eax
jmp 0x14004a192
mov eax, dword [rsp + 0x50]
mov dword [0x1400dca04], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov dword [0x1400dca00], eax
mov eax, dword [0x1400dca04]
add rsp, 0x40
pop rdi
ret