joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff74af9ff0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], r12
mov rax, qword [0x7ff74b58340]
xor rax, rbp
mov qword [rbp + 8], rax
and dword [rbp], 0
mov r12, rdx
lea rax, [rbp]
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 3]
mov rsi, rcx
xor edi, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryKey]
cmp eax, 0xc0000023
jne 0x7ff74b19e07
mov r9d, dword [rbp]
test r9d, r9d
je 0x7ff74b19dd5
cmp r9, qword [0x7ff74b585e0]
ja 0x7ff74b19dd5
mov rax, qword [0x7ff74b585e8]
lea rcx, [r9 + rax + 8]
cmp rcx, r9
jb 0x7ff74b19dd5
call fcn.7ff74ae6340
test eax, eax
je 0x7ff74b19dd1
mov r9d, dword [rbp]
lea eax, [r9 + 8]
mov ecx, eax
add rax, 0xf
cmp rax, rcx
jbe 0x7ff74b19dc2
and rax, 0xfffffffffffffff0
call fcn.7ff74ae3a20
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x7ff74b19dd5
mov dword [rbx], 0x6b637453
add rbx, 8
je 0x7ff74b19dd1
mov r9d, dword [rbp]
jmp 0x7ff74afa0cd
lea rax, [rbp]
mov r8, rbx
mov edx, 3
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryKey]
test eax, eax
js 0x7ff74b19e07
lea rcx, [rbx + 0x18]
lea rdx, str.machine
mov r8d, 7
call qword [sym.imp.msvcrt.dll__wcsnicmp]
xor ecx, ecx
test eax, eax
sete cl
mov dword [r12], ecx
test rbx, rbx
je 0x7ff74afa126
lea rcx, [rbx - 8]
cmp dword [rcx], 0x70616548
je 0x7ff74b19e2a
mov eax, edi
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.7ff74ae3090
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
mov r12, qword [rbp + 0x38]
lea rsp, [rbp + 0x10]
pop rbp
ret
movabs rax, 0xffffffffffffff0
jmp 0x7ff74afa09d
mov r9d, dword [rbp]
lea eax, [r9 + 8]
cmp eax, r9d
jb 0x7ff74b19dfc
mov ecx, eax
call qword [0x7ff74b585f0]
mov rbx, rax
test rax, rax
je 0x7ff74b19e36
mov dword [rax], 0x70616548
mov r9d, dword [rbp]
add rbx, 8
test rbx, rbx
jne 0x7ff74afa0cd
jmp 0x7ff74b19e36
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x7ff74afa0ef
jmp 0x7ff74afa111
call qword [0x7ff74b585f8]
nop
jmp 0x7ff74afa126
mov edi, 0x8007000e
jmp 0x7ff74b19e1d
Function at 0x7ff74afb070
Capabilities:
Compare security identifiers

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x60], rbx
mov rax, qword [0x7ff74b58340]
xor rax, rbp
mov qword [rbp + 0x18], rax
and dword [rbp], 0
xor eax, eax
mov rbx, rdx
xor r9d, r9d
mov qword [rbp + 9], rax
mov dword [rbp + 0x11], eax
lea r14d, [r9 + 1]
mov word [rbp + 0x15], ax
mov byte [rbp + 0x17], al
lea rax, [rbp]
mov r12, rcx
lea r8, [rbp + 0xf]
mov edx, r14d
mov rcx, rbx
and r8, 0xfffffffffffffff8
mov byte [rbp + 8], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
cmp eax, 0xc0000023
jne 0x7ff74b15f92
mov r9d, dword [rbp]
xor edi, edi
test r9d, r9d
je 0x7ff74b15ff2
cmp r9, qword [0x7ff74b585e0]
ja 0x7ff74b15ff2
mov rax, qword [0x7ff74b585e8]
lea rdx, [r9 + rax + 8]
cmp rdx, r9
jb 0x7ff74b15ff2
mov rcx, rdx
call fcn.7ff74ae6340
test eax, eax
je 0x7ff74b15fee
mov r9d, dword [rbp]
lea eax, [r9 + 8]
mov ecx, eax
add rax, 0xf
cmp rax, rcx
jbe 0x7ff74b15f9c
and rax, 0xfffffffffffffff0
call fcn.7ff74ae3a20
sub rsp, rax
lea rdi, [rsp + 0x30]
test rdi, rdi
je 0x7ff74b15ff2
mov dword [rdi], 0x6b637453
add rdi, 8
je 0x7ff74b15fee
mov r9d, dword [rbp]
lea rax, [rbp]
mov r8, rdi
mov edx, r14d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
mov esi, eax
test eax, eax
jne 0x7ff74b15fab
mov rcx, qword [rdi]
lea rdx, [r12 + 0x58]
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
test eax, eax
je 0x7ff74b1602c
mov rcx, rbx
call fcn.7ff74aee76c
mov rcx, r12
mov ebx, eax
call fcn.7ff74ae4324
xor esi, esi
cmp ebx, eax
cmovne esi, r14d
test rdi, rdi
je 0x7ff74afb1cd
lea rcx, [rdi - 8]
cmp dword [rcx], 0x70616548
je 0x7ff74b16034
mov eax, esi
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.7ff74ae3090
mov rbx, qword [rbp + 0x60]
lea rsp, [rbp + 0x20]
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov esi, 0x8000ffff
jmp 0x7ff74afb1cd
movabs rax, 0xffffffffffffff0
jmp 0x7ff74afb138
cmp dword [0x7ff74b582c8], 0
je 0x7ff74b15fe5
mov rcx, qword [0x7ff74b58350]
lea rax, [0x7ff74b58350]
cmp rcx, rax
je 0x7ff74b15fe5
test byte [rcx + 0x1c], r14b
je 0x7ff74b15fe5
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51b60]
mov edx, 0x23
mov r9d, esi
call fcn.7ff74b25ec4
bts esi, 0x1c
jmp 0x7ff74afb1b8
mov r9d, dword [rbp]
lea eax, [r9 + 8]
cmp eax, r9d
jb 0x7ff74b16019
mov ecx, eax
call qword [0x7ff74b585f0]
mov rdi, rax
test rax, rax
je 0x7ff74b16022
mov dword [rax], 0x70616548
mov r9d, dword [rbp]
add rdi, 8
test rdi, rdi
jne 0x7ff74afb166
mov esi, 0x8007000e
jmp 0x7ff74afb1b8
mov esi, r14d
jmp 0x7ff74afb1b8
call qword [0x7ff74b585f8]
nop
jmp 0x7ff74afb1cd
Function at 0x7ff74afee20
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
lea rdx, str.SOFTWAREMicrosoftOLE
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff74b1ce5b
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.EnableEELogging
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x7ff74b1ce16
mov dword [0x7ff74b5826c], 1
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.LogEEInfoAsNative
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x7ff74b1ce36
and dword [0x7ff74b58320], 0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x7ff74afeeed
add rsp, 0x38
ret
cmp dword [rsp + 0x48], 4
jne 0x7ff74afee91
cmp dword [rsp + 0x50], eax
jne 0x7ff74afee91
and dword [0x7ff74b5826c], eax
jmp 0x7ff74afee9b
cmp dword [rsp + 0x48], 4
jne 0x7ff74afeed9
cmp dword [rsp + 0x50], 1
jne 0x7ff74afeed9
mov dword [0x7ff74b58320], 1
jmp 0x7ff74afeee0
cmp dword [0x7ff74b582c8], 0
je 0x7ff74afeeed
mov rcx, qword [0x7ff74b58350]
lea rdx, [0x7ff74b58350]
cmp rcx, rdx
je 0x7ff74afeeed
test byte [rcx + 0x1c], 1
je 0x7ff74afeeed
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b517f0]
mov edx, 0x25
mov r9d, eax
call fcn.7ff74b25ec4
nop
jmp 0x7ff74afeeed

Function at 0x7ff74aff160
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x7ff74b58590]
and qword [r11 + 0x10], 0
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
lea edi, [rcx + 1]
mov dword [rsp + 0x40], 8
mov qword [rax], rdi
lea rax, [r11 + 0x10]
lea rdx, [0x7ff74b4fc70]
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x18], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov r11d, eax
test eax, eax
jne 0x7ff74b2125f
mov rax, qword [0x7ff74b58590]
lea rcx, [rsp + 0x40]
lea rdx, str.REGDBVersion
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x48]
add rax, 8
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
test ebx, ebx
jne 0x7ff74b21238
xor eax, eax
jmp 0x7ff74aff20a
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 2
jne 0x7ff74b2124d
mov rax, qword [0x7ff74b58590]
mov qword [rax + 8], rdi
jmp 0x7ff74aff206
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x7ff74aff20a
cmp eax, 2
je 0x7ff74b2123d
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
jmp 0x7ff74aff20a
Function at 0x7ff74aff330
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
cmp qword [rcx + 0x38], 0
mov ebx, dword [rcx + 0x14]
mov dword [rsp + 0x50], 4
je 0x7ff74aff39c
mov rdx, qword [rcx + 0x50]
mov rcx, qword [rcx + 0x38]
lea rax, [r11 + 0x18]
mov qword [r11 - 0x10], rax
lea rax, [r11 + 8]
lea r9, [r11 + 0x10]
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff74aff39c
cmp dword [rsp + 0x48], 4
jne 0x7ff74aff39c
mov ecx, dword [rsp + 0x40]
mov eax, 0xffffffff
imul rcx, rcx, 0x3e8
cmp rcx, rax
cmovbe ebx, dword [rsp + 0x40]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x7ff74b01c2c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
lea rax, [r11 + 0x20]
mov rdi, r8
lea r9, [r11 - 0x18]
mov qword [r11 - 0x20], rax
lea rax, [r11 - 0x14]
xor r8d, r8d
mov rsi, rdx
xor ebx, ebx
mov dword [rsp + 0x68], 4
mov qword [r11 - 0x28], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, ebx
je 0x7ff74b1cb61
cmp dword [0x7ff74b582c8], ebx
je 0x7ff74b01c96
mov rcx, qword [0x7ff74b58350]
lea rdx, [0x7ff74b58350]
cmp rcx, rdx
je 0x7ff74b01c96
test byte [rcx + 0x1c], 8
jne 0x7ff74b1cb7c
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
cmp dword [rsp + 0x30], 4
jne 0x7ff74b01c71
mov eax, dword [rsp + 0x34]
mov ebx, 1
mov dword [rdi], eax
jmp 0x7ff74b01c96
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b517f0]
mov edx, 0x1e
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.7ff74b298f0
nop
jmp 0x7ff74b01c96
Function at 0x7ff74b031f0
Capabilities:
Access pe header
Check for peb beingdebugged flag
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x7ff74b594a0]
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, 0x3000
call qword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
mov r11, qword gs:[0x30]
mov rcx, qword [r11 + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rcx, qword gs:[0x30]
mov r8, qword [rcx + 0x60]
mov r11, rax
cmp byte [r8 + 2], 0
jne 0x7ff74b0e122
test rax, rax
je 0x7ff74b0325c
mov rax, qword [rax + 0x60]
sub rax, qword [r11 + 0x68]
cmp rax, 0x3000
jb 0x7ff74b0e122
mov qword [0x7ff74b585e0], 0x20e
test r11, r11
je 0x7ff74b0e12f
mov rcx, qword [r11 + 0x68]
lea rax, [rcx + 8]
mov rdx, 0xfffffffffffffff7
mov dword [0x7ff74b58640], 0x10
cmp rax, 8
lea rax, [0x7ff74af5208]
mov dword [0x7ff74b58644], 2
cmovb rcx, rdx
mov qword [0x7ff74b585f0], rax
lea rax, [0x7ff74af51e4]
mov qword [0x7ff74b585f8], rax
xor eax, eax
mov qword [0x7ff74b585e8], rcx
cmp dword [0x7ff74b582d4], eax
lea ecx, [rdx + 0x49]
mov dword [0x7ff74b58658], 0xea60
cmovne eax, ecx
and dword [0x7ff74b5864c], 0
and dword [0x7ff74b58650], 0
and dword [0x7ff74b58654], 0
mov dword [0x7ff74b58648], eax
mov rcx, qword [rbx]
lea rdx, [0x7ff74af57d0]
mov r8d, 0xcafecafe
call qword [sym.imp.API_MS_WIN_Service_Core_L1_1_0.dll_RegisterServiceCtrlHandlerExW]
mov qword [0x7ff74b58378], rax
test rax, rax
je 0x7ff74b0e138
mov ecx, 2
call fcn.7ff74b005b4
lea rcx, [0x7ff74b59820]
call qword [sym.imp.ntdll.dll_RtlInitializeCriticalSection]
mov ebx, eax
test eax, eax
js 0x7ff74b0e181
lea rcx, [0x7ff74b589c8]
call qword [sym.imp.ntdll.dll_RtlInitializeCriticalSection]
xor ecx, ecx
test eax, eax
setns cl
mov dword [0x7ff74b58920], ecx
test ecx, ecx
je 0x7ff74b0e1cd
lea rcx, [0x7ff74b596e0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [0x7ff74b58304], eax
test eax, eax
je 0x7ff74b0e1dc
mov dword [0x7ff74b582fc], 1
call fcn.7ff74afe8b0
test eax, eax
js 0x7ff74b0e1e3
call fcn.7ff74b033b0
test eax, eax
js 0x7ff74b0e1e3
add rsp, 0x20
pop rbx
ret
and qword [0x7ff74b585e0], 0
jmp 0x7ff74b03267
or rcx, 0xffffffffffffffff
jmp 0x7ff74b03274
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x7ff74b582c8], 0
mov ebx, eax
je 0x7ff74b0e17a
mov rcx, qword [0x7ff74b58350]
lea rdx, [0x7ff74b58350]
cmp rcx, rdx
je 0x7ff74b0e17a
test byte [rcx + 0x1c], 1
je 0x7ff74b0e17a
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51d10]
mov edx, 0xf
mov r9d, eax
call fcn.7ff74b25ec4
mov eax, ebx
jmp 0x7ff74b0339b
cmp dword [0x7ff74b582c8], 0
mov dword [0x7ff74b5864c], 0x42a
mov dword [0x7ff74b58650], eax
je 0x7ff74b0e17a
mov rcx, qword [0x7ff74b58350]
lea rdx, [0x7ff74b58350]
cmp rcx, rdx
je 0x7ff74b0e17a
test byte [rcx + 0x1c], 1
je 0x7ff74b0e17a
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51d10]
mov edx, 0x10
mov r9d, eax
call fcn.7ff74b25ec4
jmp 0x7ff74b0e17a
mov dword [0x7ff74b58650], 8
lea eax, [rcx + 8]
jmp 0x7ff74b0e1e9
mov eax, 0xe
jmp 0x7ff74b0e1e3
mov dword [0x7ff74b58650], eax
mov dword [0x7ff74b5864c], 0x42a
jmp 0x7ff74b0339b
Function at 0x7ff74b04264
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
and dword [rax - 0x14], 0
and dword [rax + 0x20], 0
and dword [rax - 0x18], 0
lea rax, [rax - 0x10]
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, str.SOFTWAREMicrosoftCOM3PartitionCache
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x7ff74b20fd1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
lea rdx, str.NumSidEntries
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff74b21020
cmp dword [rsp + 0x30], 4
jne 0x7ff74b21020
mov eax, dword [rsp + 0x34]
cmp eax, 0xfffe
jae 0x7ff74b21020
mov word [rbx], ax
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
lea rdx, str.NumNameEntries
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff74b2106f
cmp dword [rsp + 0x30], 4
jne 0x7ff74b2106f
mov eax, dword [rsp + 0x34]
cmp eax, 0xfffe
jae 0x7ff74b2106f
mov word [rsi], ax
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
lea rdx, str.NumPartitionEntries
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff74b210be
cmp dword [rsp + 0x30], 4
jne 0x7ff74b210be
mov eax, dword [rsp + 0x34]
cmp eax, 0xfffe
jae 0x7ff74b210be
mov word [rdi], ax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
nop
jmp 0x7ff74b042bc
Function at 0x7ff74b04a84
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
lea rdx, str.SoftwareMicrosoftCOM3
xor ebx, ebx
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], rbx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov r11d, eax
cmp eax, ebx
jne 0x7ff74b17fd1
mov rcx, qword [rsp + 0x58]
lea eax, [rbx + 4]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.ComEnabled
xor r8d, r8d
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x7ff74b04b0e
cmp dword [rsp + 0x40], ebx
lea eax, [rbx + 1]
cmovne ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x7ff74b04b1b
mov eax, ebx
add rsp, 0x30
pop rbx
ret
cmp dword [0x7ff74b582c8], ebx
je 0x7ff74b04b1b
mov rcx, qword [0x7ff74b58350]
lea rax, [0x7ff74b58350]
cmp rcx, rax
je 0x7ff74b04b1b
mov eax, 1
test byte [rcx + 0x1c], al
je 0x7ff74b04b1b
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x3c]
lea r9, str.SoftwareMicrosoftCOM3
lea r8, [0x7ff74b51a50]
mov dword [rsp + 0x20], r11d
call fcn.7ff74b298f0
nop
jmp 0x7ff74b04b1b
Function at 0x7ff74b08888
Capabilities:
Compare security identifiers

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov rax, qword [0x7ff74b58340]
xor rax, rbp
mov qword [rbp + 0x10], rax
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x7ff74b150fc
mov eax, 1
jmp 0x7ff74b088c3
mov rcx, qword [rbp + 0x10]
xor rcx, rbp
call fcn.7ff74ae3090
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
lea rsp, [rbp + 0x20]
pop rbp
ret
cmp qword [rcx + 8], 0
je 0x7ff74b088bc
mov rcx, rdx
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
mov r11d, eax
test eax, eax
jne 0x7ff74b15210
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 0xc
lea r9, [rbp + 8]
lea r8d, [rdx - 0xb]
mov rcx, rax
call qword [0x7ff74b58030]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
test ebx, ebx
jne 0x7ff74b1518b
cmp dword [0x7ff74b582c8], ebx
je 0x7ff74b1524f
mov rcx, qword [0x7ff74b58350]
lea rax, [0x7ff74b58350]
cmp rcx, rax
je 0x7ff74b1524f
test byte [rcx + 0x1c], 2
je 0x7ff74b1524f
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x7ff74b58350]
lea edx, [rbx + 0xd]
mov dword [rsp + 0x20], eax
jmp 0x7ff74b1523c
mov r9d, 0x18
mov dword [rbp], r9d
mov eax, r9d
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x7ff74b151ab
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.7ff74ae3a20
sub rsp, rcx
mov rcx, qword [rbp + 8]
lea rax, [rbp]
lea rsi, [rsp + 0x30]
mov edx, 1
mov r8, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_GetTokenInformation]
mov ebx, eax
test eax, eax
jne 0x7ff74b151f0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x7ff74b151f0
mov r9d, dword [rbp]
jmp 0x7ff74b15195
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x7ff74b1524f
mov rdx, qword [rsi]
mov rcx, qword [rdi + 8]
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
jmp 0x7ff74b088c3
cmp dword [0x7ff74b582c8], 0
je 0x7ff74b1524f
mov rcx, qword [0x7ff74b58350]
lea rax, [0x7ff74b58350]
cmp rcx, rax
je 0x7ff74b1524f
test byte [rcx + 0x1c], 2
je 0x7ff74b1524f
mov edx, 0xe
mov dword [rsp + 0x20], r11d
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51bd0]
mov r9, rdi
call fcn.7ff74b26d74
xor eax, eax
jmp 0x7ff74b088c3
Function at 0x7ff74b094f8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, qword [rsp + 0x80]
mov rbp, rcx
xor edi, edi
lea rcx, [r15 + 4]
xor r10d, r10d
mov r14, r9
mov r11, rcx
mov r13, r8
mov r9d, edx
cmp dword [r15], edi
jbe 0x7ff74b09565
mov r8d, dword [r15]
movzx eax, byte [r11]
lea r10d, [r10 + r10*2]
inc r11
xor r10d, eax
mov eax, 0x828cbfbf
mul r10d
shr edx, 7
imul edx, edx, 0xffffff05
add r10d, edx
sub r8, 1
jne 0x7ff74b0953d
mov rax, qword [rbp + 0x48]
mov r12d, dword [rsp + 0x88]
mov esi, r10d
mov rbx, qword [rax + r10*8]
test r9d, r9d
je 0x7ff74b1db78
mov rax, qword [rbp + 0x48]
mov rbx, qword [rax + rsi*8]
test rbx, rbx
jne 0x7ff74b1dbe3
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test rbx, rbx
je 0x7ff74b09581
mov rax, qword [rbx]
mov r8d, dword [r15]
lea rdx, [r15 + 4]
mov rcx, rbx
call qword [rax + 8]
test eax, eax
je 0x7ff74b1dbbf
test r12d, r12d
je 0x7ff74b1dba0
cmp dword [rbx + 0x20], r12d
jne 0x7ff74b1dbbf
test byte [rbx + 0x50], 2
je 0x7ff74b1dbbf
test rdi, rdi
je 0x7ff74b1dbbc
mov rdx, qword [rbx + 0x48]
mov rcx, qword [rdi + 0x48]
call fcn.7ff74ae4298
test eax, eax
je 0x7ff74b1dbbf
mov rdi, rbx
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x7ff74b1db81
mov r14, qword [rsp + 0x78]
test rdi, rdi
je 0x7ff74b1dbda
mov rax, rdi
jmp 0x7ff74b09595
lea rcx, [r15 + 4]
jmp 0x7ff74b09581
mov edi, dword [rsp + 0x68]
mov rax, qword [rbx]
mov r8d, dword [r15]
mov rdx, rcx
mov rcx, rbx
call qword [rax + 8]
test eax, eax
je 0x7ff74b1dcae
test r12d, r12d
je 0x7ff74b1dc0d
cmp dword [rbx + 0x20], r12d
jne 0x7ff74b1dcae
test byte [rbx + 0x50], 2
jne 0x7ff74b09592
test edi, edi
je 0x7ff74b1dc29
test r13, r13
jne 0x7ff74b1dc29
test r14, r14
je 0x7ff74b09592
test r14, r14
je 0x7ff74b1dc50
mov r8, qword [rbx + 0x58]
mov rax, r14
sub r8, r14
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x7ff74b1dc4c
add rax, 2
test edx, edx
jne 0x7ff74b1dc38
test ecx, ecx
jne 0x7ff74b1dcae
mov rdx, qword [rbx + 0x48]
mov rcx, r13
call fcn.7ff74aee5f0
test eax, eax
jne 0x7ff74b1dcae
mov rdx, qword [rbx + 0x48]
mov rcx, r13
call fcn.7ff74aee658
test eax, eax
jne 0x7ff74b1dcae
mov rdx, qword [rbx + 0x48]
mov rcx, r13
call fcn.7ff74aee6a8
test eax, eax
jne 0x7ff74b1dcae
cmp dword [0x7ff74b59a30], eax
je 0x7ff74b09592
mov rdx, qword [rbx + 0x48]
test rdx, rdx
je 0x7ff74b09592
mov rdx, qword [rdx + 0x30]
mov rcx, r13
call fcn.7ff74aee724
cmp eax, 1
jne 0x7ff74b09592
mov rbx, qword [rbx + 8]
lea rcx, [r15 + 4]
test rbx, rbx
je 0x7ff74b09592
jmp 0x7ff74b1dbe7
Function at 0x7ff74b0a55c
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
and qword [rax + 0x10], 0
and qword [rax + 0x20], 0
mov rbx, rdx
lea rcx, [rdx + 0x58]
mov rdx, qword [0x7ff74b58a88]
mov r12, r8
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
test eax, eax
jne 0x7ff74b20630
mov rsi, qword [rbx + 0x50]
test rsi, rsi
je 0x7ff74b20637
xor edi, edi
test edi, edi
js 0x7ff74b0a5fa
lea r8, [rsp + 0x58]
mov edx, 0x19
mov rcx, r12
call fcn.7ff74aee0f4
mov rbp, qword [rsp + 0x58]
mov edi, eax
test eax, eax
js 0x7ff74b0a5ec
mov rcx, qword [rbp]
xor edx, edx
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_GetSidSubAuthority]
mov rcx, qword [rsi]
xor edx, edx
mov rbx, rax
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_GetSidSubAuthority]
mov ecx, dword [rbx]
cmp dword [rax], ecx
jb 0x7ff74b20650
test rbp, rbp
je 0x7ff74b0a5fa
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x7ff74b0a5fc
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.7ff74aee08c
mov rsi, qword [rsp + 0x48]
mov edi, eax
jmp 0x7ff74b0a5a7
mov cl, 1
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_GetSidLengthRequired]
mov r8, rsi
mov edx, 0x19
lea r9d, [rax + 0x10]
mov rcx, r12
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_SetTokenInformation]
test eax, eax
jne 0x7ff74b0a5ec
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
cmp dword [0x7ff74b582c8], 0
je 0x7ff74b0a5ec
mov rcx, qword [0x7ff74b58350]
lea rax, [0x7ff74b58350]
cmp rcx, rax
je 0x7ff74b0a5ec
test byte [rcx + 0x1c], 1
je 0x7ff74b0a5ec
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51720]
mov edx, 0xc
mov r9d, edi
call fcn.7ff74b25ec4
nop
jmp 0x7ff74b0a5ec