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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
mov r14, rcx
and qword [rbp + 0x28], r15
xor esi, esi
lea rdx, [rbp + 0x28]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140019586
mov rbx, qword [rbp + 0x28]
test rbx, rbx
je 0x14001957d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140019579
mov rcx, qword [0x1400d6b50]
add rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140019579
mov rax, qword [0x1400d6b50]
mov rcx, qword [rax + rbx]
test rcx, rcx
je 0x140019579
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140019579
mov rcx, qword [rbp + 0x28]
inc r15d
mov eax, r15d
imul rdi, rax, 0xf88
mov dword [rdi + r14], esi
mov qword [rdi + r14 + 8], rcx
call qword [sym.imp.ntoskrnl.exe_PsGetProcessInheritedFromUniqueProcessId]
mov rcx, qword [rbp + 0x28]
mov dword [rdi + r14 + 4], eax
call qword [sym.imp.ntoskrnl.exe_PsGetProcessCreateTimeQuadPart]
mov rcx, qword [rbp + 0x28]
mov qword [rdi + r14 + 0xf68], rax
call qword [sym.imp.ntoskrnl.exe_PsIsProtectedProcess]
mov rcx, qword [rbp + 0x28]
mov byte [rdi + r14 + 0xf60], al
call qword [sym.imp.ntoskrnl.exe_PsGetProcessSessionId]
mov dword [rdi + r14 + 0xf70], eax
mov r9d, 0x10000000
lea rax, [r14 + 0xf80]
xor r8d, r8d
add rax, rdi
xor edx, edx
mov qword [rsp + 0x30], rax
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov byte [rsp + 0x28], 0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov rcx, qword [rbp + 0x28]
lea rbx, [r14 + 0x420]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessImageFileName]
mov rcx, rax
lea rdx, [rbx + rdi]
call fcn.140009e30
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov r9d, r15d
lea r8, [0x14001f820]
test rax, rax
sete al
xor edx, edx
mov byte [rdi + r14 + 0xf78], al
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rbx, qword [rbp + 0x28]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsi, 4
cmp rsi, 0x7a120
jb 0x14001942f
mov rbx, qword [rsp + 0x60]
mov eax, 0xc0000001
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret

Function at 0x14001a344
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
sub rsp, 0x58
and qword [rax - 0x18], 0
xor r9d, r9d
and qword [rax - 0x20], 0
xor r8d, r8d
mov dword [rax - 0x28], edx
xor edx, edx
mov qword [rax - 0x30], rcx
lea rax, [0x1400dbf60]
mov rcx, qword [0x1400dbf70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
add rsp, 0x58
ret
Function at 0x14001a798
Capabilities:
Delete file
Get file attributes

Disassembly:
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1400d6a00]
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 0x14001a8a4
jmp 0x14001a841
test byte [rbp + 0x18], 0x10
lea rdx, [rbp + 0x20]
jne 0x14001a82a
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, [0x140020200]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14001a841
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rbp - 0x40]
call fcn.14001a798
test eax, eax
js 0x14001a88e
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 0x14001a7f5
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.14001e6e0
add rsp, 0x140
pop rbp
ret

Function at 0x14001a9e0
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [rcx]
test rbx, rbx
jne 0x14001a9f5
mov eax, 0xc0000001
jmp 0x14001aa5f
mov rcx, qword [0x1400d8e20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
mov rcx, rbx
test al, al
je 0x14001aa55
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 0x14001aa5d
mov rax, qword [0x1400d8e20]
mov rcx, qword [rsp + 0x40]
call qword [0x1400226b8]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x14001aa5d
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov ebx, eax
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14001aa68
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 [0x1400d6a00]
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.14001ea80
mov r8d, ebx
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.14001ea80
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 0x14001aacf
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 0x14001aaeb
mov rcx, qword [0x1400d6a80]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x14001ab21
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x170]
call fcn.140019304
mov ebx, eax
jmp 0x14001ab86
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 0x14001ab86
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.14001e6e0
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 0x14001abb0
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 0x14001abe4
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 0x14001ac18
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 0x14001c728
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 [0x1400d6a00]
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 0x14001c80c
test r9, r9
je 0x14001c80c
test rcx, rcx
je 0x14001c80c
mov r8d, 0x687a77
mov edx, esi
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x14001c80c
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.14001ea80
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp rbx, rax
je 0x14001c7c6
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.14001c550
mov ebx, eax
test r15b, r15b
je 0x14001c7e6
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test ebx, ebx
js 0x14001c7fa
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call fcn.14001c3c0
mov ebx, eax
mov edx, 0x687a77
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x14001c811
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001e6e0
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001cb18
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 [0x1400d6a00]
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.14001ea80
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0xc8
call fcn.14001ea80
xor edx, edx
lea rcx, [rbp + 0x10]
lea r8d, [rdx + 0x58]
call fcn.14001ea80
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 0x14001cc69
mov rcx, qword [rsp + 0x30]
xor edx, edx
call sub.fwpkclnt.sys_FwpmTransactionBegin0
test eax, eax
js 0x14001cc69
movups xmm0, xmmword [rbx]
mov rcx, qword [rsp + 0x30]
lea r15, [0x140020900]
movups xmm1, xmmword [rdi]
lea r12, [0x140020920]
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 0x14001cc69
movups xmm0, xmmword [rdi]
mov rcx, qword [rsp + 0x30]
mov r9, r14
movups xmm1, xmmword [0x1400767e8]
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 0x14001cc69
mov rcx, qword [rsp + 0x30]
call sub.fwpkclnt.sys_FwpmTransactionCommit0
mov ecx, eax
test eax, eax
js 0x14001cc69
mov rax, qword [rsp + 0x30]
mov qword [rsi], rax
mov eax, ecx
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14001e6e0
add rsp, 0x1d0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x14001cc8c
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [0x1400d6b70], 0
jne 0x14001cca3
mov eax, 0xc0000141
jmp 0x14001cd00
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 0x14001ccfe
cmp dword [0x1400dc458], 0
je 0x14001ccda
mov rdx, qword [0x1400d6b70]
mov ecx, edx
bts ecx, 0xb
mov rax, qword [rsp + 0x40]
mov dword [rdx + rax], ecx
jmp 0x14001cced
mov rcx, qword [rsp + 0x40]
mov rax, qword [0x1400d6b70]
mov dword [rax + rcx], 0x40000051
jmp 0x14001ccf3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14001d5ec
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
cmp qword [0x1400d7be0], rcx
mov rdi, rcx
mov ebx, 0xc0000001
jne 0x14001d60f
lea eax, [rbx + 0x21]
jmp 0x14001d70b
call fcn.140015f0c
test al, al
je 0x14001d709
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x14001d709
lea rcx, [rdi + 0x14f]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x14001d709
and qword [rsp + 0x50], 0
movabs rax, 0x7fffffff0000
mov rcx, qword [rdi + 0x68]
cmp rcx, rax
jb 0x14001d66c
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
lea rax, [0x140014280]
jne 0x14001d673
lea rax, [0x1400195c0]
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 0x14001d709
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 0x14001d6fe
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 0x14001dc04
Capabilities:
Delete network filter via wfp api

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400dc4a0]
test rcx, rcx
je 0x14001dc60
mov rdx, qword [0x1400dc490]
call sub.fwpkclnt.sys_FwpmFilterDeleteById0
mov edx, dword [0x1400dc498]
mov rcx, qword [0x1400dc4a0]
call sub.fwpkclnt.sys_FwpmCalloutDeleteById0
mov ecx, dword [0x1400dc498]
and qword [0x1400dc490], 0
call sub.fwpkclnt.sys_FwpsCalloutUnregisterById0
mov rcx, qword [0x1400dc4a0]
and dword [0x1400dc498], 0
call sub.fwpkclnt.sys_FwpmEngineClose0
and qword [0x1400dc4a0], 0
xor eax, eax
add rsp, 0x28
ret
Function at 0x14001dc68
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 0x14001ddf8
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 0x14001ddf8
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x14001ddf8
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 0x14001ddfb
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 0x14001ddf8
mov eax, esi
add qword [rbp + 0x6f], rax
jmp 0x14001dd79
mov bl, r14b
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x14001de0a
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x14001de19
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test rdi, rdi
je 0x14001de29
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 0x14001df14
Capabilities:
Get file attributes

Disassembly:
mov r11, rsp
sub rsp, 0x78
xor eax, eax
xorps xmm0, xmm0
mov byte [rsp + 0x50], al
xor r9d, r9d
mov qword [r11 - 0x30], rax
xor r8d, r8d
mov byte [rsp + 0x40], al
mov eax, dword [rcx + 8]
mov dword [rsp + 0x38], eax
mov eax, dword [rcx + 0xc]
mov rcx, qword [rcx]
mov dword [rsp + 0x30], eax
lea rax, [r11 - 0x18]
mov qword [r11 - 0x50], rdx
xor edx, edx
mov qword [r11 - 0x58], rax
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwQueryDirectoryFile]
add rsp, 0x78
ret
Function at 0x14001e0ec
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 0x14001e23c
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 0x14001e241
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x14001e23c
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 0x14001e183
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
jmp 0x14001e241
mov r9d, dword [rdi]
mov esi, 0xc0000001
test r9d, r9d
je 0x14001e235
lea rcx, [rdi + 0x20]
mov r8, qword [rcx - 8]
cmp rbp, r8
jbe 0x14001e1ab
mov eax, dword [rcx]
add rax, r8
cmp rbp, rax
jb 0x14001e1bb
inc edx
add rcx, 0x128
cmp edx, r9d
jae 0x14001e235
jmp 0x14001e198
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 0x14001e1d3
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 0x14001e173
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 0x1408dc058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408dc1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1408dc089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408dc06f
add dl, dl
jne 0x1408dc096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408dc0f6
xor eax, eax
add dl, dl
jne 0x1408dc0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408dc1ad
add dl, dl
jne 0x1408dc0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408dc0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408dc0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408dc0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408dc0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408dc07e
mov eax, 1
add dl, dl
jne 0x1408dc106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408dc113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408dc0fb
sub eax, ebx
mov ebx, 1
jne 0x1408dc14c
mov ecx, 1
add dl, dl
jne 0x1408dc12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408dc13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408dc123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408dc07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408dc168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408dc175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408dc15d
cmp eax, 0x7d00
jae 0x1408dc19b
cmp eax, 0x500
jb 0x1408dc196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408dc07e
cmp eax, 0x7f
ja 0x1408dc19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408dc07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408dc1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1408dc07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001290
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180023008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov edi, r8d
mov dword [rsp + 0x20], 1
mov rbx, rdx
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rsi, rcx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call qword [0x180023dd0]
test eax, eax
je 0x1800012f3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1800012f3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x70
jne 0x180001322
mov eax, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x28]
xorps xmm0, xmm0
mov r8d, 0x1f40
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x28], rsi
lea edx, [rax - 0xf]
mov word [rsp + 0x30], ax
call qword [0x180023df8]
test eax, eax
jg 0x180001329
mov eax, reloc.WS2_32.dll_listen
jmp 0x18000132b
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180004b40
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret