joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140079ae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.140068b90
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x140079b36
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x140079b8d
mov ebp, 0x4b0000
jmp 0x140079b9b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.14006afd0
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x140079bb1
mov eax, r12d
jmp 0x140079bba
mov edx, edi
mov ecx, ebp
call fcn.14006afd0
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x140079bd6
shl esi, 0x10
mov ecx, esi
jmp 0x140079cc5
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x140079c34
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.140068b90
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x140079c24
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.14006aea0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.140068b90
add ebx, eax
jmp 0x140079cce
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x140079c41
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x140079c80
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.140068b90
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x140079c85
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.14006aea0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.140068b90
add ebx, eax
jmp 0x140079cce
cmp eax, r12d
jge 0x140079cbe
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.140068b90
sub ebp, eax
sub r15d, esi
je 0x140079cbe
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.14006aea0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.140068b90
add ebx, eax
jmp 0x140079cce
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.140068b90
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.140068b90
Function at 0x1400c5d80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x140112040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1400c5f1c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1400c5f1c
cmp r10d, r14d
jne 0x1400c5e20
sub rbx, 0x10
jmp 0x1400c5f64
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1400c5e92
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1400c5e54
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1400c5e5c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1400c5e7b
movzx edx, r11b
mov rcx, rsi
call fcn.1400c6f30
test al, al
jne 0x1400c5f75
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1400c75a0
test al, al
jne 0x1400c5f75
mov edx, dword [rsi + 0x64]
lea r9, [0x1400c7900]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1400c5ebe
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1400c5c00
jmp 0x1400c5f12
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1400c5c00
test dil, dil
je 0x1400c5f0a
cmp byte [rsi + 0x6a], 0
jne 0x1400c5f0a
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1400c5f75
sub rbx, 0x10
jmp 0x1400c5f64
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1400c5f79
mov ebp, dword [rbx]
jmp 0x1400c5de0
mov al, 1
jmp 0x1400c5f82
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400d1920
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1400cc2d0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400cc2ec
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400cc340
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400cc465
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400cc465
test rax, rax
je 0x1400cc465
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400cc465
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400cc3da
lea rax, [0x1400cc4c0]
jmp 0x1400cc433
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400cc465
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400cc453
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400cc400
lea rax, [0x1400cc490]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400cc47a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400cd1c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400cd1cb
xor eax, eax
ret
lea r11, [0x1400eff40]
not ecx
cmp r8d, 8
jb 0x1400cd2a1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400cd1f0
test r8d, r8d
je 0x1400cd2cd
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400cd2b0
not ecx
mov eax, ecx
ret
Function at 0x1400d1e10
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d1e5a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d1e5a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d1e5a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d1e5a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d1e5a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400d1e5c
xor al, al
add rsp, 0x28
ret
Function at 0x140001168
Capabilities:
Enumerate pe sections

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor r13d, r13d
mov r15, r8
mov r12, rdx
test r8, r8
je 0x140001209
lea rdx, [rax + 0x18]
mov qword [rax + 0x18], r13
call fcn.140001314
mov rsi, qword [rsp + 0x70]
mov rbp, rax
test rsi, rsi
je 0x140001209
movsxd rdi, dword [rsi + 0x3c]
mov r14d, r13d
add rdi, rsi
movzx ecx, word [rdi + 0x14]
lea rbx, [rdi + 0x18]
add rbx, rcx
cmp r13w, word [rdi + 6]
jae 0x140001204
mov rax, qword [rbx]
lea rcx, [rsp + 0x20]
mov rdx, r12
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x28], r13b
call sub.ntoskrnl.exe__stricmp
test eax, eax
je 0x1400011f8
movzx eax, word [rdi + 6]
add rbx, 0x28
inc r14d
cmp r14d, eax
jl 0x1400011c8
jmp 0x140001204
mov eax, dword [rbx + 0xc]
add rax, rsi
mov qword [r15], rax
mov ebp, dword [rbx + 0x10]
mov rax, rbp
jmp 0x14000120b
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001314
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x150
xor esi, esi
lea r9, [rax + 0x18]
mov r14, rdx
mov dword [rax + 0x18], esi
mov r15, rcx
lea rdx, [rsp + 0x20]
mov r8d, 0x130
lea ecx, [rsi + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dl, 1
mov rcx, r15
mov ebx, eax
call section..text
mov r12, rax
cmp ebx, 0xc0000004
jne 0x140001454
mov edi, dword [rsp + 0x190]
lea ecx, [rsi + 1]
add edi, 0x130
mov edx, edi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, edi
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.140003900
lea r9, [rsp + 0x190]
mov r8d, edi
mov rdx, rbp
lea ecx, [rsi + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jns 0x1400013cc
xor edx, edx
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
jmp 0x140001462
lea rdx, [0x1400039f0]
mov rcx, r15
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x14000143f
lea rdx, [0x140003a00]
mov rcx, r15
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x14000143f
mov edi, esi
cmp dword [rbp], esi
jbe 0x140001449
mov eax, edi
imul r15, rax, 0x128
lea rbx, [r15 + rbp]
lea rcx, [rbx + 0x30]
call sub.ntoskrnl.exe__strupr
mov rdx, r12
lea rcx, [rbx + 0x30]
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x14000142b
inc edi
cmp edi, dword [rbp]
jb 0x1400013fb
jmp 0x140001449
test r14, r14
je 0x140001438
mov rax, qword [r15 + rbp + 0x18]
mov qword [r14], rax
mov esi, dword [r15 + rbp + 0x20]
jmp 0x140001449
mov rax, qword [rbp + 0x18]
mov qword [r14], rax
mov esi, dword [rbp + 0x20]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rsi
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140001614
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
cmp rcx, qword [0x140005070]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov edi, r9d
mov rsi, rdx
movups xmmword [rbp - 0x20], xmm0
mov rbx, rcx
movups xmmword [rbp - 0x10], xmm0
je 0x14000166e
lea rdx, [0x140005068]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x1400016d3
mov rcx, qword [0x140005068]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov qword [0x140005070], rbx
mov rcx, qword [0x140005068]
lea rdx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov eax, dword [rbp + 0x40]
lea r9, [rbp + 0x30]
mov dword [rsp + 0x28], eax
lea rdx, [rbp + 0x20]
xor r8d, r8d
mov dword [rsp + 0x20], edi
or rcx, 0xffffffffffffffff
mov qword [rbp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
test eax, eax
js 0x1400016b8
mov r8, qword [rbp + 0x30]
xor edx, edx
mov rcx, qword [rbp + 0x20]
call fcn.140003900
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test ebx, ebx
js 0x1400016d1
mov rcx, qword [rbp + 0x48]
mov rax, qword [rbp + 0x20]
mov qword [rcx], rax
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400016e4
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
xor esi, esi
mov qword [rbp + 0x27], rcx
mov qword [rax - 0x68], rsi
lea r9, [rbp + 7]
mov dword [rax - 0x70], 0x100
lea r8, [rbp + 0x17]
mov qword [rax - 0x78], rsi
lea rcx, [rbp + 0x67]
mov dword [rax - 0x80], esi
xorps xmm0, xmm0
mov dword [rsp + 0x50], esi
mov ebx, 0x110000
mov qword [rsp + 0x48], rsi
mov edx, ebx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x20], rsi
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x67], rsi
mov qword [rbp + 0x17], 0x30
mov qword [rbp + 0x2f], 0x240
mov qword [rbp + 0x1f], rsi
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileEx]
test eax, eax
js 0x140001807
mov r8, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
lea rax, [rbp + 0x6f]
mov rcx, qword [rbp + 0x67]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, ebx
mov qword [rsp + 0x28], rax
mov r8, qword [r8]
mov dword [rsp + 0x20], 0x656c6946
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandleWithTag]
xor edx, edx
mov edi, eax
test eax, eax
jns 0x1400017c7
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
jmp 0x140001805
mov rax, qword [rbp + 0x6f]
mov rcx, qword [rax + 0x28]
mov qword [rcx + 0x10], rsi
call qword [sym.imp.ntoskrnl.exe_MmFlushImageSection]
mov rcx, qword [rbp + 0x6f]
mov bl, al
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp + 0x67]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
test bl, bl
je 0x140001805
lea rcx, [rbp + 0x17]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov edi, eax
test eax, eax
jns 0x140001807
mov eax, edi
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400018f8
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov r15, r9
mov r12b, r8b
mov r13, rdx
mov r14, rcx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rdi, rax
test rax, rax
jne 0x14000193e
mov eax, 0xc000007b
jmp 0x140001a2c
lea rsi, [rax + 0x108]
movzx eax, word [rax + 6]
mov rbx, rsi
lea rcx, [rax + rax*4]
lea rax, [rsi + rcx*8]
cmp rsi, rax
jae 0x140001a27
lea rdx, [0x140003a10]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
lea rdx, [0x140003ab0]
lea rcx, [rbp - 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
lea rdx, [0x140003ac0]
lea rcx, [rbp - 0x18]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov rdx, rbx
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
je 0x1400019dc
mov r8b, 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
je 0x1400019dc
mov r8b, 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x18]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
jne 0x140001a0e
mov r9d, dword [rbx + 0xc]
lea rcx, [rbp - 0x50]
mov eax, dword [rbx + 8]
lea r8, [r15 - 1]
and qword [rbp - 0x50], 0
add r9, r14
mov qword [rsp + 0x28], rcx
mov dl, r12b
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140001a5c
mov edx, eax
test eax, eax
jns 0x140001a4d
movzx eax, word [rdi + 6]
add rbx, 0x28
lea rcx, [rax + rax*4]
lea rax, [rsi + rcx*8]
cmp rbx, rax
jb 0x14000195d
mov eax, 0xc0000225
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rax, qword [rbp - 0x50]
mov rcx, qword [rbp + 0x50]
mov qword [rcx], rax
mov eax, edx
jmp 0x140001a2c

