joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2cb40
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 [0x0004cc79], bl
jne 0x2cb8a
mov eax, 0xc0000001
jmp 0x2cce0
mov edi, edx
and edi, 1
jne 0x2cba0
test dl, 2
jne 0x2cba0
mov eax, 0xc000000d
jmp 0x2cce0
lea rcx, [0x0003d0c0]
call fcn.0001e470
mov rbp, rax
cmp rax, rbx
je 0x2cb80
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
lea rcx, [0x00059000]
mov dl, 1
call qword [sym.imp.ntoskrnl.exe_ExAcquireResourceExclusiveLite]
mov rbx, qword [0x00059070]
lea rax, [0x00059070]
jmp 0x2cbe2
cmp dword [rbx + 0x10], r14d
je 0x2cbec
mov rbx, qword [rbx]
cmp rbx, rax
jne 0x2cbd9
jmp 0x2cc75
test edi, edi
je 0x2cbf4
mov dword [rbx + 0x18], r15d
test sil, 2
je 0x2cbfe
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 0x2cc75
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, [0x00059000]
call qword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
test r12b, r12b
je 0x2ccd0
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 0x2ccd5
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 0x2d06c
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 [0x0004cc7b], 0
mov rdi, rdx
mov rbp, rcx
jne 0x2d099
mov eax, 0xc0000001
jmp 0x2d124
call fcn.0002cfb8
test al, al
je 0x2d0a6
xor eax, eax
jmp 0x2d124
lea rcx, [0x0003d0e0]
mov dword [rsp + 0x50], 0x4c45484e
call fcn.0001e470
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 0x2d119
mov ecx, 1
lock xadd dword [0x00049a34], ecx
inc ecx
mov rdx, rdi
mov dword [rbp], ecx
call fcn.0002cebc
test al, al
jne 0x2d119
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 0x2d140
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 [0x0004cc7b], bl
jne 0x2d16c
mov eax, 0xc0000001
jmp 0x2d21b
lea rcx, [0x0003d0e0]
call fcn.0001e470
mov rdi, rax
test rax, rax
je 0x2d162
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
lea rcx, [0x00058f80]
mov dl, 1
call qword [sym.imp.ntoskrnl.exe_ExAcquireResourceExclusiveLite]
mov rax, qword [0x00058ff0]
lea rcx, [0x00058ff0]
jmp 0x2d1b0
mov rsi, rax
cmp dword [rax + 0x10], ebp
je 0x2d1b7
mov rax, qword [rax]
cmp rax, rcx
jne 0x2d1a5
jmp 0x2d1c7
mov rdx, qword [rax]
mov rax, qword [rax + 8]
mov bl, 1
mov qword [rax], rdx
mov qword [rdx + 8], rax
lea rcx, [0x00058f80]
call qword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
test bl, bl
je 0x2d20b
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 0x2d210
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 0x305dc
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.000353f8
mov rsi, rax
cmp rax, rbx
je 0x3067c
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 0x30644
mov rcx, rsi
call fcn.00035470
mov eax, dword [rsp + 0x38]
add eax, 0x4000
jmp 0x305fa
cmp eax, ebx
jl 0x3066f
mov rdi, rsi
mov rcx, qword [rdi + 0x40]
cmp rcx, rbx
je 0x30660
mov rdx, rbp
call fcn.00039b8e
cmp eax, ebx
je 0x3066b
cmp dword [rdi], ebx
je 0x3066f
mov eax, dword [rdi]
add rdi, rax
jmp 0x3064b
mov rbx, qword [rdi + 0x50]
mov rcx, rsi
call fcn.00035470
mov rax, rbx
jmp 0x3067e
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 0x30810
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 0x3083f
cmp dword [rsp + 0x48], 2
jne 0x3083f
mov al, 1
jmp 0x30841
xor al, al
add rsp, 0x38
ret

