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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov ecx, ecx
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14000f938
mov ebx, 4
movabs rsi, 0xfffff80004093e90
mov dword [rsp + 0x40], ebx
cmp ebx, 0x40000
jae 0x14000f938
mov ecx, ebx
call fcn.14000f294
mov rdi, rax
test rax, rax
je 0x14000f930
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_IoThreadToProcess]
cmp rax, qword [rsp + 0x48]
jne 0x14000f930
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_PsGetThreadId]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
test eax, eax
js 0x14000f930
mov rcx, qword [rsp + 0x50]
mov rax, qword [0x140077520]
mov rdi, qword [rax + rcx]
test rdi, rdi
je 0x14000f930
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x14000f930
mov qword [rdi + 0x168], rsi
mov qword [rdi + 0x160], rsi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsTerminateSystemThread]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x14000f930
add ebx, 4
jmp 0x14000f884
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000f940
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140076ea0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rdx
xor sil, sil
mov byte [rsp + 0x20], sil
mov r14d, 1
mov ebx, r14d
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000fa2c
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x14000fa2c
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [sym.imp.ntoskrnl.exe_PsInitialSystemProcess]
cmp rax, qword [rcx]
jne 0x14000f9c9
or rdi, 0xffffffff80000000
xor ebx, ebx
mov dword [rsp + 0x38], ebx
and word [rsp + 0x24], 0
mov r8b, bl
lea rdx, [rsp + 0x24]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ObSetHandleAttributes]
mov ebx, eax
mov dword [rsp + 0x28], eax
test eax, eax
js 0x14000f9f9
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov ebx, eax
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x14000fa15
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
movzx eax, sil
test ebx, ebx
cmovns eax, r14d
jmp 0x14000fa2e
xor al, al
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140014f80
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x14000fcb0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x20
and qword [rbp + 0x18], 0
lea rdx, [rbp + 0x18]
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x14000fdab
and qword [rbp + 0x20], 0
lea rdx, [rbp + 0x20]
mov ecx, 4
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x14000fd06
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc000010a
jmp 0x14000fdad
mov rax, qword [0x140077510]
lea rcx, [rbp + 0x18]
lea rcx, [rcx + rax*8]
call qword [sym.imp.ntoskrnl.exe_ExAcquireRundownProtection]
test al, al
je 0x14000fcf2
mov rdx, qword [0x1400774d0]
mov rax, qword [rbp + 0x20]
mov rcx, qword [rdx + rax]
mov rax, qword [rbp + 0x18]
mov qword [rdx + rax], rcx
mov edx, 3
mov rcx, qword [rbp + 0x18]
mov rax, qword [0x1400774c0]
mov qword [rax + rcx], rdx
mov rcx, qword [rbp + 0x18]
mov rax, qword [0x1400774c8]
mov qword [rax + rcx], rdx
mov rdx, qword [0x1400774f8]
add rdx, qword [rbp + 0x18]
mov rax, qword [rdx + 8]
mov rcx, qword [rdx]
mov qword [rax], rcx
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov qword [rdx + 8], rdx
mov qword [rdx], rdx
mov rdx, qword [0x140077508]
add rdx, qword [rbp + 0x18]
mov rax, qword [rdx + 8]
mov rcx, qword [rdx]
mov qword [rax], rcx
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov qword [rdx + 8], rdx
mov qword [rdx], rdx
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rbp
ret
Function at 0x1400116d0
Capabilities:
Delete file
Get file attributes

Disassembly:
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140076ea0]
xor rax, rsp
mov qword [rbp + 0x30], rax
and qword [rsp + 0x70], 0
lea r8, [rsp + 0x68]
mov qword [rsp + 0x78], rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x68], 0x30
mov edx, 2
mov dword [rbp - 0x80], 0x240
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenDirectoryObject]
test eax, eax
js 0x1400117dc
jmp 0x140011779
test byte [rbp + 0x18], 0x10
lea rdx, [rbp + 0x20]
jne 0x140011762
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movaps xmm0, xmmword [rbp - 0x60]
lea r9, [rbp - 0x50]
xor edx, edx
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [0x140015dc0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140011779
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rbp - 0x40]
call fcn.1400116d0
test eax, eax
js 0x1400117c6
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x20]
mov byte [rsp + 0x50], 1
xor r9d, r9d
and qword [rsp + 0x48], 0
xor r8d, r8d
mov byte [rsp + 0x40], 0
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0x48
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryDirectoryFile]
test eax, eax
jns 0x14001172d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140014f80
add rsp, 0x140
pop rbp
ret

Function at 0x140011828
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [rcx]
test rbx, rbx
jne 0x14001183d
mov eax, 0xc0000001
jmp 0x1400118a7
mov rcx, qword [0x1400773f8]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
mov rcx, rbx
test al, al
je 0x14001189d
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov edx, 0x10000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ebx, eax
test eax, eax
js 0x1400118a5
mov rax, qword [0x1400773f8]
mov rcx, qword [rsp + 0x40]
call qword [0x1400176c0]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400118a5
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov ebx, eax
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1400118b0
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x398]
sub rsp, 0x490
mov rax, qword [0x140076ea0]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rdi, rcx
mov ebx, 0x208
mov r8d, ebx
lea rcx, [rbp + 0x170]
xor edx, edx
call fcn.140015300
mov r8d, ebx
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.140015300
mov rdx, qword [rdi + 8]
lea rcx, [rbp + 0x170]
sub rcx, rdx
xor esi, esi
movzx eax, word [rdx]
mov word [rcx + rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140011917
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x60]
sub rdx, rcx
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140011933
mov rcx, qword [0x140077400]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140011969
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x170]
call fcn.140010aa4
mov ebx, eax
jmp 0x1400119ce
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x30
lea r8, [rsp + 0x28]
mov qword [rsp + 0x30], rsi
mov edx, 0xf003f
mov dword [rsp + 0x40], 0x40
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rdi
movdqu xmmword [rsp + 0x48], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
js 0x1400119ce
mov rcx, qword [rsp + 0x20]
lea rdx, [rdi + 0x10]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov rcx, qword [rsp + 0x20]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140014f80
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x1400119f8
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x38
mov r9d, dword [rcx + 0x10]
mov r10, rdx
mov edx, dword [rcx + 8]
mov r8d, dword [rcx + 0xc]
mov rcx, qword [rcx]
mov rax, qword [r10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r9d
mov r9, qword [r10 + 8]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
add rsp, 0x38
ret

Function at 0x140011a2c
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov r9d, dword [rcx + 0x10]
mov r10, rdx
mov edx, dword [rcx + 8]
mov r8d, dword [rcx + 0xc]
mov rcx, qword [rcx]
mov rax, qword [r10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r9d
mov r9, qword [r10 + 8]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
add rsp, 0x38
ret

Function at 0x140011a60
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r8, qword [rcx + 0x18]
mov eax, dword [rcx + 0x20]
mov rdx, qword [rcx + 8]
mov r9d, dword [rcx + 0x10]
mov rcx, qword [rcx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
add rsp, 0x38
ret
Function at 0x1400132c8
Capabilities:
Attach user process memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140076ea0]
xor rax, rsp
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
mov esi, r8d
xor r15b, r15b
mov rbp, r9
mov r12, rdx
mov rbx, rcx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
test r8d, r8d
je 0x1400133ac
test r9, r9
je 0x1400133ac
test rcx, rcx
je 0x1400133ac
mov r8d, 0x687a77
mov edx, esi
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x1400133ac
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.140015300
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp rbx, rax
je 0x140013366
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r15b, 1
mov r8d, esi
mov rdx, rdi
mov rcx, r12
call fcn.1400130f0
mov ebx, eax
test r15b, r15b
je 0x140013386
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test ebx, ebx
js 0x14001339a
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call fcn.140012f60
mov ebx, eax
mov edx, 0x687a77
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x1400133b1
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140014f80
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400135f0
Capabilities:
Register network filter via wfp api

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x140076ea0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
and qword [rsp + 0x30], 0
mov rdi, rdx
xor edx, edx
mov r14, r8
mov rbx, rcx
mov rsi, r9
lea rcx, [rbp + 0x70]
lea r8d, [rdx + 0x48]
call fcn.140015300
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0xc8
call fcn.140015300
xor edx, edx
lea rcx, [rbp + 0x10]
lea r8d, [rdx + 0x58]
call fcn.140015300
xor r8d, r8d
mov dword [rbp + 0x90], 1
lea rax, [rsp + 0x30]
xor ecx, ecx
lea r9, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0xa]
call sub.fwpkclnt.sys_FwpmEngineOpen0
test eax, eax
js 0x140013741
mov rcx, qword [rsp + 0x30]
xor edx, edx
call sub.fwpkclnt.sys_FwpmTransactionBegin0
test eax, eax
js 0x140013741
movups xmm0, xmmword [rbx]
mov rcx, qword [rsp + 0x30]
lea r15, [0x140016500]
movups xmm1, xmmword [rdi]
lea r12, [0x140016520]
mov qword [rbp + 0x20], r15
xor r9d, r9d
mov qword [rbp + 0x28], r12
xor r8d, r8d
lea rdx, [rbp + 0x10]
movdqu xmmword [rbp + 0x50], xmm0
movdqu xmmword [rbp + 0x10], xmm1
call sub.fwpkclnt.sys_FwpmCalloutAdd0
test eax, eax
js 0x140013741
movups xmm0, xmmword [rdi]
mov rcx, qword [rsp + 0x30]
mov r9, r14
movups xmm1, xmmword [0x140017968]
and dword [rbp - 0x60], 0
lea rdx, [rsp + 0x40]
movdqu xmmword [rbp - 0x3c], xmm0
xor r8d, r8d
mov dword [rbp - 0x40], 0x5003
movups xmm0, xmmword [rbx]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r12
movdqu xmmword [rbp - 0x80], xmm0
movdqu xmmword [rbp - 0x70], xmm1
call sub.fwpkclnt.sys_FwpmFilterAdd0
test eax, eax
js 0x140013741
mov rcx, qword [rsp + 0x30]
call sub.fwpkclnt.sys_FwpmTransactionCommit0
mov ecx, eax
test eax, eax
js 0x140013741
mov rax, qword [rsp + 0x30]
mov qword [rsi], rax
mov eax, ecx
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140014f80
add rsp, 0x1d0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140013764
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [0x1400774f0], 0
jne 0x14001377b
mov eax, 0xc0000141
jmp 0x1400137d8
mov ecx, ecx
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
mov dword [rsp + 0x38], eax
test eax, eax
js 0x1400137d6
cmp dword [0x14007a9a0], 0
je 0x1400137b2
mov rdx, qword [0x1400774f0]
mov ecx, edx
bts ecx, 0xb
mov rax, qword [rsp + 0x40]
mov dword [rdx + rax], ecx
jmp 0x1400137c5
mov rcx, qword [rsp + 0x40]
mov rax, qword [0x1400774f0]
mov dword [rax + rcx], 0x40000051
jmp 0x1400137cb
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140013dc8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
cmp qword [0x140077608], rcx
mov rdi, rcx
mov ebx, 0xc0000001
jne 0x140013deb
lea eax, [rbx + 0x21]
jmp 0x140013ee7
call fcn.14000e2ac
test al, al
je 0x140013ee5
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140013ee5
lea rcx, [rdi + 0x14f]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140013ee5
and qword [rsp + 0x50], 0
movabs rax, 0x7fffffff0000
mov rcx, qword [rdi + 0x68]
cmp rcx, rax
jb 0x140013e48
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
lea rax, [0x14000c840]
jne 0x140013e4f
lea rax, [0x140010bd0]
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ebx, eax
test eax, eax
js 0x140013ee5
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
and qword [rsp + 0x58], 0
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ebx, eax
test eax, eax
js 0x140013eda
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov r9b, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x60], 0xfffffffffe363c80
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x1400143e0
Capabilities:
Delete network filter via wfp api

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14007a990]
test rcx, rcx
je 0x14001443c
mov rdx, qword [0x14007a980]
call sub.fwpkclnt.sys_FwpmFilterDeleteById0
mov edx, dword [0x14007a988]
mov rcx, qword [0x14007a990]
call sub.fwpkclnt.sys_FwpmCalloutDeleteById0
mov ecx, dword [0x14007a988]
and qword [0x14007a980], 0
call sub.fwpkclnt.sys_FwpsCalloutUnregisterById0
mov rcx, qword [0x14007a990]
and dword [0x14007a988], 0
call sub.fwpkclnt.sys_FwpmEngineClose0
and qword [0x14007a990], 0
xor eax, eax
add rsp, 0x28
ret
Function at 0x140014444
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
xor r14d, r14d
mov qword [rbp + 0x17], rdx
mov dword [rsp + 0x50], r14d
lea r9, [rbp - 9]
mov qword [rsp + 0x48], r14
lea r8, [rbp + 7]
mov dword [rsp + 0x40], 0x60
xorps xmm0, xmm0
lea ebx, [r14 + 1]
mov qword [rbp + 0x77], r14
mov dword [rsp + 0x38], ebx
mov rsi, rcx
mov dword [rsp + 0x30], ebx
lea rcx, [rbp + 0x77]
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov qword [rsp + 0x20], r14
mov edi, r14d
mov qword [rbp + 0x7f], r14
mov qword [rbp + 0x6f], r14
movups xmmword [rbp - 9], xmm0
mov dword [rbp + 7], 0x30
mov qword [rbp + 0xf], r14
mov dword [rbp + 0x1f], 0x240
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x1400145d4
mov dword [rsp + 0x50], r14d
lea r9, [rbp - 9]
mov qword [rsp + 0x48], r14
lea r8, [rbp + 7]
mov dword [rsp + 0x40], 0x60
lea rcx, [rbp + 0x7f]
mov dword [rsp + 0x38], 3
xorps xmm0, xmm0
mov dword [rsp + 0x30], ebx
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], r14
mov dword [rbp + 7], 0x30
mov qword [rbp + 0xf], r14
mov dword [rbp + 0x1f], 0x240
mov qword [rbp + 0x17], rsi
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x1400145d4
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x1400145d4
mov rcx, qword [rbp + 0x77]
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x40], r14
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x1000
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, 0xc0000011
je 0x1400145d7
mov rsi, qword [rbp - 1]
lea rax, [rbp + 0x6f]
mov rcx, qword [rbp + 0x7f]
xor r9d, r9d
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov dword [rsp + 0x30], esi
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
test eax, eax
js 0x1400145d4
mov eax, esi
add qword [rbp + 0x6f], rax
jmp 0x140014555
mov bl, r14b
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x1400145e6
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x1400145f5
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test rdi, rdi
je 0x140014605
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, bl
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001479c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400148ec
and qword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
xor edx, edx
xor r8d, r8d
lea esi, [rdx + 0xb]
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400148f1
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x1400148ec
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rax
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
xor edx, edx
mov esi, eax
test eax, eax
jns 0x140014833
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
jmp 0x1400148f1
mov r9d, dword [rdi]
mov esi, 0xc0000001
test r9d, r9d
je 0x1400148e5
lea rcx, [rdi + 0x20]
mov r8, qword [rcx - 8]
cmp rbp, r8
jbe 0x14001485b
mov eax, dword [rcx]
add rax, r8
cmp rbp, rax
jb 0x14001486b
inc edx
add rcx, 0x128
cmp edx, r9d
jae 0x1400148e5
jmp 0x140014848
mov eax, edx
imul rcx, rax, 0x128
lea rax, [rdi + 8]
add rax, rcx
mov ecx, 2
lea edx, [rcx + 0x7e]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rbx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rbx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rbx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rbx + 0x60], xmm0
add rbx, rdx
movups xmm1, xmmword [rax + 0x70]
add rax, rdx
movups xmmword [rbx - 0x10], xmm1
sub rcx, 1
jne 0x140014883
movups xmm0, xmmword [rax]
xor esi, esi
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov rax, qword [rax + 0x20]
mov qword [rbx + 0x20], rax
xor edx, edx
jmp 0x140014823
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400026e0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140019b50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140019b50
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140002750
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14001f0b4]
mov r12, rcx
test ebx, ebx
jle 0x140002880
mov rax, qword [0x14001f0b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000279c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140002823
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140002780
mov rcx, r12
call fcn.1400030f0
mov rsi, rax
test rax, rax
je 0x1400028a2
mov rax, qword [0x14001f0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140003220
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14001f0b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002887
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000281c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002830
add dword [0x14001f0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14001f0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000281c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400026e0
nop dword [rax]
xor ebx, ebx
jmp 0x1400027a7
mov rax, qword [0x14001f0b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400026e0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400026e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002d60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14001f120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001f100]
test rbx, rbx
je 0x140002db4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002dab
test r12, r12
je 0x140002dab
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002d90
lea rcx, [0x14001f120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]