joyce8/EMBER2024-capa huggingface dataset:
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.0002b7b0
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.0002b420
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 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.0002b7b0
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.0002b7b0
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.0002b420
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 0x19e50
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x70
xor eax, eax
xor edi, edi
lea r8, [r11 - 0x38]
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 + 0x40], 0x30
mov rsi, r9
mov qword [r11 - 0x30], rcx
mov dword [rsp + 0x58], 0x240
mov qword [r11 - 0x28], rdx
lea rcx, [r11 + 0x10]
mov edx, 0x20019
mov qword [r11 + 0x10], rdi
mov dword [r11 + 8], edi
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x10], rdi
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jns 0x19ed4
xor al, al
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
ret
mov edx, 0x1000
xor ecx, ecx
mov r8d, 0x70656472
mov qword [rsp + 0x90], rbx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x1a00a
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.0002b7b0
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call fcn.0002b7b0
mov rcx, qword [rsp + 0x88]
xor edx, edx
lea r11, [rsp + 0x80]
lea r8d, [rdx + 1]
mov r9, rbx
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
cmp eax, 0x8000001a
je 0x19fea
test eax, eax
js 0x19f9f
cmp dword [rbx + 0x10], 0
je 0x19f9f
mov r8d, dword [rbx + 8]
mov r9d, dword [rbx + 0xc]
xor eax, eax
mov qword [rsp + 0x32], rax
mov dword [rsp + 0x3a], eax
mov word [rsp + 0x3e], ax
movzx eax, word [rbx + 0x10]
lea rdx, [rsp + 0x30]
add r8, rbx
mov word [rsp + 0x30], ax
mov word [rsp + 0x32], ax
lea rax, [rbx + 0x14]
mov rcx, rsi
mov qword [rsp + 0x38], rax
call fcn.0001aa10
test al, al
je 0x19fea
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
inc edi
call fcn.0002b7b0
mov rcx, qword [rsp + 0x88]
lea r11, [rsp + 0x80]
mov r9, rbx
mov r8d, 1
mov qword [rsp + 0x28], r11
mov edx, edi
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
cmp eax, 0x8000001a
jne 0x19f52
mov edx, 0x70656472
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, 1
jmp 0x1a01a
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor al, al
mov rbx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
ret
Function at 0x1a3a0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x90
mov rbp, rdx
lea rcx, [rsp + 0x50]
lea rdx, [0x000116b8]
mov rsi, r8
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor eax, eax
mov qword [rsp + 0x42], rax
mov dword [rsp + 0x4a], eax
mov word [rsp + 0x4e], ax
movzx eax, word [rbp]
xor r12d, r12d
mov r8d, 0x70656472
add ax, word [rsi]
xor ecx, ecx
mov word [rsp + 0x40], r12w
add ax, 4
movzx edi, ax
mov word [rsp + 0x42], ax
mov rdx, rdi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x1a41b
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.0002b7b0
mov qword [rsp + 0x48], rbx
test rbx, rbx
jne 0x1a435
xor al, al
add rsp, 0x90
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, [rsp + 0x40]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea rdx, [0x000116c4]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rcx, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
mov rax, qword [0x0002ece0]
xor r11d, r11d
mov rcx, qword [rax]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], r11
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x68], r11
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x80], r11
mov qword [rsp + 0x88], r11
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0xd0]
xor r9d, r9d
mov edx, 0x20006
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0xd0], r12
mov dword [rsp + 0xc8], r12d
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x60], 0x30
mov dword [rsp + 0x78], 0x240
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], r12
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
test eax, eax
jns 0x1a508
xor bl, bl
jmp 0x1a54e
mov rcx, qword [rsp + 0xd0]
lea rax, [rsp + 0xc0]
lea rdx, [rsp + 0x40]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0xd0]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
setns bl
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1a563
mov edx, 0x70656472
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, bl
add rsp, 0x90
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1a580
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov rsi, rdx
mov rbp, rcx
lea rdx, [0x000116b8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor eax, eax
xor r12d, r12d
mov qword [rsp + 0x22], rax
mov dword [rsp + 0x2a], eax
mov word [rsp + 0x2e], ax
movzx eax, word [rbp]
mov r8d, 0x70656472
xor ecx, ecx
add ax, word [rsi]
mov word [rsp + 0x20], r12w
add ax, 4
movzx edi, ax
mov word [rsp + 0x22], ax
mov rdx, rdi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x1a5fc
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.0002b7b0
mov qword [rsp + 0x28], rbx
test rbx, rbx
jne 0x1a60d
xor al, al
jmp 0x1a6fb
lea rcx, [rsp + 0x20]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
lea rdx, [0x000116c4]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rcx, [rsp + 0x20]
mov rdx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
mov rax, qword [0x0002ece0]
xor r11d, r11d
mov rcx, qword [rax]
mov qword [rsp + 0x48], r11
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x60], r11
mov qword [rsp + 0x68], r11
lea rcx, [rsp + 0x90]
lea r8, [rsp + 0x40]
mov edx, 0xf003f
mov qword [rsp + 0x90], r12
mov dword [rsp + 0x40], 0x30
mov dword [rsp + 0x58], 0x240
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jns 0x1a6b2
xor bl, bl
jmp 0x1a6e4
mov rcx, qword [rsp + 0x90]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov rcx, qword [rsp + 0x90]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp ebx, 0xc0000034
cmove ebx, r12d
test ebx, ebx
setns bl
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1a6f9
mov edx, 0x70656472
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, bl
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1b280
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
cmp byte [0x0002ed20], 0
mov r12, r8
mov esi, edx
mov rdi, rcx
jne 0x1b2b5
mov ebx, 0xc00000a3
jmp 0x1b44c
cmp edx, 0x148
jb 0x1b447
test rcx, rcx
je 0x1b447
mov ebp, 0x5a4d
cmp word [rcx], bp
jne 0x1b447
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1b447
mov ecx, 0x8664
cmp word [rax + rdi + 4], cx
jne 0x1b447
cmp word [rax + rdi + 0x5c], 1
jne 0x1b447
lea r8, [0x0002e450]
mov rcx, rdi
call fcn.00029560
test al, al
je 0x1b440
mov edx, esi
mov rcx, rdi
xor ebx, ebx
call fcn.00023710
mov rsi, rax
test rax, rax
je 0x1b44c
mov rcx, rax
call fcn.000238c0
test al, al
je 0x1b44c
mov rcx, rsi
call fcn.00023ca0
test al, al
je 0x1b44c
cmp word [rsi], bp
jne 0x1b44c
movsxd rbp, dword [rsi + 0x3c]
cmp dword [rbp + rsi], 0x4550
jne 0x1b44c
lea edx, [rbx + 0x68]
lea ecx, [rbx + 1]
mov r8d, 0x64727665
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
jne 0x1b390
mov ebx, 0xc000009a
jmp 0x1b407
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x68]
call fcn.0002b7b0
mov rdx, r12
mov rcx, rdi
call fcn.0001afb0
mov ebx, eax
test eax, eax
js 0x1b407
mov qword [rdi + 0x50], rsi
mov eax, dword [rbp + rsi + 0x28]
add rax, rsi
mov qword [rdi + 0x48], rax
mov rax, qword [0x0002ed28]
mov qword [rdi + 0x60], rax
mov rax, qword [0x0002eaf0]
mov qword [0x0002ed28], rdi
test rax, rax
jne 0x1b3f4
call fcn.0001aed0
mov rax, qword [0x0002eaf0]
test rax, rax
jne 0x1b3f4
mov ebx, 0xc0000001
jmp 0x1b407
lea rcx, [rdi + 0x18]
lea rdx, [0x0001b1d0]
call rax
mov ebx, eax
test eax, eax
jns 0x1b44c
test rdi, rdi
je 0x1b430
cmp qword [0x0002ed28], rdi
jne 0x1b420
mov rax, qword [rdi + 0x60]
mov qword [0x0002ed28], rax
mov rcx, rdi
mov qword [rdi + 0x50], 0
call fcn.0001b0e0
mov edx, 0x70656472
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1b44c
mov ebx, 0xc0000022
jmp 0x1b44c
mov ebx, 0xc000000d
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r12
ret
Function at 0x1f3a0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rsi, r8
test r8, r8
jne 0x1f3c5
mov ebx, 0xc000000d
mov dword [rsp + 0x40], ebx
jmp 0x1f53d
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x1f53d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x1fffff
xor r8d, r8d
mov edx, 0x200
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x1f429
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1f53d
mov edx, 0x1000
mov ecx, 1
mov r8d, 0x62746c70
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
jne 0x1f46b
mov ebx, 0xc000009a
mov dword [rsp + 0x40], ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1f53d
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0x1000
mov r8, rdi
mov edx, 0x1b
mov rcx, qword [rsp + 0x50]
call sub.ntoskrnl.exe_ZwQueryInformationProcess
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x1f4c0
mov edx, 0x62746c70
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1f53d
movzx edx, word [rdi]
add rdx, 2
mov word [rsi + 2], dx
movzx eax, word [rdi]
mov word [rsi], ax
movzx edx, dx
mov ecx, 1
mov r8d, 0x62746c70
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsi + 8], rax
test rax, rax
jne 0x1f4f9
mov ebx, 0xc000009a
mov dword [rsp + 0x40], ebx
jmp 0x1f519
movzx r8d, word [rsi + 2]
xor edx, edx
mov rcx, rax
call fcn.0002b7b0
movzx r8d, word [rsi]
mov rdx, qword [rdi + 8]
mov rcx, qword [rsi + 8]
call fcn.0002b420
mov edx, 0x62746c70
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1f541
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x23710
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
je 0x237f3
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x237f3
movsxd rdi, dword [rcx + 0x3c]
add rdi, rcx
cmp dword [rdi], 0x4550
jne 0x237f3
mov eax, dword [rdi + 0x50]
mov qword [rsp + 0x30], rbx
mov r8d, 0x70656472
cmp eax, edx
mov qword [rsp + 0x40], r12
cmovb eax, edx
xor ecx, ecx
mov edx, eax
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r12, rax
test rax, rax
je 0x237ef
mov r8, rbx
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x38], rbp
call fcn.0002b7b0
mov r8d, dword [rdi + 0x114]
mov rdx, rsi
mov rcx, r12
call fcn.0002b420
xor ebp, ebp
cmp bp, word [rdi + 6]
jae 0x237d2
lea rbx, [rdi + 0x11c]
nop word [rax + rax]
mov edx, dword [rbx]
mov ecx, dword [rbx - 8]
mov r8d, dword [rbx - 4]
add rdx, rsi
add rcx, r12
call fcn.0002b420
movzx eax, word [rdi + 6]
inc ebp
add rbx, 0x28
cmp ebp, eax
jb 0x237b0
mov rbp, qword [rsp + 0x38]
mov rax, r12
mov rbx, qword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x237da
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x23ca0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x23cda
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x23cda
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x23cda
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x10b
je 0x23ce9
cmp ecx, 0x20b
je 0x23ce2
xor al, al
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rax + rbx + 0x30]
jmp 0x23ced
mov edx, dword [rax + rbx + 0x34]
cmp dword [rax + rbx], 0x4550
mov qword [rsp + 0x38], rdi
jne 0x23d8d
cmp dword [rax + rbx + 0x84], 5
jbe 0x23d8d
mov ecx, dword [rax + rbx + 0xb0]
test ecx, ecx
je 0x23d8d
mov edi, dword [rax + rbx + 0xb4]
mov r8, rcx
add r8, rbx
je 0x23d8d
test edi, edi
je 0x23d8d
mov qword [rsp + 0x30], rsi
mov rsi, rbx
sub rsi, rdx
nop word [rax + rax]
mov edx, dword [r8 + 4]
mov ecx, dword [r8]
add r8, 8
sub edi, edx
add edx, 0xfffffff8
add rcx, rbx
shr edx, 1
mov r9, rsi
call fcn.00023a60
mov r8, rax
test rax, rax
je 0x23d7b
test edi, edi
jne 0x23d40
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov al, 1
add rsp, 0x20
pop rbx
ret
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rbx
ret
movzx eax, byte [rax + rbx + 0x16]
mov rdi, qword [rsp + 0x38]
not al
and al, 1
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor eax, eax
xor ebp, ebp
mov r12, rdx
lea rdx, [0x000121a8]
lea rcx, [rsp + 0x20]
mov ebx, 0x1000
mov dword [rsp + 0x60], ebp
mov word [rsp + 0x20], bp
mov qword [rsp + 0x22], rax
mov dword [rsp + 0x2a], eax
mov word [rsp + 0x2e], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
nop word [rax + rax]
mov r8d, 0x73726973
mov edx, ebx
mov ecx, 1
mov esi, ebx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x24120
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.0002b7b0
lea r9, [rsp + 0x60]
mov r8d, ebx
mov rdx, rdi
mov ecx, 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov esi, eax
test eax, eax
jns 0x24135
mov ebx, dword [rsp + 0x60]
mov edx, 0x73726973
mov rcx, rdi
add ebx, 0x20
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp esi, 0xc0000004
je 0x240b0
mov edx, 0x73726973
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rbx, rdi
nop dword [rax + rax]
mov rax, qword [rbx + 0x50]
test rax, rax
je 0x24172
cmp rax, 4
je 0x24172
lea rdx, [rbx + 0x38]
lea rcx, [rsp + 0x20]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
je 0x24172
mov rcx, qword [rbx + 0x50]
call fcn.00025a50
test al, al
je 0x2417d
mov eax, dword [rbx]
test eax, eax
je 0x24191
add rbx, rax
jmp 0x24140
mov rbp, qword [rbx + 0x50]
test r12, r12
je 0x24191
mov rcx, qword [rbx + 0x130]
mov qword [r12], rcx
mov edx, 0x73726973
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbp
jmp 0x24122