joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b760
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14002b9c0
lea rax, [rdx - 1]
or rax, rdi
bsr rcx, rax
inc ecx
shl rdi, cl
mov rbx, qword [r13 + 8]
lea rdx, [rdi + rdi]
mov r8, rbx
lea rcx, [r13 + 0x18]
call fcn.1400189f0
lea rax, [rdi - 1]
mov qword [r13 + 0x30], rax
mov qword [r13 + 0x38], rdi
mov qword [rsp + 0x20], r13
mov rdx, qword [r13 + 8]
mov rdx, qword [rdx]
mov r8, rdx
cmp rdx, rbx
je 0x14002b99f
movabs rax, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [r8]
mov rsi, qword [rdx + 0x20]
lea r10, [rdx + 0x10]
mov r15, qword [rdx + 0x28]
cmp r15, 8
jb 0x14002b819
mov r10, qword [rdx + 0x10]
mov rcx, rax
lea r11, [rsi + rsi]
xor r9d, r9d
test r11, r11
je 0x14002b844
nop dword [rax + rax]
movzx eax, byte [r9 + r10]
xor rcx, rax
imul rcx, rbp
inc r9
cmp r9, r11
jb 0x14002b830
and rcx, qword [r13 + 0x30]
shl rcx, 4
mov r14, qword [r13 + 0x18]
add r14, rcx
mov rbp, qword [r14]
cmp rbp, rbx
jne 0x14002b867
mov qword [r14], rdx
mov qword [r14 + 8], rdx
jmp 0x14002b97f
mov rax, qword [r14 + 8]
lea r9, [rax + 0x10]
mov rcx, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 8
jb 0x14002b87d
mov r9, qword [r9]
lea r11, [rdx + 0x10]
cmp r15, 8
jb 0x14002b88b
mov r11, qword [rdx + 0x10]
cmp rsi, rcx
jne 0x14002b8e7
mov r10, rsi
test rsi, rsi
je 0x14002b8b5
sub r11, r9
nop dword [rax + rax]
movzx ecx, word [r9 + r11]
cmp cx, word [r9]
jne 0x14002b8e7
add r9, 2
sub r10, 1
jne 0x14002b8a0
mov rcx, qword [rax]
cmp rcx, rdx
je 0x14002b8de
mov r10, qword [rdx + 8]
mov qword [r10], r8
mov r9, qword [r8 + 8]
mov qword [r9], rcx
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov qword [rcx + 8], r9
mov qword [r8 + 8], r10
mov qword [rdx + 8], rax
mov qword [r14 + 8], rdx
jmp 0x14002b97f
cmp rbp, rax
je 0x14002b95b
mov rax, qword [rax + 8]
lea rcx, [rax + 0x10]
mov r9, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x14002b902
mov rcx, qword [rcx]
lea r11, [rdx + 0x10]
cmp r15, 8
jb 0x14002b910
mov r11, qword [rdx + 0x10]
cmp rsi, r9
jne 0x14002b8e7
mov r10, rsi
test rsi, rsi
je 0x14002b935
sub r11, rcx
movzx r9d, word [r11 + rcx]
cmp r9w, word [rcx]
jne 0x14002b8e7
add rcx, 2
sub r10, 1
jne 0x14002b920
mov rax, qword [rax]
mov r10, qword [rdx + 8]
mov qword [r10], r8
mov r9, qword [r8 + 8]
mov qword [r9], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdx
mov qword [rax + 8], r9
mov qword [r8 + 8], r10
mov qword [rdx + 8], rcx
jmp 0x14002b97f
mov r10, qword [rdx + 8]
mov qword [r10], r8
mov r9, qword [r8 + 8]
mov qword [r9], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdx
mov qword [rax + 8], r9
mov qword [r8 + 8], r10
mov qword [rdx + 8], rcx
mov qword [r14], rdx
mov rdx, r8
cmp r8, rbx
movabs rbp, 0x100000001b3
movabs rax, 0xcbf29ce484222325
jne 0x14002b800
mov qword [rsp + 0x20], 0
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.140031eec
int3
Function at 0x14002ef00
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14002f0e1
lea rax, [rdx - 1]
or rax, rdi
bsr rcx, rax
inc ecx
shl rdi, cl
mov rbx, qword [rsi + 8]
lea rdx, [rdi + rdi]
mov r8, rbx
lea rcx, [rsi + 0x18]
call fcn.1400189f0
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rdi
mov qword [rsp + 0x20], rsi
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x14002f09f
movabs rbp, 0xcbf29ce484222325
movabs rdi, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdx]
movzx r9d, byte [rcx + 0x10]
xor r9, rbp
imul r9, rdi
movzx eax, byte [rcx + 0x11]
xor r9, rax
imul r9, rdi
movzx eax, byte [rcx + 0x12]
xor r9, rax
imul r9, rdi
movzx eax, byte [rcx + 0x13]
xor r9, rax
imul r9, rdi
movzx eax, byte [rcx + 0x14]
xor r9, rax
imul r9, rdi
movzx eax, byte [rcx + 0x15]
xor r9, rax
imul r9, rdi
movzx eax, byte [rcx + 0x16]
xor r9, rax
imul r9, rdi
movzx eax, byte [rcx + 0x17]
xor r9, rax
imul r9, rdi
mov r11, qword [rsi + 0x30]
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14002f01c
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x14002f093
mov rax, qword [r11 + 8]
mov r8, qword [rcx + 0x10]
cmp r8, qword [rax + 0x10]
jne 0x14002f059
mov r8, qword [rax]
cmp r8, rcx
je 0x14002f053
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x14002f093
cmp r9, rax
je 0x14002f06f
nop
mov rax, qword [rax + 8]
cmp r8, qword [rax + 0x10]
je 0x14002f0bb
cmp r9, rax
jne 0x14002f060
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x14002efa0
mov qword [rsp + 0x20], 0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rax]
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
jmp 0x14002f093
lea rcx, str.invalid_hash_bucket_count
call fcn.140031eec
int3
Function at 0x140034218
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140061098]
test rax, rax
je 0x140034262
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140034262
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140034262
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140034262
cmp dword [rcx + 0x84], 0xe
jbe 0x140034262
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140034264
xor al, al
add rsp, 0x28
ret

Function at 0x14003cf2c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003cd28
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140008810]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
xorps xmm0, xmm0
and qword [rbp - 0x48], 0
mov rdi, r8
mov qword [rbp - 0x40], rdx
lea rdx, [rbp - 0x50]
mov ecx, ecx
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000105f
lea rcx, [0x140002f90]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x1400010b5
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r9, [rbp - 0x40]
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp - 0x48]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
test eax, eax
js 0x14000109f
mov rcx, qword [rbp - 0x48]
mov qword [rdi], rcx
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400026a0
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret

Function at 0x14000126c
Capabilities:
Create device object
Print debug messages

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
lea rcx, [0x140002f00]
call sub.ntoskrnl.exe_DbgPrint
and qword [rsp + 0x70], 0
lea rax, [0x1400010d0]
mov qword [rbx + 0x70], rax
xorps xmm0, xmm0
lea rax, [0x1400010d0]
xorps xmm1, xmm1
mov qword [rbx + 0x80], rax
lea rax, [0x1400010f0]
mov qword [rbx + 0xe0], rax
lea rax, [0x1400013c0]
mov qword [rbx + 0x68], rax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm1
call fcn.14000191c
test rax, rax
jne 0x1400012dd
call fcn.140001884
test rax, rax
je 0x14000130f
lea rcx, [0x140002f10]
mov qword [0x140008858], rax
call fcn.1400014b8
mov rcx, qword [0x140008858]
mov eax, eax
mov rdx, qword [rcx]
mov eax, dword [rdx + rax*4]
shr rax, 4
add rax, rdx
mov qword [0x140008850], rax
jne 0x140001319
mov eax, 0xc0000001
jmp 0x1400013ae
lea rdx, [0x140002f30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x70]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov ebx, eax
test eax, eax
jns 0x14000136b
lea rcx, [0x140002f50]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
jmp 0x1400013ae
lea rdx, [0x140002ec0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x1400013ac
lea rcx, [0x140002f70]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x140001367
xor eax, eax
add rsp, 0x60
pop rbx
ret
Function at 0x140001404
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140008810]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
xorps xmm0, xmm0
and qword [rbp - 0x48], 0
mov qword [rbp - 0x40], rdx
lea rdx, [rbp - 0x50]
mov ecx, ecx
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000145f
lea rcx, [0x140002f90]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x14000149d
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r9d, 0x8000
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x40]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rbp - 0x38]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400026a0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rbp
ret
Function at 0x1400019e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rbx, rcx
mov dword [rsp + 0x28], 0x40
or rsi, 0xffffffffffffffff
mov dword [rbp - 0x19], 0x28ec8348
xor edi, edi
mov dword [rbp - 0x15], 0xb9
mov rcx, rsi
mov qword [rbp - 0x11], 0xba4800
lea r9, [rbp - 0x29]
mov dword [rbp - 9], 0x49000000
xor r8d, r8d
mov qword [rbp - 5], 0xb8
lea rdx, [rbp + 0x6f]
mov qword [rbp + 3], 0xb94900
mov dword [rbp + 0xb], 0x48000000
mov qword [rbp + 0xf], 0xb8
mov dword [rbp + 0x17], 0x48d0ff00
mov qword [rbp + 0x1b], 0xba
mov dword [rbp + 0x23], 0x7e02c700
mov dword [rbp + 0x27], 0x48c0371e
mov qword [rbp + 0x2b], 0xba
mov dword [rbp + 0x33], 0x2894800
mov dword [rbp + 0x37], 0x28c48348
mov qword [rbp + 0x6f], rdi
mov qword [rbp - 0x29], 0x1000
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140001bb8
mov rcx, qword [rbp + 0x6f]
lea r9, [rbp + 0x7f]
movaps xmm0, xmmword [rbp - 0x19]
lea rdx, [rbp + 0x77]
movaps xmm1, xmmword [rbp - 9]
xor r8d, r8d
mov eax, dword [rbp + 0x37]
movups xmmword [rcx], xmm0
mov dword [rsp + 0x28], 0x40
movaps xmm0, xmmword [rbp + 7]
movups xmmword [rcx + 0x10], xmm1
mov dword [rsp + 0x20], 0x1000
movaps xmm1, xmmword [rbp + 0x17]
movups xmmword [rcx + 0x20], xmm0
movaps xmm0, xmmword [rbp + 0x27]
movups xmmword [rcx + 0x30], xmm1
movups xmmword [rcx + 0x40], xmm0
mov dword [rcx + 0x50], eax
mov byte [rcx + 0x54], 0xc3
mov rcx, rsi
mov qword [rbp + 0x77], rdi
mov qword [rbp + 0x7f], 0x2090
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140001ba1
mov rcx, qword [rbp + 0x77]
lea rdx, [0x140006780]
mov r8d, 0x2090
call fcn.140002a00
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rbp + 0x77]
mov qword [rcx + 0x5f8], rax
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rbp + 0x7f]
mov qword [rcx + 0x600], rax
mov rax, qword [rbp + 0x6f]
mov dword [rax + 5], edi
mov rax, qword [rbp + 0x6f]
mov qword [rax + 0xb], rbx
mov rax, qword [rbp + 0x6f]
mov dword [rax + 0x15], 1
mov rcx, qword [rbp + 0x6f]
lea rax, [rcx + 0x5f4]
mov qword [rcx + 0x1f], rax
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx + 0x5f8]
mov qword [rcx + 0x29], rax
mov rcx, qword [rbp + 0x6f]
lea rax, [rcx + 0x5f0]
mov qword [rcx + 0x35], rax
mov rcx, qword [rbp + 0x6f]
lea rax, [rcx + 0x5e8]
mov qword [rcx + 0x45], rax
mov rax, qword [rbp + 0x6f]
jmp 0x140001bba
mov r9d, 0x8000
lea r8, [rbp - 0x29]
lea rdx, [rbp + 0x6f]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
xor eax, eax
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001bd0
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140008810]
xor rax, rsp
mov qword [rbp - 8], rax
movups xmm0, xmmword [rdx]
xor edi, edi
mov ecx, ecx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x60], rdi
movdqu xmmword [rbp - 0x48], xmm0
mov r15, r8
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 0x58], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov r14d, eax
test eax, eax
jns 0x140001c41
lea rcx, [0x140002f90]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140001d2a
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x38]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp - 0x60]
test rbx, rbx
je 0x140001cbb
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rsi, rax
mov ecx, dword [rax + 0xc]
add rcx, 0xc
mov ebx, dword [rcx]
cmp rbx, rcx
je 0x140001d10
mov ecx, dword [rbx + 0x30]
test ecx, ecx
je 0x140001ca8
mov edx, ecx
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140001cb6
mov eax, dword [rsi + 0xc]
mov ebx, dword [rbx]
add rax, 0xc
cmp rbx, rax
jmp 0x140001c7a
mov edi, dword [rbx + 0x18]
jmp 0x140001d10
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rsi, rax
mov rcx, qword [rax + 0x18]
add rcx, 0x10
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x140001d10
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x140001cfc
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140001d0c
mov rax, qword [rsi + 0x18]
mov rbx, qword [rbx]
add rax, 0x10
cmp rbx, rax
jmp 0x140001cd2
mov rdi, qword [rbx + 0x30]
lea rcx, [rbp - 0x38]
mov qword [r15], rdi
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, r14d
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400026a0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001d50
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
mov dword [rsp + 0x28], 0x40
xor edi, edi
mov dword [rbp - 0x38], 0x68
or rsi, 0xffffffffffffffff
mov dword [rbp - 0x34], 0x6800
mov rcx, rsi
mov dword [rbp - 0x30], 0x680000
lea r9, [rbp - 0x40]
mov qword [rbp - 0x2c], 0x68000000
xor r8d, r8d
mov dword [rbp - 0x24], 0xe8
lea rdx, [rbp + 0x28]
mov dword [rbp - 0x20], 0x10c48300
mov dword [rbp - 0x1c], 0xba
mov dword [rbp - 0x18], 0x7e02c700
mov dword [rbp - 0x14], 0xbac0371e
mov dword [rbp - 0x10], edi
mov word [rbp - 0xc], 0x289
mov qword [rbp + 0x28], rdi
mov qword [rbp - 0x40], 0x1000
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140001ef2
mov rcx, qword [rbp + 0x28]
lea r9, [rbp + 0x38]
movups xmm0, xmmword [rbp - 0x38]
mov eax, edi
mov dword [rsp + 0x28], 0x40
movups xmm1, xmmword [rbp - 0x28]
xor r8d, r8d
lea rdx, [rbp + 0x30]
movups xmmword [rcx], xmm0
mov dword [rsp + 0x20], 0x1000
movsd xmm0, qword [rbp - 0x18]
movups xmmword [rcx + 0x10], xmm1
movsd qword [rcx + 0x20], xmm0
mov dword [rcx + 0x28], eax
movzx eax, word [rbp - 0xc]
mov word [rcx + 0x2c], ax
mov byte [rcx + 0x2e], 0xc3
mov rcx, rsi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], 0x1780
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140001edb
mov rcx, qword [rbp + 0x30]
lea rdx, section..data
mov r8d, 0x1780
call fcn.140002a00
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x30]
mov qword [rcx + 0x5f8], rax
mov rax, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x28]
mov qword [rcx + 0x600], rax
mov rcx, qword [rbp + 0x28]
lea eax, [rcx + 0x5f4]
mov dword [rcx + 1], eax
mov rax, qword [rbp + 0x28]
mov dword [rax + 6], 1
mov rax, qword [rbp + 0x28]
mov dword [rax + 0xb], ebx
mov rax, qword [rbp + 0x28]
mov dword [rax + 0x10], edi
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + 0x5f8]
sub eax, ecx
sub eax, 0x19
mov dword [rcx + 0x15], eax
mov rcx, qword [rbp + 0x28]
lea eax, [rcx + 0x5f0]
mov dword [rcx + 0x1d], eax
mov rcx, qword [rbp + 0x28]
lea eax, [rcx + 0x5e8]
mov dword [rcx + 0x28], eax
mov rax, qword [rbp + 0x28]
jmp 0x140001ef4
mov r9d, 0x8000
lea r8, [rbp - 0x40]
lea rdx, [rbp + 0x28]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001f04
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140008810]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, qword [sym.imp.ntoskrnl.exe_ExGetPreviousMode]
xor edi, edi
lea rsi, [rbx + 0x14]
cmp rbx, rsi
jae 0x140001f71
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140001f65
cmp byte [rbx], 0x80
jne 0x140001f65
lea rcx, [rbx + 5]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140001f65
cmp byte [rbx + 5], 0xc3
je 0x140001f6a
inc rbx
jmp 0x140001f3a
mov edi, dword [rbx + 1]
test edi, edi
jne 0x140001fb2
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.140002cc0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
jne 0x140001fb2
cmp dword [rsp + 0x24], 6
jne 0x140001fad
cmp dword [rsp + 0x28], 1
mov edi, 0x1f6
je 0x140001fb2
mov edi, 0x232
mov eax, edi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400026a0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140002258
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x88
mov rax, qword [0x140008810]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r9
mov ebx, r8d
mov rsi, rdx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x38], r9
xor edi, edi
mov qword [rsp + 0x30], rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
mov ecx, ecx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400022c3
lea rcx, [0x140002f90]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x14000232d
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.140002a00
mov dword [rsp + 0x20], edi
jmp 0x140002315
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400026a0
add rsp, 0x88
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140002348
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140008810]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, r9
mov r14, rdx
mov r15d, ecx
xor ebx, ebx
mov qword [rsp + 0x28], rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
mov esi, r8d
mov edx, r8d
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x1400023b8
lea rcx, [0x140002fc0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140002459
mov r8, rsi
mov rdx, r12
mov rcx, rdi
call fcn.140002a00
mov rcx, r15
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400023f1
lea rcx, [0x140002f90]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1400023ae
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
mov r8d, 1
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.140002a00
mov dword [rsp + 0x20], ebx
jmp 0x140002436
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400026a0
add rsp, 0x78
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret