joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cf4
Capabilities:
Attach user process memory

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
mov esi, ecx
and qword [rax - 0x20], 0
and qword [rax + 0x18], 0
and qword [rax + 0x20], 0
lea r9, [rax + 0x20]
lea r8, [rax - 0x20]
lea rdx, [rax + 0x18]
call fcn.000477bc
test eax, eax
js 0x46e02
mov rbx, qword [rsp + 0x88]
test rbx, rbx
je 0x46d5b
mov rdx, rbx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
nop
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0x20], 0x33505349
mov r9, rdi
mov r8b, 1
mov edx, 0x70
mov rcx, qword [rax + 0x20]
call fcn.00047bf0
mov edi, eax
mov dword [rsp + 0x40], eax
jmp 0x46db7
test rbx, rbx
je 0x46dd3
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov edx, 0x75505349
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test edi, edi
jns 0x46e00
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x515
lea r9, [0x0004a1b0]
lea r8, [0x0004c690]
xor edx, edx
lea ecx, [rdx + 0x65]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, edi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x46e10
Capabilities:
Attach user process memory

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r13, rdx
mov r15d, ecx
and qword [rax - 0x50], 0
and qword [rax + 0x18], 0
and qword [rax + 0x20], 0
lea r9, [rax + 0x20]
lea r8, [rax - 0x50]
lea rdx, [rax + 0x18]
call fcn.000477bc
test eax, eax
js 0x46fae
mov r12, qword [rsp + 0xb8]
test r12, r12
je 0x46e7e
mov rdx, r12
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
nop
and qword [rsp + 0x68], 0
and qword [rsp + 0x58], 0
and qword [r13 + 8], 0
mov r14, qword [rsp + 0x48]
mov dword [rsp + 0x20], 0x33505349
lea r9, [rsp + 0x60]
xor r8d, r8d
lea edx, [r8 + 0x50]
mov rcx, qword [r14 + 0x20]
call fcn.00047bf0
mov esi, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x46efb
mov dword [rsp + 0x20], 0x33505349
lea r9, [rsp + 0x50]
mov r8b, 1
mov edx, 0x38
mov rcx, qword [r14 + 0x20]
call fcn.00047bf0
mov esi, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x46efb
mov r8, r13
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.00047a44
mov esi, eax
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x58], 0
je 0x46f12
mov edx, 0x33505349
lea rcx, [rsp + 0x50]
call fcn.00044fd0
cmp qword [rsp + 0x68], 0
je 0x46f29
mov edx, 0x33505349
lea rcx, [rsp + 0x60]
call fcn.00044fd0
jmp 0x46f62
test r12, r12
je 0x46f7e
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov edx, 0x75505349
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test esi, esi
jns 0x46fac
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x55d
lea r9, [0x0004a1b0]
lea r8, [0x0004c7c0]
xor edx, edx
lea ecx, [rdx + 0x65]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, esi
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x477bc
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov r13, r9
mov rsi, r8
mov r12, rdx
mov edi, ecx
and qword [rax + 0x20], 0
xor ebx, ebx
mov dword [rax - 0x28], ebx
and qword [r9], rbx
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
cmp edi, eax
jne 0x4782a
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov qword [rsp + 0x68], rax
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov r11, rax
test rax, rax
jne 0x47818
mov eax, 0xc000000d
jmp 0x478a9
mov rax, qword [rsp + 0x68]
mov qword [r12], rax
mov qword [rsi], r11
and qword [r13], rbx
jmp 0x478a7
mov rcx, rdi
lea rdx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
mov dword [rsp + 0x20], eax
test eax, eax
js 0x47893
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rdi, rax
test rax, rax
jne 0x47860
mov ebx, 0xc000000d
mov dword [rsp + 0x20], ebx
jmp 0x47893
mov edx, 0x30
xor ecx, ecx
mov r8d, 0x75505349
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [r13], rax
test rax, rax
jne 0x47887
mov ebx, 0xc000009a
mov dword [rsp + 0x20], ebx
jmp 0x47893
mov rax, qword [rsp + 0x68]
mov qword [r12], rax
mov qword [rsi], rdi
test ebx, ebx
jns 0x478a7
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x478a7
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x481cc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push r12
push r13
push r14
sub rsp, 0x110
mov rax, qword [0x0001f100]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rbx, rcx
xor r13b, r13b
xor esi, esi
mov qword [rsp + 0x38], rsi
and qword [rsp + 0x48], rsi
and dword [rsp + 0x30], esi
and dword [rsp + 0x34], esi
mov byte [rsp + 0x68], sil
xor eax, eax
mov qword [rsp + 0x69], rax
mov dword [rsp + 0x71], eax
mov word [rsp + 0x75], ax
mov byte [rsp + 0x77], al
mov byte [rsp + 0x80], al
xor edx, edx
lea r8d, [rsi + 0x7f]
lea rcx, [rsp + 0x81]
call fcn.00016f80
and dword [rsp + 0x50], esi
xor edx, edx
lea r8d, [rsi + 0x14]
lea rcx, [rsp + 0x54]
call fcn.00016f80
lea rcx, [rsp + 0x40]
call fcn.000452a4
test eax, eax
js 0x483f4
lea r14d, [rsi + 1]
mov r8b, r14b
mov rdx, rbx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlPrefixUnicodeString]
test al, al
je 0x483f4
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.0004556c
test eax, eax
js 0x483ef
mov r12d, dword [rsp + 0x30]
cmp r12d, 0x40
jb 0x483ef
mov eax, 0x5a4d
mov rsi, qword [rsp + 0x38]
cmp word [rsi], ax
jne 0x483f4
movsxd rdx, dword [rsi + 0x3c]
lea rcx, [rdx + 0x48]
mov rax, r12
cmp r12, rcx
jb 0x483f4
cmp dword [rdx + rsi], 0x4550
jne 0x483f4
mov ebx, dword [rsi + 0x28]
test ebx, ebx
je 0x483f4
lea eax, [r12 - 0x80]
cmp ebx, eax
ja 0x483f4
mov dword [rsp + 0x34], 0x18
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x000321c0]
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
lea rcx, [rsi + rbx]
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x80]
lea edx, [r14 + 0x7f]
call fcn.00015ea8
mov ebx, eax
xor r8d, r8d
mov edx, r14d
lea rcx, [0x000321c0]
call qword [sym.imp.ntoskrnl.exe_KeSetEvent]
test ebx, ebx
je 0x483f4
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x80]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov r8, qword [rsp + 0x80]
shr r8, 0x20
test r8d, r8d
je 0x483f4
cmp r8d, r12d
ja 0x483f4
mov ecx, dword [rsp + 0x80]
lea eax, [r8 + rcx]
cmp eax, r12d
ja 0x483f4
lea rdx, [rsi + rcx]
lea rcx, [rsp + 0x80]
call fcn.00015464
lea rcx, [rsp + 0x80]
call fcn.00015490
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x68]
call fcn.00015570
lea r8d, [r14 + 0xf]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlCompareMemory]
movzx r13d, r13b
cmp rax, 0x10
cmove r13d, r14d
jmp 0x483f4
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x48407
mov edx, 0x64534649
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [rsp + 0x48], 0
je 0x4841e
mov edx, 0x73535349
lea rcx, [rsp + 0x40]
call fcn.00044fd0
mov al, r13b
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.00016ce0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x48638
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r13, r8
mov r14, rdx
and qword [rax + 0x20], 0
lea rdx, [rax + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
mov dword [rsp + 0x20], eax
test eax, eax
js 0x48707
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x4868e
mov ebx, 0xc000009a
mov dword [rsp + 0x20], ebx
jmp 0x48707
mov rax, qword [rsp + 0x68]
lea r12, [rax + 0x190]
test r12, r12
jne 0x486aa
mov ebx, 0xc0000225
mov dword [rsp + 0x20], ebx
jmp 0x48707
mov ebx, 0xc0000225
mov dword [rsp + 0x20], ebx
mov rdi, qword [r12]
mov qword [rsp + 0x28], rdi
test rdi, rdi
je 0x48707
cmp rdi, r12
je 0x48707
lea rsi, [rdi - 0x22c]
test rsi, rsi
je 0x486fd
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x486fd
cmp r14, qword [rsi + 0x1f4]
jne 0x486fd
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ObfReferenceObject]
mov qword [r13], rsi
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x48707
mov rdi, qword [rdi]
mov qword [rsp + 0x28], rdi
jmp 0x486bc
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x48717
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r13
pop r12
ret

