joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2ba388d90
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0xa8
movups xmmword [rsp + 0x60], xmm6
movups xmmword [rsp + 0x70], xmm7
movups xmmword [rsp + 0x80], xmm8
movups xmmword [rsp + 0x90], xmm9
movdqu xmm4, xmmword [rcx]
movdqu xmm6, xmmword [rcx + 0x10]
movdqu xmm1, xmmword [rcx + 0x20]
movdqu xmm3, xmmword [rcx + 0x30]
mov r9, rdx
movd xmm0, r8d
lea rdx, [rdx - 0x40]
mov qword [rsp], 0
mov qword [rsp + 8], 0
pxor xmm0, xmm4
mov qword [rsp + 0x10], 0
mov qword [rsp + 0x18], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
cmp rdx, 0x3f
jle 0x2ba389060
lea rdx, [r9 - 0x80]
movdqu xmm5, xmmword [0x2ba3d8d00]
lea rax, [rcx + 0x40]
mov r8, rdx
and r8, 0xffffffffffffffc0
lea r8, [rcx + r8 + 0x80]
nop word [rax + rax]
movdqu xmm9, xmm0
movdqu xmm7, xmm1
movdqu xmm4, xmm3
add rax, 0x40
movdqu xmm8, xmm6
pclmulqdq xmm6, xmm5, 0x11
pclmulqdq xmm9, xmm5, 0
movdqu xmm2, xmm6
pclmulqdq xmm0, xmm5, 0x11
movdqu xmm6, xmmword [rax - 0x40]
pclmulqdq xmm8, xmm5, 0
pxor xmm0, xmm9
pclmulqdq xmm7, xmm5, 0
pxor xmm2, xmm8
pxor xmm0, xmm6
movdqu xmm6, xmmword [rax - 0x30]
pclmulqdq xmm1, xmm5, 0x11
pclmulqdq xmm4, xmm5, 0
pxor xmm1, xmm7
pclmulqdq xmm3, xmm5, 0x11
movdqu xmm7, xmmword [rax - 0x20]
pxor xmm6, xmm2
movdqu xmm2, xmmword [rax - 0x10]
pxor xmm3, xmm4
pxor xmm1, xmm7
pxor xmm3, xmm2
cmp r8, rax
jne 0x2ba388e70
mov r8, rdx
shr r8, 6
lea rax, [r8 + 2]
shl r8, 6
shl rax, 6
sub rdx, r8
movdqu xmm4, xmmword [0x2ba3d8cf0]
movdqu xmm5, xmm0
movdqu xmm2, xmm0
pclmulqdq xmm5, xmm4, 0
pclmulqdq xmm2, xmm4, 0x11
pxor xmm2, xmm5
pxor xmm2, xmm6
movdqu xmm0, xmm2
pclmulqdq xmm2, xmm4, 0x11
pclmulqdq xmm0, xmm4, 0
pxor xmm2, xmm0
pxor xmm1, xmm2
movdqu xmm0, xmm1
pclmulqdq xmm1, xmm4, 0x11
pclmulqdq xmm0, xmm4, 0
pxor xmm0, xmm1
pxor xmm0, xmm3
cmp rdx, 0xf
jle 0x2ba388fd4
movdqu xmm1, xmm0
movdqu xmm7, xmmword [rcx + rax]
pclmulqdq xmm0, xmm4, 0x11
lea r8, [rdx - 0x10]
pclmulqdq xmm1, xmm4, 0
pxor xmm0, xmm1
pxor xmm0, xmm7
cmp r8, 0xf
jle 0x2ba388fd4
movdqu xmm1, xmm0
movdqu xmm7, xmmword [rcx + rax + 0x10]
pclmulqdq xmm0, xmm4, 0x11
pclmulqdq xmm1, xmm4, 0
pxor xmm0, xmm1
pxor xmm0, xmm7
cmp rdx, 0x2f
jle 0x2ba388fd4
movdqu xmm1, xmm0
movdqu xmm2, xmmword [rcx + rax + 0x20]
pclmulqdq xmm0, xmm4, 0x11
pclmulqdq xmm1, xmm4, 0
pxor xmm0, xmm1
pxor xmm0, xmm2
movdqu xmm1, xmm0
psrldq xmm0, 8
movups xmm6, xmmword [rsp + 0x60]
movdqu xmm2, xmmword [0x2ba3d8d10]
pclmulqdq xmm1, xmm4, 0x10
movups xmm7, xmmword [rsp + 0x70]
movdqu xmm3, xmmword [0x2ba3d8d30]
movups xmm8, xmmword [rsp + 0x80]
pxor xmm0, xmm1
movups xmm9, xmmword [rsp + 0x90]
movdqu xmm1, xmm0
pand xmm0, xmm2
pclmulqdq xmm0, xmmword [0x2ba3d8d20], 0
psrldq xmm1, 4
pxor xmm1, xmm0
movdqu xmm0, xmm1
pand xmm0, xmm2
pclmulqdq xmm0, xmm3, 0x10
pand xmm0, xmm2
pclmulqdq xmm0, xmm3, 0
pxor xmm0, xmm1
pextrd eax, xmm0, 1
add rsp, 0xa8
ret
mov eax, 0x40
jmp 0x2ba388f11
Function at 0x2ba389070
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rbx
test rdx, rdx
lea r11, [rdx + 7]
mov r9, rcx
mov r10, rdx
cmovns r11, rdx
mov eax, r8d
lea rcx, [0x2ba3d8d40]
xor ebx, ebx
sar r11, 3
cmp rdx, 7
jle 0x2ba389160
nop dword [rax]
mov edx, dword [r9 + rbx*8 + 4]
xor eax, dword [r9 + rbx*8]
add rbx, 1
mov esi, edx
movzx r8d, dl
shr esi, 0x18
mov r8d, dword [rcx + r8*4 + 0xc00]
xor r8d, dword [rcx + rsi*4]
movzx esi, al
xor r8d, dword [rcx + rsi*4 + 0x1c00]
mov esi, eax
shr esi, 0x18
xor r8d, dword [rcx + rsi*4 + 0x1000]
movzx esi, dh
shr edx, 0x10
movzx edx, dl
xor r8d, dword [rcx + rsi*4 + 0x800]
xor r8d, dword [rcx + rdx*4 + 0x400]
movzx edx, ah
shr eax, 0x10
xor r8d, dword [rcx + rdx*4 + 0x1800]
movzx edx, al
mov eax, dword [rcx + rdx*4 + 0x1400]
xor eax, r8d
cmp r11, rbx
jg 0x2ba3890a0
shl r11, 3
mov edx, 8
cmp r10, 7
cmovle r11, rdx
cmp r10, r11
jle 0x2ba38915b
add r11, r9
lea rcx, [0x2ba3d8d40]
add r9, r10
nop word cs:[rax + rax]
movzx r8d, byte [r11]
add r11, 1
xor r8d, eax
shr eax, 8
movzx r8d, r8b
xor eax, dword [rcx + r8*4]
cmp r9, r11
jne 0x2ba389140
pop rbx
pop rsi
ret
xor r11d, r11d
jmp 0x2ba389124
Function at 0x2ba3ad7d0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.2ba3b78d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.2ba3b78d0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x2ba3ad840
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x2ba3f0094]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x2ba3ad9f0
mov rax, qword [0x2ba3f0098]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x2ba3ad88c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x2ba3ad917
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x2ba3ad870
mov rcx, r12
call fcn.2ba3ae0e0
mov rbp, rax
test rax, rax
je 0x2ba3ada4d
mov rax, qword [0x2ba3f0098]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.2ba3ae210
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x2ba3f0098]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2ba3ada32
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2ba3ad910
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2ba3ad9a0
add dword [0x2ba3f0094], 1
cmp ebx, 8
jae 0x2ba3ad948
test bl, 4
jne 0x2ba3ada00
test ebx, ebx
je 0x2ba3ad939
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x2ba3ada20
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x2ba3ad939
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x2ba3ad97a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x2ba3f0098]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2ba3ad910
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2ba3ad7d0
xor edi, edi
jmp 0x2ba3ad897
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x2ba3ad939
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x2ba3ad939
mov rax, qword [0x2ba3f0098]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.2ba3ad7d0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.2ba3ad7d0
nop
nop dword [rax]
Function at 0x2ba3add50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x2ba3f00c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2ba3f00a0]
test rbx, rbx
je 0x2ba3adda4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x2ba3add9b
test r12, r12
je 0x2ba3add9b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2ba3add80
lea rcx, [0x2ba3f00c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x2ba3ae0e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x2ba3e1d50]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x2ba3ae159
mov rcx, r10
call fcn.2ba3adfb0
test eax, eax
je 0x2ba3ae159
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x2ba3ae156
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x2ba3ae14d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x2ba3ae159
add r8, 0x28
cmp r8, r9
jne 0x2ba3ae138
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140002370
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400023ba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400023ba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400023ba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400023ba
cmp dword [rcx + 0x84], 0xe
jbe 0x1400023ba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400023bc
xor al, al
add rsp, 0x28
ret

Function at 0x1400086f4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400084f0
Function at 0x14000d934
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000d964
xor eax, eax
jmp 0x14000da27
mov rbp, rbx
cmp word [rax], si
je 0x14000d989
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d970
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d96c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000d854
movsxd r14, eax
test eax, eax
jne 0x14000d9c7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d95d
mov rcx, r14
call fcn.14000a0c0
mov rdi, rax
test rax, rax
jne 0x14000d9e0
xor ecx, ecx
call fcn.140009534
jmp 0x14000d9bc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000d854
test eax, eax
jne 0x14000da11
mov rcx, rdi
call fcn.140009534
jmp 0x14000da1b
xor ecx, ecx
call fcn.140009534
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400118fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140011912
mov al, 1
jmp 0x140011972
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140011923
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140011970
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000de0c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011970
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140011970
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140011970
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140011972
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140014890
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400148b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400148b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400068e0
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, [0x1400c82a0]
mov r8, rax
mov rcx, r12
lea r13d, [r9 + 1]
mov edx, r13d
call fcn.140006c88
xor r15d, r15d
test eax, eax
js 0x140006af2
mov rbx, r12
mov dword [rdi], r15d
lea edx, [r15 + 0x22]
cmp word [rbx], r15w
je 0x1400069b9
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jae 0x140006968
movzx ecx, word [rbx]
test cx, cx
je 0x140006963
call qword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
jne 0x140006ad7
mov edx, 0x22
mov rax, rbx
sub rax, r12
and rax, 0xfffffffffffffffe
cmp rax, 0xfa0
je 0x1400069b9
movzx ecx, word [rbx]
test cx, cx
je 0x1400069b9
cmp cx, dx
je 0x14003445c
call qword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
jne 0x1400069a4
cmp word [rbx], r15w
je 0x1400069a4
add rbx, 2
movzx ecx, word [rbx]
jmp 0x14000698b
inc dword [rdi]
mov rcx, rbx
sub rcx, r12
mov edx, 0x22
sar rcx, 1
cmp rcx, r13
jb 0x140006939
cmp dword [rdi], r15d
je 0x140006af2
movsxd rcx, dword [rdi]
mov eax, 8
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
mov rax, qword [0x14008e030]
call qword [case.0x1400022d4.0]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140006af2
mov rbx, r12
mov ebp, r15d
mov r14, rax
mov esi, 0x22
cmp word [rbx], r15w
je 0x140006ab5
cmp ebp, dword [rdi]
jge 0x140006ab5
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jae 0x140006a3a
movzx ecx, word [rbx]
test cx, cx
je 0x140006a3a
call qword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
jne 0x14003447e
mov rcx, rbx
sub rcx, r12
sar rcx, 1
cmp rcx, r13
je 0x140006ab5
cmp word [rbx], r15w
je 0x140006ab5
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 0x140034487
cmp rcx, r13
jae 0x140006a95
movzx ecx, word [rbx]
call qword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
jne 0x140006a95
cmp word [rbx], r15w
je 0x140006aa3
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140006a70
cmp word [rbx], r15w
je 0x140006aa3
mov word [rbx], r15w
add rbx, 2
mov rcx, rbx
sub rcx, r12
sar rcx, 1
cmp rcx, r13
jb 0x140006a04
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 0x14000694d
jmp 0x140006963
xor eax, eax
jmp 0x140006aba
lea rcx, [rbx + 2]
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbx, rax
test rax, rax
je 0x140034477
add rbx, 2
jmp 0x1400069a4
inc dword [rdi]
jmp 0x1400069b9
add rbx, 2
jmp 0x140006a16
mov edx, esi
lea rcx, [rbx + 2]
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbx, rax
test rax, rax
je 0x140006ab5
jmp 0x140006a95
Function at 0x140008950
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x38
lea rax, [rbp + 0x30]
mov ebx, 1
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov rcx, 0xffffffff80000002
call fcn.1400140d4
test eax, eax
jg 0x140034b78
js 0x1400089e1
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
and dword [rbp + 0x28], 0
lea r9, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r8, str.EnableDefaultScope
lea rax, [rbp + 0x28]
mov dword [rbp + 0x20], 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
jle 0x1400089d1
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x140034b87
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov al, bl
add rsp, 0x38
pop rbx
pop rbp
ret
movzx eax, ax
or eax, 0x80070000
test eax, eax
jmp 0x140008986
cmp dword [rbp + 0x18], 4
je 0x140034b92
call fcn.14008935c
cmp dword [rbp + 0x20], 4
je 0x140034b9d
call fcn.14008935c
mov eax, dword [rbp + 0x28]
neg eax
sbb cl, cl
and bl, cl
jmp 0x1400089d7

