joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003650
Capabilities:
Attach user process memory
Resolve function by parsing pe exports

Disassembly:
push rsi
push r12
push r13
push r14
sub rsp, 0x98
mov r13, rcx
mov rdx, 0xffffffffffffffff
mov ecx, 0x1000
call qword [sym.imp.ntoskrnl.exe_MmAllocateContiguousMemory]
mov rcx, rax
mov r12, rax
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalAddress]
mov rcx, qword [r13 + 0xa8]
lea rdx, [rsp + 0x50]
mov r14, rax
sar r14, 0xc
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
movabs rax, 0x200000000000000
lea rcx, [r14 + r14*2]
shl rcx, 4
mov edx, 0x7ffe0000
add rcx, qword [0x14000df88]
mov r8d, 0x1000
or qword [rcx + 0x28], rax
mov rcx, r12
call fcn.140009240
cmp dword [0x14000df28], 0x295a
ja 0x1400036e4
movabs rsi, 0xfffff680003fff00
jmp 0x140003886
cmp qword [0x14000e0c8], 0
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x80], r15
jne 0x140003851
xor esi, esi
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0xc8]
mov qword [rsp + 0xc8], rsi
lea rcx, [0x140009bf0]
mov qword [rsp + 0xc0], rsi
call fcn.140008880
test al, al
je 0x1400037d1
mov r15, qword [rsp + 0xc0]
lea rdx, [0x140009be0]
movsxd rcx, dword [r15 + 0x3c]
movzx eax, word [rcx + r15 + 0x14]
lea rbx, [rcx + r15]
movzx ebp, word [rcx + r15 + 6]
add rax, 0x18
lea rcx, [rsp + 0x40]
add rbx, rax
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
mov edi, esi
test ebp, ebp
je 0x1400037d1
nop dword [rax]
nop word [rax + rax]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
cmp word [rsp + 0x30], 8
jbe 0x1400037b0
mov eax, 8
mov word [rsp + 0x30], ax
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
je 0x1400037f0
add rbx, 0x28
inc edi
cmp edi, ebp
jb 0x140003790
mov r9d, 0x7e
lea r8, [0x14000a3e0]
lea rdx, [0x14000a3f0]
lea ecx, [r9 - 0x7d]
call fcn.140003c60
jmp 0x140003866
mov edi, dword [rbx + 8]
lea r9, [0x14000a3c0]
mov ebx, dword [rbx + 0xc]
lea r8, [0x14000a3a0]
add rbx, r15
mov edx, edi
mov rcx, rbx
call fcn.1400087d0
mov qword [0x14000e0c8], rax
cmp rax, rbx
jbe 0x1400038d3
lea rcx, [rbx + rdi]
cmp rax, rcx
jae 0x1400038d3
mov r9d, 0x89
mov qword [rsp + 0x20], rax
lea r8, [0x14000a3e0]
mov ecx, 3
lea rdx, [0x14000a460]
call fcn.140003c60
mov rax, qword [0x14000e0c8]
mov ecx, 0x7ffe0000
call qword [0x14000b290]
mov rsi, rax
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xd0]
mov r15, qword [rsp + 0x80]
mov qword [r13 + 0xf8], rsi
movabs rax, 0xfffffffff000
mov rcx, qword [rsi]
shr rcx, 0xc
mov dword [r13 + 0x100], ecx
lea rcx, [rsp + 0x50]
shl r14, 0xc
xor r14, qword [rsi]
and r14, rax
xor qword [rsi], r14
mov qword [r13 + 0xf0], r12
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
add rsp, 0x98
pop r14
pop r13
pop r12
pop rsi
ret
mov r9d, 0x85
lea r8, [0x14000a3e0]
lea rdx, [0x14000a430]
mov ecx, 1
call fcn.140003c60
jmp 0x140003866
Function at 0x140003900
Capabilities:
Attach user process memory

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
mov byte [rcx + 0xd9], 0
mov rcx, qword [rcx + 0xa8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rbx + 0xf8]
movabs rcx, 0xfdffffffffffffff
mov rdx, qword [rax]
movabs rax, 0xfffffffff
shr rdx, 0xc
and rdx, rax
lea rax, [rdx + rdx*2]
shl rax, 4
add rax, qword [0x14000df88]
and qword [rax + 0x28], rcx
mov rcx, qword [rbx + 0xf0]
call qword [sym.imp.ntoskrnl.exe_MmFreeContiguousMemory]
mov rdx, qword [rbx + 0xf8]
movabs r8, 0xffff000000000fff
mov ecx, dword [rbx + 0x100]
mov qword [rbx + 0xf0], 0
shl rcx, 0xc
mov rax, qword [rdx]
and rax, r8
or rcx, rax
mov qword [rdx], rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
add rsp, 0x50
pop rbx
ret

Function at 0x140003f10
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
movzx edi, dl
mov rsi, rcx
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rbx, rax
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov r14, rax
test rax, rax
je 0x140003f9a
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov byte [r14 + 2], dil
mov byte [rbx + 2], dil
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov al, 1
jmp 0x14000400c
test rbx, rbx
je 0x140003fed
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov byte [rbx + 2], dil
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov al, 1
jmp 0x14000400c
mov r9d, 0x30
lea r8, [0x140009d20]
lea rdx, [0x140009d60]
lea ecx, [r9 - 0x2f]
call fcn.140003c60
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret

Function at 0x140004030
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rsi, rax
test rax, rax
je 0x1400040c2
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
and dword [rsi + 0x68], 0xffffff8f
and dword [rbx + 0xbc], 0xffffff8f
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov al, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
test rbx, rbx
je 0x140004126
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
and dword [rbx + 0xbc], 0xffffff8f
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov al, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov r9d, 0x60
lea r8, [0x140009d90]
lea rdx, [0x140009d60]
lea ecx, [r9 - 0x5f]
call fcn.140003c60
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400080b0
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
sub rsp, 0xb0
call fcn.1400086d0
mov rcx, rax
call fcn.140008c80
mov rbx, rax
call fcn.1400086d0
lea r8, [0x14000a130]
mov rdx, rbx
mov rcx, rax
call fcn.140008b40
mov qword [0x14000e000], rax
lea r8, [0x14000a170]
test rax, rax
jne 0x140008113
mov r9d, 0x753
lea rdx, [0x14000a1a0]
lea ecx, [rax + 1]
call fcn.140003c60
xor al, al
add rsp, 0xb0
pop rbx
ret
mov qword [rsp + 0xd0], rbp
lea rdx, [0x14000a1e0]
mov qword [rsp + 0xa8], rsi
mov r9d, 0x756
mov qword [rsp + 0xa0], rdi
mov ecx, 3
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x20], rax
call fcn.140003c60
mov rax, qword [0x14000df28]
lea rcx, [0x14000a220]
cmp eax, 0x55f0
lea r14, [0x14000a230]
lea r15, [0x14000a260]
cmovae r14, rcx
lea rdi, [0x140009be0]
lea rcx, [0x14000a250]
cmovae r15, rcx
lea r8, [rsp + 0xc0]
lea rcx, [0x14000a280]
cmovae rdi, rcx
lea rdx, [rsp + 0xc8]
xor r13d, r13d
lea rcx, [0x140009bf0]
mov qword [rsp + 0xc8], r13
mov qword [rsp + 0xc0], r13
call fcn.140008880
test al, al
je 0x14000825d
mov rbp, qword [rsp + 0xc0]
mov rdx, rdi
movsxd rcx, dword [rbp + 0x3c]
movzx eax, word [rcx + rbp + 0x14]
lea rbx, [rcx + rbp]
movzx esi, word [rcx + rbp + 6]
add rax, 0x18
lea rcx, [rsp + 0x40]
add rbx, rax
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
mov edi, r13d
test esi, esi
je 0x14000825d
lea r12d, [r13 + 8]
nop word [rax + rax]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
cmp word [rsp + 0x30], r12w
jbe 0x14000823c
mov word [rsp + 0x30], r12w
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
je 0x1400082be
add rbx, 0x28
inc edi
cmp edi, esi
jb 0x140008220
mov r9d, 0x768
lea r8, [0x14000a290]
mov ecx, 1
lea rdx, [0x14000a2b0]
call fcn.140003c60
xor al, al
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xd0]
mov r15, qword [rsp + 0x80]
add rsp, 0xb0
pop rbx
ret
mov edi, dword [rbx + 8]
mov r9, r15
mov ebx, dword [rbx + 0xc]
mov r8, r14
add rbx, rbp
mov edx, edi
mov rcx, rbx
call fcn.1400087d0
cmp rax, rbx
jb 0x140008375
lea rdx, [rdi + rbx]
cmp rax, rdx
ja 0x140008375
lfence
movsxd rbx, dword [rax + 0xc]
lea r8, [0x14000a290]
add rax, 0x10
lea rdx, [0x14000a2e0]
add rbx, rax
mov r9d, 0x771
mov ecx, 3
mov qword [rsp + 0x20], rbx
call fcn.140003c60
lea rax, [0x140007560]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rax
lea rax, [0x14000dfe8]
mov qword [rsp + 0x60], rax
mov rax, cr3
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x50]
lea rcx, [0x1400034c0]
mov word [rsp + 0x70], r13w
call qword [sym.imp.ntoskrnl.exe_KeGenericCallDpc]
mov ecx, 0xffff
call qword [sym.imp.ntoskrnl.exe_KeQueryActiveProcessorCountEx]
movsx ecx, word [rsp + 0x70]
cmp ecx, eax
sete al
jmp 0x14000827d
mov r9d, 0x776
jmp 0x140008263
Function at 0x140008380
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
mov rbp, rsp
sub rsp, 0x70
lea r15, str.ollydbg.exe
mov rbx, rdx
mov rsi, rcx
cmp rcx, rdx
je 0x14000848d
nop dword [rax + rax]
mov rcx, qword [rsi]
test rcx, rcx
je 0x140008480
mov rax, qword [0x14000df90]
xor edx, edx
call qword [0x14000b290]
mov rcx, rax
lea rdx, [rbp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rdi, qword [rbp + 0x20]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp rdi, rax
je 0x140008480
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.140008660
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
psrldq xmm0, 8
movq rax, xmm0
test rax, rax
je 0x140008480
cmp word [rbp - 0x50], 0
je 0x140008480
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140008660
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x50]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x140008480
xor edi, edi
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rdi + r15]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x14000848d
add rdi, 8
cmp rdi, 0x170
jb 0x140008450
add rsi, 8
cmp rsi, rbx
jne 0x1400083b0
cmp rsi, rbx
je 0x1400085b7
mov qword [rsp + 0x98], r14
lea r14, [rsi + 8]
cmp r14, rbx
je 0x140008597
nop dword [rax + rax]
mov rcx, qword [r14]
test rcx, rcx
je 0x140008580
mov rax, qword [0x14000df90]
xor edx, edx
call qword [0x14000b290]
mov rcx, rax
lea rdx, [rbp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rdi, qword [rbp + 0x20]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp rdi, rax
je 0x140008580
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140008660
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
psrldq xmm0, 8
movq rax, xmm0
test rax, rax
je 0x140008580
cmp word [rbp - 0x50], 0
je 0x140008580
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140008660
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x140008580
xor edi, edi
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rdi + r15]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x14000858a
add rdi, 8
cmp rdi, 0x170
jb 0x140008550
mov rcx, qword [r14]
mov qword [rsi], rcx
add rsi, 8
add r14, 8
cmp r14, rbx
jne 0x1400084b0
mov r14, qword [rsp + 0x98]
mov rax, rsi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
mov rax, rsi
jmp 0x1400085a2
Function at 0x1400085c0
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
movsx rsi, dx
mov rdi, rcx
xor ebx, ebx
call fcn.1400086d0
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
cmp dword [0x14000df28], 0x2580
jbe 0x140008625
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x78]
lea rcx, [0x14000a330]
call fcn.140008880
cmp al, 1
jne 0x14000863b
mov rdx, qword [rsp + 0x70]
mov r8, rdi
xor ecx, ecx
call fcn.140008b40
mov rbx, rax
jmp 0x14000863b
mov rax, qword [0x14000e0c0]
mov rdx, qword [rax]
mov ecx, dword [rdx + rsi*4]
sar ecx, 4
movsxd rbx, ecx
add rbx, rdx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400086d0
Capabilities:
Enumerate processes via ntquerysysteminformation
Find process by pid
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
nop word [rax + rax]
xor edx, edx
lea r9, [rsp + 0x40]
xor r8d, r8d
lea ecx, [rdx + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edx, dword [rsp + 0x40]
xor ecx, ecx
mov r8d, 0x64487948
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x1400086e0
mov ecx, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdi, rax
mov rdx, rbx
xor eax, eax
rep stosb byte [rdi], al
mov r8d, dword [rsp + 0x40]
lea ecx, [rax + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jns 0x140008745
lfence
mov edx, 0x64487948
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1400086e0
lea rdx, [0x14000a380]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlCreateUnicodeString]
cmp dword [rbx], 0
mov rdi, rbx
je 0x140008732
nop
cmp qword [rdi + 0x40], 0
je 0x14000877d
lea rcx, [rdi + 0x38]
mov r8b, 1
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x140008789
mov eax, dword [rdi]
add rdi, rax
cmp dword [rdi], 0
jne 0x140008760
jmp 0x140008732
lfence
mov rcx, qword [rdi + 0x50]
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edx, 0x64487948
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400086e0
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140008880
Capabilities:
Get system information on windows

Disassembly:
push rbx
push rbp
push r12
push r13
sub rsp, 0x58
mov r13, rdx
lea r9, [rsp + 0x98]
xor edx, edx
mov r12, r8
mov rbx, rcx
xor r8d, r8d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edx, dword [rsp + 0x98]
xor ecx, ecx
mov r8d, 0x64487948
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbp, rax
test rax, rax
jne 0x1400088d2
add rsp, 0x58
pop r13
pop r12
pop rbp
pop rbx
ret
mov ecx, dword [rsp + 0x98]
lea r9, [rsp + 0x98]
mov qword [rsp + 0x80], rsi
xor eax, eax
mov qword [rsp + 0x88], rdi
mov rdx, rbp
mov rdi, rbp
mov qword [rsp + 0x90], r14
rep stosb byte [rdi], al
mov r8d, dword [rsp + 0x98]
lea ecx, [rax + 0xb]
mov qword [rsp + 0x50], r15
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x1400089c5
lfence
mov rdx, rbx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
xor edi, edi
mov esi, edi
cmp dword [rbp], edi
jbe 0x1400089c5
nop
mov r15d, esi
lea rdx, [rbp + 0x30]
imul r14, r15, 0x128
lea rcx, [rsp + 0x30]
add rdx, r14
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
movzx eax, word [rsp + 0x40]
movzx ebx, word [rsp + 0x30]
cmp bx, ax
jb 0x1400089ba
movaps xmm0, xmmword [rsp + 0x30]
sub bx, ax
movdqa xmmword [rsp + 0x20], xmm0
mov word [rsp + 0x20], ax
nop
mov r8b, 1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlEqualString]
test al, al
jne 0x1400089b0
inc qword [rsp + 0x28]
mov eax, 0xffff
add word [rsp + 0x22], ax
inc di
cmp di, bx
jbe 0x140008980
jmp 0x1400089b8
cmp dword [r14 + rbp + 0x20], 0
jne 0x140008a00
xor edi, edi
inc esi
cmp esi, dword [rbp]
jb 0x140008940
lfence
mov edx, 0x64487948
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor al, al
mov r14, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov r15, qword [rsp + 0x50]
add rsp, 0x58
pop r13
pop r12
pop rbp
pop rbx
ret
lfence
imul rcx, r15, 0x128
mov edx, 0x64487948
mov eax, dword [rcx + rbp + 0x20]
mov qword [r13], rax
mov rax, qword [rcx + rbp + 0x18]
mov rcx, rbp
mov qword [r12], rax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, 1
jmp 0x1400089d8
Function at 0x140008a30
Capabilities:
Enumerate processes via ntquerysysteminformation
Find process by pid
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x30
xor edx, edx
lea r9, [rsp + 0x48]
mov rsi, rcx
xor r8d, r8d
lea ecx, [rdx + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edx, dword [rsp + 0x48]
xor ecx, ecx
mov r8d, 0x64487948
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x140008a75
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov ecx, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
xor eax, eax
mov qword [rsp + 0x40], rdi
mov rdi, rbx
mov rdx, rbx
rep stosb byte [rdi], al
mov r8d, dword [rsp + 0x48]
lea ecx, [rax + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x140008adc
mov rdx, rsi
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlCreateUnicodeString]
cmp dword [rbx], 0
mov rdi, rbx
je 0x140008adc
cmp qword [rdi + 0x40], 0
je 0x140008ad2
lea rcx, [rdi + 0x38]
mov r8b, 1
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x140008aff
mov eax, dword [rdi]
add rdi, rax
cmp dword [rdi], 0
jne 0x140008ab5
lfence
mov edx, 0x64487948
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
lfence
mov rcx, qword [rdi + 0x50]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edx, 0x64487948
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
Function at 0x140008b40
Capabilities:
Attach user process memory

Disassembly:
mov rax, rsp
push rsi
sub rsp, 0x90
mov qword [rax + 8], rbx
xor esi, esi
mov qword [rax + 0x18], rdi
mov rbx, r8
mov qword [rax - 0x20], r14
mov r14, rcx
mov rdi, rdx
test rcx, rcx
je 0x140008b71
lea rdx, [rax - 0x58]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
movsxd rax, dword [rdi + 0x3c]
mov rdx, qword [rax + rdi + 0x88]
mov rax, rdx
shr rax, 0x20
test eax, eax
je 0x140008c41
test edx, edx
je 0x140008c41
mov qword [rsp + 0xa8], rbp
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x88], r12
mov ebp, edx
mov rdx, rbx
add rbp, rdi
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x70], r15
mov r12d, dword [rbp + 0x1c]
mov r15d, dword [rbp + 0x20]
add r12, rdi
mov r13d, dword [rbp + 0x24]
add r15, rdi
add r13, rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
mov rbx, rsi
cmp dword [rbp + 0x14], ebx
jbe 0x140008c24
mov edx, dword [r15 + rbx*4]
lea rcx, [rsp + 0x20]
add rdx, rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
mov r8b, 1
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
je 0x140008c17
mov eax, dword [rbp + 0x14]
inc rbx
cmp rbx, rax
jb 0x140008be1
jmp 0x140008c24
movzx eax, word [r13 + rbx*2]
mov esi, dword [r12 + rax*4]
add rsi, rdi
mov r15, qword [rsp + 0x70]
mov r13, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
test r14, r14
mov r14, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xa0]
je 0x140008c66
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, rsi
add rsp, 0x90
pop rsi
ret

