joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019cb70
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.140243620
sub rsp, rax
mov r10, rdx
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
add rdx, 0xf
lea rax, [r8 + 0xf]
mov r11, rcx
cmp r10, rax
ja 0x14019cbc3
xor ecx, ecx
cmp rdx, r8
jb 0x14019cbc3
sub r8, r10
lea rax, [rcx + r10]
mov edx, reloc.WS2_32.dll_recv
sub rdx, rcx
nop
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x14019cbb0
jmp 0x14019cbd6
movdqu xmm1, xmmword [r10]
movdqu xmm0, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [r10], xmm1
mov rcx, qword [r11 + 8]
lea r8, [rsp + 0x40]
mov r9, r10
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rdx, r10
call fcn.14010dfe0
test eax, eax
je 0x14019cc07
cmp dword [rsp + 0x40], 0x10
jne 0x14019cc07
mov eax, 1
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret

Function at 0x14019cdb0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x14019ce38
test r8, r8
je 0x14019ce38
mov rax, qword [rcx + 0x18]
cmp r8, rax
mov r9, rax
cmovb r9, r8
test r9, r9
je 0x14019cdf6
add rcx, 0x20
mov r11, rdx
sub r11, r10
nop
movzx eax, byte [r11 + rcx - 0x20]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x14019cde0
mov rax, qword [r10 + 0x18]
cmp r8, rax
jbe 0x14019ce38
sub r8, rax
cmp r8, 0x10
jbe 0x14019ce0c
mov r8d, reloc.WS2_32.dll_recv
jmp 0x14019ce11
test r8, r8
je 0x14019ce38
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r10 + 0x18]
add rax, rcx
movzx eax, byte [rax + rdx]
xor byte [r10 + rcx + 0x40], al
inc rcx
cmp rcx, r8
jb 0x14019ce20
ret
Function at 0x1401d6ae0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
push rbp
push rsi
push rdi
mov eax, 0xb0
call fcn.140243620
sub rsp, rax
mov rax, qword [0x14036e3c8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xf0]
mov rbp, r8
mov dword [rsp + 0x60], 0x61707865
mov rsi, rdx
mov dword [rsp + 0x64], 0x3320646e
mov rdi, rcx
mov dword [rsp + 0x68], 0x79622d32
mov dword [rsp + 0x6c], 0x6b206574
movups xmm0, xmmword [r9]
movups xmm1, xmmword [r9 + 0x10]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x80], xmm1
movups xmmword [rsp + 0x90], xmm0
test r8, r8
je 0x1401d6cc1
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], r14
nop
mov ebx, 0x40
lea rdx, [rsp + 0x60]
cmp rbp, rbx
lea rcx, [rsp + 0x20]
cmovb rbx, rbp
call fcn.1401d6ce0
xor eax, eax
test rbx, rbx
je 0x1401d6c9b
cmp rbx, 0x40
jb 0x1401d6c69
lea rdx, [rdi - 1]
add rdx, rbx
lea rcx, [rsp + rbx + 0x1f]
cmp rdi, rcx
ja 0x1401d6bbf
lea rcx, [rsp + 0x20]
cmp rdx, rcx
jae 0x1401d6c69
lea rcx, [rsi - 1]
add rcx, rbx
cmp rdi, rcx
ja 0x1401d6bd4
cmp rdx, rsi
jae 0x1401d6c69
mov r10, rbx
and r10, 0xffffffffffffffc0
mov rdx, rsi
lea r8, [rsp + 0x20]
lea r11, [rsp + 0x30]
sub rdx, rdi
sub r8, rdi
lea r14, [rsp + 0x40]
sub r11, rdi
lea rcx, [rdi + 0x10]
sub r14, rdi
nop dword [rax]
movdqu xmm0, xmmword [r8 + rcx - 0x10]
add rax, 0x40
movdqu xmm1, xmmword [rdx + rcx - 0x10]
movdqu xmm2, xmmword [rcx + r8]
lea rcx, [rcx + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + rcx - 0x40]
movdqu xmmword [rcx - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rdx + rcx - 0x30]
movdqu xmm1, xmmword [rcx + r11 - 0x40]
movdqu xmmword [rcx - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + rcx - 0x20]
movdqu xmm2, xmmword [rcx + r14 - 0x40]
movdqu xmmword [rcx - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rcx - 0x20], xmm2
cmp rax, r10
jb 0x1401d6c00
cmp rax, rbx
jae 0x1401d6c9b
lea rcx, [rsp + 0x20]
mov r8, rsi
sub r8, rcx
mov r9, rdi
lea rcx, [rsp + 0x20]
sub r9, rcx
nop
lea rdx, [rsp + 0x20]
add rdx, rax
inc rax
movzx ecx, byte [rdx + r8]
xor cl, byte [rdx]
mov byte [rdx + r9], cl
cmp rax, rbx
jb 0x1401d6c80
inc dword [rsp + 0x90]
add rdi, rbx
add rsi, rbx
sub rbp, rbx
jne 0x1401d6b70
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1402435c0
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401d9810
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.140243620
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x1401d9839
lea rax, [0x1401d7e70]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.140131910
lea rax, [0x1401d7020]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.140131660
Function at 0x1401e0070
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x20
call fcn.140243620
sub rsp, rax
mov rsi, r9
mov rbp, r9
shr rsi, 3
mov rdi, r8
mov rbx, rdx
mov r14, rcx
cmp r8, r9
jb 0x1401e0130
nop
xor edx, edx
test rsi, rsi
je 0x1401e0120
nop word [rax + rax]
movzx eax, byte [rbx + 6]
movzx ecx, byte [rbx + 7]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 5]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 4]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 3]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 2]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 1]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx]
shl rcx, 8
add rbx, 8
or rcx, rax
xor qword [r14 + rdx*8], rcx
inc rdx
cmp rdx, rsi
jb 0x1401e00c0
mov rcx, r14
call fcn.1401df840
sub rdi, rbp
cmp rdi, rbp
jae 0x1401e00b0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1402593a0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1402593c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14025496c
or eax, 0xffffffff
jmp 0x1402593c2
xor eax, eax
add rsp, 0x28
ret

Function at 0x140260610
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14026043c

Function at 0x14026ab3c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14026a862
call fcn.1402549dc
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14024a82c
jmp 0x14026a9ad
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14026a9ad
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14026a9ad
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14026a891
lock or dword [rcx + 0x14], 0x10
jmp 0x14026a9ad
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14026a8a5
call fcn.14026af00
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14026a8b5
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14026a8b8
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.14025fa30
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1402659ec
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14026a99b
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14026a949
mov rcx, rbx
call fcn.14025fa30
cmp eax, 0xffffffff
je 0x14026a934
mov rcx, rbx
call fcn.14025fa30
cmp eax, 0xfffffffe
je 0x14026a934
mov rcx, rbx
call fcn.14025fa30
movsxd rdi, eax
lea r14, [0x140377e60]
mov rcx, rbx
sar rdi, 6
call fcn.14025fa30
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14026a93b
lea rdx, [0x14036e8a0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14026a949
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14026a96d
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14026a96d
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14026a96d
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14026a98b
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14026a996
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14026a9b2
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14026a82c
Function at 0x140001000
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x40], 0
mov rax, rdx
mov rbx, rcx
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000102b
xor al, al
jmp 0x1400010b7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessExitStatus]
cmp eax, 0x103
je 0x14000104a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140001024
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400015f0
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400014fc
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140001274
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400013c0
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400022dc
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140001db4
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140001b48
mov rcx, rbx
call fcn.140001818
mov rcx, rbx
call fcn.140001634
mov al, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140001160
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x11c
call fcn.140004780
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
cmp dword [rsp + 0x34], 0xa
jne 0x1400011d9
cmp dword [rsp + 0x3c], 0x2800
je 0x1400011d9
xorps xmm0, xmm0
lea rdx, [0x140004990]
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov ecx, dword [rax + 3]
test ecx, ecx
lea eax, [rcx - 8]
cmove eax, ecx
jmp 0x1400011db
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140004440
add rsp, 0x168
ret
Function at 0x1400013c0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x11c
call fcn.140004780
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
cmp dword [rsp + 0x24], 0xa
jb 0x1400014d8
call fcn.140001160
mov eax, eax
mov rsi, qword [rax + rsi]
mov rdi, qword [rax + rdi]
movzx eax, word [rsi + 0x58]
movzx ecx, word [rsi + 0x5a]
cmp word [rdi + 0x58], ax
jb 0x140001452
mov r8d, ecx
xor edx, edx
mov rcx, qword [rdi + 0x60]
call fcn.140004780
movzx r8d, word [rsi + 0x58]
mov rdx, qword [rsi + 0x60]
mov rcx, qword [rdi + 0x60]
call fcn.1400044c0
mov rbp, qword [rdi + 0x60]
jmp 0x140001485
mov rbx, rcx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8, rbx
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.140004780
movzx r8d, word [rsi + 0x58]
mov rcx, rbp
mov rdx, qword [rsi + 0x60]
call fcn.1400044c0
mov qword [rdi + 0x60], rbp
movzx ecx, word [rsi + 0x5a]
mov word [rdi + 0x5a], cx
movzx eax, word [rsi + 0x58]
mov word [rdi + 0x58], ax
mov rbx, qword [rdi + 0x20]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400014c8
cmp word [rbx + 0x10], 0
je 0x1400014c8
cmp word [rbx + 0x12], 0
je 0x1400014c8
mov qword [rbx + 0x18], rbp
movzx eax, word [rdi + 0x58]
mov word [rbx + 0x10], ax
movzx eax, word [rdi + 0x5a]
mov word [rbx + 0x12], ax
mov rax, qword [rsi + 8]
mov qword [rdi + 8], rax
mov rax, qword [rsi + 0x10]
mov qword [rdi + 0x10], rax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140004440
mov rbx, qword [rsp + 0x180]
add rsp, 0x150
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002aa0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov esi, dword [0x140006208]
lea r8, [rbp - 0x30]
and qword [rbp - 0x28], 0
xorps xmm0, xmm0
mov qword [rbp - 0x20], rcx
mov edx, 0x20019
lea rcx, [rbp + 0x28]
mov dword [rbp - 0x30], 0x30
movdqu xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x18], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jns 0x140002af3
lfence
jmp 0x140002b94
lea rdx, [0x1400049d0]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ebx, 0x14
mov r8d, 0x72656776
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
jne 0x140002b28
mov ebx, 0xc000009a
jmp 0x140002b88
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x40]
mov r9, rdi
mov dword [rsp + 0x20], ebx
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
lfence
test eax, eax
js 0x140002b7d
xor esi, dword [rdi + 0xc]
mov eax, esi
shr eax, 8
movzx eax, al
cmp eax, dword [0x140006210]
jne 0x140002b78
movzx eax, sil
cmp eax, dword [0x14000620c]
jne 0x140002b78
xor ebx, ebx
jmp 0x140002b7d
mov ebx, 0xc0000022
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002d64
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp + 0x37], rax
and qword [rbp - 0x19], 0
xorps xmm0, xmm0
and qword [rbp - 9], 0
mov rdi, r8
and qword [rbp - 0x11], 0
mov qword [rbp - 1], rdx
lea rdx, [rbp - 0x19]
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140002dcb
lea rcx, [0x140004b00]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140002e93
mov rcx, qword [rbp - 0x19]
lea rdx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rbp - 0x11]
mov r9d, 0x10000000
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov edx, 0x200
mov byte [rsp + 0x28], 0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov ebx, eax
test eax, eax
jns 0x140002e25
lfence
lea rcx, [0x140004b60]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140002e87
mov rcx, qword [rbp - 0x11]
lea r9, [rbp - 1]
mov dword [rsp + 0x28], 0x40
lea rdx, [rbp - 9]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
lfence
test eax, eax
jns 0x140002e61
lea rcx, [0x140004b90]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140002e7d
mov rcx, qword [rbp - 9]
xor edx, edx
mov r8, qword [rbp - 1]
mov qword [rdi], rcx
call fcn.140004780
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140004440
add rsp, 0xa0
pop rdi
pop rbx
pop rbp
ret
Function at 0x140002eac
Capabilities:
Attach user process memory
Delete file

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x120
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x118], rax
movups xmm0, xmmword [rcx]
movdqu xmmword [r11 - 0x60], xmm0
xorps xmm0, xmm0
movups xmmword [r11 - 0x40], xmm0
movups xmmword [r11 - 0x30], xmm0
movups xmmword [r11 - 0x20], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x98], xmm1
movups xmmword [r11 - 0x80], xmm1
movups xmmword [r11 - 0x70], xmm1
xor edi, edi
mov qword [r11 - 0x98], rdi
movups xmmword [r11 - 0x50], xmm0
mov qword [r11 - 0xa0], rdi
mov byte [rsp + 0x80], dil
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
test al, al
je 0x140002f2e
mov eax, 0xc0000001
jmp 0x1400030f8
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
lea rdx, [rsp + 0xe8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [rsp + 0x80], 1
mov dword [rsp + 0x98], 0x30
mov qword [rsp + 0xa0], rdi
mov dword [rsp + 0xb0], 0x240
lea rax, [rsp + 0xc8]
mov qword [rsp + 0xa8], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xb8], xmm0
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x68], 0x800
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0x98]
mov edx, 0x100181
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
test eax, eax
jns 0x140002ff8
mov eax, 0xc0000001
jmp 0x1400030f8
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
jns 0x14000302e
mov eax, 0xc0000001
jmp 0x1400030f8
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax + 0x28]
mov qword [rcx + 0x10], rdi
mov rax, qword [rsp + 0x88]
mov byte [rax + 0x4c], 1
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov ebx, eax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140003075
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov qword [rsp + 0x88], rdi
lea rcx, [rsp + 0xe8]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov byte [rsp + 0x80], dil
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
or qword [rsp + 0x90], 0xffffffffffffffff
test ebx, ebx
js 0x1400030aa
xor eax, eax
jmp 0x1400030f8
mov eax, 0xc0000001
jmp 0x1400030f8
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140004440
mov rbx, qword [rsp + 0x138]
add rsp, 0x120
pop rdi
ret

Function at 0x14000311c
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x40], 0
mov rbx, rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call section..text
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14000314c
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
xorps xmm0, xmm0
mov qword [rbp - 0x40], rdx
lea rdx, [rbp - 0x50]
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x48], r8
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400031a4
lea rcx, [0x140004b00]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x1400031e2
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r9d, 0x8000
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x40]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rbp - 0x38]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140004440
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rbp
ret
Function at 0x1400031fc
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp - 8], rax
movups xmm0, xmmword [rdx]
xor edi, edi
lea rdx, [rbp - 0x60]
mov r14, r8
mov qword [rbp - 0x60], rdi
movdqu xmmword [rbp - 0x48], xmm0
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 0x58], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rbp - 0x60]
mov r15d, eax
test rcx, rcx
jne 0x140003264
mov eax, 0xc0000001
jmp 0x14000334d
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, qword [rbp - 0x60]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp - 0x60]
test rbx, rbx
je 0x1400032e6
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rsi, rax
mov ecx, dword [rax + 0xc]
add rcx, 0xc
mov ebx, dword [rcx]
cmp rbx, rcx
je 0x14000333d
mov ecx, dword [rbx + 0x30]
test ecx, ecx
je 0x1400032d1
mov edx, ecx
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x1400032e1
mov eax, dword [rsi + 0xc]
mov ebx, dword [rbx]
add rax, 0xc
cmp rbx, rax
jne 0x1400032a9
jmp 0x14000333d
mov edi, dword [rbx + 0x18]
jmp 0x14000333d
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rsi, rax
mov rcx, qword [rax + 0x18]
add rcx, 0x10
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x14000333d
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x140003327
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140003339
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x10
cmp rbx, rax
jne 0x1400032ff
jmp 0x14000333d
mov rdi, qword [rbx + 0x30]
lea rcx, [rbp - 0x38]
mov qword [r14], rdi
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, r15d
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140004440
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret