joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400013b8
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
and qword [0x14000a0a8], 0
lea rcx, [0x14000a0b8]
and dword [0x14000a0b0], 0
mov edx, 1
xor r8d, r8d
mov dword [0x14000a0a0], edx
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea rcx, [0x140007a50]
jmp loc.140131fb8

Function at 0x140002088
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, r8
mov ebx, edx
mov r8d, edx
mov rdi, rcx
mov rdx, rcx
mov r15, r9
mov rcx, rsi
call fcn.1400075c0
shr rbx, 3
xor ebp, ebp
test rbx, rbx
je 0x14000211b
mov r14d, ebp
sub rdi, rsi
mov rcx, r15
call fcn.140002eb0
movsxd rcx, r14d
inc ebp
add rcx, qword [r15 + 0x10]
add r14d, 0x10
xor rax, rcx
mov rcx, qword [rdi + rsi]
xor rcx, rax
mov eax, 0xd20d20d3
mov qword [rsi], rcx
lea rsi, [rsi + 8]
mov ecx, dword [r15 + 8]
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x138
sub ecx, eax
movsxd rax, ebp
mov dword [r15 + 8], ecx
cmp rax, rbx
jb 0x1400020ca
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140002270
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r15, rcx
mov ebp, edx
lea rcx, [0x140007af0]
mov rsi, r9
mov r14, r8
jmp 0x1401321b1