Function at 0x140008d70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, r9
xor ecx, ecx
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x140034bbc
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x140034bd2
test eax, eax
jne 0x140034bc3
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, 6
jmp 0x140034bc5
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x140008ddb
mov ecx, 0x7a
jmp 0x140034bc5
Function at 0x1400093b4
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 [0x1400c7228]
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, [0x14008bae8]
mov qword [rsp + 0x68], rax
lea rax, [0x14008c228]
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.1400184e0
test eax, eax
js 0x140009572
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 0x140035434
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 0x140009572
mov ecx, eax
lea rdx, [0x140096d04]
call fcn.14002c5fc
mov rbx, rax
test rax, rax
je 0x140009561
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400094c5
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 0x14003543b
js 0x140009561
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 0x14003544b
cmp dword [rsp + 0x34], r14d
je 0x140009561
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 0x14003545d
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 0x140009561
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 0x1400095a8
add edi, r15d
test sil, sil
je 0x14000952c
mov rcx, rbx
mov rax, qword [0x14008e038]
call qword [case.0x1400022d4.0]
nop
lea rcx, [rsp + 0x60]
call fcn.14001a87c
mov al, sil
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14002c150
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 0x140009559
mov ecx, edi
jmp 0x140009486
movzx edi, di
or edi, 0x80070000
test edi, edi
jmp 0x1400094cd
call fcn.14000f970
test eax, eax
js 0x140009561
jmp 0x1400094f8
call fcn.14000f970
test eax, eax
js 0x140009561
jmp 0x140009523
Function at 0x140009b94
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.1400140d4
mov ebx, eax
test eax, eax
jg 0x140035894
test ebx, ebx
js 0x1400358a2
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, [0x140094f48]
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 0x1400358c0
js 0x140009c9d
cmp dword [rbp + 0x38], 1
jne 0x140009c9d
and dword [rsi], 0
lea r8, [rbp + 0x28]
and dword [rdi], 0
lea rdx, [rbp + 0x30]
mov byte [rbp + 0x28], 0
call fcn.14000e760
test eax, eax
js 0x140009c9d
cmp byte [rbp + 0x28], 0
je 0x14003590e
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 0x1400358cf
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 0x140009cb8
mov eax, ebx
add rsp, 0x48
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140056fec
jmp 0x140009cad
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140009be2
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.14002a6ec
nop
jmp 0x140009cad
movzx eax, ax
or eax, 0x80070000
test eax, eax
jmp 0x140009c2d
cmp dword [rbp + 0x40], 4
jne 0x1400358f7
mov edx, dword [rbp + 0x38]
test edx, edx
je 0x1400358f7
lea eax, [rdx - 1]
mov dword [rsi], 1
cmp eax, 8
mov ecx, 0x68
cmovbe ecx, edx
mov dword [rdi], ecx
jmp 0x140009c9d
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 0x140009c9d
mov dword [rsi], 1
mov dword [rdi], 0x64
jmp 0x140009c9d
Function at 0x140009cc8
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.1400140d4
xor edi, edi
mov ebx, eax
test eax, eax
jg 0x140035920
test ebx, ebx
js 0x140009d8e
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov eax, 4
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x60], eax
lea r8, [0x140094f48]
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 0x14003592e
test ebx, ebx
js 0x140009d83
cmp dword [rsp + 0x50], 1
jne 0x140009d83
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 0x140009d7a
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 0x140009cfe
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140009d4e