joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004610
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x4a0
xor eax, eax
mov r12, rcx
mov rbx, r8
xor r13d, r13d
lea rcx, [rsp + 0x94]
xor edx, edx
mov r8d, 0x400
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0x90], r13d
call fcn.14000aca0
mov edx, dword [rbx + 0xc]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rbx + 0xc]
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.14000aca0
mov esi, dword [rbx + 0xc]
mov ebx, 0xc0000001
mov edi, r13d
test esi, esi
je 0x1400046eb
nop dword [rax]
xor eax, eax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov ecx, esi
sub ecx, edi
mov eax, edi
xor r9d, r9d
mov dword [rsp + 0x30], ecx
add rax, rbp
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
jns 0x1400046e0
cmp eax, 0x80000005
jne 0x1400046eb
add edi, dword [rsp + 0x58]
mov ebx, r13d
cmp edi, esi
jb 0x140004690
test ebx, ebx
js 0x140004780
lea rcx, [rsp + 0x80]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rbp + 0x800]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
call fcn.1400022c0
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
test eax, eax
mov dword [rsp + 0x94], eax
mov ecx, r13d
setns cl
lea rax, [rsp + 0x90]
mov dword [rsp + 0x30], 0x404
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x90], ecx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ebx, eax
test eax, eax
cmovns ebx, r13d
test rbp, rbp
je 0x140004790
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea r11, [rsp + 0x4a0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1400047b0
Capabilities:
Delete file
Print debug messages
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x4c0
xor eax, eax
mov r12, rcx
mov rbx, r8
xor r13d, r13d
lea rcx, [rsp + 0xb4]
xor edx, edx
mov r8d, 0x400
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0xb0], r13d
call fcn.14000aca0
mov edx, dword [rbx + 0xc]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rbx + 0xc]
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.14000aca0
mov esi, dword [rbx + 0xc]
mov ebx, 0xc0000001
mov edi, r13d
test esi, esi
je 0x14000488b
nop dword [rax]
xor eax, eax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov ecx, esi
sub ecx, edi
mov eax, edi
xor r9d, r9d
mov dword [rsp + 0x30], ecx
add rax, rbp
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
jns 0x140004880
cmp eax, 0x80000005
jne 0x14000488b
add edi, dword [rsp + 0x58]
mov ebx, r13d
cmp edi, esi
jb 0x140004830
test ebx, ebx
js 0x1400049a9
lea rcx, [rsp + 0xa0]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0xa0]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x4f0]
mov edx, 0x101000
mov dword [rsp + 0x28], 0x60
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x4f0], r13
mov dword [rsp + 0x70], 0x30
mov qword [rsp + 0x78], r13
mov dword [rsp + 0x88], 0x240
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x98], r13
mov dword [rsp + 0x20], 7
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov ebx, eax
test eax, eax
js 0x140004924
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov ebx, eax
mov rcx, qword [rsp + 0x4f0]
test rcx, rcx
je 0x14000493f
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0x4f0], r13
test ebx, ebx
jns 0x140004951
lea rcx, str.DeleteFile_failed__status___08x_n
mov edx, ebx
call sub.ntoskrnl.exe_DbgPrint
mov qword [rsp + 0x40], r13
mov eax, r13d
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0x404
test ebx, ebx
mov rcx, r12
setns al
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0xb0], eax
lea rax, [rsp + 0xb0]
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0xb4], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ebx, eax
test eax, eax
cmovns ebx, r13d
test rbp, rbp
je 0x1400049b9
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea r11, [rsp + 0x4c0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1400049e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x4a0
xor eax, eax
mov r12, rcx
mov rbx, r8
xor r13d, r13d
lea rcx, [rsp + 0x94]
xor edx, edx
mov r8d, 0x400
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0x90], r13d
call fcn.14000aca0
mov edx, dword [rbx + 0xc]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rbx + 0xc]
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.14000aca0
mov esi, dword [rbx + 0xc]
mov ebx, 0xc0000001
mov edi, r13d
test esi, esi
je 0x140004abb
nop dword [rax]
xor eax, eax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov ecx, esi
sub ecx, edi
mov eax, edi
xor r9d, r9d
mov dword [rsp + 0x30], ecx
add rax, rbp
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
jns 0x140004ab0
cmp eax, 0x80000005
jne 0x140004abb
add edi, dword [rsp + 0x58]
mov ebx, r13d
cmp edi, esi
jb 0x140004a60
test ebx, ebx
js 0x140004b50
lea rcx, [rsp + 0x80]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rbp + 0x800]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
call fcn.140002700
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
test eax, eax
mov dword [rsp + 0x94], eax
mov ecx, r13d
setns cl
lea rax, [rsp + 0x90]
mov dword [rsp + 0x30], 0x404
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x90], ecx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ebx, eax
test eax, eax
cmovns ebx, r13d
test rbp, rbp
je 0x140004b60
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea r11, [rsp + 0x4a0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140004b80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x490
xor eax, eax
mov r12, rcx
mov rbx, r8
xor r13d, r13d
lea rcx, [rsp + 0x84]
xor edx, edx
mov r8d, 0x400
mov dword [rsp + 0x54], eax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x80], r13d
call fcn.14000aca0
mov edx, dword [rbx + 0xc]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rbx + 0xc]
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.14000aca0
mov esi, dword [rbx + 0xc]
mov ebx, 0xc0000001
mov edi, r13d
test esi, esi
je 0x140004c5b
nop dword [rax]
xor eax, eax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov ecx, esi
sub ecx, edi
mov eax, edi
xor r9d, r9d
mov dword [rsp + 0x30], ecx
add rax, rbp
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
jns 0x140004c50
cmp eax, 0x80000005
jne 0x140004c5b
add edi, dword [rsp + 0x68]
mov ebx, r13d
cmp edi, esi
jb 0x140004c00
test ebx, ebx
js 0x140004ccf
lea rcx, [rsp + 0x70]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x70]
call fcn.140002860
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
test eax, eax
mov dword [rsp + 0x84], eax
mov ecx, r13d
setns cl
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], 0x404
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x80], ecx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ebx, eax
test eax, eax
cmovns ebx, r13d
test rbp, rbp
je 0x140004cdf
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea r11, [rsp + 0x490]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140004d00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x4c0
xor eax, eax
xor r13d, r13d
mov r12, rcx
mov rbx, r8
lea rcx, [rsp + 0xb4]
xor edx, edx
mov r8d, 0x400
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x68], rax
mov word [rsp + 0x50], r13w
mov qword [rsp + 0x52], rax
mov dword [rsp + 0x5a], eax
mov word [rsp + 0x5e], ax
mov dword [rsp + 0xb0], r13d
call fcn.14000aca0
mov edx, dword [rbx + 0xc]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rbx + 0xc]
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.14000aca0
mov esi, dword [rbx + 0xc]
mov ebx, 0xc0000001
mov edi, r13d
test esi, esi
je 0x140004deb
nop dword [rax + rax]
xor eax, eax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov ecx, esi
sub ecx, edi
mov eax, edi
xor r9d, r9d
mov dword [rsp + 0x30], ecx
add rax, rbp
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
jns 0x140004de0
cmp eax, 0x80000005
jne 0x140004deb
add edi, dword [rsp + 0x78]
mov ebx, r13d
cmp edi, esi
jb 0x140004d90
test ebx, ebx
js 0x140004eee
lea rcx, [rsp + 0x50]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x500]
lea rcx, [rsp + 0x508]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x508], r13
mov dword [rsp + 0x500], r13d
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x80], 0x30
mov qword [rsp + 0x88], r13
mov dword [rsp + 0x98], 0x240
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0xa8], r13
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov rcx, qword [rsp + 0x508]
mov ebx, eax
test rcx, rcx
je 0x140004e96
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov ecx, r13d
lea rax, [rsp + 0xb0]
mov dword [rsp + 0x30], 0x404
test ebx, ebx
setns cl
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0xb0], ecx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xb4], ebx
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ebx, eax
test eax, eax
cmovns ebx, r13d
test rbp, rbp
je 0x140004efe
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4c0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004f20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x90
mov edx, dword [r8 + 0xc]
xor eax, eax
xor r14d, r14d
mov word [r11 - 0x48], r14w
mov qword [r11 - 0x46], rax
mov word [r11 - 0x58], r14w
mov qword [r11 - 0x56], rax
mov r12, rcx
xor ecx, ecx
mov r13, r8
mov dword [r11 - 0x28], r14d
mov dword [r11 - 0x24], eax
mov qword [r11 - 0x20], rax
mov dword [rsp + 0x6a], eax
mov word [rsp + 0x6e], ax
mov dword [rsp + 0x5a], eax
mov word [rsp + 0x5e], ax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [r13 + 0xc]
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.14000aca0
mov esi, dword [r13 + 0xc]
mov edi, 0xc0000001
mov ebx, r14d
test esi, esi
je 0x14000500b
nop dword [rax + rax]
xor eax, eax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov ecx, esi
sub ecx, ebx
mov eax, ebx
xor r9d, r9d
mov dword [rsp + 0x30], ecx
add rax, rbp
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov edi, eax
test eax, eax
jns 0x140005000
cmp eax, 0x80000005
jne 0x14000500b
add ebx, dword [rsp + 0x78]
mov edi, r14d
cmp ebx, esi
jb 0x140004fb0
test edi, edi
js 0x1400050e4
mov edi, dword [r13 + 0xc]
xor ecx, ecx
mov rdx, rdi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8, rdi
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.14000aca0
mov r8d, 0x1010
mov rdx, rbp
mov rcx, rsi
call fcn.14000a930
lea rcx, [rsp + 0x60]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rbp + 0x800]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsi + 0x1000]
lea r9, [rsi + 0x1004]
lea r8, [rsi + 0x1010]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], r11
call fcn.140009ec0
mov qword [rsp + 0x40], r14
test eax, eax
mov ecx, r14d
mov qword [rsp + 0x38], r14
setns cl
mov dword [rsi + 0x100c], eax
lea rax, [rsp + 0x80]
mov dword [rsi + 0x1008], ecx
mov dword [rsp + 0x30], edi
xor r9d, r9d
mov rcx, r12
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov edi, eax
test eax, eax
mov rcx, rsi
cmovns edi, r14d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbp, rbp
je 0x1400050f4
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea r11, [rsp + 0x90]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x1400059f0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xb0
xor eax, eax
xor ebx, ebx
lea rdx, str.__pipe_namedpipe_keymousespy_english
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x64], eax
lea rcx, [r11 - 0x48]
mov qword [r11 - 0x50], rax
mov dword [r11 - 0x38], ebx
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 3
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x80]
lea rcx, [0x14000d558]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x80], 0x30
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x98], 0x40
mov qword [rsp + 0x90], rax
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rbx
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x140005ad0
lea rcx, str.Open_NamedPipe_Success..._n
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
add rsp, 0xb0
pop rbx
ret
Function at 0x140005ae0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x80
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
xor esi, esi
lea rdi, [0x14000d560]
mov dword [rsp + 0x64], eax
repne scasb al, byte [rdi]
mov rdi, rbx
mov dword [rsp + 0x60], esi
not rcx
mov dword [r11 + 0x10], esi
mov dword [r11 + 0x14], eax
lea rdx, [rcx - 1]
or rcx, 0xffffffffffffffff
mov qword [r11 - 0x20], rax
repne scasb al, byte [rdi]
not rcx
dec rcx
add edx, ecx
cmp edx, 0xfff
jle 0x140005b71
lea rcx, [0x14000d560]
xor edx, edx
mov r8d, 0x1000
call fcn.14000aca0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x14000d560]
repne scasb al, byte [rdi]
xor ecx, ecx
movzx eax, byte [rbx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x140005b60
jmp 0x140005b8f
or rcx, 0xffffffffffffffff
lea rdi, [0x14000d560]
repne scasb al, byte [rdi]
xor ecx, ecx
movzx eax, byte [rbx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x140005b80
lea rdx, [0x14000d560]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
test eax, eax
jne 0x140005c82
mov rcx, qword [0x14000d558]
test rcx, rcx
je 0x140005c09
movzx eax, word [rsp + 0x50]
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x98]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
test eax, eax
jns 0x140005c61
lea rcx, [0x14000d558]
call fcn.1400059f0
test eax, eax
js 0x140005c75
movzx eax, word [rsp + 0x50]
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x38], rcx
mov rcx, qword [0x14000d558]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
test eax, eax
js 0x140005c75
lea rcx, [0x14000d560]
mov r8d, 0x1000
xor edx, edx
call fcn.14000aca0
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140006820
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
lea rax, [0x14000d3f0]
xor edi, edi
lea rcx, [0x14000d400]
mov qword [0x14000d3f8], rax
mov qword [0x14000d3f0], rax
lea rax, [0x14000d500]
mov word [rsp + 0x30], di
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 0x70676b6d
mov qword [0x14000d508], rax
mov qword [0x14000d500], rax
mov qword [0x14000d518], rdi
mov qword [0x14000d510], rdi
mov qword [rsp + 0x20], 0x30
call qword [sym.imp.ntoskrnl.exe_ExInitializeNPagedLookasideList]
lea rcx, [0x14000d3c0]
xor edx, edx
mov r8d, 0x7fffffff
mov qword [0x14000d520], rdi
call qword [sym.imp.ntoskrnl.exe_KeInitializeSemaphore]
lea rdx, [0x14000d3e0]
mov word [rsp + 0x30], di
mov qword [0x14000d3e8], rdx
mov qword [0x14000d3e0], rdx
lea rcx, [0x14000d480]
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x6e706b6d
mov qword [rsp + 0x20], 0x48
call qword [sym.imp.ntoskrnl.exe_ExInitializeNPagedLookasideList]
lea rax, [0x140006510]
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x160]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ebx, eax
test eax, eax
js 0x140006a15
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
call fcn.1400065f0
call fcn.140006700
mov rax, qword [str.__pipe_]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x54]
mov qword [rdx], rax
mov rax, qword [0x14000b880]
mov r8d, 0xec
mov qword [rdx + 8], rax
mov eax, dword [0x14000b888]
mov dword [rdx + 0x10], eax
xor edx, edx
call fcn.14000aca0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
lea rdx, [0x1400056e0]
mov r8d, 0x400
repne scasw ax, word [rdi]
mov eax, 0x33
lea rdi, [rsp + 0x40]
not rcx
mov word [rsp + rcx*2 + 0x3e], ax
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
mov eax, 0x65
lea rdi, [rsp + 0x40]
not rcx
mov word [rsp + rcx*2 + 0x3e], ax
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
mov eax, 0x38
lea rdi, [rsp + 0x40]
not rcx
mov word [rsp + rcx*2 + 0x3e], ax
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
mov eax, 0x35
lea rdi, [rsp + 0x40]
not rcx
mov word [rsp + rcx*2 + 0x3e], ax
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov eax, 0x32
not rcx
lea r9d, [rax - 0x31]
mov word [rsp + rcx*2 + 0x3e], ax
lea rcx, [rsp + 0x40]
call fcn.140003170
mov eax, ebx
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
Function at 0x140007100
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r13
sub rsp, 0x20
mov r13, rdx
mov r12, rcx
xor ebp, ebp
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x50]
lea ecx, [rbp + 0xb]
xor r8d, r8d
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov edx, dword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x140007161
mov r8d, dword [rsp + 0x50]
lea ecx, [rbp + 0xb]
xor r9d, r9d
mov rdx, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jns 0x140007172
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov qword [rsp + 0x40], rbx
mov ebx, ebp
cmp dword [rdi], ebx
jbe 0x1400071da
mov qword [rsp + 0x48], rsi
lea rsi, [rdi + 0x2e]
nop word [rax + rax]
movzx ecx, word [rsi]
mov eax, ebx
mov rdx, r12
imul rax, rax, 0x128
add rax, rdi
lea rcx, [rcx + rax + 0x30]
call sub.ntoskrnl.exe__stricmp
test eax, eax
je 0x1400071bf
inc ebx
add rsi, 0x128
cmp ebx, dword [rdi]
jb 0x140007190
jmp 0x1400071d5
mov ecx, ebx
imul rcx, rcx, 0x128
mov rbp, qword [rcx + rdi + 0x18]
mov ecx, dword [rcx + rdi + 0x20]
mov dword [r13], ecx
mov rsi, qword [rsp + 0x48]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbx, qword [rsp + 0x40]
mov rax, rbp
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x140007200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r12, rcx
mov edi, dword [rax + rcx + 0x88]
mov dword [rsp + 0x40], ebx
add rdi, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x14000727c
mov rsi, rbx
mov rbp, rbx
nop word [rax + rax]
mov eax, dword [rdi + 0x20]
lea rdx, str.PsReferenceProcessFilePointer
add rax, rbp
mov ecx, dword [rax + r12]
mov eax, dword [rdi + 0x24]
add rax, rsi
add rcx, r12
movzx eax, word [rax + r12]
mov word [rsp + 0x40], ax
call sub.ntoskrnl.exe__stricmp
test eax, eax
je 0x140007291
inc ebx
add rbp, 4
add rsi, 2
cmp ebx, dword [rdi + 0x18]
jb 0x140007240
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
mov ecx, dword [rdi + 0x1c]
mov eax, dword [rsp + 0x40]
lea ecx, [rcx + rax*4]
mov eax, dword [rcx + r12]
add rax, r12
jmp 0x14000727e