joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014b84
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 0x140014da1
test rdx, rdx
je 0x140014da1
mov rdx, qword [rdx]
mov ecx, r8d
call fcn.140013b60
mov r12, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140014d9d
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 0x140014d82
mov r15d, 0xc0000022
mov dword [rsp + 0x40], r15d
mov rax, qword [rsi + 8]
test rax, rax
je 0x140014c7c
movzx ecx, word [rax + 2]
test cx, cx
je 0x140014c7c
lea rdx, [rcx + 0x18]
mov r8d, dword [str.sboxS]
mov ecx, dword [0x1400335c0]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
jmp 0x140014c7f
mov rdi, rbx
mov qword [rsp + 0xe8], rdi
test rdi, rdi
je 0x140014d77
mov eax, dword [rsi + 0x20]
test eax, eax
je 0x140014cb2
lea edx, [rax + 8]
mov r8d, dword [str.sboxS]
mov ecx, dword [0x1400335c0]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r14, rax
jmp 0x140014cb5
mov r14, rbx
mov qword [rsp + 0x48], r14
test r14, r14
je 0x140014d68
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 0x140014ceb
mov word [rdi], cx
jmp 0x140014cee
movzx ecx, dx
movzx r8d, cx
mov rdx, qword [rsi + 8]
mov rdx, qword [rdx + 8]
mov rcx, rax
call fcn.140028b80
mov rdx, qword [rsi + 0x18]
test rdx, rdx
je 0x140014d17
mov r8d, dword [rsi + 0x20]
mov rcx, r14
call fcn.140028b80
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 0x140014d59
mov edx, dword [str.sboxS]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [str.sboxS]
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 [str.sboxS]
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x140014da3
xor eax, eax
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140018d9c
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 0x140018de3
mov rcx, qword [rsp + 0x58]
mov r9, rdi
mov edx, 0x70
mov qword [rsp + 0x20], rbx
mov r8d, 0x258
call fcn.140019668
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 0x140019668
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 0x14001979e
lea r12d, [r15*2 + 0x20]
xor r8d, r8d
mov edx, r12d
mov rcx, qword [0x1400336c0]
call fcn.1400152d4
mov rsi, rax
test rax, rax
je 0x14001979e
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 0x140019791
test ecx, ecx
je 0x140019791
test rdi, rdi
je 0x140019791
cmp eax, r15d
ja 0x140019791
cmp eax, ecx
ja 0x140019791
cmp rdi, r14
jae 0x140019758
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.140028b80
xor eax, eax
mov word [rbx + rsi], ax
mov qword [r13], rsi
mov rax, qword [rsp + 0xa0]
mov dword [rax], r12d
jmp 0x140019793
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 0x1400198b8
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 0x1400198e7
or dword [rbx], 0xffffffff
jmp 0x140019933
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessSessionId]
mov dword [rbx], eax
test rbp, rbp
je 0x14001992e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsReferencePrimaryToken]
mov rcx, rax
mov rdx, rbp
mov rdi, rax
call fcn.14002240c
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_PsDereferencePrimaryToken]
test ebx, ebx
jns 0x14001992e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140019933
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 0x14001a940
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 0x14001a97e
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.ntoskrnl.exe_ObfReferenceObject]
jmp 0x14001a9c3
test rcx, rcx
je 0x14001a9aa
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 0x14001a9bd
test rax, rax
je 0x14001aa05
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x14001aa0a
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.14002240c
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 0x14001aa12
jmp 0x14001aa0a
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 0x14001aae0
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 0x14001ab8d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessJob]
test rax, rax
je 0x14001ab82
mov rcx, qword [0x1400336c0]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
mov rdx, rax
call fcn.1400153f4
test eax, eax
js 0x14001ab82
mov rcx, qword [rsp + 0x40]
lea rax, [0x14002ddc0]
cmp rcx, rax
je 0x14001ab70
cmp word [rcx], 0x78
jne 0x14001ab65
mov rcx, qword [rcx + 8]
lea r8d, [rbx + 0x16]
lea rdx, [0x14002b740]
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.14000eef4
jmp 0x14001ab82
cmp dword [0x1400336b0], 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 0x14001b5a0
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 [0x1400336c0]
lea edx, [r8 + 0x10]
call fcn.1400152d4
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, [0x14001b710]
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 0x14001b6f7
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test edi, edi
jne 0x14001b6f3
mov esi, dword [rbx + 0x30]
xor r8d, r8d
mov rcx, qword [0x1400336c0]
add esi, 0x40
mov edx, esi
call fcn.1400152d4
mov rdi, rax
test rax, rax
je 0x14001b6f3
mov ecx, dword [rbx + 0xac]
test ecx, ecx
jne 0x14001b68f
mov r9, qword [rbx + 0x28]
lea r8, [0x14002b770]
mov edx, esi
mov rcx, rax
call fcn.140003a40
jmp 0x14001b6be
mov eax, dword [rbx + 0xac]
cmp eax, 0xffffffff
je 0x14001b6bb
mov eax, dword [rbx + 0xac]
lea r8, [0x14002b780]
mov r9, qword [rbx + 0x28]
mov rcx, rdi
mov edx, esi
mov dword [rsp + 0x20], eax
call fcn.140003a40
jmp 0x14001b6be
mov word [rdi], bp
mov dword [rbx + 0xac], 0xffffffff
cmp word [rdi], bp
je 0x14001b6e9
mov rax, qword [rbx]
or r9d, 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov ecx, 0xc102090a
call fcn.140015068
mov edx, esi
mov rcx, rdi
call fcn.14000eef4
mov al, 1
jmp 0x14001b6f9
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 0x14001e1ac
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 0x14001e31e
mov rcx, qword [rbp - 0x48]
cmp rcx, rbx
je 0x14001e21c
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc0000022
jmp 0x14001e31e
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rbp - 0x48]
cmp rcx, rax
jne 0x14001e230
mov dil, r12b
jmp 0x14001e23d
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 0x14001e271
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 0x14001e31c
mov esi, 5
movzx r14d, r12w
cmp dword [0x1400336b0], esi
mov rdi, r12
jb 0x14001e2b1
mov rax, qword [0x140033818]
mov rcx, qword [rbp - 0x50]
call qword [0x14002d670]
movzx r14d, word [rax + 0x10]
mov rdi, qword [rax + 0x18]
mov rdx, rdi
movzx ecx, r14w
call fcn.14001e340
test rax, rax
je 0x14001e2dc
mov r8, qword [rbp - 0x50]
lea r9, [rbp - 0x40]
mov rdx, rax
mov qword [rsp + 0x20], r12
mov rcx, r15
call fcn.14001dce4
jmp 0x14001e310
cmp r14w, 0xa
jne 0x14001e312
lea rcx, [0x14002bd00]
sub rdi, rcx
movzx eax, word [rcx]
cmp word [rdi + rcx], ax
jne 0x14001e312
add rcx, 2
sub rsi, 1
jne 0x14001e2ed
mov r8d, dword [rbp - 0x3c]
mov rcx, r15
mov rdx, qword [rbp - 0x50]
call fcn.14001f750
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 0x14001e4f4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8d, dword [str.sboxS]
mov edx, 0x1000
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
xor ebx, ebx
mov rdi, rax
test rax, rax
jne 0x14001e532
xor r8d, r8d
xor edx, edx
mov ecx, 0xc1010450
call fcn.14001504c
xor eax, eax
jmp 0x14001e570
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 0x14001e55a
cmp eax, 0xc0000004
jne 0x14001e55e
mov rbx, qword [rdi + 0x18]
mov edx, dword [str.sboxS]
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 0x14002248c
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 0x14002269e
mov rcx, qword [rcx + 0x18]
lea rdx, [0x14002bd60]
xor r9d, r9d
xor r8d, r8d
call fcn.140004170
test al, al
jne 0x14002269e
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140022511
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.140015238
jmp 0x140022699
mov rdx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.140022230
mov rdi, rax
test rax, rax
je 0x14002268e
cmp dword [0x1400336b0], 4
jb 0x14002254b
mov rcx, qword [rbx + 0x18]
mov edx, 0x19
mov r8d, dword [rcx + 0x54]
mov rcx, rax
call fcn.140022348
mov dword [rbx + 0x40], eax
mov r8, rbx
mov edx, 3
mov rcx, rdi
call fcn.140022774
mov rsi, rax
test rax, rax
je 0x140022685
mov rcx, qword [rbx + 0x18]
lea rdx, [0x14002bf70]
xor r9d, r9d
xor r8d, r8d
call fcn.140004170
test al, al
jne 0x1400225d4
mov rcx, qword [rbx + 0x18]
lea rdx, [0x14002bf40]
xor r9d, r9d
xor r8d, r8d
call fcn.140004170
test al, al
jne 0x1400225d4
mov rcx, qword [rbx + 0x18]
lea rdx, [0x14002bfe0]
mov r9b, 1
xor r8d, r8d
call fcn.140004170
test al, al
je 0x1400225d4
cmp dword [0x1400336b0], 6
jb 0x1400225d4
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 0x14002265e
mov rdx, qword [rsp + 0x78]
mov r8d, r15d
mov rcx, r12
call fcn.1400215f4
mov rcx, qword [rsp + 0x78]
mov ebp, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebp, ebp
js 0x14002265e
mov qword [rbx + 0x50], rdi
xor edi, edi
cmp byte [rbx + 0xb1], dil
je 0x140022659
mov eax, dword [rbx + 0x40]
cmp eax, dword [str.sboxS]
je 0x140022659
cmp eax, 0x3000
jb 0x140022659
mov dword [rbx + 0x40], 0x2000
mov r14b, 1
jmp 0x140022677
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, ebp
mov ecx, 0xc10204c6
lea edx, [r9 + 0x36]
call fcn.1400152b4
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test rdi, rdi
je 0x14002268e
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 0x1400226a0
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 0x1400226bc
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 0x1400226d8
mov al, 1
jmp 0x140022767
mov rcx, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov r8d, eax
test eax, eax
jns 0x140022713
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.140015238
jmp 0x140022765
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsReferencePrimaryToken]
test rax, rax
jne 0x14002274f
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.140015238
jmp 0x14002275a
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 0x140022f3c
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.140028e40
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 0x140022fb5
xor eax, eax
jmp 0x140022fbf
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 0x140022fd4
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.140028e40
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 0x140023060
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 0x14002307c
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 0x140023274
test rdx, rdx
je 0x140023274
test r8, r8
je 0x140023274
test r9, r9
je 0x140023274
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 0x140023252
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 0x14002318a
cmp eax, 0xc0000023
jne 0x1400231e8
mov esi, dword [rsp + 0x8d0]
mov dword [rsp + 0x34], esi
xor r8d, r8d
mov edx, esi
mov rcx, qword [0x1400336c0]
call fcn.1400152d4
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400231bf
xor esi, esi
mov ebx, 0xc000009a
jmp 0x140023252
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 0x140023252
mov eax, dword [rdi + 8]
cmp qword [r14], 0
jne 0x14002321e
xor r8d, r8d
mov edx, eax
mov rcx, qword [0x1400336c0]
call fcn.1400152d4
mov qword [r14], rax
test rax, rax
jne 0x140023219
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
jmp 0x140023252
mov eax, dword [rdi + 8]
jmp 0x14002322e
cmp eax, dword [r15]
jbe 0x14002322e
mov ebx, 0xc0000023
mov dword [rsp + 0x30], ebx
jmp 0x140023252
mov dword [r15], eax
mov r8d, dword [rdi + 8]
lea rdx, [rdi + 0xc]
mov rcx, qword [r14]
call fcn.140028b80
jmp 0x140023252
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140023262
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test esi, esi
je 0x140023270
mov edx, esi
mov rcx, rdi
call fcn.14000eef4
mov eax, ebx
jmp 0x140023279
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 0x1400234a8
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 0x1400234d9
mov ecx, dword [rsp + 0x34]
mov al, 1
shr ecx, 1
test al, cl
jne 0x1400234db
xor al, al
add rsp, 0x28
ret