joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018cdc
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 0x140018d23
mov rcx, qword [rsp + 0x58]
mov r9, rdi
mov edx, 0x70
mov qword [rsp + 0x20], rbx
mov r8d, 0x258
call fcn.1400195a8
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 0x1400195a8
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 0x1400196de
lea r12d, [r15*2 + 0x20]
xor r8d, r8d
mov edx, r12d
mov rcx, qword [0x140033700]
call fcn.140015224
mov rsi, rax
test rax, rax
je 0x1400196de
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 0x1400196d1
test ecx, ecx
je 0x1400196d1
test rdi, rdi
je 0x1400196d1
cmp eax, r15d
ja 0x1400196d1
cmp eax, ecx
ja 0x1400196d1
cmp rdi, r14
jae 0x140019698
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.140028c00
xor eax, eax
mov word [rbx + rsi], ax
mov qword [r13], rsi
mov rax, qword [rsp + 0xa0]
mov dword [rax], r12d
jmp 0x1400196d3
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 0x1400197f8
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 0x140019827
or dword [rbx], 0xffffffff
jmp 0x140019873
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessSessionId]
mov dword [rbx], eax
test rbp, rbp
je 0x14001986e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsReferencePrimaryToken]
mov rcx, rax
mov rdx, rbp
mov rdi, rax
call fcn.14002234c
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_PsDereferencePrimaryToken]
test ebx, ebx
jns 0x14001986e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140019873
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 0x14001a880
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 0x14001a8be
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.ntoskrnl.exe_ObfReferenceObject]
jmp 0x14001a903
test rcx, rcx
je 0x14001a8ea
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 0x14001a8fd
test rax, rax
je 0x14001a945
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x14001a94a
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.14002234c
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 0x14001a952
jmp 0x14001a94a
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 0x14001aa20
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 0x14001aacd
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessJob]
test rax, rax
je 0x14001aac2
mov rcx, qword [0x140033700]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
mov rdx, rax
call fcn.140015344
test eax, eax
js 0x14001aac2
mov rcx, qword [rsp + 0x40]
lea rax, [0x14002ddc0]
cmp rcx, rax
je 0x14001aab0
cmp word [rcx], 0x78
jne 0x14001aaa5
mov rcx, qword [rcx + 8]
lea r8d, [rbx + 0x16]
lea rdx, [0x14002b7c0]
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.14000ee44
jmp 0x14001aac2
cmp dword [0x1400336f0], 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 0x14001b4e0
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 [0x140033700]
lea edx, [r8 + 0x10]
call fcn.140015224
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, [0x14001b650]
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 0x14001b637
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test edi, edi
jne 0x14001b633
mov esi, dword [rbx + 0x30]
xor r8d, r8d
mov rcx, qword [0x140033700]
add esi, 0x40
mov edx, esi
call fcn.140015224
mov rdi, rax
test rax, rax
je 0x14001b633
mov ecx, dword [rbx + 0xac]
test ecx, ecx
jne 0x14001b5cf
mov r9, qword [rbx + 0x28]
lea r8, [0x14002b7f0]
mov edx, esi
mov rcx, rax
call fcn.140003a30
jmp 0x14001b5fe
mov eax, dword [rbx + 0xac]
cmp eax, 0xffffffff
je 0x14001b5fb
mov eax, dword [rbx + 0xac]
lea r8, [0x14002b800]
mov r9, qword [rbx + 0x28]
mov rcx, rdi
mov edx, esi
mov dword [rsp + 0x20], eax
call fcn.140003a30
jmp 0x14001b5fe
mov word [rdi], bp
mov dword [rbx + 0xac], 0xffffffff
cmp word [rdi], bp
je 0x14001b629
mov rax, qword [rbx]
or r9d, 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov ecx, 0xc102090a
call fcn.140014fb8
mov edx, esi
mov rcx, rdi
call fcn.14000ee44
mov al, 1
jmp 0x14001b639
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 0x14001e0ec
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 0x14001e25e
mov rcx, qword [rbp - 0x48]
cmp rcx, rbx
je 0x14001e15c
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc0000022
jmp 0x14001e25e
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rbp - 0x48]
cmp rcx, rax
jne 0x14001e170
mov dil, r12b
jmp 0x14001e17d
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 0x14001e1b1
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 0x14001e25c
mov esi, 5
movzx r14d, r12w
cmp dword [0x1400336f0], esi
mov rdi, r12
jb 0x14001e1f1
mov rax, qword [0x140033848]
mov rcx, qword [rbp - 0x50]
call qword [0x14002d688]
movzx r14d, word [rax + 0x10]
mov rdi, qword [rax + 0x18]
mov rdx, rdi
movzx ecx, r14w
call fcn.14001e280
test rax, rax
je 0x14001e21c
mov r8, qword [rbp - 0x50]
lea r9, [rbp - 0x40]
mov rdx, rax
mov qword [rsp + 0x20], r12
mov rcx, r15
call fcn.14001dc24
jmp 0x14001e250
cmp r14w, 0xa
jne 0x14001e252
lea rcx, [0x14002bd80]
sub rdi, rcx
movzx eax, word [rcx]
cmp word [rdi + rcx], ax
jne 0x14001e252
add rcx, 2
sub rsi, 1
jne 0x14001e22d
mov r8d, dword [rbp - 0x3c]
mov rcx, r15
mov rdx, qword [rbp - 0x50]
call fcn.14001f690
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 0x14001e434
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 0x14001e472
xor r8d, r8d
xor edx, edx
mov ecx, 0xc1010450
call fcn.140014f9c
xor eax, eax
jmp 0x14001e4b0
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 0x14001e49a
cmp eax, 0xc0000004
jne 0x14001e49e
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 0x1400223cc
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 0x1400225de
mov rcx, qword [rcx + 0x18]
lea rdx, [0x14002bde0]
xor r9d, r9d
xor r8d, r8d
call fcn.140004160
test al, al
jne 0x1400225de
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140022451
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.140015188
jmp 0x1400225d9
mov rdx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.140022170
mov rdi, rax
test rax, rax
je 0x1400225ce
cmp dword [0x1400336f0], 4
jb 0x14002248b
mov rcx, qword [rbx + 0x18]
mov edx, 0x19
mov r8d, dword [rcx + 0x54]
mov rcx, rax
call fcn.140022288
mov dword [rbx + 0x40], eax
mov r8, rbx
mov edx, 3
mov rcx, rdi
call fcn.1400226b4
mov rsi, rax
test rax, rax
je 0x1400225c5
mov rcx, qword [rbx + 0x18]
lea rdx, [0x14002bff0]
xor r9d, r9d
xor r8d, r8d
call fcn.140004160
test al, al
jne 0x140022514
mov rcx, qword [rbx + 0x18]
lea rdx, [0x14002bfc0]
xor r9d, r9d
xor r8d, r8d
call fcn.140004160
test al, al
jne 0x140022514
mov rcx, qword [rbx + 0x18]
lea rdx, [0x14002c060]
mov r9b, 1
xor r8d, r8d
call fcn.140004160
test al, al
je 0x140022514
cmp dword [0x1400336f0], 6
jb 0x140022514
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 0x14002259e
mov rdx, qword [rsp + 0x78]
mov r8d, r15d
mov rcx, r12
call fcn.140021534
mov rcx, qword [rsp + 0x78]
mov ebp, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebp, ebp
js 0x14002259e
mov qword [rbx + 0x50], rdi
xor edi, edi
cmp byte [rbx + 0xb1], dil
je 0x140022599
mov eax, dword [rbx + 0x40]
cmp eax, dword [str.sboxS]
je 0x140022599
cmp eax, 0x3000
jb 0x140022599
mov dword [rbx + 0x40], 0x2000
mov r14b, 1
jmp 0x1400225b7
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, ebp
mov ecx, 0xc10204c6
lea edx, [r9 + 0x36]
call fcn.140015204
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test rdi, rdi
je 0x1400225ce
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 0x1400225e0
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 0x1400225fc
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 0x140022618
mov al, 1
jmp 0x1400226a7
mov rcx, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov r8d, eax
test eax, eax
jns 0x140022653
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.140015188
jmp 0x1400226a5
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsReferencePrimaryToken]
test rax, rax
jne 0x14002268f
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.140015188
jmp 0x14002269a
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 0x140022e7c
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.140028ec0
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 0x140022ef5
xor eax, eax
jmp 0x140022eff
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 0x140022f14
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.140028ec0
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 0x140022fa0
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 0x140022fbc
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 0x1400231b4
test rdx, rdx
je 0x1400231b4
test r8, r8
je 0x1400231b4
test r9, r9
je 0x1400231b4
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 0x140023192
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 0x1400230ca
cmp eax, 0xc0000023
jne 0x140023128
mov esi, dword [rsp + 0x8d0]
mov dword [rsp + 0x34], esi
xor r8d, r8d
mov edx, esi
mov rcx, qword [0x140033700]
call fcn.140015224
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400230ff
xor esi, esi
mov ebx, 0xc000009a
jmp 0x140023192
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 0x140023192
mov eax, dword [rdi + 8]
cmp qword [r14], 0
jne 0x14002315e
xor r8d, r8d
mov edx, eax
mov rcx, qword [0x140033700]
call fcn.140015224
mov qword [r14], rax
test rax, rax
jne 0x140023159
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
jmp 0x140023192
mov eax, dword [rdi + 8]
jmp 0x14002316e
cmp eax, dword [r15]
jbe 0x14002316e
mov ebx, 0xc0000023
mov dword [rsp + 0x30], ebx
jmp 0x140023192
mov dword [r15], eax
mov r8d, dword [rdi + 8]
lea rdx, [rdi + 0xc]
mov rcx, qword [r14]
call fcn.140028c00
jmp 0x140023192
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400231a2
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test esi, esi
je 0x1400231b0
mov edx, esi
mov rcx, rdi
call fcn.14000ee44
mov eax, ebx
jmp 0x1400231b9
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 0x1400233e8
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 0x140023419
mov ecx, dword [rsp + 0x34]
mov al, 1
shr ecx, 1
test al, cl
jne 0x14002341b
xor al, al
add rsp, 0x28
ret
Function at 0x1400234f4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
and qword [rbp - 0x19], 0
mov r14d, r9d
mov rdi, r8
mov rsi, rdx
test rcx, rcx
je 0x1400235d8
test rdx, rdx
je 0x1400235d8
test r8, r8
je 0x1400235d8
mov rdx, rcx
lea rcx, [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0x17], 0
lea rax, [rbp - 0x11]
mov qword [rbp + 0x1f], rax
lea r8, [rbp + 0xf]
lea rax, [rbp + 0x67]
mov dword [rbp + 0xf], 0x30
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x19]
and dword [rsp + 0x28], 0
xorps xmm0, xmm0
and qword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x20006
mov dword [rbp + 0x27], 0x240
movdqu xmmword [rbp + 0x2f], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov ebx, eax
test eax, eax
jne 0x1400235c5
mov rdx, rsi
lea rcx, [rbp - 1]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rbp - 0x19]
lea r9d, [rbx + 3]
xor r8d, r8d
mov dword [rsp + 0x28], r14d
lea rdx, [rbp - 1]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov ebx, eax
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x1400235d4
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
jmp 0x1400235dd
mov eax, 0xc000000d
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140023754
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
push r14
push r15
sub rsp, 0x20
or rbp, 0xffffffffffffffff
mov r14, rcx
mov rdi, rbp
xor r15d, r15d
inc rdi
cmp word [rcx + rdi*2], r15w
jne 0x140023779
mov edx, 0x10000
add di, di
mov dword [rsp + 0x48], edx
mov ebx, r15d
jmp 0x1400237dc
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rsi
mov ecx, 5
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400237f8
mov eax, ebx
inc ebx
cmp eax, 0x64
jae 0x140023824
mov edx, dword [str.sboxS]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [rsp + 0x48]
mov eax, ebx
shl eax, 0xc
add ecx, eax
mov dword [rsp + 0x48], ecx
mov edx, ecx
mov r8d, dword [str.sboxS]
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
test rax, rax
jne 0x140023794
jmp 0x140023833
test eax, eax
js 0x140023824
mov rbx, rsi
cmp word [rbx + 0x38], di
jne 0x140023815
mov rdx, qword [rbx + 0x40]
mov rcx, r14
call sub.ntoskrnl.exe__wcsicmp
test eax, eax
je 0x140023820
mov eax, dword [rbx]
test eax, eax
je 0x140023824
add rbx, rax
jmp 0x1400237ff
mov rbp, qword [rbx + 0x50]
mov edx, dword [str.sboxS]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbx, qword [rsp + 0x40]
mov rax, rbp
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400238d0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call fcn.140023374
test al, al
je 0x140023926
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140023924
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessImageFileName]
mov rcx, rax
lea rdx, [0x14002c0e0]
call sub.ntoskrnl.exe__stricmp
mov rcx, qword [rsp + 0x38]
test eax, eax
sete bl
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140023934
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [rsp + 0x38]
xor ebx, ebx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140023963
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsIsProtectedProcess]
mov rcx, qword [rsp + 0x38]
mov bl, al
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
add rsp, 0x20
pop rbx
ret