Function at 0x140001af8
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x28]
or dword [rcx + 0x68], 0x20
add rcx, 0x48
call fcn.1400016e4
lea rcx, [0x140003b90]
call sub.ntoskrnl.exe_DbgPrint
call fcn.1400022c8
test al, al
jne 0x140001b2e
mov eax, 0xc0000001
jmp 0x140001b6c
lea rcx, [0x1400025d0]
call fcn.140001480
call fcn.140002af8
call fcn.1400032c8
mov r8, rbx
mov qword [0x140005048], rax
lea rdx, [0x140001820]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoRegisterDriverReinitialization]
lea rcx, [0x140003bb0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140001b74
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbx
sub rsp, 0x50
cmp rcx, qword [0x140005070]
xorps xmm0, xmm0
movups xmmword [rax - 0x38], xmm0
mov rbx, rcx
movups xmmword [rax - 0x28], xmm0
movups xmmword [rax - 0x18], xmm0
je 0x140001bc4
lea rdx, [0x140005068]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x140001bff
mov rcx, qword [0x140005068]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov qword [0x140005070], rbx
mov rcx, qword [0x140005068]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r9d, 0x8000
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x68]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rsp + 0x20]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x140001c08
Capabilities:
Attach user process memory
Find process by pid
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor edi, edi
mov r13, r9
cmp rcx, qword [0x140005070]
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
je 0x140001c64
lea rdx, [0x140005068]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x140001d91
mov rcx, qword [0x140005068]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov qword [0x140005070], rsi
mov r14d, 0x100
xor ecx, ecx
mov edx, r14d
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
test rax, rax
je 0x140001d8c
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.140003900
or r8, 0xffffffffffffffff
inc r8
cmp byte [r8 + rbp], dil
jne 0x140001c92
mov rdx, rbp
mov rcx, rsi
call fcn.140003640
mov rcx, qword [0x140005068]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140001d8c
movsxd rax, dword [rbx + 0x3c]
mov ecx, 0x20b
cmp word [rax + rbx + 0x18], cx
jne 0x140001cdf
mov ecx, dword [rax + rbx + 0x88]
jmp 0x140001ce3
mov ecx, dword [rax + rbx + 0x78]
mov r8d, ecx
mov edx, edi
mov r14d, dword [r8 + rbx + 0x24]
mov r15d, dword [r8 + rbx + 0x20]
add r14, rbx
mov r11d, dword [r8 + rbx + 0x1c]
add r15, rbx
mov r12d, dword [r8 + rbx + 0x14]
add r11, rbx
test r12d, r12d
je 0x140001d6e
cmp rsi, 0xffff
ja 0x140001d26
movzx r9d, dx
mov ecx, r9d
movzx eax, si
add ecx, dword [r8 + rbx + 0x10]
cmp eax, ecx
jmp 0x140001d58
cmp edx, dword [r8 + rbx + 0x18]
jae 0x140001d8c
mov eax, edx
mov rbp, rsi
mov ecx, dword [r15 + rax*4]
movzx r9d, word [r14 + rax*2]
add rcx, rbx
sub rbp, rcx
movzx eax, byte [rcx]
movzx r10d, byte [rcx + rbp]
sub eax, r10d
jne 0x140001d56
inc rcx
test r10d, r10d
jne 0x140001d41
test eax, eax
je 0x140001d63
inc edx
cmp edx, r12d
jb 0x140001d0a
jmp 0x140001d6e
movzx eax, r9w
mov edi, dword [r11 + rax*4]
add rdi, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
xor edx, edx
mov qword [r13], rdi
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
jmp 0x140001d91
mov eax, 0xc0000001
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret