joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006ac5c
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 [0x1400dc7b8]
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 0x14006acb0
mov word [r14], di
lea rcx, [rsp + 0x30]
call fcn.14006af40
mov ebx, eax
mov ebp, 0x1a
test eax, eax
js 0x14006ad81
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 0x14006adcb
bt r13d, edi
jae 0x14006ad75
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 0x14006ad75
mov r8, qword [rsp + 0x38]
lea r9, [rsp + 0x50]
movzx edx, r12w
movzx ecx, r15w
call fcn.14006afe0
mov ebx, eax
test eax, eax
js 0x14006ad75
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14006ab08
mov ebx, eax
cmp eax, 1
jne 0x14006ad58
xor ebx, ebx
inc edi
jmp 0x14006acde
test eax, eax
js 0x14006ad75
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 0x14006acde
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 0x14006ad81
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140024990
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 0x14006ad9d
mov word [r14], r12w
jmp 0x14006ad9d
Function at 0x14006addc
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 0x14006aef0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x14006aef0
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.14002507c
mov rsi, rax
test rax, rax
je 0x14006aee9
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 0x14006aec4
mov rdi, rsi
cmp word [rsi], bp
je 0x14006aedf
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 0x14006aebb
mov rax, r15
inc rax
cmp word [rdi + rax*2], bp
jne 0x14006aea3
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], bp
jne 0x14006ae8d
jmp 0x14006aedf
movzx eax, word [rdi]
mov word [r14], ax
jmp 0x14006aedf
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 0x14006aedf
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rsi
call fcn.1400250ac
jmp 0x14006af0b
mov ebx, 0x8007000e
jmp 0x14006af0b
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 0x14006af0b
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14006af1b
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 0x14006af40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400dc7b8]
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 0x14006afb3
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.140024990
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x14006afe0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400dc7b8]
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 0x14006b042
mov r8, rsi
mov edx, 0x104
mov rcx, rdi
call fcn.14000b8b0
jmp 0x14006b0d6
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 0x14006b092
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14006b090
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x14006b0d6
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 0x14006b0b7
mov eax, 0x8000ffff
jmp 0x14006b0d6
mov r8, rsi
mov edx, 0x104
mov rcx, rdi
call fcn.14000b8b0
test eax, eax
js 0x14006b0d6
mov r8, r11
mov rcx, rdi
call fcn.14006b100
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140024990
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
Function at 0x140070940
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, qword [0x1400db770]
mov rcx, rdi
call fcn.14006e330
test eax, eax
jne 0x140070a41
mov rcx, rdi
call fcn.14006ea64
mov ebx, eax
test eax, eax
jns 0x140070994
mov edx, 0x2fc
mov rcx, qword [rsp + 0x28]
lea r8, [0x1400b4fa8]
mov r9d, ebx
call fcn.1400205b4
mov eax, ebx
jmp 0x140070a43
mov rcx, qword [0x1400db770]
mov rax, qword [rcx]
movabs r10, 0xfa652e1a7a559870
mov rax, qword [rax + 0x68]
call qword [case.0x140001f80.0]
mov ebx, eax
test eax, eax
jns 0x1400709bf
mov edx, 0x2fd
jmp 0x140070979
mov rcx, qword [0x1400db770]
mov edx, 4
call fcn.14002e544
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 0x1400709fd
mov edx, 0x301
jmp 0x140070979
mov r8d, SafeArrayGetLBound
lea rdx, str.wsearch
lea rcx, [rsp + 0x38]
call fcn.1400693d0
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.140056834
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14007179c
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 0x14007184d
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 0x14007183d
cmp dword [rbp + 0x28], 4
jne 0x14007183d
test rdi, rdi
je 0x140071838
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 0x140071860
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400dc7b8]
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 0x1400718c2
mov r8d, 3
lea rdx, [0x1400beb88]
lea rcx, [rsp + 0x20]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncmp
test eax, eax
je 0x1400718c2
movzx ebx, di
movzx eax, bx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140024990
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140071a10
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1400dc7b8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x1400ddfa4]
test eax, eax
jne 0x140071b14
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 0x140071a7f
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 0x140071af0
cmp ecx, 1
jne 0x140071b14
cmp edx, 5
jne 0x140071ade
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140071ad7
sub eax, ecx
je 0x140071abd
cmp eax, ecx
je 0x140071ab3
lea eax, [rdx + 0xf]
jmp 0x140071b32
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea ecx, [rdx - 0xf]
jmp 0x140071ac5
mov edx, 8
lea ecx, [rdx - 6]
xor eax, eax
cmp word [rsp + 0x134], cx
cmovae eax, edx
or eax, 4
jmp 0x140071b32
mov eax, 4
jmp 0x140071b32
cmp edx, 4
ja 0x140071b2d
mov ecx, 2
mov eax, ecx
mov dword [0x1400ddfa4], ecx
cmp edx, 4
jne 0x140071b14
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x140071b07
cmp ecx, 0xa
je 0x140071b07
cmp ecx, 0x5a
jne 0x140071b14
mov ecx, 1
mov eax, ecx
mov dword [0x1400ddfa4], ecx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140024990
add rsp, 0x158
ret
mov eax, 0x20
mov dword [0x1400ddfa4], eax
jmp 0x140071b14

Function at 0x140071bb4
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 0x140071c30
test r8, r8
je 0x140071c30
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 0x140071c30
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 0x140071c29
mov r8, rsi
mov word [rsi], bp
mov rdx, rdi
mov rcx, rbx
call fcn.140071c50
mov eax, 1
jmp 0x140071c32
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 0x140071e64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
xor r9d, r9d
lea rdx, [0x1400b5050]
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 0x140071e93
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 0x140072d1c
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 0x140072d6a
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.140072b58
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 0x140072ee8
mov rbx, qword [rbx]
lea r15, [r11 + 0x10]
cmp qword [r15 + 0x18], 8
mov r8, r15
mov r9, qword [r15 + 0x10]
jb 0x140072dd3
mov r8, qword [r15]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
add r9, r9
je 0x140072e02
movzx eax, byte [rdx + r8]
movabs r10, 0x100000001b3
xor rcx, rax
inc rdx
imul rcx, r10
cmp rdx, r9
jb 0x140072de4
mov r14, qword [r12 + 0x30]
mov rbp, qword [rdi]
and r14, rcx
add r14, r14
cmp qword [rbp + r14*8], rsi
jne 0x140072e26
mov qword [rbp + r14*8], r11
mov qword [rbp + r14*8 + 8], r11
jmp 0x140072ee0
mov rdi, qword [rbp + r14*8 + 8]
mov rdx, r15
lea r8, [rdi + 0x10]
call fcn.14001bbe4
test al, al
jne 0x140072e6b
mov r8, qword [rdi]
cmp r8, r11
je 0x140072e64
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 0x140072edb
mov r13, rdi
mov r8, rdi
cmp qword [rbp + r14*8], r13
je 0x140072eb5
mov rdi, qword [rdi + 8]
mov rdx, r15
mov r13, rdi
lea r8, [rdi + 0x10]
call fcn.14001bbe4
test al, al
jne 0x140072e6e
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 0x140072edb
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 0x140072db2
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 0x140072f0c
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 0x140073089
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 0x140072f6e
mov rdx, qword [rdx]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
add r10, r10
je 0x140072f9e
movzx eax, byte [r8 + rdx]
inc r8
xor r9, rax
imul r9, rbx
cmp r8, r10
jb 0x140072f8a
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.140072c18
test bl, bl
jne 0x140072fe7
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp + 0x50]
cmp rcx, rdi
jne 0x140072fb5
cmp r13, rsi
jne 0x14007307e
mov qword [r14 + r15*8], rcx
jmp 0x14007307e
cmp r13, rsi
mov r13, qword [rbp + 0x48]
jne 0x140072ff7
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 0x14007307e
mov r15, qword [rbp + 0x40]
lea rdx, [rcx + 0x10]
cmp qword [rdx + 0x18], 8
mov r10, qword [rdx + 0x10]
jb 0x14007301b
mov rdx, qword [rdx]
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
add r10, r10
je 0x14007304f
movabs r13, 0x100000001b3
movzx eax, byte [r9 + rdx]
inc r9
xor r8, rax
imul r8, r13
cmp r9, r10
jb 0x140073037
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.140072c18
mov rcx, qword [rbp - 0x10]
test bl, bl
jne 0x1400730a5
cmp rcx, rdi
jne 0x14007305e
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 0x140073009
jmp 0x14007307e
Function at 0x140083e34
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 0x140083e7a
mov rcx, qword [rbp + 0x18]
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_apiwsstoreregistrationendpoint.cxx
mov r9d, eax
mov edx, 0x1db
call fcn.1400205b4
jmp 0x140083f69
xor edx, edx
lea rcx, [rbp + 0x38]
call fcn.14001bec0
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 0x140083ed9
mov rcx, qword [rbp + 0x18]
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_apiwsstoreregistrationendpoint.cxx
mov edx, 0x1de
call fcn.14003e714
mov ebx, eax
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevertToSelf]
nop dword [rax + rax]
jmp 0x140083f69
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 0x140083f1a
mov edx, 0x1e2
mov rcx, qword [rbp + 0x18]
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_apiwsstoreregistrationendpoint.cxx
call fcn.14003e714
mov ebx, eax
jmp 0x140083f60
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 0x140083f3d
mov edx, 0x1e5
jmp 0x140083f06
cmp dword [rbp + 0x20], 0
jne 0x140083f76
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.1400205b4
lea rcx, [rbp + 0x30]
call fcn.14006516c
lea rcx, [rbp + 0x38]
call fcn.140024490
mov eax, ebx
jmp 0x140083fa7
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x140083f8b
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 0x140083fa5
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 0x140084020
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400dc7b8]
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 0x14008406d
call fcn.14001bdc0
test eax, eax
js 0x1400840a2
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 0x140084093
call fcn.14001bdc0
test eax, eax
js 0x1400840a2
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.140024990
add rsp, 0x90
pop rbx
ret
Function at 0x1400860f8
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x1400dc7b8]
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 0x140086136
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 [0x1400c0288]
movups xmmword [rsp + 0xb8], xmm1
movsd xmm0, qword [0x1400c0298]
movsd qword [rsp + 0xc8], xmm0
mov eax, dword [0x1400c02a0]
mov dword [rsp + 0xd0], eax
movzx eax, word [0x1400c02a4]
mov word [rsp + 0xd4], ax
and qword [rsp + 0x40], r9
and qword [rsp + 0x48], r9
and qword [rsp + 0x50], r9
lea rax, [0x1400b3ad4]
lea r8, [rsp + 0xa8]
cmp edx, 1
cmovne r8, rax
mov r9d, edx
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x40]
call fcn.140085818
mov ebx, eax
test eax, eax
js 0x1400862dd
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140084f98
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, [0x1400aeb00]
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.1400852c8
mov rdx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
lea rcx, [rdx + rax]
cmp rcx, rax
jb 0x14008629b
xor r9d, r9d
jmp 0x1400862a5
or rcx, 0xffffffffffffffff
mov r9d, 0x80070216
mov rax, qword [rsp + 0x2a8]
test r9d, r9d
jns 0x1400862c6
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_apiwsstorestatisticsendpoint.cxx
mov edx, 0xf6
mov rcx, rax
call fcn.1400657d4
mov qword [rdi], rcx
mov qword [rsi], rdx
lea rcx, [rsp + 0x60]
call fcn.140002004
nop
jmp 0x1400862dd
lea rcx, [rsp + 0x40]
call fcn.140046240
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140024990
add rsp, 0x290
pop rdi
pop rsi
pop rbx
ret