Function at 0x3084c
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 0x30893
xor eax, eax
jmp 0x30925
mov edx, dword [rsp + 0x60]
mov ecx, 1
call fcn.000353f8
mov rbx, rax
cmp rax, rdi
je 0x3088c
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 0x3091a
mov esi, edi
cmp dword [rbx], edi
jbe 0x30917
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.00039b46
cmp eax, edi
je 0x308fc
inc esi
add rbp, 0x128
cmp esi, dword [rbx]
jb 0x308cc
jmp 0x30917
mov eax, esi
imul rax, rax, 0x128
mov r12, qword [rax + rbx + 0x18]
cmp r13, rdi
je 0x30917
mov eax, dword [rax + rbx + 0x20]
mov dword [r13], eax
mov rdi, r12
mov rcx, rbx
call fcn.00035470
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 0x30984
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 0x309a3
xor eax, eax
jmp 0x309be
mov rcx, qword [rsp + 0x38]
call fcn.0003a0fa
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 0x30c14
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 0x30d08
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 0x30d31
xor al, al
jmp 0x30df3
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jl 0x30d2a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsReferencePrimaryToken]
mov rsi, rax
cmp rax, rbx
je 0x30de6
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_SeQueryInformationToken]
cmp eax, ebx
jl 0x30dda
call fcn.000320e8
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 0x30dcd
call fcn.000320e8
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 0x30dcd
call fcn.000320e8
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 0x311bc
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 [0x00045100]
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 0x3129f
mov eax, dword [rsp + 0x20]
mov edx, eax
mov ecx, 1
call fcn.000353f8
mov rdi, rax
test rax, rax
je 0x3129f
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 0x31263
mov rcx, rdi
call fcn.00035470
mov eax, dword [rsp + 0x20]
add eax, 0x4000
mov dword [rsp + 0x20], eax
jmp 0x31219
test eax, eax
js 0x31297
mov rcx, rdi
cmp rbp, qword [rdi + 0x50]
je 0x31280
cmp dword [rcx], 0
je 0x31297
mov eax, dword [rcx]
add rcx, rax
cmp rbp, qword [rcx + 0x50]
jne 0x31270
mov ebx, dword [rcx + 4]
cmp ebx, 1
jb 0x31297
test rsi, rsi
je 0x31297
mov rcx, qword [rcx + 0x130]
mov qword [rsi], rcx
mov rcx, rdi
call fcn.00035470
mov eax, ebx
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.00039af0
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 0x312d0
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.000353f8
mov rdi, rax
test rax, rax
je 0x31382
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 0x31343
mov rcx, rdi
call fcn.00035470
mov eax, dword [rsp + 0x30]
add eax, 0x4000
jmp 0x312f9
test eax, eax
js 0x3137a
mov rbx, rdi
mov r8, qword [rbx + 0x40]
test r8, r8
je 0x3136e
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 0x3137a
cmp dword [rbx], 0
je 0x3137a
mov eax, dword [rbx]
add rbx, rax
jmp 0x3134a
mov rcx, rdi
call fcn.00035470
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 0x31744
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 0x3176b
xor al, al
jmp 0x31798
mov rcx, qword [rsp + 0x40]
call fcn.00039b5e
cmp rax, rbx
je 0x3178b
mov rdx, rdi
mov rcx, rax
call fcn.00039b46
cmp eax, ebx
jne 0x3178b
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 0x320b0
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 0x320d8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, 1
jmp 0x320da
xor al, al
add rsp, 0x28
ret

