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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x2c0
mov rax, qword [0x00039100]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor ebp, ebp
mov bl, cl
mov rdi, rdx
lea rcx, [r11 - 0x226]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x38], ebp
mov word [rsp + 0xa0], bp
call fcn.0002f7f0
lea r11, [rsp + 0xa0]
mov eax, 0x208
mov word [rsp + 0x50], bp
mov word [rsp + 0x52], ax
mov qword [rsp + 0x58], r11
cmp bl, bpl
je 0x26239
cmp word [0x000413f0], bp
je 0x26396
lea rdx, [0x000413f0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea rcx, [rsp + 0x90]
mov rdx, rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x30]
mov edx, 0x80000000
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x78], 0x240
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x88], rbp
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebp
jl 0x26396
mov edx, 0x818
mov ecx, 1
call fcn.0002e404
mov rcx, qword [rsp + 0x30]
mov rbx, rax
cmp rax, rbp
je 0x26390
lea rax, [rsp + 0x38]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov esi, ebp
mov dword [rsp + 0x20], 0x818
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, ebp
jl 0x26383
lea rdi, [rbx + 0x10]
movzx ecx, word [rbx + 0xc]
inc esi
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x40], cx
mov word [rsp + 0x42], cx
cmp cx, 6
jb 0x26356
cmp word [rdi], 0x7b
je 0x26347
lea rdx, [rdi + 2]
cmp word [rdx], 0x7b
jne 0x26356
movzx eax, cx
shr rax, 1
cmp word [rdi + rax*2 - 2], 0x7d
jne 0x26356
mov eax, 0xfffe
mov qword [rsp + 0x48], rdx
add cx, ax
mov word [rsp + 0x40], cx
mov word [rsp + 0x42], cx
lea rcx, [rsp + 0x40]
mov edx, 5
call fcn.00026014
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, esi
mov dword [rsp + 0x20], 0x818
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, ebp
jge 0x262f7
mov rcx, rbx
call fcn.0002e47c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.0002f1d0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x263c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x2d0
mov rax, qword [0x00039100]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov bl, cl
mov rdi, rdx
lea rcx, [r11 - 0x226]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xb0], bp
call fcn.0002f7f0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x48], rax
mov eax, 0x208
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x38], ebp
mov word [rsp + 0x40], bp
mov word [rsp + 0x42], ax
cmp bl, bpl
je 0x26473
cmp word [0x000413f0], bp
je 0x26598
lea rdx, [0x000413f0]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea rcx, [rsp + 0x90]
mov rdx, rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x30]
mov edx, 0x80000000
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x78], 0x240
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x88], rbp
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebp
jl 0x26598
mov edx, 0x1000
mov ecx, 1
call fcn.0002e404
mov rcx, qword [rsp + 0x30]
mov rbx, rax
cmp rax, rbp
je 0x26592
lea rax, [rsp + 0x38]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov esi, ebp
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
cmp eax, ebp
jl 0x26585
lea rdi, [rbx + 0xc]
movzx eax, word [rbx + 8]
inc esi
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x50], ax
mov word [rsp + 0x52], ax
cmp ax, bp
je 0x2655c
cmp word [rdi], 0x7b
jne 0x2655c
lea rcx, [rsp + 0x50]
mov edx, 5
call fcn.00026014
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, esi
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
cmp eax, ebp
jge 0x2652d
mov rcx, rbx
call fcn.0002e47c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.0002f1d0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x2666c
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, 5
lea rdx, [0x00031570]
xor ecx, ecx
mov r8d, ebx
call fcn.00026194
lea rdx, [0x00031630]
mov r8d, ebx
xor ecx, ecx
call fcn.00026194
lea rdx, [0x000316c0]
mov r8d, ebx
xor ecx, ecx
call fcn.000263c8
lea rdx, [0x00031740]
mov r8d, ebx
xor ecx, ecx
call fcn.000263c8
lea rdx, [0x000317d0]
mov r8d, ebx
xor ecx, ecx
call fcn.00026194
lea rdx, [0x00031860]
mov r8d, ebx
xor ecx, ecx
call fcn.00026194
lea rdx, [0x00031930]
mov r8d, ebx
xor ecx, ecx
call fcn.00026194
lea rdx, [0x000319e0]
mov r8d, ebx
xor ecx, ecx
call fcn.000263c8
lea rdx, [0x00031a80]
mov r8d, ebx
xor ecx, ecx
call fcn.000263c8
lea rdx, [0x00031b30]
mov r8d, ebx
xor ecx, ecx
add rsp, 0x20
pop rbx
jmp fcn.00026194

Function at 0x2672c
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, 5
lea rdx, [0x00031bd0]
mov cl, 1
mov r8d, ebx
call fcn.000263c8
lea rdx, [0x00031c50]
mov r8d, ebx
mov cl, 1
call fcn.000263c8
lea rdx, [0x00031cd0]
mov r8d, ebx
mov cl, 1
call fcn.00026194
lea rdx, [0x00031d40]
mov r8d, ebx
mov cl, 1
call fcn.000263c8
lea rdx, [0x00031dd0]
mov r8d, ebx
mov cl, 1
call fcn.000263c8
lea rdx, [0x00031e60]
mov r8d, ebx
mov cl, 1
add rsp, 0x20
pop rbx
jmp fcn.00026194

Function at 0x274c0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor bl, bl
xor esi, esi
mov ebp, ecx
cmp byte [0x000415f8], bl
jne 0x274ec
mov eax, 0xc0000001
jmp 0x2759a
lea rcx, [0x00031ef0]
call fcn.0001d798
mov rdi, rax
test rax, rax
je 0x274e2
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
lea rcx, [0x0004d960]
mov dl, 1
call qword [sym.imp.ntoskrnl.exe_ExAcquireResourceExclusiveLite]
mov rax, qword [0x0004d9d0]
lea rcx, [0x0004d9d0]
jmp 0x27530
mov rsi, rax
cmp dword [rax + 0x10], ebp
je 0x27537
mov rax, qword [rax]
cmp rax, rcx
jne 0x27525
jmp 0x27547
mov rdx, qword [rax]
mov rax, qword [rax + 8]
mov bl, 1
mov qword [rax], rdx
mov qword [rdx + 8], rax
lea rcx, [0x0004d960]
call qword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
test bl, bl
je 0x2758a
mov rdx, qword [rsi + 0x20]
mov rcx, rdi
add rdx, 0x20
call qword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov rcx, qword [rsi + 0x20]
mov ebx, eax
call fcn.0002729c
mov edx, 0x49544650
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x2758f
mov ebx, 0xc0000225
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x2783c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov r13d, r9d
mov r15d, r8d
mov esi, edx
mov r14d, ecx
mov r12b, bl
mov qword [rax - 0x40], rbx
mov word [rax - 0x48], bx
mov word [rax - 0x46], bx
cmp byte [0x000415f8], bl
jne 0x27886
mov eax, 0xc0000001
jmp 0x279dc
mov edi, edx
and edi, 1
jne 0x2789c
test dl, 2
jne 0x2789c
mov eax, 0xc000000d
jmp 0x279dc
lea rcx, [0x00031ef0]
call fcn.0001d798
mov rbp, rax
cmp rax, rbx
je 0x2787c
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
lea rcx, [0x0004d960]
mov dl, 1
call qword [sym.imp.ntoskrnl.exe_ExAcquireResourceExclusiveLite]
mov rbx, qword [0x0004d9d0]
lea rax, [0x0004d9d0]
jmp 0x278de
cmp dword [rbx + 0x10], r14d
je 0x278e8
mov rbx, qword [rbx]
cmp rbx, rax
jne 0x278d5
jmp 0x27971
test edi, edi
je 0x278f0
mov dword [rbx + 0x18], r15d
test sil, 2
je 0x278fa
mov dword [rbx + 0x14], r13d
xor eax, eax
mov ecx, 1
mov r8d, 0x53434941
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov eax, 0x5432
mov word [rsp + 0x40], ax
mov eax, dword [rbx + 0x14]
mov dword [rsp + 0x48], eax
mov eax, dword [rbx + 0x18]
mov dword [rsp + 0x4c], eax
mov rax, qword [rbx + 0x20]
movzx edx, word [rax + 0x20]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x27971
mov rax, qword [rbx + 0x20]
lea rcx, [rsp + 0x30]
movzx edx, word [rax + 0x20]
mov word [rsp + 0x30], dx
mov rax, qword [rbx + 0x20]
movzx edx, word [rax + 0x20]
mov word [rsp + 0x32], dx
mov rdx, qword [rbx + 0x20]
add rdx, 0x20
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
mov r12b, 1
lea rcx, [0x0004d960]
call qword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
test r12b, r12b
je 0x279cc
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov r9d, 3
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x38]
mov edx, 0x53434941
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [rsp + 0x38], 0
jmp 0x279d1
mov ebx, 0xc0000225
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x27d68
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp byte [0x000415fa], 0
mov rdi, rdx
mov rbp, rcx
jne 0x27d95
mov eax, 0xc0000001
jmp 0x27e20
call fcn.00027cb4
test al, al
je 0x27da2
xor eax, eax
jmp 0x27e20
lea rcx, [0x00031f10]
mov dword [rsp + 0x50], 0x4c45484e
call fcn.0001d798
mov r9d, 3
xor r8d, r8d
mov rsi, rax
lea rax, [rsp + 0x50]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov ebx, eax
test eax, eax
js 0x27e15
mov ecx, 1
lock xadd dword [0x0003eb14], ecx
inc ecx
mov rdx, rdi
mov dword [rbp], ecx
call fcn.00027bb8
test al, al
jne 0x27e15
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov ebx, 0xc0000001
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x27e3c
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor bl, bl
xor esi, esi
mov ebp, ecx
cmp byte [0x000415fa], bl
jne 0x27e68
mov eax, 0xc0000001
jmp 0x27f17
lea rcx, [0x00031f10]
call fcn.0001d798
mov rdi, rax
test rax, rax
je 0x27e5e
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
lea rcx, [0x0004d8e0]
mov dl, 1
call qword [sym.imp.ntoskrnl.exe_ExAcquireResourceExclusiveLite]
mov rax, qword [0x0004d950]
lea rcx, [0x0004d950]
jmp 0x27eac
mov rsi, rax
cmp dword [rax + 0x10], ebp
je 0x27eb3
mov rax, qword [rax]
cmp rax, rcx
jne 0x27ea1
jmp 0x27ec3
mov rdx, qword [rax]
mov rax, qword [rax + 8]
mov bl, 1
mov qword [rax], rdx
mov qword [rdx + 8], rax
lea rcx, [0x0004d8e0]
call qword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
test bl, bl
je 0x27f07
lea rdx, [rsi + 0x18]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov rcx, qword [rsi + 0x20]
mov ebp, 0x4c45484e
mov edx, ebp
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x27f0c
mov ebx, 0xc0000225
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x29dd8
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
xor ebx, ebx
mov eax, 0x1000
mov edx, eax
mov ecx, 1
mov dword [rsp + 0x38], eax
call fcn.0002e404
mov rsi, rax
cmp rax, rbx
je 0x29e78
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x29e40
mov rcx, rsi
call fcn.0002e47c
mov eax, dword [rsp + 0x38]
add eax, 0x4000
jmp 0x29df6
cmp eax, ebx
jl 0x29e6b
mov rdi, rsi
mov rcx, qword [rdi + 0x40]
cmp rcx, rbx
je 0x29e5c
mov rdx, rbp
call sub.ntoskrnl.exe__wcsicmp
cmp eax, ebx
je 0x29e67
cmp dword [rdi], ebx
je 0x29e6b
mov eax, dword [rdi]
add rdi, rax
jmp 0x29e47
mov rbx, qword [rdi + 0x50]
mov rcx, rsi
call fcn.0002e47c
mov rax, rbx
jmp 0x29e7a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x2a00c
Capabilities:
Check os version

Disassembly:
mov rax, rsp
sub rsp, 0x38
lea r9, [rax - 0x18]
lea r8, [rax + 0x18]
lea rdx, [rax + 0x10]
lea rcx, [rax + 8]
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [rsp + 0x40], 5
jne 0x2a03b
cmp dword [rsp + 0x48], 2
jne 0x2a03b
mov al, 1
jmp 0x2a03d
xor al, al
add rsp, 0x38
ret

Function at 0x2a048
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
xor edi, edi
mov r13, rdx
mov r14, rcx
lea esi, [rdi + 0xb]
lea r9, [rax + 0x18]
xor r8d, r8d
xor edx, edx
mov ecx, esi
mov r12, rdi
mov dword [rax + 0x18], edi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
je 0x2a08f
xor eax, eax
jmp 0x2a121
mov edx, dword [rsp + 0x60]
mov ecx, 1
call fcn.0002e404
mov rbx, rax
cmp rax, rdi
je 0x2a088
mov r8d, dword [rsp + 0x60]
lea r9, [rsp + 0x60]
mov rdx, rax
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, edi
jl 0x2a116
mov esi, edi
cmp dword [rbx], edi
jbe 0x2a113
lea rbp, [rbx + 0x2e]
movzx ecx, word [rbp]
mov eax, esi
mov rdx, r14
imul rax, rax, 0x128
add rax, rbx
lea rcx, [rcx + rax + 0x30]
call fcn.0002f226
cmp eax, edi
je 0x2a0f8
inc esi
add rbp, 0x128
cmp esi, dword [rbx]
jb 0x2a0c8
jmp 0x2a113
mov eax, esi
imul rax, rax, 0x128
mov r12, qword [rax + rbx + 0x18]
cmp r13, rdi
je 0x2a113
mov eax, dword [rax + rbx + 0x20]
mov dword [r13], eax
mov rdi, r12
mov rcx, rbx
call fcn.0002e47c
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x2a180
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x2a19f
xor eax, eax
jmp 0x2a1ba
mov rcx, qword [rsp + 0x38]
call sub.ntoskrnl.exe_PsGetProcessInheritedFromUniqueProcessId
mov rcx, qword [rsp + 0x38]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x2a360
Capabilities:
Check os version

Disassembly:
mov rax, rsp
sub rsp, 0x38
lea r9, [rax - 0x18]
lea r8, [rax + 0x10]
lea rdx, [rax + 0x18]
lea rcx, [rax + 8]
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [rsp + 0x40], 6
setae al
add rsp, 0x38
ret

Function at 0x2a3d0
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov dil, bl
cmp rcx, rbx
jne 0x2a3f9
xor al, al
jmp 0x2a4bb
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jl 0x2a3f2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsReferencePrimaryToken]
mov rsi, rax
cmp rax, rbx
je 0x2a4ae
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_SeQueryInformationToken]
cmp eax, ebx
jl 0x2a4a2
call fcn.0002b7b0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
mov rdx, qword [rax + 0x108]
call qword [sym.imp.ntoskrnl.exe_RtlEqualSid]
mov dil, al
cmp al, bl
jne 0x2a495
call fcn.0002b7b0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
mov rdx, qword [rax + 0x180]
call qword [sym.imp.ntoskrnl.exe_RtlEqualSid]
mov dil, al
cmp al, bl
jne 0x2a495
call fcn.0002b7b0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
mov rdx, qword [rax + 0x188]
call qword [sym.imp.ntoskrnl.exe_RtlEqualSid]
mov dil, al
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_PsDereferencePrimaryToken]
mov bl, dil
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x2a884
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x00039100]
xor rax, rsp
mov qword [rsp + 0x430], rax
and dword [rsp + 0x20], 0
xor r8d, r8d
mov rsi, rdx
mov rbp, rcx
lea r9, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 5]
or ebx, 0xffffffff
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x2a967
mov eax, dword [rsp + 0x20]
mov edx, eax
mov ecx, 1
call fcn.0002e404
mov rdi, rax
test rax, rax
je 0x2a967
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x2a92b
mov rcx, rdi
call fcn.0002e47c
mov eax, dword [rsp + 0x20]
add eax, 0x4000
mov dword [rsp + 0x20], eax
jmp 0x2a8e1
test eax, eax
js 0x2a95f
mov rcx, rdi
cmp rbp, qword [rdi + 0x50]
je 0x2a948
cmp dword [rcx], 0
je 0x2a95f
mov eax, dword [rcx]
add rcx, rax
cmp rbp, qword [rcx + 0x50]
jne 0x2a938
mov ebx, dword [rcx + 4]
cmp ebx, 1
jb 0x2a95f
test rsi, rsi
je 0x2a95f
mov rcx, qword [rcx + 0x130]
mov qword [rsi], rcx
mov rcx, rdi
call fcn.0002e47c
mov eax, ebx
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.0002f1d0
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x2a998
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rsi, r9
mov rbp, r8
mov r12, rdx
mov r13, rcx
mov eax, 0x10000
mov edx, eax
mov ecx, 1
mov dword [rsp + 0x30], eax
call fcn.0002e404
mov rdi, rax
test rax, rax
je 0x2aa4a
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x2aa0b
mov rcx, rdi
call fcn.0002e47c
mov eax, dword [rsp + 0x30]
add eax, 0x4000
jmp 0x2a9c1
test eax, eax
js 0x2aa42
mov rbx, rdi
mov r8, qword [rbx + 0x40]
test r8, r8
je 0x2aa36
mov edx, dword [rbx + 0x64]
mov rcx, qword [rbx + 0x50]
mov r9, r12
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbp
call r13
test al, al
je 0x2aa42
cmp dword [rbx], 0
je 0x2aa42
mov eax, dword [rbx]
add rbx, rax
jmp 0x2aa12
mov rcx, rdi
call fcn.0002e47c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x2ae0c
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea rdx, [rsp + 0x40]
xor ebx, ebx
mov qword [rsp + 0x40], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jge 0x2ae33
xor al, al
jmp 0x2ae60
mov rcx, qword [rsp + 0x40]
call fcn.0002f23e
cmp rax, rbx
je 0x2ae53
mov rdx, rdi
mov rcx, rax
call fcn.0002f226
cmp eax, ebx
jne 0x2ae53
mov bl, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x2b778
Capabilities:
Find process by pid

Disassembly:
sub rsp, 0x28
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x2b7a0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, 1
jmp 0x2b7a2
xor al, al
add rsp, 0x28
ret

Function at 0x2b8cc
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea rdx, [rsp + 0x40]
xor ebx, ebx
mov qword [rsp + 0x40], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jge 0x2b8f3
xor al, al
jmp 0x2b912
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessSectionBaseAddress]
cmp rax, rdi
jne 0x2b905
mov bl, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x2bbe8
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rax, rdx
mov rbp, rcx
xor ebx, ebx
lea rdx, [r11 + 0x20]
mov rcx, rax
mov edi, 0x12c
mov qword [r11 + 0x20], rbx
mov qword [r11 + 0x18], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jge 0x2bc20
xor al, al
jmp 0x2bc72
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x50], rcx
call sub.ntoskrnl.exe_PsGetProcessInheritedFromUniqueProcessId
mov rcx, qword [rsp + 0x50]
mov rsi, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp rsi, rbp
je 0x2bc6e
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jl 0x2bc70
mov rcx, qword [rsp + 0x50]
cmp rsi, rbx
je 0x2bc66
mov eax, edi
dec edi
cmp eax, ebx
jg 0x2bc2a
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x2bc70
mov bl, 1
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret