joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400593a8
Capabilities:
Get geographical location

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xb8
mov rax, qword [0x140387a48]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov al, byte [rcx + 0xdc]
mov rbx, r8
mov r8, rdx
mov dword [rsp + 0x28], r9d
neg al
mov qword [rsp + 0x20], rbx
mov rsi, rcx
sbb edx, edx
xor r9d, r9d
not edx
xor ecx, ecx
and edx, 2
call qword [sym.imp.api_ms_win_core_datetime_l1_1_1.dll_GetTimeFormatEx]
nop dword [rax + rax]
xor ebp, ebp
cmp byte [rsp + 0x100], bpl
je 0x1400594d5
xor edx, edx
lea r8d, [rbp + 0x5c]
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rcx, qword [rsi + 0x30]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9d, [rbp + 1]
xor edx, edx
mov dword [rsp + 0x20], reloc.SHCORE.dll_Ordinal_210
lea r8d, [rbp + 5]
mov dil, bpl
call qword [sym.imp.UxTheme.dll_GetThemeFont]
nop dword [rax + rax]
test eax, eax
js 0x14005946a
lea rdx, [0x14030d698]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
sete dil
mov r9d, 6
lea r8, [rsp + 0x90]
xor ecx, ecx
lea edx, [r9 + 0x66]
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoEx]
nop dword [rax + rax]
test eax, eax
jle 0x1400594d5
lea rdx, str.Latn_
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x1400594d5
test dil, dil
je 0x1400594d5
movzx eax, word [rbx]
test ax, ax
je 0x1400594d5
mov rdx, rbp
mov rcx, rbx
cmp ax, 0x3a
je 0x1400594f2
inc rdx
lea rcx, [rbx + rdx*2]
movzx eax, word [rcx]
test ax, ax
jne 0x1400594c0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400a15a0
add rsp, 0xb8
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0x2236
mov word [rcx], ax
jmp 0x1400594c6
Function at 0x14006149c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, qword [rsp + 0x78]
xor ebx, ebx
mov dword [r9], 2
mov rsi, r9
mov ebp, r8d
test rdi, rdi
je 0x1400614cf
mov dword [rdi], ebx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x30], rax
mov r8, rdx
lea rax, [rsp + 0x78]
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x28], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x1401807c2
mov eax, dword [rsp + 0x78]
cmp eax, ebp
ja 0x140061525
mov dword [rsi], ebx
test rdi, rdi
je 0x14006152c
mov dword [rdi], eax
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
cmp eax, 2
jne 0x1401807d2
mov dword [rsi], 1
jmp 0x14006152c
test eax, eax
jg 0x1401807dd
mov ebx, eax
jmp 0x14006152c
movzx ebx, ax
or ebx, 0xc0070000
jmp 0x14006152c

Function at 0x14006174c
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140387a48]
xor rax, rsp
mov qword [rsp + 0x80], rax
and dword [rsp + 0x20], 0
lea r8, [rsp + 0x28]
mov edx, 1
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_DuplicateToken]
nop dword [rax + rax]
test eax, eax
je 0x1400617d7
xor edx, edx
mov dword [rsp + 0x24], 0x44
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x30]
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 0x1400617c6
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400a15a0
add rsp, 0x98
ret
Function at 0x140061928
Capabilities:
Persist via run registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
lea rdx, [rsp + 0x40]
xor ebx, ebx
call fcn.14006154c
test eax, eax
js 0x140061a10
lea esi, [rbx + 1]
cmp dword [rsp + 0x40], esi
ja 0x140061a10
mov ecx, 0x40000048
call qword [sym.imp.SHELL32.dll_SHRestricted]
nop dword [rax + rax]
mov r8d, esi
mov edi, eax
call fcn.140061a30
test eax, eax
jne 0x140061a23
test edi, edi
jne 0x1400619f0
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400619f0
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], rbx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x1400619db
cmp dword [rsp + 0x40], ebx
cmova ebx, esi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140061a10
xor r8d, r8d
call fcn.140061a30
test eax, eax
jne 0x140061a23
test edi, edi
jne 0x140061a10
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
call fcn.140061874
test eax, eax
jne 0x140061a23
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ebx, esi
jmp 0x140061a10

Function at 0x140061a30
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x60
lea rax, [rsp + 0x78]
xor ebx, ebx
neg r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
mov rcx, 0xffffffff80000002
sbb r9d, r9d
xor r8d, r8d
and r9d, 0xfffffe00
add r9d, 0x209
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x1401808e8
mov eax, ebx
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x14018093f
cmp dword [rsp + 0x80], ebx
setne bl
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x140061a7f
Function at 0x140061d28
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov dword [rsp + 0x50], 4
mov ebx, r9d
mov rax, rdx
test rdx, rdx
jne 0x140180b62
mov eax, dword [rsp + 0x70]
cmp ebx, eax
cmovb eax, ebx
add rsp, 0x40
pop rbx
ret
lea rcx, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, rax
and qword [rsp + 0x20], 0
lea r9d, [rdx + 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140061d49
mov ebx, dword [rsp + 0x58]
jmp 0x140061d49
Function at 0x140067930
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140387a48]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14d, edx
mov rsi, rcx
xor edi, edi
mov qword [rbp - 0x30], rdi
xor r9d, r9d
lea r8, str.PastIconsStream
lea rdx, str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionTrayNotify
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_shcore_stream_l1_1_0.dll_SHOpenRegStream2W]
nop dword [rax + rax]
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140034784
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x140067a15
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x10], eax
lea r8d, [rdi + 0x14]
lea rdx, [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_shcore_stream_l1_1_0.dll_IStream_Read]
nop dword [rax + rax]
test eax, eax
js 0x140067a15
cmp dword [rbp - 0x20], 0x14
jne 0x140067a15
mov ecx, dword [rbp - 0x1c]
lea eax, [rcx - 4]
test eax, 0xfffffffc
jne 0x140067a15
cmp ecx, 6
je 0x140067a15
cmp dword [rbp - 0x18], r14d
jne 0x140067a15
cmp dword [rbp - 0x14], edi
jbe 0x140067a15
mov dword [rbp - 0x24], edi
mov eax, dword [rbp - 0x10]
mov dword [rbp - 0x28], eax
mov rax, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp - 0x28]
mov rcx, rbx
mov rax, qword [rax + 0x28]
call qword [case.0x14006b68f.0]
test eax, eax
jne 0x140067a15
mov rcx, rbx
call fcn.14006777c
mov qword [rsi + 0x18], rax
cmp qword [rsi + 0x18], rdi
setne dil
lea rcx, [rbp - 0x30]
call fcn.14000a6a4
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400a15a0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140067af4
Capabilities:
Query or enumerate registry value

Disassembly:
test rdx, rdx
je 0x140067b44
mov r11, rsp
mov qword [r11 + 0x18], r8
push rbx
sub rsp, 0x30
lea rcx, [r11 + 0x18]
mov dword [rsp + 0x50], 8
mov rax, rdx
mov qword [r11 - 0x10], rcx
mov rbx, r9
lea rdx, str.UserStartTime
mov rcx, rax
mov qword [r11 - 0x18], rbx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140067b46
add rsp, 0x30
pop rbx
ret
and qword [rbx], 0
jmp 0x140067b3f
Function at 0x140067b54
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbp, r9
mov r14, r8
mov esi, edx
mov rdi, rcx
mov rbx, 0xffffffff80000001
cmp edx, 1
jne 0x140067bb7
lea rax, [rcx + 0x30]
mov dword [rsp + 0x30], 8
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], SafeArrayDestroy
lea r9d, [rdx + 0x47]
lea r8, str.UserStartTime
lea rdx, str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionTrayNotify
mov rcx, rbx
call qword [sym.imp.SHCORE.dll_Ordinal_121]
nop dword [rax + rax]
and qword [rsp + 0x60], 0
mov r9d, esi
lea r8, str.IconStreams
lea rdx, str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionTrayNotify
mov rcx, rbx
call qword [sym.imp.api_ms_win_shcore_stream_l1_1_0.dll_SHOpenRegStream2W]
nop dword [rax + rax]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140034784
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x140067c29
mov rcx, rbx
call qword [sym.imp.api_ms_win_shcore_stream_l1_1_0.dll_IStream_Reset]
nop dword [rax + rax]
test eax, eax
js 0x140067c29
mov r9, rbp
mov r8, r14
mov rdx, rbx
mov rcx, rdi
test esi, esi
jne 0x140067c22
call fcn.1400340d8
test eax, eax
jns 0x140067c34
jmp 0x140067c2d
call fcn.14009e970
jmp 0x140067c34
test esi, esi
jne 0x140067c34
mov dword [rdi + 0x38], 1
cmp dword [rdi + 0x38], 0
je 0x140067c55
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140067c4f
mov rcx, rdi
call fcn.1401c813c
and dword [rdi + 0x38], 0
jmp 0x140067c9d
xor r8d, r8d
mov dl, 1
lea rcx, [0x14038ae60]
call fcn.1400ad1a0
test esi, esi
jne 0x140067c9d
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140067c9d
mov rcx, rdi
call fcn.1400ad230
mov rcx, qword [rsp + 0x58]
test eax, eax
jns 0x140067c9d
mov r9d, eax
lea r8, str.pcshell_shellexplorer_trayreg.cpp
mov edx, 0xeb
call fcn.14009cb2c
nop
lea rcx, [rsp + 0x60]
call fcn.14000a6a4
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14006a850
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 0xc8]
xor edi, edi
and eax, 3
mov rbx, rcx
cmp al, 3
je 0x1401826fe
mov rcx, rbx
call fcn.14006a768
mov rcx, rbx
call fcn.14001f0f8
mov rcx, qword [rbx + 0xd0]
test rcx, rcx
je 0x14006a891
call fcn.14006a7d4
xor edx, edx
mov qword [rbx + 0xd0], rdi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rdi
call fcn.14006e14c
lea rax, [rsp + 0x40]
mov r9d, 0x1000b
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionOOBETelemetryCorrelation
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140182766
mov rcx, qword [rsp + 0x40]
lea rdx, [0x14030e350]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x14006a90c
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14006a900
call fcn.14006ec30
test al, al
jne 0x14006a870
cmp byte [rbx + 0xdb], dil
jne 0x14006a870
test dword [rbx + 0xc8], 0x1208
jne 0x14006a870
lea r9, [rsp + 0x40]
mov rcx, 0xffffffff80000002
lea r8, str.FSIASleepTimeInMs
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorer
call fcn.14002c200
mov ecx, dword [rsp + 0x40]
test eax, eax
cmovs ecx, edi
mov dword [rsp + 0x40], ecx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
nop dword [rax + rax]
nop
jmp 0x14006a870
mov rcx, qword [rsp + 0x38]
lea r8, str.internalShellinc_firstruntelemetryhelper.h
mov r9d, eax
mov edx, 0x26
call fcn.140195f4c
nop
jmp 0x14006a8f6

Function at 0x14006b5d0
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea r8, [rsp + 0x38]
mov edx, 0x20000070
lea r9d, [rbx + 2]
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
nop dword [rax + rax]
test eax, eax
jle 0x14006b5fe
cmp dword [rsp + 0x38], 1
sete bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14006c094
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
xor sil, sil
and qword [rbp + 0x20], 0
mov rdi, qword [rbp + 0x20]
test rdi, rdi
jne 0x140182c3c
and qword [rbp + 0x20], 0
lea rdx, [rbp + 0x20]
call fcn.1400209a4
mov rcx, qword [rbp + 0x18]
test eax, eax
js 0x140182c6d
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov r9, qword [rbp + 0x20]
lea r8, str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
lea rdx, [0x14030e4a0]
lea rcx, [rbp - 0x20]
call fcn.14006e680
mov rcx, qword [rbp + 0x18]
test eax, eax
js 0x140182c87
and qword [rbp + 0x28], 0
xor edx, edx
lea rcx, [rbp + 0x28]
call fcn.14006e14c
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp - 0x20]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jg 0x140182ca1
mov rcx, qword [rbp + 0x18]
test eax, eax
js 0x140182cae
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Migrated
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
sete sil
mov rcx, qword [rbp + 0x28]
test rcx, rcx
jne 0x14006c1c0
lea rcx, [rbp - 0x20]
call fcn.140092514
nop
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14006c1ac
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov al, sil
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x14006c18d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
nop
jmp 0x14006c0b8
mov r9d, eax
lea r8, str.shellliblogontaskslogontasks.cpp
mov edx, 0x2a6
call fcn.14009cb2c
nop
jmp 0x14006c197
mov r9d, eax
lea r8, str.shellliblogontaskslogontasks.cpp
mov edx, 0x2a9
call fcn.14009cb2c
nop
jmp 0x14006c18d
movzx eax, ax
or eax, 0x80070000
jmp 0x14006c149
mov r9d, eax
lea r8, str.shellliblogontaskslogontasks.cpp
mov edx, 0x2ac
call fcn.14009cb2c
nop
jmp 0x14006c184
Function at 0x14006cdb8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x140387a48]
xor rax, rsp
mov qword [rbp - 0x20], rax
and qword [rbp - 0x40], 0
mov rbx, rcx
xorps xmm6, xmm6
lea rcx, [rbp - 0x40]
xor edx, edx
movdqa xmmword [rbp - 0x30], xmm6
call fcn.14006e14c
lea rax, [rbp - 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionOOBETelemetryCorrelation
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
js 0x14006ceb7
mov rcx, qword [rbp - 0x40]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x34]
lea rax, [rbp - 0x30]
mov dword [rbp - 0x34], 3
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14030e350]
mov dword [rbp - 0x38], reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jle 0x14006ce73
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x14006ceb7
movaps xmmword [rbp - 0x30], xmm6
mov rcx, qword [rbp - 0x40]
movdqu xmmword [rbx], xmm6
test rcx, rcx
jne 0x14006cea9
mov rax, rbx
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.1400a15a0
mov rbx, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbp
ret
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14006ce86
movaps xmm6, xmmword [rbp - 0x30]
jmp 0x14006ce79

Function at 0x14006d758
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x48
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov rbx, rcx
and qword [rbp + 0x30], 0
xor edx, edx
lea rcx, [rbp + 0x30]
call fcn.14006e14c
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14006d7eb
and dword [rbp + 0x18], eax
mov dword [rbp + 0x20], 4
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x28]
xor r8d, r8d
lea rdx, str.Version
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140182f8a
xor ebx, ebx
mov rcx, qword [rbp + 0x30]
test rcx, rcx
jne 0x14006d800
mov eax, ebx
add rsp, 0x48
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x14006d7f6
cmp dword [rbp + 0x28], 4
jne 0x14006d7eb
mov ebx, dword [rbp + 0x18]
jmp 0x14006d7ed
Function at 0x14006eeec
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rsi, r8
mov qword [r11 + 8], rbx
mov rdi, rdx
test rcx, rcx
je 0x140183400
test rdx, rdx
je 0x140183418
lea rax, [r11 + 8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14006ef89
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14006ef89
test rsi, rsi
je 0x14006efaa
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
mov esi, ebx
test eax, eax
sete sil
test rdi, rdi
je 0x14006ef87
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, esi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov esi, 1
jmp 0x14006ef76
mov ecx, SHFindFiles
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14006ef99
mov qword [rsp + 0x40], rcx
jmp 0x14006ef45

Function at 0x14006f0d8
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x38
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathGetArgsW]
nop dword [rax + rax]
or edx, 0xffffffff
mov dword [rsp + 0x20], 1
mov r9d, edx
lea r8, str._LOADSAVEDWINDOWS
mov rcx, rax
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringOrdinal]
nop dword [rax + rax]
cmp eax, 2
sete al
add rsp, 0x38
ret
Function at 0x14006f130
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x140387a48]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r15, rcx
and qword [rsp + 0x48], 0
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.14006e14c
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionTrayNotifyToastAppIdentities
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
nop
test eax, eax
je 0x1401835ac
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x14006f1db
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400a15a0
nop
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x14006f1ae
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xor esi, esi
mov qword [rsp + 0x60], rsi
xor edi, edi
mov r14d, 0x100
mov rbx, qword [rsp + 0x58]
mov dword [rsp + 0x40], r14d
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 + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
nop
test eax, eax
jne 0x140183654
cmp rsi, rbx
je 0x14018362b
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.1401bdb80
nop
add rbx, 0x20
mov qword [rsp + 0x58], rbx
jmp 0x14018364d
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1401bd828
nop
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
inc edi
jmp 0x1401835c9
mov rax, rbx
mov r14, qword [rsp + 0x50]
sub rax, r14
sar rax, 5
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1401bd654
nop
mov rdi, r14
cmp rdi, rbx
je 0x1401836b7
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14018368a
mov rcx, qword [rdi]
call fcn.140073bc4
nop
test eax, eax
jns 0x1401836b1
mov rcx, qword [rsp + 0x298]
mov r9d, eax
lea r8, [0x14030a3a0]
mov edx, reloc.SHELL32.dll_DAD_DragLeave
call fcn.14009cb2c
nop
add rdi, 0x20
jmp 0x140183678
test r14, r14
je 0x14006f1a4
mov rdx, rbx
mov rcx, r14
call fcn.1401bd7ec
nop
sub rsi, r14
and rsi, 0xffffffffffffffe0
mov rdx, rsi
mov rcx, r14
call fcn.140096bd4
nop
jmp 0x14006f1a4