Function at 0x49278
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
and dword [rsp + 0x60], 0
mov rdi, r8
mov rbp, rdx
mov r12, rcx
test r8, r8
je 0x492a1
and qword [r8], 0
xor r9d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8d, [r9 + 2]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
je 0x49300
cmp eax, 0xc0000034
je 0x49369
test eax, eax
jns 0x49369
xor edx, edx
mov dword [rsp + 0x28], eax
lea r9, [0x0004a1b0]
lea r8, [0x0004cc00]
lea ecx, [rdx + 0x65]
mov dword [rsp + 0x20], 0x16e
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x49369
test rdi, rdi
je 0x49369
mov edx, dword [rsp + 0x60]
mov ecx, 1
mov r8d, 0x73525349
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
test rax, rax
jne 0x49329
mov ebx, 0xc000009a
jmp 0x49369
lea rax, [rsp + 0x60]
mov r9, rsi
mov r8d, 2
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov rdx, rbp
mov rcx, r12
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
test eax, eax
js 0x4935b
mov qword [rdi], rsi
jmp 0x49369
mov edx, 0x73525349
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x49384
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rsi, r9
mov r13, rdx
mov r14, rcx
mov rdi, qword [rsp + 0x70]
mov r12d, dword [rdi]
add r12d, 0x410
mov edx, r12d
mov ecx, 1
mov r8d, 0x73525349
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x493d8
mov eax, 0xc000009a
jmp 0x4943d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
mov r9, rbx
mov r8d, 2
mov rdx, r13
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov r12d, eax
test eax, eax
jne 0x4942c
test rsi, rsi
je 0x49427
cmp dword [rdi], eax
jbe 0x49427
mov ecx, dword [rbx + 8]
cmp dword [rdi], ecx
cmovb ecx, dword [rdi]
mov dword [rdi], ecx
mov r8d, ecx
lea rdx, [rbx + 0xc]
mov rcx, rsi
call fcn.00017080
jmp 0x4942c
mov eax, dword [rbx + 8]
mov dword [rdi], eax
mov edx, 0x73525349
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r13
pop r12
ret

Function at 0x49624
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x60
and qword [rax + 8], 0
and qword [rax - 0x30], 0
and qword [rax - 0x18], 0
and qword [rax - 0x10], 0
mov qword [rax - 0x28], rcx
mov rdi, rdx
lea rcx, [rax + 8]
lea r8, [rax - 0x38]
mov edx, 0xf003f
mov rbx, r9
mov dword [rax - 0x38], 0x30
mov dword [rax - 0x20], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x496a3
mov rcx, qword [rsp + 0x70]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x70]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x49a1c
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
push rbx
sub rsp, 0x80
and qword [rax + 0x20], 0
lea rdx, [0x0004cd10]
lea rcx, [rax - 0x48]
mov dword [rax + 0x18], 1
mov dword [rax + 0x10], 2
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x0004cd90]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.00049574
test eax, eax
js 0x49bc8
mov rbx, qword [rsp + 0xa8]
mov eax, dword [rsp + 0x98]
cmp dword [rbx + 0xc], eax
je 0x49abc
lea r9, [rsp + 0x98]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov r8d, 4
mov dword [rsp + 0x20], 4
call fcn.00049624
mov edx, 0x73525349
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rdx, [0x0004cda0]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.00049574
test eax, eax
js 0x49bc8
mov rbx, qword [rsp + 0xa8]
mov eax, dword [rsp + 0xa0]
cmp dword [rbx + 0xc], eax
je 0x49b34
lea r9, [rsp + 0xa0]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov r8d, 4
mov dword [rsp + 0x20], 4
call fcn.00049624
mov edx, 0x73525349
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rdx, [0x0004cdb0]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0xa8], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x70], 0
and qword [rsp + 0x78], 0
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0xa8]
mov edx, 0xf003f
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x50], 0x30
mov dword [rsp + 0x68], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x49bc6
mov rcx, qword [rsp + 0xa8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
add rsp, 0x80
pop rbx
ret
Function at 0x49c98
Capabilities:
Map section object

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0xd0
mov rdi, r8
mov rsi, rdx
and qword [rax + 0x20], 0
and qword [rax - 0x70], 0
mov rdx, rcx
lea rcx, [rax - 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov ebx, eax
test eax, eax
js 0x49e6d
mov dword [rsp + 0x78], 0x30
and qword [rsp + 0x80], 0
mov dword [rsp + 0x90], 0x40
lea rax, [rsp + 0x58]
mov qword [rsp + 0x88], rax
and qword [rsp + 0x98], 0
and qword [rsp + 0xa0], 0
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0xb8]
lea r8, [rsp + 0x78]
mov edx, 0x100020
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov ebx, eax
test eax, eax
jns 0x49d66
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
jmp 0x49e6d
and qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1000000
mov dword [rsp + 0x20], 0x10
xor r9d, r9d
lea r8, [rsp + 0x78]
mov edx, 0xf001f
lea rcx, [rsp + 0xf8]
call qword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov ebx, eax
test eax, eax
jns 0x49dc5
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x49e6d
and qword [rsp + 0x70], 0
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0x100000
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x400
xor r9d, r9d
lea r8, [rsp + 0x68]
or rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov ebx, eax
test eax, eax
jns 0x49e42
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x49e6d
mov rax, qword [rsp + 0xf8]
mov qword [rsi], rax
mov rax, qword [rsp + 0x68]
mov qword [rdi], rax
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov ebx, eax
mov eax, ebx
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x4e0ec
Capabilities:
Register minifilter driver

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rsi
push rdi
push r13
sub rsp, 0x90
and dword [rax - 0x68], 0
and qword [rax + 0x10], 0
mov rax, qword [0x00032688]
mov r13, qword [rax + 0x40]
add r13, 0xf0
mov qword [rsp + 0xc0], r13
cmp byte [r13 + 0x70], 0
je 0x4e12f
xor eax, eax
jmp 0x4e354
mov r8, r13
lea rdx, [0x0001b650]
call sub.FLTMGR.SYS_FltRegisterFilter
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x4e172
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0x54
lea r9, [0x0004e9f0]
lea r8, [0x0004ea10]
xor edx, edx
lea ecx, [rdx + 0x65]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x4e2c5
mov edx, 0x1f0001
lea rcx, [rsp + 0xb8]
call sub.FLTMGR.SYS_FltBuildDefaultSecurityDescriptor
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x4e1b8
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0x5c
lea r9, [0x0004e9f0]
lea r8, [0x0004ea50]
xor edx, edx
lea ecx, [rdx + 0x65]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x4e2c5
mov rbx, qword [rsp + 0xb8]
mov rax, qword [0x00032688]
mov rsi, qword [rax + 0x40]
lea rdx, [0x0004e990]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x58], 0x30
and qword [rsp + 0x60], 0
mov dword [rsp + 0x70], 0x240
lea rax, [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], rbx
and qword [rsp + 0x80], 0
mov dword [rsp + 0x38], 1
lea rax, [0x0003b09c]
mov qword [rsp + 0x30], rax
lea rax, [0x0003b398]
mov qword [rsp + 0x28], rax
lea rax, [0x0003b2a4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x58]
lea rdx, [rsi + 0xf8]
mov rcx, qword [rsi + 0xf0]
call sub.FLTMGR.SYS_FltCreateCommunicationPort
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x4e283
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0x64
lea r9, [0x0004e9f0]
lea r8, [0x0004eaa0]
xor edx, edx
lea ecx, [rdx + 0x65]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x4e2c5
mov edx, 2
mov rcx, qword [rsp + 0xb8]
call fcn.0004e008
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x4e2c5
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0x6c
lea r9, [0x0004e9f0]
lea r8, [0x0004eaa0]
xor edx, edx
lea ecx, [rdx + 0x65]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
nop
test ebx, ebx
jns 0x4e30c
mov rcx, qword [r13 + 8]
test rcx, rcx
je 0x4e2dc
call sub.FLTMGR.SYS_FltCloseCommunicationPort
and qword [r13 + 8], 0
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x4e2f7
call sub.FLTMGR.SYS_FltFreeSecurityDescriptor
and qword [rsp + 0xb8], 0
cmp qword [r13], 0
je 0x4e30c
mov rcx, qword [r13]
call sub.FLTMGR.SYS_FltUnregisterFilter
and qword [r13], 0
test ebx, ebx
js 0x4e352
lea rax, [r13 + 0x40]
mov qword [rax + 8], rax
mov qword [rax], rax
lea rcx, [r13 + 0x50]
call sub.FLTMGR.SYS_FltInitializePushLock
lea r11, [r13 + 0x28]
mov qword [r11 + 8], r11
mov qword [r11], r11
lea rcx, [r13 + 0x38]
call sub.FLTMGR.SYS_FltInitializePushLock
and qword [r13 + 0x58], 0
mov qword [r13 + 0x60], 0x1e
mov qword [r13 + 0x68], 0x3c
mov byte [r13 + 0x70], 1
mov eax, ebx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop r13
pop rdi
pop rsi
ret
Function at 0x14000b140
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fdd8]
test rcx, rcx
je 0x14000b17b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b16e
mov rcx, qword [0x14002fdd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fdd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fde8], 0
je 0x14000b26e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140029918]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140030610]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b24f
test al, 0x10
je 0x14000b24f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b1f5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004bd940]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004bd950]
mov dword [rax], 1
mov rax, qword [0x004bd960]
mov dword [rax], 1
mov rax, qword [0x004bd930]
mov dword [rax], 1
mov rax, qword [0x004bd800]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x004bd920]
mov dword [0x004e400c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004bd8e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004bcc50]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067