Function at 0x140008c80
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x80
mov rbx, rcx
test rcx, rcx
jne 0x140008ca1
xor eax, eax
jmp 0x140008d38
xor edi, edi
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rdx, [0x14000a150]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlCreateUnicodeString]
nop
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rsi, rax
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x10]
nop word [rax + rax]
mov rax, qword [rsi + 0x18]
add rax, 0x10
cmp rbx, rax
je 0x140008d23
mov rdx, qword [rbx + 0x60]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlCreateUnicodeString]
mov r8b, 1
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x140008d1e
mov rdi, qword [rbx + 0x30]
mov qword [rsp + 0x20], rdi
jmp 0x140008d23
mov rbx, qword [rbx]
jmp 0x140008ce0
jmp 0x140008d2a
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, rdi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x414060
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4141eb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042fec0
xorps xmm15, xmm15
mov r14, qword [0x005b8808]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x4140c5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4140d4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4140f3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x414103
cmp rbx, 0x1000
jae 0x4140cb
jmp 0x41416d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x414115
xor edx, edx
jmp 0x414164
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042fec0
xorps xmm15, xmm15
mov r14, qword [0x005b8808]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x4140f9
jmp 0x4140e8
call fcn.0045eb20
xorps xmm15, xmm15
mov r14, qword [0x005b8808]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.004342e0
lea rax, [0x004b3bcd]
mov ebx, 0x18
nop dword [rax]
call fcn.00434b60
mov rax, qword [rsp + 0x38]
call fcn.004348a0
lea rax, [0x004b3f06]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00434b60
mov rax, qword [rsp + 0x30]
call fcn.004348a0
call fcn.00434520
call fcn.00434340
lea rax, [0x004b5bc3]
mov ebx, 0x21
call fcn.00432940
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045b460
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00414060