Function at 0x1400026d0
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rdx
mov ecx, ecx
xor ebp, ebp
lea rdx, [rax + 0x20]
mov qword [rax + 0x20], rbp
mov ebx, r8d
mov r14b, 1
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov rcx, qword [rsp + 0x58]
test eax, eax
movzx edi, r14b
cmovs edi, ebp
test rcx, rcx
jne 0x140002714
xor eax, eax
jmp 0x140002738
mov r8d, ebx
mov rdx, rsi
call fcn.1400027d4
mov rcx, qword [rsp + 0x58]
mov ebx, eax
test rcx, rcx
je 0x140002736
cmp dil, r14b
jne 0x140002736
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x14000274c
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov edi, r8d
mov rsi, rdx
mov r15b, 1
xor r14d, r14d
mov qword [rax + 0x20], r14
mov ecx, ecx
lea rdx, [rax + 0x20]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
movzx ebx, r15b
test eax, eax
cmovs ebx, r14d
mov byte [rsp + 0x20], bl
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jne 0x140002797
xor eax, eax
jmp 0x1400027bf
mov r8d, edi
mov rdx, rsi
call fcn.140002a94
mov edi, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400027b9
cmp bl, r15b
jne 0x1400027b9
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
jmp 0x1400027bf
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140002a94
Capabilities:
Attach user process memory

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov r15d, r14d
test rcx, rcx
jne 0x140002ac8
xor eax, eax
jmp 0x140002d38
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
setne dil
lea rdx, [rsp + 0x48]
mov rcx, rbx
call sub.ntoskrnl.exe_KeStackAttachProcess
nop
mov rcx, rbx
test dil, dil
je 0x140002c06
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov r12, rax
test rax, rax
je 0x140002d21
mov eax, dword [rax + 0xc]
test eax, eax
je 0x140002d21
mov r13d, dword [rax + 0xc]
mov eax, dword [r12 + 0xc]
add rax, 0xc
cmp r13, rax
je 0x140002d21
mov edx, dword [r13 + 0x28]
lea rcx, [rsp + 0x38]
call fcn.140002e2c
mov edx, dword [r13 + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140002e2c
cmp r15d, dword [rsp + 0xd0]
jae 0x140002bed
mov eax, r15d
imul rbx, rax, 0x318
lea rdi, [rbx + rsi]
xor edx, edx
mov r8d, 0x100
lea rcx, [rdi + 0xc]
call fcn.140007900
add rsi, rbx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsi + 0x10c]
call fcn.140007900
mov eax, dword [r13 + 0x18]
mov rcx, qword [rsp + 0xc8]
mov qword [rbx + rcx], rax
mov eax, dword [r13 + 0x20]
mov dword [rbx + rcx + 8], eax
movzx eax, word [rsp + 0x28]
mov ecx, 0x7f
mov r8d, ecx
cmp cx, word [rsp + 0x28]
cmovae r8d, eax
mov rdx, qword [rsp + 0x30]
lea rcx, [rdi + 0xc]
call fcn.1400075c0
movzx eax, word [rsp + 0x38]
mov ebx, 0x103
mov r8d, ebx
cmp bx, word [rsp + 0x38]
cmovae r8d, eax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsi + 0x10c]
call fcn.1400075c0
mov rsi, qword [rsp + 0xc8]
inc r14d
mov dword [rsp + 0x20], r14d
inc r15d
mov dword [rsp + 0x24], r15d
mov r13d, dword [r13]
jmp 0x140002b10
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rsi, rax
test rax, rax
je 0x140002d21
mov rdi, qword [rax + 0x18]
test rdi, rdi
je 0x140002d21
mov rdi, qword [rdi + 0x10]
mov r13d, 0x7f
mov r12d, 0x103
mov rax, qword [rsi + 0x18]
add rax, 0x10
cmp rdi, rax
je 0x140002d21
cmp r15d, dword [rsp + 0xd0]
jae 0x140002d09
mov eax, r15d
imul rbx, rax, 0x318
mov rax, qword [rsp + 0xc8]
add rax, 0xc
add rax, rbx
mov qword [rsp + 0xc0], rax
xor edx, edx
mov r8d, 0x100
mov rcx, rax
call fcn.140007900
mov rax, qword [rsp + 0xc8]
add rax, 0x10c
add rax, rbx
mov qword [rsp + 0xd8], rax
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call fcn.140007900
mov rax, qword [rdi + 0x30]
mov rcx, qword [rsp + 0xc8]
mov qword [rbx + rcx], rax
mov eax, dword [rdi + 0x40]
mov dword [rbx + rcx + 8], eax
movzx eax, word [rdi + 0x58]
cmp r13w, ax
movzx r8d, ax
jae 0x140002cd6
mov r8, r13
mov rdx, qword [rdi + 0x60]
mov rcx, qword [rsp + 0xc0]
call fcn.1400075c0
movzx eax, word [rdi + 0x48]
cmp r12w, ax
movzx r8d, ax
jae 0x140002cf8
mov r8, r12
mov rdx, qword [rdi + 0x50]
mov rcx, qword [rsp + 0xd8]
call fcn.1400075c0
inc r14d
mov dword [rsp + 0x20], r14d
inc r15d
mov dword [rsp + 0x24], r15d
mov rdi, qword [rdi]
jmp 0x140002c35
jmp 0x140002d2b
lea rcx, [rsp + 0x48]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
mov eax, r14d
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002eb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r10, rcx
test rcx, rcx
je 0x140003007
cmp dword [rcx + 0xc], 0
je 0x140003007
mov r8d, dword [rcx + 8]
cmp r8d, 0x138
jl 0x140002fab
xor ebx, ebx
lea rsi, [section..data]
mov edi, 0x7fffffff
mov r11d, 0x4e0
mov r9, qword [r10]
mov r8d, dword [rbx + r9 + 8]
xor r8d, dword [rbx + r9]
and r8, rdi
xor r8, qword [rbx + r9]
mov rcx, r8
shr r8, 1
and ecx, 1
mov rdx, qword [rsi + rcx*8]
xor rdx, qword [rbx + r9 + 0x4e0]
xor rdx, r8
mov qword [rbx + r9], rdx
add rbx, 8
cmp rbx, r11
jl 0x140002efa
mov r9, qword [r10]
mov r8d, dword [r11 + r9 + 8]
xor r8d, dword [r11 + r9]
and r8, rdi
xor r8, qword [r11 + r9]
mov rcx, r8
shr r8, 1
and ecx, 1
mov rdx, qword [rsi + rcx*8]
xor rdx, qword [r11 + r9 - 0x4e0]
xor rdx, r8
mov qword [r11 + r9], rdx
add r11, 8
cmp r11, 0x9b8
jl 0x140002f32
mov r9, qword [r10]
mov r8d, dword [r9 + 0x9b8]
xor r8d, dword [r9]
and r8, rdi
xor r8, qword [r9 + 0x9b8]
mov rcx, r8
shr r8, 1
and ecx, 1
mov rdx, qword [rsi + rcx*8]
xor rdx, qword [r9 + 0x4d8]
xor rdx, r8
mov qword [r9 + 0x9b8], rdx
and dword [r10 + 8], 0
xor r8d, r8d
mov rax, qword [r10]
movsxd rcx, r8d
mov rdx, qword [rax + rcx*8]
lea eax, [r8 + 1]
mov dword [r10 + 8], eax
movabs rcx, 0x555555555
mov rax, rdx
shr rax, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
jmp 0x140003009
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x14000301c
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x1400030b4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor eax, eax
mov rdi, rdx
mov qword [rcx], rax
mov rbx, rcx
mov qword [rcx + 8], rax
mov edx, 0x9c0
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
xor edx, edx
mov r8d, 0x9c0
mov rcx, rax
mov qword [rbx], rax
call fcn.140007900
mov rax, qword [rbx]
mov r9d, 1
mov dword [rbx + 0xc], r9d
mov qword [rax], rdi
mov dword [rbx + 8], r9d
movsxd r8, dword [rbx + 8]
mov rdx, qword [rbx]
mov rax, qword [rdx + r8*8 - 8]
mov rcx, rax
shr rcx, 0x3e
xor rcx, rax
movabs rax, 0x5851f42d4c957f2d
imul rcx, rax
add rcx, r8
mov qword [rdx + r8*8], rcx
add dword [rbx + 8], r9d
cmp dword [rbx + 8], 0x138
jl 0x140003072
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400032b0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov eax, dword [rcx]
xor esi, esi
and qword [rbp + 0x10], 0
xor eax, 0xcdfe
mov dword [rcx], eax
mov rbx, rdx
test rdx, rdx
je 0x140003430
test eax, eax
je 0x140003430
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x38], rcx
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x40], rcx
mov ecx, eax
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov edi, eax
test eax, eax
js 0x140003409
mov rcx, qword [rbp + 0x10]
lea rdx, [rbp - 0x30]
call sub.ntoskrnl.exe_KeStackAttachProcess
mov r8, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
lea rcx, [rbp - 0x40]
mov r9b, 1
mov edx, 0x10000
mov r8, qword [r8]
call fcn.1400030b8
lea rcx, [rbp - 0x30]
mov edi, eax
call sub.ntoskrnl.exe_KeUnstackDetachProcess
test edi, edi
js 0x140003409
mov r8, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
mov rax, r8
cmp r8, rcx
je 0x140003369
mov rax, qword [rax]
lea rcx, [rbp - 0x40]
inc esi
cmp rax, rcx
jne 0x14000335b
mov rax, qword [rbx]
mov ecx, esi
mov qword [rbx], rcx
cmp rax, rcx
jae 0x140003380
mov edi, 0xc0000023
jmp 0x14000340d
xor r9d, r9d
lea rax, [rbp - 0x40]
mov rdx, r8
cmp r8, rax
je 0x140003416
mov rax, qword [rdx + 0x18]
lea rcx, [r9 + r9*2]
add rcx, rcx
inc r9d
mov qword [rbx + rcx*8 + 0x10], rax
mov eax, dword [rdx + 0x20]
mov dword [rbx + rcx*8 + 0x18], eax
mov rax, qword [rdx + 0x10]
mov qword [rbx + rcx*8 + 8], rax
mov eax, dword [rdx + 0x34]
mov dword [rbx + rcx*8 + 0x2c], eax
mov rax, qword [rdx + 0x28]
mov qword [rbx + rcx*8 + 0x20], rax
mov eax, dword [rdx + 0x30]
mov dword [rbx + rcx*8 + 0x28], eax
mov eax, dword [rdx + 0x38]
mov dword [rbx + rcx*8 + 0x30], eax
lea rax, [rbp - 0x40]
mov rdx, qword [rdx]
cmp rdx, rax
jne 0x140003393
jmp 0x14000340d
mov rax, qword [r8]
cmp qword [rax + 8], r8
jne 0x140003429
mov rcx, qword [r8 + 8]
cmp qword [rcx], r8
jne 0x140003429
mov qword [rcx], rax
mov edx, 0x4746544d
mov qword [rax + 8], rcx
mov rcx, r8
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r8, qword [rbp - 0x40]
lea rax, [rbp - 0x40]
cmp r8, rax
jne 0x1400033e2
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140003425
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
jmp 0x140003435
mov ecx, 3
int 0x29
mov eax, 0xc000000d
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140003468
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
test eax, eax
js 0x14000349c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessImageFileName]
mov rcx, qword [rsp + 0x38]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400035b0
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
mov edi, ecx
or dword [rax - 0x18], 0xffffffff
xor ebx, ebx
mov qword [rax + 0x10], rbx
mov ecx, edi
lea rdx, [rax + 0x10]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
test eax, eax
jns 0x1400035e5
mov ecx, edi
call fcn.1400034a8
mov qword [rsp + 0x48], rax
jmp 0x1400035f5
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x48]
test rax, rax
setne bl
mov dword [rsp + 0x20], ebx
jmp 0x140003605
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140003614
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov qword [rax + 0x10], rbx
mov dil, 1
mov byte [rax - 0x18], dil
mov ecx, ecx
lea rdx, [rax + 0x10]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
movzx esi, dil
test eax, eax
cmovs esi, ebx
mov byte [rsp + 0x20], sil
jmp 0x14000365b
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x14000366a
or eax, 0xffffffff
jmp 0x140003692
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov r14d, ebx
test rax, rax
sete r14b
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000368f
cmp sil, dil
jne 0x14000368f
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, r14d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1400036b0
Capabilities:
Find process by pid

Disassembly:
test ecx, ecx
je 0x140003779
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
mov dil, 1
mov byte [rax - 0x18], dil
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rbx
mov ecx, ecx
lea rdx, [rax + 0x10]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
movzx esi, dil
test eax, eax
cmovs esi, ebx
mov byte [rsp + 0x40], sil
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000376a
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], bl
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
test eax, eax
je 0x140003733
cmp sil, dil
jne 0x140003731
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x14000376a
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwTerminateProcess]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x140003755
cmp sil, dil
jne 0x14000376a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000376a
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140003874
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbp, rdx
mov r14, rcx
mov edi, 0x100000
xor ecx, ecx
mov edx, edi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
jne 0x1400038ad
mov eax, 0xc0000001
jmp 0x140003957
and dword [rsp + 0x70], 0
lea r9, [rsp + 0x70]
mov r8d, edi
mov rdx, rbx
mov ecx, 0x42
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jne 0x14000394a
xor edi, edi
cmp dword [rbx], edi
jbe 0x14000394a
mov rax, qword [rbp + 8]
lea rcx, [rdi + rdi*2]
movsd xmm1, qword [rbx + rcx*8 + 0x18]
movsd qword [rsp + 0x30], xmm1
movups xmm0, xmmword [rbx + rcx*8 + 8]
movups xmmword [rsp + 0x20], xmm0
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1400038fe
cmp rsi, rax
jb 0x140003944
mov rax, qword [rbp + 0x10]
test rax, rax
je 0x14000390c
cmp rsi, rax
ja 0x140003944
mov edx, 0x28
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rcx, qword [rsp + 0x20]
mov qword [rax + 0x10], rcx
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x20], ecx
mov qword [rax + 0x18], rsi
mov rcx, qword [r14]
cmp qword [rcx + 8], r14
jne 0x14000396a
mov qword [rax], rcx
mov qword [rax + 8], r14
mov qword [rcx + 8], rax
mov qword [r14], rax
inc edi
cmp edi, dword [rbx]
jb 0x1400038d1
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov ecx, 3
int 0x29
int3

Function at 0x140003bfc
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov esi, r8d
mov r15, rdx
xor ebx, ebx
mov byte [rax - 0x28], bl
mov dil, 1
mov byte [rax - 0x27], dil
mov qword [rax + 0x20], rbx
mov ecx, ecx
lea rdx, [rax + 0x20]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
movzx r14d, dil
test eax, eax
cmovs r14d, ebx
mov byte [rsp + 0x21], r14b
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jne 0x140003c4e
xor al, al
jmp 0x140003c87
mov r8d, esi
mov rdx, r15
call fcn.140003c9c
mov sil, al
mov byte [rsp + 0x20], al
jmp 0x140003c6f
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003c84
cmp r14b, dil
jne 0x140003c84
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, sil
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140003d44
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ecx, ecx
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
test eax, eax
jns 0x140003d64
xor eax, eax
jmp 0x140003d84
mov rcx, qword [rsp + 0x38]
call fcn.140003d8c
mov rcx, qword [rsp + 0x38]
mov rbx, rax
test rcx, rcx
je 0x140003d81
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140003f2c
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
mov ecx, dword [rcx + 8]
lea rdx, [rax + 8]
xor ebp, ebp
mov r14b, 1
mov qword [rax + 8], rbp
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov rcx, qword [rsp + 0x40]
test eax, eax
movzx edi, r14b
cmovs edi, ebp
test rcx, rcx
jne 0x140003f74
mov eax, 0xc0000001
jmp 0x140003f93
mov r8, rsi
mov rdx, rbx
call fcn.140003eb8
mov ebx, eax
cmp dil, r14b
jne 0x140003f91
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140006654
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
cmp qword [0x14000a6e0], 0
mov r13, rdx
mov ebx, ecx
jne 0x1400066b2
lea rdx, [0x140007d50]
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [0x14000a6e0], rax
test rax, rax
jne 0x1400066b2
or rax, 0xffffffffffffffff
jmp 0x1400067d6
and qword [rbp + 0x40], 0
lea rdx, [rbp + 0x40]
mov rcx, rbx
call sub.ntoskrnl.exe_PsLookupThreadByThreadId
test eax, eax
je 0x1400066d1
mov eax, 0xfffffffe
jmp 0x1400067d6
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x1400066e8
call sub.ntoskrnl.exe_PsGetThreadProcess
mov rcx, qword [rbp + 0x40]
mov rbx, rax
jmp 0x1400066ea
xor ebx, ebx
test rbx, rbx
jne 0x1400066f7
lea eax, [rbx - 3]
jmp 0x1400067d6
mov rax, qword [0x14000a6e0]
call qword [0x140008328]
cmp dword [0x14000a748], 0x64
mov rcx, rax
jne 0x14000671c
test rax, rax
je 0x14000671a
mov rcx, qword [rax]
jmp 0x14000671c
xor ecx, ecx
test rcx, rcx
jne 0x140006729
lea eax, [rcx - 4]
jmp 0x1400067d6
mov r12, qword [0x14000a740]
lea rdx, [rbp - 0x38]
add r12, rcx
mov rcx, rbx
call sub.ntoskrnl.exe_KeStackAttachProcess
mov rcx, r12
xor r14d, r14d
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400067ca
or rbx, 0xffffffffffffffff
xor esi, esi
mov rdi, qword [r12 + rbx*8]
test rdi, rdi
je 0x1400067c1
lea rax, [rsi + rsi*2]
lea r15, [rax*8]
add r15, r13
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400067c1
cmp rsi, 0x10
jge 0x1400067c1
mov rax, qword [rdi]
inc r14d
mov qword [rbp - 0x50], rax
inc rsi
mov eax, dword [rdi + 0x30]
mov dword [rbp - 0x48], eax
mov eax, dword [rdi + 0x44]
mov dword [rbp - 0x44], eax
mov rax, qword [rdi + 0x38]
movups xmm0, xmmword [rbp - 0x50]
mov qword [rbp - 0x40], rax
movsd xmm1, qword [rbp - 0x40]
movups xmmword [r15], xmm0
movsd qword [r15 + 0x10], xmm1
add r15, 0x18
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14000676d
inc rbx
cmp rbx, 0xe
jle 0x140006755
lea rcx, [rbp - 0x38]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
mov eax, r14d
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x140006a00
Capabilities:
Create thread

Disassembly:
mov r11, rsp
sub rsp, 0x88
xor ecx, ecx
lea r8, [r11 - 0x38]
mov eax, ecx
mov qword [r11 - 0x58], rcx
xchg dword [0x14000a6e8], eax
mov dword [rsp + 0x50], 0x30
lea rax, [0x140006a80]
mov qword [r11 - 0x30], rcx
xorps xmm0, xmm0
mov qword [r11 - 0x60], rax
xor r9d, r9d
mov dword [rsp + 0x68], 0x200
lea rax, [r11 - 0x48]
mov qword [r11 - 0x28], rcx
xor edx, edx
mov qword [r11 + 8], rcx
lea rcx, [r11 + 8]
mov qword [r11 - 0x68], rax
movdqu xmmword [rsp + 0x70], xmm0
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov rcx, qword [rsp + 0x48]
lea rdx, [0x14000a6f0]
call sub.ntoskrnl.exe_PsLookupThreadByThreadId
add rsp, 0x88
ret
Function at 0x140007338
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
cmp dword [0x14000a748], 0
je 0x14000734c
mov al, 1
jmp 0x1400073e8
and dword [rsp + 0x38], 0
lea rdx, [rsp + 0x30]
and dword [rsp + 0x30], 0
lea rcx, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
mov eax, dword [rsp + 0x38]
cmp eax, 5
jne 0x140007388
cmp dword [rsp + 0x30], 1
jne 0x1400073df
mov dword [0x14000a748], 0x33
jmp 0x140007345
cmp eax, 6
jne 0x1400073c4
mov eax, dword [rsp + 0x30]
cmp eax, 1
jne 0x1400073a2
mov dword [0x14000a748], 0x3d
jmp 0x140007345
cmp eax, 2
jne 0x1400073b3
mov dword [0x14000a748], 0x3e
jmp 0x140007345
cmp eax, 3
jne 0x1400073df
mov dword [0x14000a748], 0x3f
jmp 0x140007345
cmp eax, 0xa
jne 0x1400073df
cmp dword [rsp + 0x30], 0
jne 0x1400073df
mov dword [0x14000a748], 0x64
jmp 0x140007345
and dword [0x14000a748], 0
xor al, al
add rsp, 0x28
ret

Function at 0x14000e000
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
lea rcx, [0x14000e1d0]
jmp 0x14013278d
Function at 0x140007620
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8d, 0x19
lea rdx, str.._rbxcompile.exe__O2__g2
lea rcx, [rsp + 0x48]
call fcn.14000c2d0
nop
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140007660
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400099c0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x30], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400076f9
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400076f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400076f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140018000
movdqa xmm0, xmmword [0x14003af40]
movdqu xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x20], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14000774c
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007747
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007747
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140018000
add rsp, 0x70
pop rbx
ret