Function at 0x32204
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x50
xor ebx, ebx
lea rdx, [rax - 0x18]
mov qword [rax - 0x18], rbx
mov dword [rax + 0x18], ebx
mov dword [rax + 0x10], ebx
mov qword [rax + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jge 0x32235
xor al, al
jmp 0x322cc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsReferencePrimaryToken]
mov r9d, 0xf01ff
xor r8d, r8d
mov rdi, rax
lea rax, [rsp + 0x78]
mov edx, 0x200
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov byte [rsp + 0x28], bl
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
cmp eax, ebx
jl 0x322b6
mov rcx, qword [rsp + 0x78]
mov r9d, 4
lea rax, [rsp + 0x70]
lea edx, [r9 + 0xe]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationToken]
cmp eax, ebx
jl 0x322ab
cmp dword [rsp + 0x68], 3
movzx eax, bl
mov ecx, 1
cmove eax, ecx
mov bl, al
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_PsDereferencePrimaryToken]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x323d4
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 0x323fb
xor al, al
jmp 0x3241a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessSectionBaseAddress]
cmp rax, rdi
jne 0x3240d
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 0x32990
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 0x329c8
xor al, al
jmp 0x32a1a
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x50], rcx
call fcn.0003a0fa
mov rcx, qword [rsp + 0x50]
mov rsi, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp rsi, rbp
je 0x32a16
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jl 0x32a18
mov rcx, qword [rsp + 0x50]
cmp rsi, rbx
je 0x32a0e
mov eax, edi
dec edi
cmp eax, ebx
jg 0x329d2
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x32a18
mov bl, 1
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x32a30
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x90
xor ebx, ebx
mov rbp, rdx
lea rdx, [rax - 0x80]
mov r12, rcx
mov qword [rax - 0x80], rbx
mov qword [rax - 0x78], rbx
mov dil, bl
mov qword [rax + 0x20], rbx
mov qword [rsp + 0x30], rbx
mov dword [rax + 0x18], ebx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jge 0x32a79
xor al, al
jmp 0x32c6a
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x38]
cmp eax, ebx
jge 0x32a98
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x32a72
call fcn.00039b5e
mov rcx, qword [rsp + 0x40]
mov rsi, rax
call fcn.00039b5e
mov r13d, 1
cmp rsi, rbx
je 0x32ace
cmp rax, rbx
je 0x32ace
mov rdx, rax
mov rcx, rsi
call fcn.00039b46
cmp eax, ebx
jne 0x32ad9
mov dil, r13b
jmp 0x32ad9
movzx edi, dil
cmp rsi, rax
cmove edi, r13d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dil, bl
je 0x32a72
mov edi, 0x400
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0xd8]
mov edx, edi
mov dword [rsp + 0x58], 0x30
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x70], 0x200
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], r12
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
cmp eax, ebx
jl 0x32a72
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x30]
mov edx, edi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbp
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
cmp eax, ebx
jge 0x32b88
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x32a72
mov ebp, 0x10100
mov ecx, r13d
mov rdx, rbp
call fcn.000353f8
mov rdi, rax
cmp rax, rbx
jne 0x32bb5
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x30]
jmp 0x32b7d
mov rdx, rbp
mov ecx, r13d
call fcn.000353f8
mov rsi, rax
cmp rax, rbx
jne 0x32bd2
mov rcx, rdi
call fcn.00035470
jmp 0x32ba0
mov rcx, qword [rsp + 0xd8]
lea rax, [rsp + 0xd0]
mov r12d, 0x1b
mov edx, r12d
mov r9d, ebp
mov r8, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
cmp eax, ebx
jl 0x32c3f
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0xd0]
mov r9d, ebp
mov r8, rsi
mov edx, r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
cmp eax, ebx
jl 0x32c3f
mov r8b, r13b
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
movzx ecx, bl
cmp eax, ebx
cmove ecx, r13d
mov bl, cl
mov rcx, rsi
call fcn.00035470
mov rcx, rdi
call fcn.00035470
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, bl
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x32d6c
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
and qword [rax + 0x20], 0
and qword [rax + 0x18], 0
mov rdi, rdx
lea rdx, [rax - 0x18]
xor bl, bl
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x32d9c
xor al, al
jmp 0x32e48
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x32dbb
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x32d95
cmp qword [0x00049a88], 0
je 0x32e30
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x58]
call fcn.00032d00
test eax, eax
js 0x32e30
cmp qword [0x00049a88], 0
je 0x32e1d
mov rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x50]
call fcn.00032d00
test eax, eax
js 0x32e1d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov bl, al
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x331a4
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 0x331c3
xor eax, eax
jmp 0x331df
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessSectionBaseAddress]
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 0x331ec
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x70
mov rdi, qword [0x0004c4c0]
and qword [rax + 0x20], 0
and qword [rax + 0x18], 0
lea rdx, [rax - 0x58]
xor bl, bl
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x33220
xor al, al
jmp 0x33358
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x3323f
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x33219
cmp qword [0x00049a88], 0
je 0x33340
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x98]
call fcn.00032d00
test eax, eax
js 0x33340
cmp qword [0x00049a88], 0
je 0x33327
mov rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x90]
call fcn.00032d00
test eax, eax
js 0x33327
mov rax, qword [rsp + 0x98]
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x30], xmm0
movzx r9d, word [rsp + 0x30]
shr r9d, 1
je 0x3330e
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.00031ac0
test al, al
je 0x3330e
mov rax, qword [rsp + 0x90]
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x30], xmm0
movzx r9d, word [rsp + 0x30]
shr r9d, 1
je 0x3330e
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.00031ac0
test al, al
je 0x3330e
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
mov bl, al
mov rcx, qword [rsp + 0x90]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [rsp + 0x90], 0
mov rcx, qword [rsp + 0x98]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [rsp + 0x98], 0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret