joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff2f94df38
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov rbx, rcx
xor r12d, r12d
xor ecx, ecx
mov qword [rsp + 0x40], r12
mov rbp, rdx
call fcn.7ff2f94e67c
mov rax, qword gs:[0x30]
movzx edi, word [rbx]
xor edx, edx
mov rcx, qword [rax + 0x60]
add edi, 0xe
mov rcx, qword [rcx + 0x30]
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
cmp rax, r12
jne 0x7ff2f94df93
mov ebx, 0xc0000017
jmp 0x7ff2f94e023
mov dword [rax], 1
mov dword [rax + 4], edi
mov dword [rax + 8], 3
movzx r8d, word [rbx]
mov rdx, qword [rbx + 8]
lea rcx, [rax + 0xc]
call sub.msvcrt.dll_memcpy
movzx r11d, word [rbx]
lea r8, [rsp + 0x40]
shr r11, 1
xor edx, edx
mov rcx, rsi
mov word [rsi + r11*2 + 0xc], r12w
call fcn.7ff2f94e1fc
cmp eax, r12d
mov ebx, eax
jl 0x7ff2f94e007
mov rdi, qword [rsp + 0x40]
lea r8, [0x7ff2f95d6f0]
lea rdx, [0x7ff2f95d9a0]
mov rcx, rdi
call fcn.7ff2f950bb8
xor edx, edx
mov rcx, rdi
call fcn.7ff2f94ea78
cmp eax, r12d
mov ebx, eax
jl 0x7ff2f94e007
mov qword [rbp], rdi
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret

Function at 0x7ff2f950294
Capabilities:
Delete registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
and qword [rsp + 0x50], 0
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rdi, rcx
call fcn.7ff2f9505f0
test eax, eax
js 0x7ff2f950304
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x7ff2f950304
mov rbx, qword [rsp + 0x50]
mov rsi, rax
mov rdx, qword [rbx]
lea r9, [rsp + 0x58]
mov r8d, 0xf003f
mov rcx, rdi
call fcn.7ff2f950354
test eax, eax
js 0x7ff2f9502fa
mov rcx, qword [rsp + 0x58]
call fcn.7ff2f950294
test eax, eax
jns 0x7ff2f9502fa
mov rcx, qword [rsp + 0x58]
call fcn.7ff2f950018
add rbx, 8
sub rsi, 1
jne 0x7ff2f9502c8
cmp qword [rsp + 0x50], 0
je 0x7ff2f95032a
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov ebx, eax
test eax, eax
js 0x7ff2f950342
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x7ff2f950a18
Capabilities:
Check for peb beingdebugged flag
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r15, rdx
mov r13, rcx
xor edi, edi
mov r12d, edi
mov rsi, rdi
mov dword [rsp + 0x88], edi
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtQueryKey]
mov ebx, eax
mov dword [rsp + 0x80], eax
cmp eax, 0xc0000023
je 0x7ff2f950a8d
cmp eax, edi
jl 0x7ff2f950b4d
mov ebx, 0xc000000d
mov dword [rsp + 0x80], ebx
jmp 0x7ff2f950b4d
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x88]
mov rcx, qword [rax + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
cmp rax, rdi
jne 0x7ff2f950ac7
mov ebx, 0xc000009a
mov dword [rsp + 0x80], ebx
jmp 0x7ff2f950b4d
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x88]
mov r8, rsi
xor edx, edx
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtQueryKey]
mov ebx, eax
mov dword [rsp + 0x80], eax
cmp eax, edi
jl 0x7ff2f950b4d
mov rcx, qword gs:[0x30]
mov r8d, dword [rsi + 0xc]
add r8, 2
mov rcx, qword [rcx + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
cmp rax, rdi
jne 0x7ff2f950b2e
mov ebx, 0xc000009a
mov dword [rsp + 0x80], ebx
jmp 0x7ff2f950b4d
mov r8d, dword [rsi + 0xc]
lea rdx, [rsi + 0x10]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r11d, dword [rsi + 0xc]
shr r11, 1
mov word [r14 + r11*2], di
mov qword [r15], r14
cmp rsi, rdi
je 0x7ff2f950b6e
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0xc000017d
jne 0x7ff2f950b9e
int3
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x7ff2f950bb8
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x30
mov rsi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
lea rdx, [0x7ff2f95d6f0]
mov r8d, 0x2001f
mov rcx, rsi
call fcn.7ff2f950354
mov edi, eax
test eax, eax
js 0x7ff2f950c0d
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov edi, eax
cmp qword [rsp + 0x50], rsi
je 0x7ff2f950c27
cmp qword [rsp + 0x50], 0
je 0x7ff2f950c27
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x7ff2f950c3c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r14d, r9d
mov r13, r8
mov r15, rdx
mov r12, rcx
xor esi, esi
xor edi, edi
and qword [rsp + 0x40], rdi
mov rax, qword [rsp + 0xc0]
and qword [rax], rdi
mov rax, qword [rsp + 0xc8]
and dword [rax], edi
mov rdx, r15
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test r13, r13
je 0x7ff2f950cc0
lea r9, [rsp + 0x40]
mov r8d, 0x20019
mov rdx, r13
mov rcx, r12
call fcn.7ff2f950354
mov ebx, eax
mov dword [rsp + 0x34], eax
test eax, eax
jns 0x7ff2f950cc5
jmp 0x7ff2f950dda
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
mov dword [rsp + 0x34], eax
cmp eax, 0xc0000023
jne 0x7ff2f950dda
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rax + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x7ff2f950d2f
mov ebx, 0xc000009a
mov dword [rsp + 0x34], ebx
jmp 0x7ff2f950dda
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8d, 2
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
mov dword [rsp + 0x34], eax
test eax, eax
js 0x7ff2f950dda
cmp dword [rdi + 4], r14d
je 0x7ff2f950d75
mov ebx, 0xc0000024
mov dword [rsp + 0x34], ebx
jmp 0x7ff2f950dda
add dword [rsp + 0x30], 0xfffffff4
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rax + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx], rax
test rax, rax
jne 0x7ff2f950db3
mov ebx, 0xc000009a
mov dword [rsp + 0x34], ebx
jmp 0x7ff2f950dda
mov r8d, dword [rsp + 0x30]
lea rdx, [rdi + 0xc]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r11d, dword [rsp + 0x30]
mov rax, qword [rsp + 0xc8]
mov dword [rax], r11d
xor ebx, ebx
mov dword [rsp + 0x34], ebx
mov rcx, qword [rsp + 0x40]
cmp rcx, r12
je 0x7ff2f950def
test rcx, rcx
je 0x7ff2f950def
call qword [sym.imp.ntdll.dll_NtClose]
test rdi, rdi
je 0x7ff2f950e10
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0xc000017d
jne 0x7ff2f950e50
int3
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x7ff2f950e68
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15d, r9d
mov r13, r8
mov r14, rdx
mov r12, rcx
xor esi, esi
mov rdx, r14
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x38], 0
test r13, r13
je 0x7ff2f950edf
lea r9, [rsp + 0x38]
mov r8d, 0x2001f
mov rdx, r13
mov rcx, r12
call fcn.7ff2f950354
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x7ff2f950ed8
mov rbx, qword [rsp + 0x38]
jmp 0x7ff2f950ee2
mov rbx, qword [rsp + 0x38]
jmp 0x7ff2f950f14
mov rbx, r12
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov edi, eax
mov dword [rsp + 0x30], eax
cmp rbx, r12
je 0x7ff2f950f26
test rbx, rbx
je 0x7ff2f950f26
mov rcx, rbx
call fcn.7ff2f950018
cmp edi, 0xc000017d
jne 0x7ff2f950f66
int3
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x7ff2f951758
Capabilities:
Delete file

Disassembly:
mov r11, rsp
sub rsp, 0x58
mov dword [rsp + 0x20], 0x30
xor eax, eax
mov qword [r11 - 0x30], rax
mov dword [rsp + 0x38], 0x40
mov qword [r11 - 0x28], rcx
lea rcx, [r11 - 0x38]
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
call qword [sym.imp.ntdll.dll_NtDeleteFile]
add rsp, 0x58
ret
Function at 0x7ff2f951798
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
and qword [rdx], 0
mov rdi, r8
mov rsi, rdx
xor edx, edx
mov ebx, ecx
mov rcx, rdi
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
mov r11, qword gs:[0x30]
xor edx, edx
mov rcx, qword [r11 + 0x60]
lea r8d, [rdx + 0x6a]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
test rax, rax
jne 0x7ff2f9517f5
mov eax, 0xc0000017
jmp 0x7ff2f9518e2
and qword [rsp + 0x20], 0
lea r8, [0x7ff2f95d690]
mov r9d, ebx
mov edx, 0x35
mov rcx, rax
call fcn.7ff2f958a3c
mov rdx, rsi
mov rcx, rbp
call fcn.7ff2f951900
mov ebx, eax
test eax, eax
jns 0x7ff2f951867
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.7ff2f951c88
mov ebx, eax
test eax, eax
js 0x7ff2f95189f
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call fcn.7ff2f951900
xor edx, edx
mov ebx, eax
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x48]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
js 0x7ff2f95189f
mov rax, qword [rsi]
and dword [rdi], 0
cmp dword [rax], 0
jne 0x7ff2f951881
mov eax, dword [rax + 8]
mov dword [rdi + 4], 1
mov dword [rdi + 8], eax
jmp 0x7ff2f95189b
cmp dword [rax], 1
jne 0x7ff2f951896
movdqu xmm0, xmmword [rax + 8]
and dword [rdi + 4], 0
movdqu xmmword [rdi + 8], xmm0
jmp 0x7ff2f95189b
mov ebx, 0xc000000d
test ebx, ebx
jns 0x7ff2f9518c4
mov r8, qword [rsi]
test r8, r8
je 0x7ff2f9518c4
mov rax, qword gs:[0x30]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
and qword [rsi], 0
mov rax, qword gs:[0x30]
mov r8, rbp
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x7ff2f9519cc
Capabilities:
Allocate or change rwx memory
Get file attributes
Map section object

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xe0
mov rax, qword [0x7ff2f962100]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rdx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov r9d, 0x18
mov rdi, rcx
mov dword [rsp + 0x20], 1
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov r11d, eax
test eax, eax
jns 0x7ff2f951a1d
cmp eax, 0x80000005
jne 0x7ff2f951a61
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov r9d, 0x68
mov rcx, rdi
mov dword [rsp + 0x20], 0x12
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov r11d, eax
test eax, eax
jns 0x7ff2f951a4c
cmp eax, 0x80000005
jne 0x7ff2f951a61
mov eax, dword [rsp + 0x48]
xor r11d, r11d
mov dword [rbx], eax
mov rax, qword [rsp + 0xa0]
mov qword [rbx + 8], rax
mov eax, r11d
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.7ff2f958660
mov rbx, qword [rsp + 0x100]
add rsp, 0xe0
pop rdi
ret
Function at 0x7ff2f952968
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov rbp, rcx
xor r12d, r12d
lea rdx, [0x7ff2f95d9c0]
lea rcx, [rax - 0x58]
mov qword [rax + 0x18], r12
mov rdi, r12
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x20]
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x90]
mov edx, 0x20001
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0x30
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x48], 0x40
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp eax, r12d
mov ebx, eax
jge 0x7ff2f952a01
cmp eax, 0xc0000017
je 0x7ff2f952ae5
cmp eax, 0xc000009a
je 0x7ff2f952ae5
mov ebx, 0xc0000452
jmp 0x7ff2f952ae5
mov rsi, qword [rsp + 0x90]
call fcn.7ff2f952cdc
mov rbx, rax
cmp rax, r12
je 0x7ff2f952a21
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x7ff2f952a24
mov rbx, rsi
lea rcx, [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0x90], rbx
mov dword [rsp + 0x88], r12d
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x90]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov ebx, eax
cmp eax, 0xc0000023
je 0x7ff2f952a71
cmp eax, r12d
jl 0x7ff2f952ae5
mov ebx, 0xc0000001
jmp 0x7ff2f952ae5
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rax + 0x60]
add r8, 2
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
cmp rax, r12
jne 0x7ff2f952aa5
mov ebx, 0xc000009a
jmp 0x7ff2f952ae5
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
movzx eax, word [rsp + 0x88]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov word [rsp + 0x22], ax
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
cmp eax, r12d
mov ebx, eax
jl 0x7ff2f952ae5
movzx eax, word [rsp + 0x20]
shr rax, 1
mov word [rdi + rax*2], r12w
mov qword [rbp], rdi
mov rcx, qword [rsp + 0x90]
cmp rcx, r12
je 0x7ff2f952af8
call qword [sym.imp.ntdll.dll_NtClose]
cmp ebx, r12d
jge 0x7ff2f952b1e
cmp rdi, r12
je 0x7ff2f952b1e
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x7ff2f953474
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
and dword [rax + 0x10], 0
and qword [rax + 0x18], 0
mov rbp, rcx
lea rcx, [rax - 0x68]
lea rdx, [0x7ff2f95db10]
xor esi, esi
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x68], rsi
and qword [rsp + 0x80], rsi
and qword [rsp + 0x88], rsi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x40
call fcn.7ff2f953604
mov edi, eax
test eax, eax
js 0x7ff2f9535a6
lea rax, [rsp + 0xb8]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov edi, eax
test eax, eax
js 0x7ff2f9535a6
mov rbx, qword [rsp + 0xc0]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
lea rdx, [0x7ff2f95db90]
repne scasw ax, word [rdi]
not rcx
lea edi, [rcx + rcx]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r9d, [rsi + 1]
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov edi, eax
test eax, eax
js 0x7ff2f9535a6
mov ecx, 0x60019
call fcn.7ff2f95112c
mov rsi, rax
test rax, rax
jne 0x7ff2f95358a
mov edi, 0xc0000001
jmp 0x7ff2f9535a6
mov rcx, qword [rsp + 0xc0]
mov r8, rax
mov edx, 4
call qword [sym.imp.ntdll.dll_NtSetSecurityObject]
mov edi, eax
test eax, eax
jns 0x7ff2f9535b4
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x7ff2f9535c7
call qword [sym.imp.ntdll.dll_NtClose]
test rsi, rsi
je 0x7ff2f9535e8
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ff2f953604
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and qword [rax + 8], 0
lea r9, [rax + 8]
lea rdx, [0x7ff2f95db10]
mov r8d, 0x60019
xor ecx, ecx
xor esi, esi
call fcn.7ff2f953924
mov edi, eax
test eax, eax
jns 0x7ff2f953688
cmp eax, 0xc0000034
jne 0x7ff2f953642
xor edi, edi
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x7ff2f953655
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
test rsi, rsi
je 0x7ff2f953676
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x20
pop rdi
ret
mov ecx, 0xf003f
call fcn.7ff2f95112c
mov rbx, qword [rsp + 0x30]
mov rsi, rax
test rax, rax
jne 0x7ff2f9536a6
mov edi, 0xc0000001
jmp 0x7ff2f953647
mov r8, rax
mov edx, 4
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetSecurityObject]
mov edi, eax
test eax, eax
js 0x7ff2f953647
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
lea rdx, [0x7ff2f95db10]
mov r8d, 0xf003f
xor ecx, ecx
call fcn.7ff2f953924
mov edi, eax
test eax, eax
js 0x7ff2f953642
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov edi, eax
jmp 0x7ff2f953647
Function at 0x7ff2f9539c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
xor edi, edi
and qword [rax + 0x18], rdi
and qword [rbp], rdi
and dword [rsi], edi
lea rcx, [rax - 0x28]
mov rbx, r8
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test rbx, rbx
je 0x7ff2f953a20
lea r9, [rsp + 0x70]
mov r8d, 0x20019
mov rdx, rbx
xor ecx, ecx
call fcn.7ff2f953924
mov ebx, eax
test eax, eax
jns 0x7ff2f953a25
jmp 0x7ff2f953b1d
and qword [rsp + 0x70], rdi
mov rcx, qword [rsp + 0x70]
xor r9d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
je 0x7ff2f953a65
test eax, eax
js 0x7ff2f953b1d
mov ebx, 0xc0000001
jmp 0x7ff2f953b1d
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x7ff2f953a95
mov ebx, 0xc000009a
jmp 0x7ff2f953b1d
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x80]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov r9, rdi
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x7ff2f953b1d
cmp dword [rdi + 4], 1
je 0x7ff2f953ad6
mov ebx, 0xc0000024
jmp 0x7ff2f953b1d
add dword [rsp + 0x60], 0xfffffff4
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x60]
mov rcx, qword [rax + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp], rax
test rax, rax
je 0x7ff2f953a8b
mov r8d, dword [rsp + 0x60]
lea rdx, [rdi + 0xc]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r11d, dword [rsp + 0x60]
xor ebx, ebx
mov dword [rsi], r11d
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x7ff2f953b2d
call qword [sym.imp.ntdll.dll_NtClose]
test rdi, rdi
je 0x7ff2f953b4e
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ff2f953b64
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rsi, rdx
mov rdx, rcx
xor ebp, ebp
lea rcx, [rax - 0x58]
mov qword [rax + 0x20], rbp
mov qword [rax - 0x60], rbp
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea edx, [rbp + 1]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x58], 0x40
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rbp
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp eax, ebp
jl 0x7ff2f953d41
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, ebp
mov dword [rsp + 0xa0], ebp
jmp 0x7ff2f953c49
cmp qword [rsp + 0x28], rbp
je 0x7ff2f953c10
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x28]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [rsp + 0xa0]
xor edx, edx
mov word [rsp + 0x22], ax
lea edi, [rax + 2]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8d, edi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x28], rax
cmp rax, rbp
je 0x7ff2f953d51
mov rcx, qword [rsp + 0xa8]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov ebx, eax
cmp eax, 0xc0000023
je 0x7ff2f953beb
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp ebx, ebp
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xa8], rbp
jl 0x7ff2f953d1c
movzx ecx, word [rsp + 0x20]
lea r8, [rsp + 0x40]
mov edx, 1
shr rcx, 1
mov word [rax + rcx*2], bp
lea rax, [rsp + 0x20]
lea rcx, [rsp + 0xa8]
mov word [rsp + 0x22], di
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x40
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rbp
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp eax, ebp
jge 0x7ff2f953c49
mov rax, qword [rsp + 0x28]
mov ebx, ebp
mov qword [rsi], rax
mov rcx, qword [rsp + 0xa8]
cmp rcx, rbp
je 0x7ff2f953d18
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xa8], rbp
cmp ebx, ebp
jge 0x7ff2f953d3f
cmp rax, rbp
je 0x7ff2f953d3f
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x28]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov ebx, 0xc000009a
jmp 0x7ff2f953cf8