joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006b7d4
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], r12
push rbp
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r9d, r9d
lea rax, [rbp - 0x15]
mov qword [r11 - 0x80], rax
mov r12, rcx
mov rcx, qword [rcx]
lea rax, [rbp - 0x19]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_service_core_l1_1_1.dll_EnumDependentServicesW]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x14006b974
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x14006b974
mov ecx, dword [rbp - 0x19]
lea rdx, [0x1400aa420]
call fcn.14003727c
mov rbx, rax
test rax, rax
je 0x14006b974
mov r9d, dword [rbp - 0x19]
lea rax, [rbp - 0x15]
mov rcx, qword [r12]
lea edx, [rsi + 1]
mov qword [rsp + 0x28], rax
mov r8, rbx
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_service_core_l1_1_1.dll_EnumDependentServicesW]
nop dword [rax + rax]
test eax, eax
je 0x14006b96c
mov r14d, esi
cmp dword [rbp - 0x15], esi
jbe 0x14006b96c
mov eax, r14d
lea rcx, [rbp - 0x11]
mov r8d, 0x24
lea rdx, [rax + rax*2]
add rdx, rdx
mov rdx, qword [rbx + rdx*8]
call fcn.140030f24
cmp qword [rbp - 0x11], rsi
je 0x14006b956
mov rcx, qword [rbp - 0x11]
lea r8, [rbp - 9]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], eax
lea edx, [rax + 1]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
test eax, eax
je 0x14006b956
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
nop dword [rax + rax]
lea r15, [rax + 0x7530]
cmp dword [rbp - 5], 1
je 0x14006b956
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
nop dword [rax + rax]
cmp rax, r15
jae 0x14006b956
mov ecx, dword [rbp + 0xf]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x11]
lea rdx, [rbp - 9]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x14006b90f
call fcn.14001d618
test eax, eax
jns 0x14006b90f
lea rcx, [rbp - 0x11]
call fcn.140030ef4
inc r14d
cmp r14d, dword [rbp - 0x15]
jb 0x14006b8aa
mov rcx, rbx
call fcn.1400372ac
mov rcx, qword [r12]
lea r8, [rbp + 0x17]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rax
mov dword [rbp + 0x2f], eax
lea edx, [rax + 1]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
test eax, eax
jne 0x14006b9a6
call fcn.14001d618
mov esi, eax
mov eax, esi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140036b90
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14006b9d8
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r9d, dword [rcx + 0x14]
lea r8, str._08x
mov rdi, rdx
lea rcx, [rsp + 0x38]
xor ebx, ebx
lea edx, [rbx + 0x10]
call fcn.14003046c
test eax, eax
js 0x14006ba6b
lea rax, [rsp + 0x30]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x20], 2
call fcn.140024fd4
test eax, eax
jne 0x14006ba6b
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov edx, 1
test eax, eax
movzx ebx, bl
cmove ebx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140036b90
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14006ba90
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rbx, rcx
call fcn.1400311f0
test al, al
je 0x14006bc6e
mov eax, dword [rcx + 0x14]
lea rdx, str.SoftwareMicrosoftWindows_SearchTracingEventThrottleLastReported
and dword [rsp + 0x58], 0
lea rcx, [rsp + 0x58]
and qword [rsp + 0x5c], 0
and dword [rsp + 0x64], 0
and dword [rsp + 0x68], 0
mov dword [rsp + 0x6c], eax
call fcn.14002fe40
test al, al
je 0x14006bb17
mov eax, dword [rbx]
cmp dword [rsp + 0x58], eax
jne 0x14006bb17
mov rax, qword [rbx + 4]
cmp qword [rsp + 0x5c], rax
jne 0x14006bb17
mov eax, dword [rbx + 0x10]
cmp dword [rsp + 0x68], eax
je 0x14006bc6e
mov r9d, dword [rbx + 0x14]
lea r8, [0x1400b3200]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rbp - 0x60]
call fcn.14003046c
test eax, eax
js 0x14006bc6e
mov r9d, dword [rbx + 0x10]
lea r8, [0x1400aa378]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rbp - 0x40]
call fcn.14003046c
test eax, eax
js 0x14006bc6e
imul rax, qword [rbx + 4], 0x2710
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x50]
shr rax, 0x20
mov dword [rsp + 0x54], eax
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_FileTimeToSystemTime]
nop dword [rax + rax]
test eax, eax
je 0x14006bc6e
lea r8, [rsp + 0x58]
xor ecx, ecx
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_SystemTimeToTzSpecificLocalTime]
nop dword [rax + rax]
test eax, eax
je 0x14006bc6e
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
xor edx, edx
mov ecx, 0x800
call qword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetTimeFormatW]
nop dword [rax + rax]
test eax, eax
jle 0x14006bc6e
lea rax, [0x1400aa710]
xor ecx, ecx
mov qword [rbp - 0x80], rax
lea rdx, str.Windows_Search_Service
lea rax, [rbp - 0x60]
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x20]
mov qword [rbp - 0x68], rax
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_RegisterEventSourceW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14006bc6e
and qword [rsp + 0x40], 0
lea rax, [rbp - 0x80]
mov ecx, 4
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov r9d, 0x800003f7
mov word [rsp + 0x28], cx
and qword [rsp + 0x20], 0
lea edx, [rcx - 2]
lea r8d, [rcx - 3]
mov rcx, rbx
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_ReportEventW]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_DeregisterEventSource]
nop dword [rax + rax]
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140036b90
mov rbx, qword [rsp + 0x208]
add rsp, 0x1f0
pop rbp
ret
Function at 0x14006c440
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
lea r9, [rsp + 0x30]
mov r8, rdx
mov rdi, rcx
mov rdx, rcx
call fcn.140025578
test al, al
lea rdx, [rsp + 0x30]
mov rcx, rdi
cmove rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140036b90
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret

Function at 0x14006c4b8
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
lea r9, [rsp + 0x30]
mov r8, rdx
mov rdx, 0xffffffff80000002
call fcn.140025578
test al, al
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
cmove rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140036b90
add rsp, 0x250
pop rbx
ret

Function at 0x14006c6e8
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 [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
xor edx, edx
mov rcx, rdi
mov r8d, 0xd0
mov r14, r9
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor esi, esi
test r14, r14
je 0x14006c73c
mov word [r14], si
lea rcx, [rsp + 0x30]
call fcn.14006c9cc
mov ebx, eax
mov ebp, 0x1a
test eax, eax
js 0x14006c80b
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 esi, ebp
jae 0x14006c855
bt r13d, esi
jae 0x14006c7ff
movabs rax, 0x5c003a0020
lea r15d, [rsi + 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 0x14006c7ff
mov r8, qword [rsp + 0x38]
lea r9, [rsp + 0x50]
movzx edx, r12w
movzx ecx, r15w
call fcn.14006ca6c
mov ebx, eax
test eax, eax
js 0x14006c7ff
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14006c5cc
mov ebx, eax
cmp eax, 1
jne 0x14006c7e2
xor ebx, ebx
jmp 0x14006c7ff
test eax, eax
js 0x14006c7ff
mov eax, esi
lea rcx, [rsp + 0x50]
lea rdx, [rdi + rax*8]
call qword [sym.imp.SHCORE.dll_SHStrDupW]
nop dword [rax + rax]
mov ebx, eax
inc esi
test ebx, ebx
jns 0x14006c76a
xor esi, esi
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov qword [rdi], rsi
lea rdi, [rdi + 8]
sub rbp, 1
jne 0x14006c80b
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140036b90
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 0x14006c827
mov word [r14], r12w
jmp 0x14006c827
Function at 0x14006c868
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 0x14006c97c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x14006c97c
mov ecx, dword [rsp + 0x48]
lea eax, [rbp + 2]
mul rcx
lea r15, [rbp - 1]
lea rdx, [0x1400aa420]
cmovo rax, r15
mov rcx, rax
call fcn.14003727c
mov rsi, rax
test rax, rax
je 0x14006c975
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 0x14006c950
mov rdi, rsi
cmp word [rsi], bp
je 0x14006c96b
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 0x14006c947
mov rax, r15
inc rax
cmp word [rdi + rax*2], bp
jne 0x14006c92f
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], bp
jne 0x14006c919
jmp 0x14006c96b
movzx eax, word [rdi]
mov word [r14], ax
jmp 0x14006c96b
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 0x14006c96b
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rsi
call fcn.1400372ac
jmp 0x14006c997
mov ebx, 0x8007000e
jmp 0x14006c997
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 0x14006c997
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14006c9a7
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 0x14006c9cc
Capabilities:
Get common file path

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400d1548]
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 0x14006cace
mov r8, rsi
mov edx, 0x104
mov rcx, rdi
call fcn.140020a68
jmp 0x14006cb62
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 0x14006cb1e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14006cb1c
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x14006cb62
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 0x14006cb43
mov eax, 0x8000ffff
jmp 0x14006cb62
mov r8, rsi
mov edx, 0x104
mov rcx, rdi
call fcn.140020a68
test eax, eax
js 0x14006cb62
mov r8, r11
mov rcx, rdi
call fcn.14006cb8c
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140036b90
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret

Function at 0x14006f204
Capabilities:
Get geographical location

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

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x1400d3cc4]
test eax, eax
jne 0x14006f4b8
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 0x14006f423
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 [0x1400d3cc4], eax
sub ecx, 1
je 0x14006f494
cmp ecx, 1
jne 0x14006f4b8
cmp edx, 5
jne 0x14006f482
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14006f47b
sub eax, ecx
je 0x14006f461
cmp eax, ecx
je 0x14006f457
lea eax, [rdx + 0xf]
jmp 0x14006f4d6
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea ecx, [rdx - 0xf]
jmp 0x14006f469
mov edx, 8
lea ecx, [rdx - 6]
xor eax, eax
cmp word [rsp + 0x134], cx
cmovae eax, edx
or eax, 4
jmp 0x14006f4d6
mov eax, 4
jmp 0x14006f4d6
cmp edx, 4
ja 0x14006f4d1
mov ecx, 2
mov eax, ecx
mov dword [0x1400d3cc4], ecx
cmp edx, 4
jne 0x14006f4b8
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x14006f4ab
cmp ecx, 0xa
je 0x14006f4ab
cmp ecx, 0x5a
jne 0x14006f4b8
mov ecx, 1
mov eax, ecx
mov dword [0x1400d3cc4], ecx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140036b90
add rsp, 0x158
ret
mov eax, 0x20
mov dword [0x1400d3cc4], eax
jmp 0x14006f4b8

Function at 0x14006f558
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 0x14006f5d4
test r8, r8
je 0x14006f5d4
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 0x14006f5d4
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 0x14006f5cd
mov r8, rsi
mov word [rsi], bp
mov rdx, rdi
mov rcx, rbx
call fcn.14006f5f4
mov eax, 1
jmp 0x14006f5d6
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 0x14006f808
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
xor r9d, r9d
lea rdx, [0x1400ad260]
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 0x14006f837
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 0x140070c3c
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 0x140070db9
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 0x140070c9e
mov rdx, qword [rdx]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
add r10, r10
je 0x140070cce
movzx eax, byte [r8 + rdx]
inc r8
xor r9, rax
imul r9, rbx
cmp r8, r10
jb 0x140070cba
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.140070938
test bl, bl
jne 0x140070d17
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp + 0x50]
cmp rcx, rdi
jne 0x140070ce5
cmp r13, rsi
jne 0x140070dae
mov qword [r14 + r15*8], rcx
jmp 0x140070dae
cmp r13, rsi
mov r13, qword [rbp + 0x48]
jne 0x140070d27
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 0x140070dae
mov r15, qword [rbp + 0x40]
lea rdx, [rcx + 0x10]
cmp qword [rdx + 0x18], 8
mov r10, qword [rdx + 0x10]
jb 0x140070d4b
mov rdx, qword [rdx]
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
add r10, r10
je 0x140070d7f
movabs r13, 0x100000001b3
movzx eax, byte [r9 + rdx]
inc r9
xor r8, rax
imul r8, r13
cmp r9, r10
jb 0x140070d67
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.140070938
mov rcx, qword [rbp - 0x10]
test bl, bl
jne 0x140070dd5
cmp rcx, rdi
jne 0x140070d8e
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 0x140070d39
jmp 0x140070dae
Function at 0x14007e430
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x20
mov rdi, rdx
and qword [rbp + 0x30], 0
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 0x14007e476
mov rcx, qword [rbp + 0x18]
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_apiwsstoreregistrationendpoint.cxx
mov edx, 0x1da
call fcn.140028614
jmp 0x14007e569
xor edx, edx
lea rcx, [rbp + 0x30]
call fcn.14000fd7c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
lea r9, [rbp + 0x30]
mov edx, SafeArrayGetDim
lea r8d, [rdx - 0xb]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x14007e4d5
mov rcx, qword [rbp + 0x18]
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_apiwsstoreregistrationendpoint.cxx
mov edx, 0x1dd
call fcn.140052894
mov ebx, eax
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevertToSelf]
nop dword [rax + rax]
jmp 0x14007e569
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevertToSelf]
nop dword [rax + rax]
and qword [rbp + 0x38], 0
lea rdx, [rbp + 0x38]
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 0x14007e504
mov edx, 0x1e1
jmp 0x14007e525
lea r8, [rbp + 0x20]
mov rdx, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
jne 0x14007e539
mov edx, 0x1e4
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_apiwsstoreregistrationendpoint.cxx
mov rcx, qword [rbp + 0x18]
call fcn.140052894
mov ebx, eax
jmp 0x14007e560
cmp dword [rbp + 0x20], 0
jne 0x14007e55e
mov rcx, qword [rbp + 0x18]
mov ebx, 0x80070005
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_searchindexer_apiwsstoreregistrationendpoint.cxx
mov edx, 0x1e6
call fcn.140028614
jmp 0x14007e560
xor ebx, ebx
lea rcx, [rbp + 0x38]
call fcn.14006881c
lea rcx, [rbp + 0x30]
call fcn.14001d64c
mov eax, ebx
add rsp, 0x20
pop rdi
pop rbx
pop rbp
ret

Function at 0x14007e5ec
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400d1548]
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 0x14007e639
call fcn.14001d618
test eax, eax
js 0x14007e66e
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 0x14007e65f
call fcn.14001d618
test eax, eax
js 0x14007e66e
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.140036b90
add rsp, 0x90
pop rbx
ret