joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001a30
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov edx, dword [rsp + 0x2a8]
mov ecx, 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x140001aa9
movzx eax, byte [0x140006739]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x2a0]
mov rcx, rax
call fcn.1400019a0
mov rax, qword [rsp + 0x2a0]
mov byte [rax + 8], 0
mov rax, qword [rsp + 0x2a0]
jmp 0x140001b79
mov dword [rsp + 0x40], 0x238
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x140001b3f
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x2b0]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x140001ae7
inc rax
test dl, dl
jne 0x140001ad4
xor eax, eax
jmp 0x140001aec
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140001b2c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [0x140006738]
mov byte [rsp + 0x28], al
mov rax, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
mov rax, qword [rsp + 0x2a0]
mov byte [rax + 8], 1
mov rax, qword [rsp + 0x2a0]
jmp 0x140001b79
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x140001ac4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [0x140006739]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x2a0]
mov rcx, rax
call fcn.1400019a0
mov rax, qword [rsp + 0x2a0]
mov byte [rax + 8], 0
mov rax, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140004c40
add rsp, 0x298
ret
Function at 0x140002370
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 8]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.1400024a0
movzx eax, al
test eax, eax
jne 0x1400023d3
jmp 0x14000247e
cmp qword [rsp + 0x30], 0
jne 0x1400023e2
xor al, al
jmp 0x140002499
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x3090]
imul rax, rax, 0x30
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 0x90]
mov r9d, 0x30
mov r8, rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
jne 0x140002420
jmp 0x14000247e
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x3090]
inc eax
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 0x3090], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 8]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov rax, qword [rsp + 0x60]
mov r8, qword [rax]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000246c
jmp 0x14000247e
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x20], rcx
mov al, 1
jmp 0x140002499
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
add rsp, 0x48
ret

Function at 0x140003c20
Capabilities:
Execute syscall

Disassembly:
mov r10, rdx
mov rax, rcx
mov rcx, rdx
mov rdx, r8
mov r8, r9
mov r9, qword [rsp + 0x28]
add rsp, 8
syscall
sub rsp, 8
ret

Function at 0x14000406f
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x23
syscall
ret

Function at 0x140004085
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x50
syscall
ret

Function at 0x140005580
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2060
call fcn.180047770
sub rsp, rax
lea eax, [rdx - 9]
mov r14, r8
mov dword [rsp + 0x20a8], eax
mov r13, rcx
cmp edx, eax
jbe 0x180016745
mov ebp, dword [rsp + 0x20a8]
lea r15d, [rdx - 0x70]
mov r12, qword [rsp + 0x20b8]
lea rdx, [0x180000000]
mov ebx, 0x32
mov ecx, eax
lea edi, [rbx + 0x2d]
lea esi, [rbx + 0x32]
lea r10d, [rbx + 0x45]
lea r11d, [rbx + 0x41]
lea r9d, [rbx - 4]
lea r8d, [rbx + 0x3a]
nop dword [rax]
cmp r15d, 0x12
ja case.default.0x1800165c5
mov ecx, dword [rdx + r15*4 + 0x167c8]
add rcx, rdx
jmp rcx
mov ebx, 0x26
nop dword [rax]
mov eax, ebx
sub eax, 0x25
je 0x180016612
sub eax, 1
je 0x1800165f6
sub eax, 4
je 0x180016625
cmp eax, 1
jne 0x180016609
movzx eax, byte [rsp + 0x30]
sub al, 0x10
cmp al, 7
setbe byte [rsp + 0x50]
jmp 0x180016609
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r12, rax
dec ebx
cmp ebx, 0x21
ja 0x1800165d0
jmp 0x180016625
mov edx, 0x10
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
mov rcx, qword [r13]
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov r8d, 0x2000
call qword [rsp + 0x50]
mov ebp, eax
mov ebx, 0x32
mov r8d, 0x6c
lea rdx, [0x180000000]
lea r9d, [r8 - 0x3e]
lea r10d, [r8 + 0xb]
lea r11d, [r8 + 7]
jmp case.0x1800165c5.1
mov dword [rsp + 0x30], 0x730077
mov dword [rsp + 0x34], 0x5f0032
mov dword [rsp + 0x38], 0x320033
jmp case.0x1800165c5.1
cmp dword [rsp + 0x20b8], 0xb7
jne case.0x1800165c5.1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov r8, qword [r13 + 0x98]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20b8], eax
jmp 0x180016642
lea rbx, [0x180066fb8]
mov esi, 0xa
lea rdi, [r14 + 0xed0]
nop word [rax + rax]
mov eax, dword [rbx]
lea r8, [rsp + 0x48]
mov dword [rsp + 0x28], 0x10b
mov r9, r13
mov rdx, r14
mov dword [rsp + 0x48], eax
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180014560
add rdi, 8
lea rbx, [rbx + 4]
sub rsi, 1
jne 0x1800166d0
lea edi, [rsi + 0x5f]
lea esi, [rdi + 5]
jmp 0x18001663d
mov word [rsp + 0x3c], r9w
jmp case.0x1800165c5.1
cmp ebp, 1
jge case.0x1800165c5.1
xor al, al
jmp 0x18001674d
mov dword [rsp + 0x3e], 0x6c0064
mov dword [rsp + 0x42], 0x6c
mov ecx, dword [rsp + 0x20a8]
dec r15d
lea eax, [r15 + 0x70]
cmp eax, ecx
ja 0x1800165b0
movzx eax, byte [rsp + 0x20a8]
mov rbx, qword [rsp + 0x20a0]
add rsp, 0x2060
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [r14 + 0x18]
mov rcx, qword [r14 + 0x10]
mov rax, rdx
sub rax, rcx
movsxd rdi, ebp
cmp rdi, rax
ja 0x1800167ab
lea rax, [rcx + rdi]
mov qword [r14 + 0x10], rax
cmp rdx, 0x10
jb 0x18001678f
mov r14, qword [r14]
lea rbx, [r14 + rcx]
mov r8, rdi
mov rcx, rbx
lea rdx, [rsp + 0x60]
call fcn.180048580
mov al, 1
mov byte [rbx + rdi], 0
jmp 0x18001674d
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call fcn.180002180
mov al, 1
jmp 0x18001674d
Function at 0x180026a70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180026aa4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180026a90
ret
Function at 0x1800321d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rbp, qword [rsp + 0xd0]
mov r13, r8
imul esi, r9d, 0x46
mov rdi, rdx
mov ebx, r9d
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x40], esi
cmp r9d, esi
ja 0x1800323e6
nop word [rax + rax]
mov eax, ebx
sub eax, 0x55
je 0x1800323a9
sub eax, 0x2b
je 0x180032271
sub eax, 0xa9
je 0x180032406
sub eax, 0x3d2
je 0x18003225d
cmp eax, 0x4a6
jne 0x1800323d0
mov qword [0x180083510], 0
jmp 0x1800323d0
mov rcx, qword [rsp + 0x50]
mov edx, 8
call fcn.1800473c8
jmp 0x1800323c8
mov eax, dword [rcx]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x38], eax
lea rdx, [rsp + 0x38]
lea rax, [rsp + 0x48]
mov r9d, 0x8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.18002d690
mov rcx, qword [rsp + 0xc0]
xor r9d, r9d
mov r15, qword [rsp + 0x48]
xor edx, edx
mov r8d, 0xfa
mov eax, dword [rcx]
imul eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xc8]
add eax, dword [rcx]
xor ecx, ecx
cdqe
add r15, rax
mov eax, dword [r13]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], r15
call fcn.18000c8d0
mov edx, dword [r13]
xor r10d, r10d
test edx, edx
jle 0x1800323c8
lea r12d, [rax + 1]
mov ecx, edx
xor esi, esi
lea rbx, [rbp - 1]
xor edi, edi
mov eax, ecx
test ecx, ecx
jle 0x180032382
movsxd rax, esi
mov r14, rbp
sub r14, rax
sub r14, r15
lea r11, [rax + r15]
nop dword [rax + rax]
movzx ecx, byte [r14 + r11 + 1]
lea r9d, [rdi + 1]
mov eax, edx
lea r11, [r11 + 1]
not eax
cdqe
movzx r8d, byte [rax + rbp]
lea eax, [r10 + 1]
imul r8d, eax
mov eax, edx
sub eax, r10d
dec eax
imul ecx, eax
movsxd rax, edx
add r8d, ecx
movzx ecx, byte [rax + rbp + 1]
movzx eax, byte [rbx]
imul ecx, r9d
add ecx, edx
sub edx, edi
dec edx
add ecx, r8d
imul edx, eax
mov edi, r9d
add edx, ecx
mov ecx, r12d
sar edx, cl
mov byte [r11 - 1], dl
mov edx, dword [r13]
cmp r9d, edx
jl 0x180032320
mov eax, edx
add esi, dword [rsp + 0x30]
inc r10d
dec rbx
mov ecx, eax
cmp r10d, eax
jl 0x180032300
mov ebx, dword [rsp + 0x34]
mov rdi, qword [rsp + 0xa8]
mov esi, dword [rsp + 0x40]
jmp 0x1800323c8
xor r8d, r8d
mov edx, 0x10c
xor ecx, ecx
call fcn.1800158a0
mov rax, qword [0x180083510]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0xa0]
imul eax, dword [rsp + 0xb8], 0xe
add ebx, eax
mov dword [rsp + 0x34], ebx
cmp ebx, esi
jbe 0x180032220
movzx eax, byte [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, dword [rdi + 0xc]
mov eax, edx
mov ecx, dword [rdi + 8]
sub eax, ecx
cmp eax, 0x400
jge 0x180032441
lea eax, [rdx + 0x400]
mov ecx, 0x9d
mov rdx, rdi
mov dword [rsp + 0xb8], eax
lea r8, [rsp + 0xb8]
call fcn.18001ff90
mov eax, dword [rdi + 0xc]
mov ecx, dword [rdi + 8]
sub eax, ecx
mov r9, qword [rdi + 0x18]
mov edx, 1
movsxd rcx, ecx
add rcx, qword [rdi]
movsxd r8, eax
call fcn.18004d1d8
test eax, eax
je 0x1800323ee
add dword [rdi + 8], eax
mov al, 1
jmp 0x1800323ee
Function at 0x1800453f0
Capabilities:
Hash data with md5

Disassembly:
mov r9, rdx
mov r8, rcx
mov edx, 0xf8
xor ecx, ecx
jmp fcn.18000eb00

Function at 0x180059320
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1800591c0
call fcn.180050028
mov dword [rax], 0x16
call fcn.18004b4b4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800591a8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1800591a8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1800591f2
lock or dword [rax + 0x14], 0x10
jmp 0x1800591a8
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x18005920f
mov rcx, qword [rbp + 0x10]
call fcn.180061804
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800581dc
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.180058bf8
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x180059266
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1800591a8
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1800592d2
mov rcx, qword [rbp + 0x10]
call fcn.1800581dc
cmp eax, 0xffffffff
je 0x1800592b9
mov rcx, qword [rbp + 0x10]
call fcn.1800581dc
cmp eax, 0xfffffffe
je 0x1800592b9
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800581dc
movsxd rdi, eax
lea rsi, [0x18008c840]
mov rcx, rbx
sar rdi, 6
call fcn.1800581dc
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1800592c0
lea rax, [0x180082b10]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800592d2
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x180059308
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x180059304
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x180059304
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1800591ab
jmp 0x180059178
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.14000fac0
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 0x1400335b4
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.14002ce6c
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 0x1400335bb
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 0x1400335cb
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 0x1400335dd
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.140011e24
mov al, sil
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14002c9c0
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.140019964
test eax, eax
js 0x140003a01
jmp 0x140003998
call fcn.140019964
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.140018a54
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 0x140033aca
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 0x140033aec
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 0x140033af5
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 0x140033ae5
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.14000b3f8
mov ebx, eax
test eax, eax
jg 0x140033b2c
test ebx, ebx
js 0x140033b3a
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 0x140033b58
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 0x140033ba6
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 0x140033b67
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.140055cec
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.14002af8c
nop
jmp 0x140004735
movzx eax, ax
or eax, 0x80070000
test eax, eax
jmp 0x1400046b5
cmp dword [rbp + 0x40], 4
jne 0x140033b8f
mov edx, dword [rbp + 0x38]
test edx, edx
je 0x140033b8f
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.14000b3f8
xor edi, edi
mov ebx, eax
test eax, eax
jg 0x140033bb8
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 0x140033bc6
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