joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140121b2c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x140121b52
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140109210
jmp 0x140121bb9
cmp byte [0x1403b1f30], 0
jne 0x140121b96
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140121b86
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1403b1f28], rax
jmp 0x140121b8d
mov rax, qword [0x1403b1f28]
mov byte [0x1403b1f30], 1
jmp 0x140121b9d
mov rax, qword [0x1403b1f28]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140121bb3
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x140121bb9
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140121ed0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rdx]
mov rbx, rdx
cmp dword [rcx - 0x10], 0
je 0x140121f02
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140121f02
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.1401055c8
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401ae308
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r13, rcx
test r8, r8
jne 0x1401ae339
call fcn.14010b1bc
mov rdi, qword [rax + 0x18]
mov r8, qword [0x1403b4f48]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x1401ae358
xor eax, eax
jmp 0x1401ae3a4
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1401ae354
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x1401ae399
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r12
mov rcx, r13
mov r8d, eax
call fcn.1401ae1cc
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x1401cd810
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1401cd821
xor eax, eax
jmp 0x1401cd84f
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1401cd9e4
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1401cd9f5
xor eax, eax
jmp 0x1401cda19
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1401cda20
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x1401cda62
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x1401cdb74
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x1401cdb9f
call fcn.140102ffc
int3
test rbx, rbx
jne 0x1401cdbaa
call fcn.140102ffc
int3
test r9, r9
jne 0x1401cdbb5
call fcn.140102ffc
int3
and qword [r8], 0
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], r9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401cdc38
cmp dword [rsp + 0x48], 3
jne 0x1401cdc38
test eax, eax
jne 0x1401cdc38
cmp dword [rdi], eax
je 0x1401cdc38
mov ecx, dword [rdi]
call fcn.1401026a0
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rbx], rax
mov rcx, qword [rbp + 8]
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401cdc2c
cmp dword [rsp + 0x48], 3
jne 0x1401cdc2c
test eax, eax
jne 0x1401cdc2c
mov eax, 1
jmp 0x1401cdc3a
mov rcx, qword [rbx]
call fcn.1401026ec
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1401cdd44
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x14021c3a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x14021c3c9
mov rdi, qword [rdx + 0x10]
jmp 0x14021c41a
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x14021c3ea
call fcn.14010bc7c
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x14021c404
call fcn.14010bc7c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x14021c41a
call fcn.14010bc7c
call fcn.14010b1bc
cmp qword [rax + 0x68], 0
je 0x14021c434
mov rdx, rdi
mov rcx, rbp
call fcn.14021ab28
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.14021c1e0
mov rcx, qword [rbp + 0xe8]
mov rsi, rax
test rcx, rcx
je 0x14021c45b
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xe8], 0
test rsi, rsi
je 0x14021c46a
mov rdi, rsi
mov qword [rbp + 0xe8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14024bdbc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14024bc2c

Function at 0x14024fcdb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140398250]
jne 0x14024567a
rol rcx, 0x10
test cx, 0xffff
jne 0x140245676
repz ret
ror rcx, 0x10
jmp 0x14024fc34
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1403b8780]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1403b8878]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14024fcb9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1403b8780]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14024fcdb
mov rax, qword [rsp + 0x88]
mov qword [0x1403b8878], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1403b8818], rax
mov rax, qword [0x1403b8878]
mov qword [0x1403b86f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1403b8800], rax
mov dword [0x1403b86e0], 0xc0000409
mov dword [0x1403b86e4], 1
mov rax, qword [0x140398250]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140398258]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1403b8778], eax
mov ecx, 1
call fcn.14025d608
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1402d9060]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1403b8778], 0
jne 0x14024fd62
mov ecx, 1
call fcn.14025d608
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14025d3c0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14024f784
xor ebx, ebx
cmp qword [0x1403b8fe8], rbx
mov rdi, rax
jne 0x14025d4d3
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14025d5aa
lea rdx, [0x1402d9770]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14025d5aa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1402d9760]
mov rcx, rsi
mov qword [0x1403b8fe8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1402d9748]
mov rcx, rsi
mov qword [0x1403b8ff0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1403b8ff8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1403b9008], rax
test rax, rax
je 0x14025d4ca
lea rdx, [0x1402d9710]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1403b9000], rax
jmp 0x14025d4da
mov rax, qword [0x1403b9000]
jmp 0x14025d4e1
mov rax, qword [0x1403b9000]
mov r11, qword [0x1403b9008]
cmp rax, rdi
je 0x14025d548
cmp r11, rdi
je 0x14025d548
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1403b9008]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14025d548
test rax, rax
je 0x14025d548
call rsi
test rax, rax
je 0x14025d542
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14025d542
test byte [rsp + 0x40], 1
jne 0x14025d548
bts ebp, 0x15
jmp 0x14025d588
mov rcx, qword [0x1403b8ff0]
cmp rcx, rdi
je 0x14025d588
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14025d588
call rax
mov rbx, rax
test rax, rax
je 0x14025d588
mov rcx, qword [0x1403b8ff8]
cmp rcx, rdi
je 0x14025d588
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14025d588
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1403b8fe8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14025d5aa
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14025d5ac
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140245660
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003854
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor r14d, r14d
mov sil, r14b
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x41
mov word [rbp - 0x80], r14w
lea rax, [0x14008a770]
mov qword [rsp + 0x68], rax
lea rax, [0x14008a680]
mov qword [rsp + 0x60], rax
mov dword [rbp + 8], r14d
mov qword [rbp + 0x10], r14
mov qword [rsp + 0x20], r14
mov r9d, 0x2001f
lea r8, str.SOFTWAREMicrosoftWindows_SearchCrawlScopeManagerWindows
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x60]
call fcn.14000fab0
test eax, eax
js 0x140003a12
mov eax, r14d
mov dword [rsp + 0x30], eax
lea edi, [r14 + 6]
lea r15d, [r14 + 4]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140033474
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
mov ecx, eax
mov eax, dword [rsp + 0x30]
cmp ecx, 0x7a
jne 0x140003a12
mov ecx, eax
lea rdx, [0x140095c74]
call fcn.14002ce0c
mov rbx, rax
test rax, rax
je 0x140003a01
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140003965
lea r9, [rsp + 0x30]
mov r8, rax
mov edx, r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
mov edi, eax
test edi, edi
jg 0x14003347b
js 0x140003a01
mov qword [rsp + 0x40], r14
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x34]
mov rcx, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x14003348b
cmp dword [rsp + 0x34], r14d
je 0x140003a01
mov dword [rsp + 0x38], 0x44
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x20]
xor edx, edx
lea ecx, [rdx + 0x1a]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
test eax, eax
je 0x14003349d
mov edi, r14d
mov r15d, 1
lea r8, [rsp + 0x48]
mov edx, edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
test eax, eax
je 0x140003a01
mov rdx, qword [rsp + 0x48]
add rdx, 8
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
test eax, eax
jne 0x140003a48
add edi, r15d
test sil, sil
je 0x1400039cc
mov rcx, rbx
mov rax, qword [0x14008d258]
call qword [case.0x140002c98.0]
nop
lea rcx, [rsp + 0x60]
call fcn.140011e14
mov al, sil
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14002c960
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 4]
and ecx, 0xf003f
movzx esi, sil
cmp ecx, 0xf003f
cmove esi, r15d
jmp 0x1400039f9
mov ecx, edi
jmp 0x140003926
movzx edi, di
or edi, 0x80070000
test edi, edi
jmp 0x14000396d
call fcn.140019904
test eax, eax
js 0x140003a01
jmp 0x140003998
call fcn.140019904
test eax, eax
js 0x140003a01
jmp 0x1400039c3
Function at 0x140004378
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
mov r9d, 0x7cf
lea r12, [0x1400c62b0]
mov r8, rax
mov rcx, r12
lea r13d, [r9 + 1]
mov edx, r13d
call fcn.1400189f4
xor r15d, r15d
test eax, eax
js 0x14000458a
mov rbx, r12
mov dword [rdi], r15d
lea edx, [r15 + 0x22]
cmp word [rbx], r15w
je 0x140004451
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jae 0x140004400
movzx ecx, word [rbx]
test cx, cx
je 0x1400043fb
call qword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
jne 0x14000456f
mov edx, 0x22
mov rax, rbx
sub rax, r12
and rax, 0xfffffffffffffffe
cmp rax, 0xfa0
je 0x140004451
movzx ecx, word [rbx]
test cx, cx
je 0x140004451
cmp cx, dx
je 0x14003398a
call qword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
jne 0x14000443c
cmp word [rbx], r15w
je 0x14000443c
add rbx, 2
movzx ecx, word [rbx]
jmp 0x140004423
inc dword [rdi]
mov rcx, rbx
sub rcx, r12
mov edx, 0x22
sar rcx, 1
cmp rcx, r13
jb 0x1400043d1
cmp dword [rdi], r15d
je 0x14000458a
movsxd rcx, dword [rdi]
mov eax, 8
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
mov rax, qword [0x14008d250]
call qword [case.0x140002c98.0]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14000458a
mov rbx, r12
mov ebp, r15d
mov r14, rax
mov esi, 0x22
cmp word [rbx], r15w
je 0x14000454d
cmp ebp, dword [rdi]
jge 0x14000454d
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jae 0x1400044d2
movzx ecx, word [rbx]
test cx, cx
je 0x1400044d2
call qword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
jne 0x1400339ac
mov rcx, rbx
sub rcx, r12
sar rcx, 1
cmp rcx, r13
je 0x14000454d
cmp word [rbx], r15w
je 0x14000454d
cmp word [rbx], si
lea rax, [rbx + 2]
cmovne rax, rbx
inc ebp
mov qword [r14], rax
add r14, 8
cmp word [rbx], si
je 0x1400339b5
cmp rcx, r13
jae 0x14000452d
movzx ecx, word [rbx]
call qword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
jne 0x14000452d
cmp word [rbx], r15w
je 0x14000453b
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140004508
cmp word [rbx], r15w
je 0x14000453b
mov word [rbx], r15w
add rbx, 2
mov rcx, rbx
sub rcx, r12
sar rcx, 1
cmp rcx, r13
jb 0x14000449c
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x1400043e5
jmp 0x1400043fb
xor eax, eax
jmp 0x140004552
lea rcx, [rbx + 2]
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbx, rax
test rax, rax
je 0x1400339a5
add rbx, 2
jmp 0x14000443c
inc dword [rdi]
jmp 0x140004451
add rbx, 2
jmp 0x1400044ae
mov edx, esi
lea rcx, [rbx + 2]
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbx, rax
test rax, rax
je 0x14000454d
jmp 0x14000452d
Function at 0x14000461c
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x48
mov dword [rcx], 3
lea rax, [rbp - 0x10]
mov dword [rdx], 0x65
mov rdi, rdx
mov rsi, rcx
mov byte [rbp + 0x30], 0
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov qword [rsp + 0x20], rax
mov r9d, 1
mov rcx, 0xffffffff80000002
call fcn.14000b3e8
mov ebx, eax
test eax, eax
jg 0x1400339ec
test ebx, ebx
js 0x1400339fa
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x18]
and dword [rbp + 0x38], 0
lea r9, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x140093d48]
lea rax, [rbp + 0x38]
mov dword [rbp - 0x18], 4
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x40], 4
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
test eax, eax
jg 0x140033a18
js 0x140004725
cmp dword [rbp + 0x38], 1
jne 0x140004725
and dword [rsi], 0
lea r8, [rbp + 0x28]
and dword [rdi], 0
lea rdx, [rbp + 0x30]
mov byte [rbp + 0x28], 0
call fcn.1400051a0
test eax, eax
js 0x140004725
cmp byte [rbp + 0x28], 0
je 0x140033a66
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x18]
and dword [rbp + 0x38], 0
lea r9, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, str.RebuildIndex
lea rax, [rbp + 0x38]
mov dword [rbp + 0x40], 4
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x18], 4
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
test eax, eax
je 0x140033a27
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp byte [rbp + 0x30], 0
jne 0x140004740
mov eax, ebx
add rsp, 0x48
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140055bfc
jmp 0x140004735
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000466a
mov rcx, qword [rbp + 0x20]
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov r9d, ebx
mov edx, 0x118
call fcn.14002af2c
nop
jmp 0x140004735
movzx eax, ax
or eax, 0x80070000
test eax, eax
jmp 0x1400046b5
cmp dword [rbp + 0x40], 4
jne 0x140033a4f
mov edx, dword [rbp + 0x38]
test edx, edx
je 0x140033a4f
lea eax, [rdx - 1]
mov dword [rsi], 1
cmp eax, 8
mov ecx, 0x68
cmovbe ecx, edx
mov dword [rdi], ecx
jmp 0x140004725
mov rcx, qword [rbp - 0x10]
lea rdx, str.RebuildIndex
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop
jmp 0x140004725
mov dword [rsi], 1
mov dword [rdi], 0x64
jmp 0x140004725
Function at 0x140004750
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
lea rax, [rsp + 0x68]
mov r9d, 0xf003f
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call fcn.14000b3e8
xor edi, edi
mov ebx, eax
test eax, eax
jg 0x140033a78
test ebx, ebx
js 0x140004816
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov eax, 4
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x60], eax
lea r8, [0x140093d48]
mov dword [rsp + 0x58], eax
xor edx, edx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
mov ebx, eax
test eax, eax
jg 0x140033a86
test ebx, ebx
js 0x14000480b
cmp dword [rsp + 0x50], 1
jne 0x14000480b
mov rcx, qword [rsp + 0x68]
lea rdx, str.PreviousSettings
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHDeleteKeyW]
mov ebx, eax
test eax, eax
jle 0x140004802
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x80070002
cmove ebx, edi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140004786
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1400047d6
Function at 0x1400096b8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x480
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r8d, 0x105
lea rax, [rsp + 0x50]
mov dword [rsp + 0x38], r8d
lea rdx, [rsp + 0x260]
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
je 0x14000975b
lea rdx, [0x140094190]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_wcscmp
mov ecx, dword [rbx + 0x30]
lea r8, [rsp + 0x260]
test eax, eax
lea rdx, [rsp + 0x50]
setne al
mov byte [rbx + 0x34], al
call fcn.140009770
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14002c960
add rsp, 0x480
pop rbx
ret
call fcn.140019904
test eax, eax
jns 0x140009714
mov byte [rbx + 0x34], 0
jmp 0x140009742

Function at 0x140009870
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [0x14009fe78]
mov rbx, rcx
mov dword [rsp + 0x5c], eax
xor edi, edi
movzx eax, word [0x14009fe7c]
xor r9d, r9d
mov word [rsp + 0x60], ax
xor r8d, r8d
mov rax, qword [rcx]
mov word [rsp + 0x5c], dx
lea rdx, [r11 - 0x1c]
mov qword [r11 - 0x28], rdi
mov rcx, qword [rax]
mov rax, qword [rbx + 8]
mov qword [r11 - 0x38], rax
lea rax, [r11 - 0x28]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x140009973
mov rcx, qword [rsp + 0x50]
lea r9d, [rdi + 4]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DriveType
mov dword [rsp + 0x58], 3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140094190]
mov rcx, qword [rcx]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140009973
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x14000993f
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.VolumeLabel
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140009983
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14002c960
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret