joyce8/EMBER2024-capa huggingface dataset:
Function at 0x15a40
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x10], rdx
push r12
sub rsp, 0x50
mov rdi, rdx
xor ebx, ebx
mov word [rsp + 0x38], bx
xor eax, eax
mov qword [rsp + 0x3a], rax
mov dword [rsp + 0x42], eax
mov word [rsp + 0x46], ax
cmp r9d, 0x24
jae 0x15a8e
mov rax, qword [rsp + 0x88]
mov dword [rax], ebx
mov ebx, 0xc0000004
jmp 0x15b5c
cmp dword [rsp + 0x80], 4
jae 0x15aac
mov rax, qword [rsp + 0x88]
mov dword [rax], ebx
mov ebx, 0xc0000023
jmp 0x15b5c
mov rsi, qword [rdx + 0x18]
mov r12, qword [rsi + 8]
mov qword [rsp + 0x30], r12
mov edx, 0xc
lea r8d, [rdx - 0xb]
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
movzx edx, word [r12]
mov r8d, 2
mov rcx, qword [r12 + 4]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov edx, dword [rsi + 0x20]
mov r8d, 1
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
nop
mov rax, qword [r12 + 4]
mov qword [rsp + 0x40], rax
movzx eax, word [r12]
mov word [rsp + 0x38], ax
movzx eax, word [r12 + 2]
mov word [rsp + 0x3a], ax
mov eax, dword [rsi + 0x20]
mov dword [rsp + 0x28], eax
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsi + 0x14]
mov r8d, dword [rsi + 0x10]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsi]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
jmp 0x15b48
mov rcx, qword [rsp + 0x88]
mov dword [rcx], 4
mov rcx, qword [rdi + 0x18]
mov dword [rcx], eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret

Function at 0x15c40
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x20
mov rbx, rdx
cmp r9d, 8
jae 0x15c63
xor edx, edx
mov rax, qword [rsp + 0x58]
mov dword [rax], edx
mov edx, 0xc0000004
jmp 0x15ca6
cmp dword [rsp + 0x50], 4
jae 0x15c7a
xor edx, edx
mov rax, qword [rsp + 0x58]
mov dword [rax], edx
mov edx, 0xc0000023
jmp 0x15ca6
mov rcx, qword [rdx + 0x18]
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
jmp 0x15c93
xor edx, edx
mov rcx, qword [rsp + 0x58]
mov dword [rcx], 4
mov rcx, qword [rbx + 0x18]
mov dword [rcx], eax
mov eax, edx
add rsp, 0x20
pop rbx
ret
Function at 0x15d70
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x10], rdx
push r12
sub rsp, 0x40
mov rdi, rdx
xor ebx, ebx
mov word [rsp + 0x28], bx
xor eax, eax
mov qword [rsp + 0x2a], rax
mov dword [rsp + 0x32], eax
mov word [rsp + 0x36], ax
cmp r9d, 0x10
jae 0x15dbb
mov rax, qword [rsp + 0x78]
mov dword [rax], ebx
mov ebx, 0xc0000004
jmp 0x15e55
cmp dword [rsp + 0x70], 4
jae 0x15dd3
mov rax, qword [rsp + 0x78]
mov dword [rax], ebx
mov ebx, 0xc0000023
jmp 0x15e55
mov rsi, qword [rdx + 0x18]
mov r12, qword [rsi + 8]
mov qword [rsp + 0x20], r12
mov edx, 0xc
lea r8d, [rdx - 0xb]
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
movzx edx, word [r12]
mov r8d, 2
mov rcx, qword [r12 + 4]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
nop
mov rax, qword [r12 + 4]
mov qword [rsp + 0x30], rax
movzx eax, word [r12]
mov word [rsp + 0x28], ax
movzx eax, word [r12 + 2]
mov word [rsp + 0x2a], ax
lea rdx, [rsp + 0x28]
mov rcx, qword [rsi]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
jmp 0x15e44
mov rcx, qword [rsp + 0x78]
mov dword [rcx], 4
mov rcx, qword [rdi + 0x18]
mov dword [rcx], eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x15f30
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rbx, rdx
cmp r9d, 0x24
jae 0x15f5b
xor edx, edx
mov rax, qword [rsp + 0x68]
mov dword [rax], edx
mov edx, 0xc0000004
jmp 0x15fdf
cmp dword [rsp + 0x60], 4
jae 0x15f72
xor edx, edx
mov rax, qword [rsp + 0x68]
mov dword [rax], edx
mov edx, 0xc0000023
jmp 0x15fdf
mov rdi, qword [rdx + 0x18]
mov edx, dword [rdi + 0x18]
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov edx, 4
mov r8d, edx
mov rcx, qword [rdi + 0x1c]
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
nop
mov rax, qword [rdi + 0x1c]
mov qword [rsp + 0x28], rax
mov eax, dword [rdi + 0x18]
mov dword [rsp + 0x20], eax
mov r9, qword [rdi + 0x10]
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov rcx, qword [rdi]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
jmp 0x15fcc
xor edx, edx
mov rcx, qword [rsp + 0x68]
mov dword [rcx], 4
mov rcx, qword [rbx + 0x18]
mov dword [rcx], eax
mov eax, edx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x160b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rbx, rdx
cmp r9d, 0x24
jae 0x160db
xor edx, edx
mov rax, qword [rsp + 0x68]
mov dword [rax], edx
mov edx, 0xc0000004
jmp 0x1615f
cmp dword [rsp + 0x60], 4
jae 0x160f2
xor edx, edx
mov rax, qword [rsp + 0x68]
mov dword [rax], edx
mov edx, 0xc0000023
jmp 0x1615f
mov rdi, qword [rdx + 0x18]
mov edx, dword [rdi + 0x18]
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov edx, 4
mov r8d, edx
mov rcx, qword [rdi + 0x1c]
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
nop
mov rax, qword [rdi + 0x1c]
mov qword [rsp + 0x28], rax
mov eax, dword [rdi + 0x18]
mov dword [rsp + 0x20], eax
mov r9, qword [rdi + 0x10]
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov rcx, qword [rdi]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
jmp 0x1614c
xor edx, edx
mov rcx, qword [rsp + 0x68]
mov dword [rcx], 4
mov rcx, qword [rbx + 0x18]
mov dword [rcx], eax
mov eax, edx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x16df0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0xa0
xor edx, edx
lea rcx, [rsp + 0x24]
mov dword [rsp + 0xb0], 0x78
lea r8d, [rdx + 0x74]
mov dword [rsp + 0x20], 0
call fcn.0002b780
mov r8d, 0x78
lea r9, [rsp + 0xb0]
lea ecx, [r8 - 0x68]
lea rdx, [rsp + 0x20]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov edx, dword [rsp + 0xb0]
xor ecx, ecx
add edx, 0x1000
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
je 0x16e90
mov r8d, dword [rsp + 0xb0]
xor r9d, r9d
mov rdx, rax
lea ecx, [r9 + 0x10]
add r8d, 0x1000
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jns 0x16e8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
add rsp, 0xa0
pop rbx
ret
mov rax, rbx
add rsp, 0xa0
pop rbx
ret
Function at 0x176e0
Capabilities:
Set file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x110
xor eax, eax
xor edi, edi
mov rdx, rcx
mov dword [rsp + 0x90], edi
mov word [rsp + 0x80], di
mov qword [r11 - 0x96], rax
lea rcx, [r11 - 0x98]
mov dword [rsp + 0x8a], eax
mov word [rsp + 0x8e], ax
mov dword [r11 - 0x48], edi
mov dword [r11 - 0x44], eax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x80], rax
mov qword [r11 - 0x78], rax
mov qword [r11 - 0x70], rax
mov qword [r11 - 0x68], rax
mov qword [r11 - 0x60], rax
mov qword [r11 + 0x10], rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x68], 0x800
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], 7
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0x90]
lea rcx, [rsp + 0x128]
mov edx, 0x100100
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0xa8], 0x40
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xb8], rdi
call qword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
mov ebx, eax
test eax, eax
js 0x1786a
mov rcx, qword [rsp + 0x128]
xor eax, eax
lea r9d, [rdi + 0x28]
mov qword [rsp + 0x100], rax
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0xc0]
mov dword [rsp + 0xc0], edi
mov dword [rsp + 0xc4], eax
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rax
mov dword [rsp + 0x100], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov ebx, eax
mov rcx, qword [rsp + 0x128]
test rcx, rcx
je 0x1787d
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x120]
add rsp, 0x110
pop rdi
ret
Function at 0x17890
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
push rbx
push rdi
sub rsp, 0x88
xor edi, edi
lea rdx, [rax + 0x20]
mov ecx, ecx
mov qword [rax + 0x20], rdi
mov dword [rax + 8], edi
mov dword [rax + 0x10], edi
mov qword [rax - 0x58], rdi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0xb8]
test eax, eax
js 0x179dd
test rcx, rcx
je 0x179dd
lea rax, [rsp + 0x40]
mov r9d, 0x1fffff
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, 0x200
mov byte [rsp + 0x28], dil
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
test eax, eax
js 0x1799e
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1799e
lea rax, [rsp + 0xa8]
lea r9d, [rdi + 4]
lea r8, [rsp + 0xa0]
lea edx, [rdi + 0x1d]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_NtQueryInformationProcess]
test eax, eax
js 0x1799e
cmp byte [rsp + 0xa0], dil
je 0x1799e
mov rcx, qword [rsp + 0x40]
lea r9d, [rdi + 4]
lea r8, [rsp + 0xb0]
lea edx, [rdi + 0x1d]
mov dword [rsp + 0xb0], edi
call sub.ntoskrnl.exe_NtSetInformationProcess
test eax, eax
jns 0x1799e
lea rcx, [0x000115a8]
call fcn.00018d50
mov rbx, rax
test rax, rax
je 0x1799e
mov rcx, qword [rsp + 0xb8]
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rbx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0xb8], rdi
call qword [sym.imp.ntoskrnl.exe_ZwTerminateProcess]
mov rcx, qword [rsp + 0xb8]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
add rsp, 0x88
pop rdi
pop rbx
ret
mov ebx, 0xc000000d
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
add rsp, 0x88
pop rdi
pop rbx
ret
Function at 0x17a00
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
xor edx, edx
mov rbp, rcx
lea r9, [rsp + 0x48]
lea ecx, [rdx + 5]
xor r8d, r8d
xor dil, dil
mov dword [rsp + 0x48], 0
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov ebx, eax
cmp eax, 0xc0000004
jne 0x17b08
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x17b1f
mov rdx, rax
mov ecx, 1
mov r8d, 0x65746474
mov qword [rsp + 0x50], r12
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r12, rax
test rax, rax
je 0x17b10
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rax
mov ecx, 5
mov qword [rsp + 0x40], rsi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov esi, eax
test eax, eax
js 0x17aee
mov rbx, r12
nop dword [rax + rax]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x17ada
mov rcx, qword [rbp + 8]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x17ada
movzx ecx, word [rbp]
movzx eax, word [rbx + 0x38]
mov rdx, qword [rbp + 8]
cmp ax, cx
cmovbe cx, ax
movzx r8d, cx
mov rcx, qword [rbx + 0x40]
call sub.ntoskrnl.exe__wcsnicmp
test eax, eax
jne 0x17ada
mov ecx, dword [rbx + 0x50]
call fcn.00017890
mov esi, eax
test dil, dil
jne 0x17aee
mov eax, dword [rbx]
add rbx, rax
cmp dword [rbx], 0
jne 0x17a90
mov dil, 1
jmp 0x17a90
mov edx, 0x65746474
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r12, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
mov eax, ebx
mov r12, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
mov eax, ebx
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x18d90
Capabilities:
Get system information on windows

Disassembly:
push rdi
push r12
push r14
push r15
sub rsp, 0x28
xor edi, edi
mov r14, r8
mov r15, rdx
mov r12, rcx
mov dword [rsp + 0x60], edi
test r8, r8
je 0x18f23
test rcx, rcx
je 0x18f23
lea r9, [rsp + 0x60]
lea ecx, [rdi + 0xb]
xor r8d, r8d
xor edx, edx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x18de4
mov eax, 0xc00000bb
add rsp, 0x28
pop r15
pop r14
pop r12
pop rdi
ret
cmp eax, 0xc0000004
jne 0x18e92
mov eax, dword [rsp + 0x60]
mov ecx, 1
mov r8d, 0x65786b72
add eax, 0x400
mov qword [rsp + 0x50], rbx
mov edx, eax
mov dword [rsp + 0x60], eax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x18e32
mov eax, 0xc0000017
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r14
pop r12
pop rdi
ret
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x20], r13
call fcn.0002b780
mov r8d, dword [rsp + 0x60]
lea r9, [rsp + 0x60]
mov rdx, rbx
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov r13d, eax
test eax, eax
js 0x18f10
and qword [rbx], 0xffff
mov rax, qword [rbx]
cmp rax, 1
jae 0x18e9e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc00000bb
mov r13, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r14
pop r12
pop rdi
ret
test rax, rax
je 0x18f10
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x68], rsi
mov rsi, rdi
lea rbp, [rbx + 0x2e]
nop word [rax + rax]
movzx eax, word [rbp]
mov rdx, r12
add rax, rsi
lea rcx, [rax + rbx + 0x30]
call sub.ntoskrnl.exe__stricmp
test eax, eax
je 0x18ef0
inc rdi
add rsi, 0x128
add rbp, 0x128
cmp rdi, qword [rbx]
jb 0x18ec0
jmp 0x18f06
imul rdi, rdi, 0x128
mov rax, qword [rdi + rbx + 0x18]
mov qword [r15], rax
mov eax, dword [rdi + rbx + 0x20]
mov dword [r14], eax
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, r13d
jmp 0x18e88
mov eax, 0xc0000001
add rsp, 0x28
pop r15
pop r14
pop r12
pop rdi
ret
Function at 0x18f40
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbp
push rsi
sub rsp, 0x70
xor eax, eax
mov rsi, rdx
xor edx, edx
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x28], rax
mov dword [rsp + 0x38], 0x30
mov qword [r11 - 0x38], rdx
mov dword [rsp + 0x50], 0x240
mov qword [r11 - 0x30], rcx
mov qword [r11 - 0x48], rdx
mov dword [r11 + 8], edx
mov qword [r11 - 0x20], rdx
mov qword [r11 - 0x18], rdx
lea rcx, [r11 - 0x48]
lea r8, [r11 - 0x40]
mov edx, 0xf003f
mov rbp, r9
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x190ee
mov edx, 0x1000
xor ecx, ecx
mov r8d, 0x62736374
mov qword [rsp + 0x90], rdi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
jne 0x18fe5
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc0000001
jmp 0x190e6
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x80]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov r8d, 2
mov rdx, rsi
mov dword [rsp + 0x20], 0x1000
mov qword [rsp + 0x88], rbx
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
je 0x19029
cmp eax, 0x80000005
jne 0x19093
mov ebx, dword [rsp + 0x80]
mov edx, 0x62736374
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rdx, rbx
xor ecx, ecx
mov r8d, 0x62736374
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
jne 0x19069
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc0000001
jmp 0x190de
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x80]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov r8d, 2
mov rdx, rsi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
js 0x190ce
mov ecx, dword [rdi + 8]
mov rax, qword [rsp + 0xa8]
mov dword [rax], ecx
cmp dword [rsp + 0xa0], ecx
jb 0x190c9
mov r8, rcx
lea rdx, [rdi + 0xc]
mov rcx, rbp
call fcn.0002b3f0
jmp 0x190ce
mov ebx, 0xc0000023
mov edx, 0x62736374
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
mov rbx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x98]
add rsp, 0x70
pop rsi
ret
Function at 0x19610
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rsi
mov rsi, rdx
mov r10, rcx
test rcx, rcx
jne 0x19621
xor eax, eax
pop rsi
ret
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1961d
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1961d
mov ecx, dword [rax + rcx + 0x88]
test ecx, ecx
je 0x1961d
cmp dword [rax + r10 + 0x8c], 0
je 0x1961d
mov qword [rsp + 0x20], rdi
mov rdi, rcx
add rdi, r10
jne 0x19664
xor eax, eax
mov rdi, qword [rsp + 0x20]
pop rsi
ret
mov r11d, dword [rdi + 0x20]
mov qword [rsp + 0x10], rbx
mov ebx, dword [rdi + 0x18]
mov qword [rsp + 0x18], rbp
mov ebp, dword [rdi + 0x24]
add r11, r10
add rbp, r10
xor r8d, r8d
test ebx, ebx
je 0x196c3
nop word [rax + rax]
mov r9d, dword [r11]
mov rax, rsi
add r9, r10
sub r9, rsi
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x196b3
inc rax
test ecx, ecx
jne 0x196a0
test edx, edx
je 0x196c3
inc r8d
add r11, 4
cmp r8d, ebx
jb 0x19690
cmp r8d, ebx
mov rbx, qword [rsp + 0x10]
jb 0x196db
mov rbp, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
xor eax, eax
pop rsi
ret
movsxd rax, r8d
movzx edx, word [rbp + rax*2]
mov eax, dword [rdi + 0x1c]
mov rbp, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
lea rcx, [r10 + rax]
mov eax, dword [rcx + rdx*4]
add rax, r10
pop rsi
ret

Function at 0x19700
Capabilities:
Parse pe header

Disassembly:
sub rsp, 8
mov r8, rcx
test rcx, rcx
je 0x197b8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x197b8
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x197b8
mov ecx, dword [rax + rcx + 0x78]
test ecx, ecx
je 0x197b8
cmp dword [rax + r8 + 0x7c], 0
je 0x197b8
mov r9, rcx
add r9, r8
je 0x197b8
mov edx, dword [r9 + 0x20]
mov r11d, dword [r9 + 0x24]
mov r10d, dword [r9 + 0x18]
add rdx, r8
add r11, r8
xor eax, eax
test r10d, r10d
je 0x19799
mov qword [rsp + 0x10], rsi
mov qword [rsp], rdi
nop dword [rax]
mov edi, dword [rdx]
lea rsi, [0x00012250]
mov ecx, 0xd
add rdi, r8
repe cmpsb byte [rsi], byte [rdi]
je 0x19790
inc eax
add rdx, 4
cmp eax, r10d
jb 0x19770
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp]
cmp eax, r10d
jae 0x197b8
cdqe
movzx edx, word [r11 + rax*2]
mov eax, dword [r9 + 0x1c]
lea rcx, [r8 + rax]
mov eax, dword [rcx + rdx*4]
add rax, r8
add rsp, 8
ret
xor eax, eax
add rsp, 8
ret
Function at 0x19bb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x80
xor eax, eax
mov qword [r11 + 0x18], rbx
mov qword [r11 - 0x18], r12
mov r12, qword [0x0002ece0]
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x40], rax
mov rax, qword [r12]
mov dword [rsp + 0x30], 0x30
xor edi, edi
mov qword [r11 - 0x20], r13
mov r13, r8
mov qword [r11 - 0x50], rax
mov dword [rsp + 0x48], 0x240
mov qword [r11 - 0x28], r14
mov edx, 0x1000
xor ecx, ecx
mov r8d, 0x70656472
mov qword [r11 - 0x48], rdi
mov qword [r11 - 0x38], rdi
mov qword [r11 - 0x30], rdi
mov r14, r9
mov dword [r11 + 0x10], edi
mov qword [r11 + 8], rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x19c4f
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.0002b780
test rbx, rbx
je 0x19d55
mov rcx, qword [rsp + 0x90]
lea rax, [rsp + 0x98]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov r8d, 2
mov rdx, r13
mov dword [rsp + 0x20], 0x1000
mov qword [rsp + 0xa8], rbp
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov edi, eax
cmp eax, 0xc0000023
je 0x19c9f
cmp eax, 0x80000005
jne 0x19d16
mov ebp, dword [rsp + 0x98]
mov edx, 0x70656472
mov rcx, rbx
mov qword [rsp + 0x78], rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r8d, 0x70656472
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x19cdf
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.0002b780
mov rsi, qword [rsp + 0x78]
test rbx, rbx
je 0x19d4d
mov rcx, qword [rsp + 0x90]
lea rax, [rsp + 0x98]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov r8d, 2
mov rdx, r13
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov edi, eax
test edi, edi
js 0x19d3f
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rbx + 8]
cmp dword [rax], ecx
jb 0x19d3a
mov r8, rcx
lea rdx, [rbx + 0xc]
mov rcx, r14
call fcn.0002b3f0
jmp 0x19d3f
mov edi, 0xc0000023
mov edx, 0x70656472
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbp, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x90]
mov r14, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
cmp rcx, qword [r12]
mov rbx, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x70]
je 0x19d80
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test edi, edi
setns al
add rsp, 0x80
pop rdi
ret
Function at 0x19d90
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x50
xor eax, eax
xor edi, edi
mov rbx, r8
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x20], rax
mov rax, qword [0x0002ece0]
mov rcx, qword [rax]
mov dword [rsp + 0x20], 0x30
lea r8, [r11 - 0x38]
mov qword [r11 - 0x30], rcx
mov dword [rsp + 0x38], 0x240
mov qword [r11 - 0x28], rdx
lea rcx, [r11 + 8]
mov edx, 0xf003f
mov qword [r11 + 8], rdi
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x10], rdi
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jns 0x19e0d
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rsp + 0x60]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp ebx, 0xc0000034
cmove ebx, edi
test ebx, ebx
mov rbx, qword [rsp + 0x68]
setns al
add rsp, 0x50
pop rdi
ret