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

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
mov rsi, rdx
xor ebx, ebx
test rcx, rcx
jne 0x140015051
test rdx, rdx
je 0x140015051
mov rdx, qword [rdx]
mov ecx, r8d
call fcn.140013e10
mov r12, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14001504d
mov rdx, rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x70], 0x30
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x88], 0x240
lea rax, [rsp + 0x60]
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x90], xmm0
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rsp + 0x70]
mov edx, 0x20006
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov r15d, eax
test eax, eax
jne 0x140015032
mov r15d, 0xc0000022
mov dword [rsp + 0x40], r15d
mov rax, qword [rsi + 8]
test rax, rax
je 0x140014f2c
movzx ecx, word [rax + 2]
test cx, cx
je 0x140014f2c
lea rdx, [rcx + 0x18]
mov r8d, dword [0x14002e9e0]
mov ecx, dword [0x1400345c0]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
jmp 0x140014f2f
mov rdi, rbx
mov qword [rsp + 0xe8], rdi
test rdi, rdi
je 0x140015027
mov eax, dword [rsi + 0x20]
test eax, eax
je 0x140014f62
lea edx, [rax + 8]
mov r8d, dword [0x14002e9e0]
mov ecx, dword [0x1400345c0]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r14, rax
jmp 0x140014f65
mov r14, rbx
mov qword [rsp + 0x48], r14
test r14, r14
je 0x140015018
mov rax, qword [rsi + 8]
movzx edx, word [rax]
mov word [rdi], dx
mov rax, qword [rsi + 8]
movzx ecx, word [rax + 2]
mov word [rdi + 2], cx
lea rax, [rdi + 0x10]
mov qword [rdi + 8], rax
cmp dx, cx
jbe 0x140014f9b
mov word [rdi], cx
jmp 0x140014f9e
movzx ecx, dx
movzx r8d, cx
mov rdx, qword [rsi + 8]
mov rdx, qword [rdx + 8]
mov rcx, rax
call fcn.140029b00
mov rdx, qword [rsi + 0x18]
test rdx, rdx
je 0x140014fc7
mov r8d, dword [rsi + 0x20]
mov rcx, r14
call fcn.140029b00
mov eax, dword [rsi + 0x20]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, dword [rsi + 0x14]
mov r8d, dword [rsi + 0x10]
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov r15d, eax
mov dword [rsp + 0x40], eax
jmp 0x140015009
mov edx, dword [0x14002e9e0]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [0x14002e9e0]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov ebx, 0xc0000503
test r15d, r15d
cmovne ebx, r15d
mov edx, dword [0x14002e9e0]
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x140015053
xor eax, eax
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14001937c
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, r8
lea rdx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x1400193c3
mov rcx, qword [rsp + 0x58]
mov r9, rdi
mov edx, 0x70
mov qword [rsp + 0x20], rbx
mov r8d, 0x258
call fcn.140019dd0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140019dd0
Capabilities:
Attach user process memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x60
mov r13, r9
mov r15d, r8d
mov edi, edx
mov rbx, rcx
xor esi, esi
mov qword [r9], rsi
mov rax, qword [rsp + 0xa0]
mov dword [rax], esi
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov r14, rax
test rax, rax
je 0x140019f06
lea r12d, [r15*2 + 0x20]
xor r8d, r8d
mov edx, r12d
mov rcx, qword [0x1400346c0]
call fcn.140015584
mov rsi, rax
test rax, rax
je 0x140019f06
lea rdx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov ebx, 8
mov r8d, ebx
lea edx, [rbx + 0x18]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov r14, qword [r14 + 0x20]
mov r8d, ebx
lea edx, [rbx + 0x48]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
lea rbx, [r14 + rdi]
mov edx, 0x10
lea r8d, [rdx - 0xc]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
movzx eax, word [rbx]
movzx ecx, word [rbx + 2]
shr ecx, 1
mov rdi, qword [rbx + 8]
mov qword [rsp + 0x20], rdi
shr eax, 1
je 0x140019ef9
test ecx, ecx
je 0x140019ef9
test rdi, rdi
je 0x140019ef9
cmp eax, r15d
ja 0x140019ef9
cmp eax, ecx
ja 0x140019ef9
cmp rdi, r14
jae 0x140019ec0
add rdi, r14
mov qword [rsp + 0x20], rdi
lea rbx, [rax + rax]
mov r8d, 2
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140029b00
xor eax, eax
mov word [rbx + rsi], ax
mov qword [r13], rsi
mov rax, qword [rsp + 0xa0]
mov dword [rax], r12d
jmp 0x140019efb
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x14001a020
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rbx, r8
lea rdx, [rax + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
xor esi, esi
test eax, eax
jns 0x14001a04f
or dword [rbx], 0xffffffff
jmp 0x14001a09b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessSessionId]
mov dword [rbx], eax
test rbp, rbp
je 0x14001a096
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsReferencePrimaryToken]
mov rcx, rax
mov rdx, rbp
mov rdi, rax
call fcn.140023020
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_PsDereferencePrimaryToken]
test ebx, ebx
jns 0x14001a096
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x14001a09b
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001b0f0
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
and qword [r11 + 8], 0
mov rsi, r9
mov rbp, r8
mov rax, rdx
cmp rcx, 0xffffffffffffffff
jne 0x14001b12e
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.ntoskrnl.exe_ObfReferenceObject]
jmp 0x14001b173
test rcx, rcx
je 0x14001b15a
mov r8, qword [sym.imp.ntoskrnl.exe_PsProcessType]
lea rax, [rsp + 0x40]
and qword [rsp + 0x28], 0
mov r9b, 1
xor edx, edx
mov qword [rsp + 0x20], rax
mov r8, qword [r8]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
jmp 0x14001b16d
test rax, rax
je 0x14001b1b5
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x14001b1ba
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessSessionId]
mov rcx, qword [rsp + 0x40]
mov dword [rsi], eax
call qword [sym.imp.ntoskrnl.exe_PsReferencePrimaryToken]
mov rcx, rax
mov rdx, rbp
mov rbx, rax
call fcn.140023020
mov rcx, rbx
mov edi, eax
call qword [sym.imp.ntoskrnl.exe_PsDereferencePrimaryToken]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test edi, edi
jns 0x14001b1c2
jmp 0x14001b1ba
mov edi, 0xc000000d
and qword [rbp + 8], 0
or dword [rsi], 0xffffffff
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14001b290
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [rsp + 0x48]
xor ebx, ebx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14001b33d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessJob]
test rax, rax
je 0x14001b332
mov rcx, qword [0x1400346c0]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
mov rdx, rax
call fcn.1400156a4
test eax, eax
js 0x14001b332
mov rcx, qword [rsp + 0x40]
lea rax, [0x14002ee10]
cmp rcx, rax
je 0x14001b320
cmp word [rcx], 0x78
jne 0x14001b315
mov rcx, qword [rcx + 8]
lea r8d, [rbx + 0x16]
lea rdx, [0x14002c710]
call sub.ntoskrnl.exe__wcsnicmp
mov rcx, qword [rsp + 0x40]
test eax, eax
movzx ebx, bl
mov edx, 1
cmove ebx, edx
mov edx, dword [rsp + 0x38]
call fcn.14000ef8c
jmp 0x14001b332
cmp dword [0x1400346b0], 6
mov edx, 1
movzx ebx, bl
cmovae ebx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
add rsp, 0x20
pop rbx
ret

Function at 0x14001bd50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
xor r8d, r8d
movsxd rdi, edx
mov rbx, rcx
mov rcx, qword [0x1400346c0]
lea edx, [r8 + 0x10]
call fcn.140015584
mov r8, qword [rbx]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x30], rax
xor ebp, ebp
xorps xmm0, xmm0
xor r9d, r9d
mov qword [rax], r8
mov edx, 0x1fffff
mov qword [rax + 8], rdi
lea r8, [rsp + 0x40]
lea rax, [0x14001bec0]
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x58], 0x200
mov qword [rsp + 0x50], rbp
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x14001bea7
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test edi, edi
jne 0x14001bea3
mov esi, dword [rbx + 0x30]
xor r8d, r8d
mov rcx, qword [0x1400346c0]
add esi, 0x40
mov edx, esi
call fcn.140015584
mov rdi, rax
test rax, rax
je 0x14001bea3
mov ecx, dword [rbx + 0xac]
test ecx, ecx
jne 0x14001be3f
mov r9, qword [rbx + 0x28]
lea r8, [0x14002c740]
mov edx, esi
mov rcx, rax
call fcn.140003ad0
jmp 0x14001be6e
mov eax, dword [rbx + 0xac]
cmp eax, 0xffffffff
je 0x14001be6b
mov eax, dword [rbx + 0xac]
lea r8, [0x14002c750]
mov r9, qword [rbx + 0x28]
mov rcx, rdi
mov edx, esi
mov dword [rsp + 0x20], eax
call fcn.140003ad0
jmp 0x14001be6e
mov word [rdi], bp
mov dword [rbx + 0xac], 0xffffffff
cmp word [rdi], bp
je 0x14001be99
mov rax, qword [rbx]
or r9d, 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov ecx, 0xc102090a
call fcn.140015318
mov edx, esi
mov rcx, rdi
call fcn.14000ef8c
mov al, 1
jmp 0x14001bea9
xor al, al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001ea0c
Capabilities:
Attach user process memory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rbx, r8
lea rax, [rbp - 0x48]
mov r8, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov r15, r9
mov rsi, rdx
xor r12d, r12d
mov qword [r11 - 0x70], r12
mov r9b, 1
xor edx, edx
mov qword [r11 - 0x78], rax
mov r8, qword [r8]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
js 0x14001eb7e
mov rcx, qword [rbp - 0x48]
cmp rcx, rbx
je 0x14001ea7c
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc0000022
jmp 0x14001eb7e
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rbp - 0x48]
cmp rcx, rax
jne 0x14001ea90
mov dil, r12b
jmp 0x14001ea9d
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dil, 1
lea rax, [rbp - 0x40]
mov r9b, 1
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp - 0x50]
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ebx, eax
test dil, dil
je 0x14001ead1
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test ebx, ebx
js 0x14001eb7c
mov esi, 5
movzx r14d, r12w
cmp dword [0x1400346b0], esi
mov rdi, r12
jb 0x14001eb11
mov rax, qword [0x140034818]
mov rcx, qword [rbp - 0x50]
call qword [0x14002e678]
movzx r14d, word [rax + 0x10]
mov rdi, qword [rax + 0x18]
mov rdx, rdi
movzx ecx, r14w
call fcn.14001eba0
test rax, rax
je 0x14001eb3c
mov r8, qword [rbp - 0x50]
lea r9, [rbp - 0x40]
mov rdx, rax
mov qword [rsp + 0x20], r12
mov rcx, r15
call fcn.14001e544
jmp 0x14001eb70
cmp r14w, 0xa
jne 0x14001eb72
lea rcx, [0x14002ccd0]
sub rdi, rcx
movzx eax, word [rcx]
cmp word [rdi + rcx], ax
jne 0x14001eb72
add rcx, 2
sub rsi, 1
jne 0x14001eb4d
mov r8d, dword [rbp - 0x3c]
mov rcx, r15
mov rdx, qword [rbp - 0x50]
call fcn.14001ffc0
mov ebx, eax
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14001ed54
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8d, dword [0x14002e9e0]
mov edx, 0x1000
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
xor ebx, ebx
mov rdi, rax
test rax, rax
jne 0x14001ed92
xor r8d, r8d
xor edx, edx
mov ecx, 0xc1010450
call fcn.1400152fc
xor eax, eax
jmp 0x14001edd0
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
mov r8d, 0x1000
mov rdx, rdi
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
je 0x14001edba
cmp eax, 0xc0000004
jne 0x14001edbe
mov rbx, qword [rdi + 0x18]
mov edx, dword [0x14002e9e0]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400230a0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r14b, r14b
mov rbx, rcx
cmp byte [rcx + 0xba], r14b
jne 0x1400232b2
mov rcx, qword [rcx + 0x18]
lea rdx, [0x14002cd30]
xor r9d, r9d
xor r8d, r8d
call fcn.140004200
test al, al
jne 0x1400232b2
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140023125
mov rdx, qword [rbx + 0x18]
xor r9d, r9d
mov rcx, qword [rbx]
mov r8d, eax
mov qword [rsp + 0x28], rcx
mov ecx, dword [rdx + 0x54]
lea edx, [r9 + 0x37]
mov dword [rsp + 0x20], ecx
mov ecx, 0xc10204c6
call fcn.1400154e8
jmp 0x1400232ad
mov rdx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.140022e44
mov rdi, rax
test rax, rax
je 0x1400232a2
cmp dword [0x1400346b0], 4
jb 0x14002315f
mov rcx, qword [rbx + 0x18]
mov edx, 0x19
mov r8d, dword [rcx + 0x54]
mov rcx, rax
call fcn.140022f5c
mov dword [rbx + 0x40], eax
mov r8, rbx
mov edx, 3
mov rcx, rdi
call fcn.140023388
mov rsi, rax
test rax, rax
je 0x140023299
mov rcx, qword [rbx + 0x18]
lea rdx, [0x14002d090]
xor r9d, r9d
xor r8d, r8d
call fcn.140004200
test al, al
jne 0x1400231e8
mov rcx, qword [rbx + 0x18]
lea rdx, [0x14002cf00]
xor r9d, r9d
xor r8d, r8d
call fcn.140004200
test al, al
jne 0x1400231e8
mov rcx, qword [rbx + 0x18]
lea rdx, [0x14002cfd0]
mov r9b, 1
xor r8d, r8d
call fcn.140004200
test al, al
je 0x1400231e8
cmp dword [0x1400346b0], 6
jb 0x1400231e8
and dword [rsp + 0x7c], 0
mov dword [rsp + 0x78], 0x3e6
mov rax, qword [rsp + 0x78]
mov qword [rsi + 0x18], rax
mov rax, qword [rbx + 0x18]
xor r9d, r9d
mov r12, qword [rsp + 0x70]
xor r8d, r8d
mov edx, 0x200
mov rcx, rsi
mov r15d, dword [rax + 0x54]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], r14b
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov ebp, eax
test eax, eax
js 0x140023272
mov rdx, qword [rsp + 0x78]
mov r8d, r15d
mov rcx, r12
call fcn.140021eb4
mov rcx, qword [rsp + 0x78]
mov ebp, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebp, ebp
js 0x140023272
mov qword [rbx + 0x50], rdi
xor edi, edi
cmp byte [rbx + 0xb1], dil
je 0x14002326d
mov eax, dword [rbx + 0x40]
cmp eax, dword [0x14002e9e0]
je 0x14002326d
cmp eax, 0x3000
jb 0x14002326d
mov dword [rbx + 0x40], 0x2000
mov r14b, 1
jmp 0x14002328b
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, ebp
mov ecx, 0xc10204c6
lea edx, [r9 + 0x36]
call fcn.140015564
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test rdi, rdi
je 0x1400232a2
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, r14b
jmp 0x1400232b4
mov al, 1
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400232d0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx + 0x50], rbx
jne 0x1400232ec
mov al, 1
jmp 0x14002337b
mov rcx, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov r8d, eax
test eax, eax
jns 0x140023327
mov rcx, qword [rdi + 0x18]
xor r9d, r9d
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + 0x54]
lea edx, [r9 + 0x37]
mov ecx, 0xc10204c6
mov dword [rsp + 0x20], eax
call fcn.1400154e8
jmp 0x140023379
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsReferencePrimaryToken]
test rax, rax
jne 0x140023363
mov rcx, qword [rdi + 0x18]
xor r9d, r9d
mov rax, qword [rdi]
mov r8d, 0xc000007c
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + 0x54]
lea edx, [r9 + 0x31]
mov ecx, 0xc10204c6
mov dword [rsp + 0x20], eax
call fcn.1400154e8
jmp 0x14002336e
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsDereferencePrimaryToken]
mov bl, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140023c18
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
or dword [rbp + 0x6f], 0xffffffff
lea rax, [rbp + 0x6f]
mov rbx, rdx
mov dword [rbp - 0x29], 0x40004
xor edx, edx
mov qword [rbp - 0x21], rax
mov rdi, rcx
lea rcx, [rbp - 0x19]
lea r8d, [rdx + 0x70]
call fcn.140029dc0
and qword [rsp + 0x20], 0
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rbp - 1], rax
lea r8, [rbp - 0x19]
mov dword [rbp - 0x11], 0x134
mov rdx, rdi
mov qword [rbp - 9], rbx
xor ecx, ecx
mov dword [rbp + 7], 0x4000000
call qword [sym.imp.ntoskrnl.exe_RtlQueryRegistryValues]
test eax, eax
je 0x140023c91
xor eax, eax
jmp 0x140023c9b
mov eax, dword [rbp + 0x6f]
cmp eax, 0xffffffff
cmove eax, dword [rbp - 0x29]
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140023cb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rsi, rdx
mov rbx, r8
xor edx, edx
mov ebp, ecx
lea rcx, [rax - 0x78]
mov rdi, r9
lea r8d, [rdx + 0x70]
call fcn.140029dc0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x38], 0x13c
mov rdx, rsi
mov qword [rsp + 0x40], rbx
mov ecx, ebp
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], 0x1000000
call qword [sym.imp.ntoskrnl.exe_RtlQueryRegistryValues]
cmp eax, 0xc0000024
jne 0x140023d3c
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x50], 0x2000000
mov rdx, rsi
mov ecx, ebp
call qword [sym.imp.ntoskrnl.exe_RtlQueryRegistryValues]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140023d58
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x8b0
mov r15, r9
mov r14, r8
mov r12, rdx
and qword [rsp + 0x38], 0
lea rdi, [rax - 0x828]
mov qword [rsp + 0x40], rdi
xor esi, esi
mov dword [rsp + 0x34], esi
test rcx, rcx
je 0x140023f50
test rdx, rdx
je 0x140023f50
test r8, r8
je 0x140023f50
test r9, r9
je 0x140023f50
mov rdx, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x68], 0x30
and qword [rsp + 0x70], rsi
mov dword [rsp + 0x80], 0x240
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x88], xmm0
lea r8, [rsp + 0x68]
mov edx, 0x20006
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
jne 0x140023f2e
mov rdx, r12
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x8d0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x810
lea r9, [rsp + 0xa0]
lea r12d, [rsi + 2]
mov r8d, r12d
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
cmp eax, 0x80000005
je 0x140023e66
cmp eax, 0xc0000023
jne 0x140023ec4
mov esi, dword [rsp + 0x8d0]
mov dword [rsp + 0x34], esi
xor r8d, r8d
mov edx, esi
mov rcx, qword [0x1400346c0]
call fcn.140015584
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140023e9b
xor esi, esi
mov ebx, 0xc000009a
jmp 0x140023f2e
lea rax, [rsp + 0x8d0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rdi
mov r8d, r12d
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
test ebx, ebx
js 0x140023f2e
mov eax, dword [rdi + 8]
cmp qword [r14], 0
jne 0x140023efa
xor r8d, r8d
mov edx, eax
mov rcx, qword [0x1400346c0]
call fcn.140015584
mov qword [r14], rax
test rax, rax
jne 0x140023ef5
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
jmp 0x140023f2e
mov eax, dword [rdi + 8]
jmp 0x140023f0a
cmp eax, dword [r15]
jbe 0x140023f0a
mov ebx, 0xc0000023
mov dword [rsp + 0x30], ebx
jmp 0x140023f2e
mov dword [r15], eax
mov r8d, dword [rdi + 8]
lea rdx, [rdi + 0xc]
mov rcx, qword [r14]
call fcn.140029b00
jmp 0x140023f2e
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140023f3e
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test esi, esi
je 0x140023f4c
mov edx, esi
mov rcx, rdi
call fcn.14000ef8c
mov eax, ebx
jmp 0x140023f55
mov eax, 0xc000000d
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret

Function at 0x140024184
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov r8d, 8
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x30], r8
lea ecx, [r8 + 0x5f]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x1400241b5
mov ecx, dword [rsp + 0x34]
mov al, 1
shr ecx, 1
test al, cl
jne 0x1400241b7
xor al, al
add rsp, 0x28
ret