joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006b5ec
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
xor edx, edx
mov rcx, rsi
mov r8d, 0xd0
mov r14, r9
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor edi, edi
test r14, r14
je 0x14006b640
mov word [r14], di
lea rcx, [rsp + 0x30]
call fcn.14006b8d0
mov ebx, eax
mov ebp, 0x1a
test eax, eax
js 0x14006b711
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetLogicalDrives]
nop dword [rax + rax]
movzx r12d, word [rsp + 0x30]
mov r13d, eax
cmp edi, ebp
jae 0x14006b75b
bt r13d, edi
jae 0x14006b705
movabs rax, 0x5c003a0020
lea r15d, [rdi + 0x41]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
mov word [rsp + 0x48], r15w
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
cmp eax, 3
jne 0x14006b705
mov r8, qword [rsp + 0x38]
lea r9, [rsp + 0x50]
movzx edx, r12w
movzx ecx, r15w
call fcn.14006b970
mov ebx, eax
test eax, eax
js 0x14006b705
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14006b498
mov ebx, eax
cmp eax, 1
jne 0x14006b6e8
xor ebx, ebx
inc edi
jmp 0x14006b66e
test eax, eax
js 0x14006b705
mov eax, edi
lea rcx, [rsp + 0x50]
lea rdx, [rsi + rax*8]
call qword [sym.imp.SHCORE.dll_SHStrDupW]
nop dword [rax + rax]
mov ebx, eax
inc edi
test ebx, ebx
jns 0x14006b66e
xor edi, edi
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov qword [rsi], rdi
lea rsi, [rsi + 8]
sub rbp, 1
jne 0x14006b711
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140024b20
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test r14, r14
je 0x14006b72d
mov word [r14], r12w
jmp 0x14006b72d
Function at 0x14006b76c
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
lea r9, [rax + 0x10]
mov word [rdx], bp
mov r14, rdx
xor edx, edx
mov dword [rax + 0x10], ebp
xor r8d, r8d
mov rdi, rcx
mov ebx, ebp
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14006b880
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x14006b880
mov ecx, dword [rsp + 0x48]
lea eax, [rbp + 2]
mul rcx
lea r15, [rbp - 1]
lea rdx, [0x1400b35f2]
cmovo rax, r15
mov rcx, rax
call fcn.14002520c
mov rsi, rax
test rax, rax
je 0x14006b879
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
je 0x14006b854
mov rdi, rsi
cmp word [rsi], bp
je 0x14006b86f
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsRootW]
nop dword [rax + rax]
test eax, eax
jne 0x14006b84b
mov rax, r15
inc rax
cmp word [rdi + rax*2], bp
jne 0x14006b833
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], bp
jne 0x14006b81d
jmp 0x14006b86f
movzx eax, word [rdi]
mov word [r14], ax
jmp 0x14006b86f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14006b86f
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rsi
call fcn.14002523c
jmp 0x14006b89b
mov ebx, 0x8007000e
jmp 0x14006b89b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14006b89b
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14006b8ab
cmp word [r14], bp
mov eax, 0x80070057
cmove ebx, eax
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14006b8d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r9d, 1
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x23]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14006b943
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_towupper]
nop dword [rax + rax]
mov word [rdi], ax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140024b20
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x14006b970
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r9
mov rsi, r8
movzx ebx, dx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_towupper]
nop dword [rax + rax]
movzx ecx, bx
movzx ebp, ax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_towupper]
nop dword [rax + rax]
cmp bp, ax
jne 0x14006b9d2
mov r8, rsi
mov edx, 0x104
mov rcx, rdi
call fcn.14000b8b0
jmp 0x14006ba66
movabs rax, 0x5c003a0020
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov r8d, 0x104
mov word [rsp + 0x20], bp
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
jne 0x14006ba22
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14006ba20
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x14006ba66
mov edx, 0x7b
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
mov r11, rax
test rax, rax
jne 0x14006ba47
mov eax, 0x8000ffff
jmp 0x14006ba66
mov r8, rsi
mov edx, 0x104
mov rcx, rdi
call fcn.14000b8b0
test eax, eax
js 0x14006ba66
mov r8, r11
mov rcx, rdi
call fcn.14006ba90
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140024b20
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
Function at 0x140071290
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, qword [0x1400db9f8]
mov rcx, rdi
call fcn.14006ec84
test eax, eax
jne 0x140071391
mov rcx, rdi
call fcn.14006f3b4
mov ebx, eax
test eax, eax
jns 0x1400712e4
mov edx, 0x2f2
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreuap_base_appmodel_searchcommondcomsvcdcomsvc.cxx
mov r9d, ebx
call fcn.1400205f4
mov eax, ebx
jmp 0x140071393
mov rcx, qword [0x1400db9f8]
mov rax, qword [rcx]
movabs r10, 0xfa652e1a7a559870
mov rax, qword [rax + 0x68]
call qword [case.0x140001f80.0]
mov ebx, eax
test eax, eax
jns 0x14007130f
mov edx, 0x2f3
jmp 0x1400712c9
mov rcx, qword [0x1400db9f8]
mov edx, 4
call fcn.14002ee5c
mov rax, qword [rdi]
movabs r10, 0xa5808fd316d54870
mov rax, qword [rax + 0x80]
mov rcx, rdi
call qword [case.0x140001f80.0]
mov ebx, eax
test eax, eax
jns 0x14007134d
mov edx, 0x2f7
jmp 0x1400712c9
mov r8d, SafeArrayGetLBound
lea rdx, [0x1400b5680]
lea rcx, [rsp + 0x38]
call fcn.140069d60
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]
nop dword [rax + rax]
lea rcx, [rsp + 0x38]
call fcn.140057114
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400720ec
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
lea rax, [rbp - 0x10]
mov rdi, r8
mov qword [rbp - 0x10], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMSetup
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 1]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14007219d
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x28]
lea rax, [rbp + 0x20]
mov dword [rbp + 0x20], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Upgrade
mov dword [rbp + 0x38], 4
mov dword [rbp + 0x28], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14007218d
cmp dword [rbp + 0x28], 4
jne 0x14007218d
test rdi, rdi
je 0x140072188
mov eax, dword [rbp + 0x20]
mov dword [rdi], eax
mov ebx, 1
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400721b0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r9d, 0x20
lea r8, [rsp + 0x20]
mov edi, 0x404
mov ebx, 0xc04
mov ecx, edi
lea edx, [r9 - 0x18]
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
nop dword [rax + rax]
test eax, eax
je 0x140072212
mov r8d, 3
lea rdx, [0x1400beb2c]
lea rcx, [rsp + 0x20]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncmp
test eax, eax
je 0x140072212
movzx ebx, di
movzx eax, bx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140024b20
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x140072360
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x1400ddfa4]
test eax, eax
jne 0x140072464
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_290
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400723cf
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x30]
xor eax, eax
mov edx, dword [rsp + 0x24]
mov dword [0x1400ddfa4], eax
sub ecx, 1
je 0x140072440
cmp ecx, 1
jne 0x140072464
cmp edx, 5
jne 0x14007242e
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140072427
sub eax, ecx
je 0x14007240d
cmp eax, ecx
je 0x140072403
lea eax, [rdx + 0xf]
jmp 0x140072482
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea ecx, [rdx - 0xf]
jmp 0x140072415
mov edx, 8
lea ecx, [rdx - 6]
xor eax, eax
cmp word [rsp + 0x134], cx
cmovae eax, edx
or eax, 4
jmp 0x140072482
mov eax, 4
jmp 0x140072482
cmp edx, 4
ja 0x14007247d
mov ecx, 2
mov eax, ecx
mov dword [0x1400ddfa4], ecx
cmp edx, 4
jne 0x140072464
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x140072457
cmp ecx, 0xa
je 0x140072457
cmp ecx, 0x5a
jne 0x140072464
mov ecx, 1
mov eax, ecx
mov dword [0x1400ddfa4], ecx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140024b20
add rsp, 0x158
ret
mov eax, 0x20
mov dword [0x1400ddfa4], eax
jmp 0x140072464
Function at 0x140072504
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rsi, r9
mov rdi, r8
mov rbx, rdx
test rdx, rdx
je 0x140072580
test r8, r8
je 0x140072580
movzx ecx, cx
lea r8d, [rbp + 0x55]
mov r9d, 0x8000000
call qword [sym.imp.api_ms_win_core_localization_l1_2_2.dll_LCIDToLocaleName]
nop dword [rax + rax]
test eax, eax
je 0x140072580
lea r9d, [rbp + 0x55]
mov r8, rdi
lea edx, [rbp + 0x6d]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoEx]
nop dword [rax + rax]
test rsi, rsi
je 0x140072579
mov r8, rsi
mov word [rsi], bp
mov rdx, rdi
mov rcx, rbx
call fcn.1400725a0
mov eax, 1
jmp 0x140072582
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400727b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
xor r9d, r9d
lea rdx, [0x1400b56f0]
mov rbx, rcx
lea r8d, [r9 + 1]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
nop dword [rax + rax]
test rax, rax
jne 0x1400727e3
add rsp, 0x20
pop rbx
ret
mov rdx, rax
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
Function at 0x14007366c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov r12, rcx
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rdx, rax
jbe 0x1400736ba
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop dword [rax + rax]
int3
mov rsi, qword [r12 + 8]
lea rax, [rdx - 1]
or rax, 1
lea rdi, [r12 + 0x18]
bsr rcx, rax
mov ebx, 1
mov r8, rsi
inc ecx
shl rbx, cl
mov rcx, rdi
lea rdx, [rbx + rbx]
call fcn.1400734a8
mov qword [r12 + 0x38], rbx
lea rax, [rbx - 1]
mov qword [r12 + 0x30], rax
mov r11, qword [r12 + 8]
mov r11, qword [r11]
mov rbx, r11
cmp r11, rsi
je 0x140073838
mov rbx, qword [rbx]
lea r15, [r11 + 0x10]
cmp qword [r15 + 0x18], 8
mov r8, r15
mov r9, qword [r15 + 0x10]
jb 0x140073723
mov r8, qword [r15]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
add r9, r9
je 0x140073752
movzx eax, byte [rdx + r8]
movabs r10, 0x100000001b3
xor rcx, rax
inc rdx
imul rcx, r10
cmp rdx, r9
jb 0x140073734
mov r14, qword [r12 + 0x30]
mov rbp, qword [rdi]
and r14, rcx
add r14, r14
cmp qword [rbp + r14*8], rsi
jne 0x140073776
mov qword [rbp + r14*8], r11
mov qword [rbp + r14*8 + 8], r11
jmp 0x140073830
mov rdi, qword [rbp + r14*8 + 8]
mov rdx, r15
lea r8, [rdi + 0x10]
call fcn.14001bc48
test al, al
jne 0x1400737bb
mov r8, qword [rdi]
cmp r8, r11
je 0x1400737b4
mov rdx, qword [r11 + 8]
mov qword [rdx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], r11
mov qword [r8 + 8], rcx
mov qword [rbx + 8], rdx
mov qword [r11 + 8], rax
mov qword [rbp + r14*8 + 8], r11
jmp 0x14007382b
mov r13, rdi
mov r8, rdi
cmp qword [rbp + r14*8], r13
je 0x140073805
mov rdi, qword [rdi + 8]
mov rdx, r15
mov r13, rdi
lea r8, [rdi + 0x10]
call fcn.14001bc48
test al, al
jne 0x1400737be
mov r8, qword [rdi]
mov rdx, qword [r11 + 8]
mov qword [rdx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], r11
mov qword [r8 + 8], rcx
mov qword [rbx + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14007382b
mov rdx, qword [r11 + 8]
mov qword [rdx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], r11
mov qword [r8 + 8], rcx
mov qword [rbx + 8], rdx
mov qword [r11 + 8], rax
mov qword [rbp + r14*8], r11
lea rdi, [r12 + 0x18]
mov r11, rbx
jmp 0x140073702
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14007385c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdi, r8
mov rsi, rdx
mov r11, rcx
cmp rdx, r8
je 0x1400739d9
mov r12, qword [rdx + 8]
lea rax, [rcx + 8]
mov rcx, qword [rax]
mov r14, qword [r11 + 0x18]
mov r10, qword [rdx + 0x20]
mov qword [rbp + 0x48], rcx
mov rcx, rdx
mov qword [rbp - 0x10], rdx
add rdx, 0x10
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], r12
cmp qword [rdx + 0x18], 8
jb 0x1400738be
mov rdx, qword [rdx]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
add r10, r10
je 0x1400738ee
movzx eax, byte [r8 + rdx]
inc r8
xor r9, rax
imul r9, rbx
cmp r8, r10
jb 0x1400738da
mov r15, qword [r11 + 0x30]
and r15, r9
add r15, r15
mov rax, qword [r14 + r15*8 + 8]
mov r13, qword [r14 + r15*8]
mov qword [rbp + 0x50], rax
cmp rcx, rax
lea rcx, [rbp - 0x20]
sete bl
call fcn.140073568
test bl, bl
jne 0x140073937
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp + 0x50]
cmp rcx, rdi
jne 0x140073905
cmp r13, rsi
jne 0x1400739ce
mov qword [r14 + r15*8], rcx
jmp 0x1400739ce
cmp r13, rsi
mov r13, qword [rbp + 0x48]
jne 0x140073947
mov qword [r14 + r15*8], r13
mov r12, r13
mov qword [r14 + r15*8 + 8], r12
mov rcx, qword [rbp - 0x10]
cmp rcx, rdi
je 0x1400739ce
mov r15, qword [rbp + 0x40]
lea rdx, [rcx + 0x10]
cmp qword [rdx + 0x18], 8
mov r10, qword [rdx + 0x10]
jb 0x14007396b
mov rdx, qword [rdx]
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
add r10, r10
je 0x14007399f
movabs r13, 0x100000001b3
movzx eax, byte [r9 + rdx]
inc r9
xor r8, rax
imul r8, r13
cmp r9, r10
jb 0x140073987
mov r13, qword [rbp + 0x48]
mov rsi, qword [r15 + 0x30]
and rsi, r8
add rsi, rsi
mov r12, qword [r14 + rsi*8 + 8]
cmp rcx, r12
lea rcx, [rbp - 0x20]
sete bl
call fcn.140073568
mov rcx, qword [rbp - 0x10]
test bl, bl
jne 0x1400739f5
cmp rcx, rdi
jne 0x1400739ae
mov qword [r14 + rsi*8], rcx
mov rax, qword [rbp - 0x18]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rbx, qword [rsp + 0x98]
mov rax, rdi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [r14 + rsi*8], r13
mov qword [r14 + rsi*8 + 8], r13
cmp rcx, rdi
jne 0x140073959
jmp 0x1400739ce
Function at 0x140084724
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x20
and qword [rbp + 0x38], 0
mov rdi, rdx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoImpersonateClient]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14008476a
mov rcx, qword [rbp + 0x18]
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_apiwsstoreregistrationendpoint.cxx
mov r9d, eax
mov edx, 0x1db
call fcn.1400205f4
jmp 0x140084859
xor edx, edx
lea rcx, [rbp + 0x38]
call fcn.14001bf20
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov edx, SafeArrayGetDim
lea r9, [rbp + 0x38]
mov rcx, rax
lea r8d, [rdx - 0xb]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x1400847c9
mov rcx, qword [rbp + 0x18]
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_apiwsstoreregistrationendpoint.cxx
mov edx, 0x1de
call fcn.14003ef04
mov ebx, eax
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevertToSelf]
nop dword [rax + rax]
jmp 0x140084859
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevertToSelf]
nop dword [rax + rax]
and qword [rbp + 0x30], 0
lea rdx, [rbp + 0x30]
mov rcx, rdi
call qword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertStringSidToSidW]
nop dword [rax + rax]
test eax, eax
jne 0x14008480a
mov edx, 0x1e2
mov rcx, qword [rbp + 0x18]
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_apiwsstoreregistrationendpoint.cxx
call fcn.14003ef04
mov ebx, eax
jmp 0x140084850
mov rdx, qword [rbp + 0x30]
lea r8, [rbp + 0x20]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
jne 0x14008482d
mov edx, 0x1e5
jmp 0x1400847f6
cmp dword [rbp + 0x20], 0
jne 0x140084866
mov rcx, qword [rbp + 0x18]
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_apiwsstoreregistrationendpoint.cxx
mov ebx, 0x80070005
mov edx, 0x1e7
mov r9d, ebx
call fcn.1400205f4
lea rcx, [rbp + 0x30]
call fcn.140065a9c
lea rcx, [rbp + 0x38]
call fcn.140024620
mov eax, ebx
jmp 0x140084897
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14008487b
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x38]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140084895
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x20
pop rdi
pop rbx
pop rbp
ret
Function at 0x140084910
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov dword [rsp + 0x20], 0x44
mov ecx, edx
lea r8, [rsp + 0x30]
xor edx, edx
lea r9, [rsp + 0x20]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
nop dword [rax + rax]
test eax, eax
jne 0x14008495d
call fcn.14001be24
test eax, eax
js 0x140084992
lea r8, [rsp + 0x24]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
jne 0x140084983
call fcn.14001be24
test eax, eax
js 0x140084992
mov eax, dword [rsp + 0x24]
neg eax
sbb eax, eax
not eax
and eax, 0x80070005
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140024b20
add rsp, 0x90
pop rbx
ret
Function at 0x1400869d8
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, r8
mov rdi, rdx
mov edx, ecx
lea rcx, [rsp + 0xe0]
lea rax, str.GROUP_ON_System.ConnectedSearch.ApplicationSearchScope_AGGREGATE_CHILDCOUNT___OVER_SELECT_System.ConnectedSearch.ApplicationSearchScope_FROM_SystemIndex_WHERE__s_System.ConnectedSearch.ItemSource___d_
mov r9d, 3
lea r8d, [r9 + 0x7d]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
add rcx, r8
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
add rax, r8
sub r9, 1
jne 0x140086a16
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
mov eax, dword [rax + 0x10]
mov dword [rcx + 0x10], eax
movups xmm0, xmmword [str.SCOPE__winrt:___AND]
movups xmmword [rsp + 0xa8], xmm0
movups xmm1, xmmword [0x1400bffd0]
movups xmmword [rsp + 0xb8], xmm1
movsd xmm0, qword [0x1400bffe0]
movsd qword [rsp + 0xc8], xmm0
mov eax, dword [0x1400bffe8]
mov dword [rsp + 0xd0], eax
movzx eax, word [0x1400bffec]
mov word [rsp + 0xd4], ax
and qword [rsp + 0x40], r9
and qword [rsp + 0x48], r9
and qword [rsp + 0x50], r9
lea rax, [0x1400b3ae4]
lea r8, [rsp + 0xa8]
cmp edx, 1
cmovne r8, rax
mov r9d, edx
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x40]
call fcn.140086108
mov ebx, eax
test eax, eax
js 0x140086bbd
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140085888
nop
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x38], rax
lea rax, [0x1400aeb58]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rsp + 0x70], xmm0
lea rax, [rsp + 0x68]
mov qword [rsp + 0xa0], rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.140085bb8
mov rdx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
lea rcx, [rdx + rax]
cmp rcx, rax
jb 0x140086b7b
xor r9d, r9d
jmp 0x140086b85
or rcx, 0xffffffffffffffff
mov r9d, 0x80070216
mov rax, qword [rsp + 0x2a8]
test r9d, r9d
jns 0x140086ba6
lea r8, [0x1400bff70]
mov edx, 0xf6
mov rcx, rax
call fcn.140066104
mov qword [rdi], rcx
mov qword [rsi], rdx
lea rcx, [rsp + 0x60]
call fcn.140002004
nop
jmp 0x140086bbd
lea rcx, [rsp + 0x40]
call fcn.140046a30
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140024b20
add rsp, 0x290
pop rdi
pop rsi
pop rbx
ret