joyce8/EMBER2024-capa huggingface dataset:
Function at 0x37a79dfd0
Capabilities:
Get thread local storage value

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

Function at 0x37a79e360
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x37aaa8270]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x37a79e3d9
mov rcx, r10
call fcn.37a79e230
test eax, eax
je 0x37a79e3d9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x37a79e3d6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x37a79e3cd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x37a79e3d9
add r8, 0x28
cmp r8, r9
jne 0x37a79e3b8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x37a79e6e0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x37aace088]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x37a79e060
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x37a79e0b3
mov dword [rax], edi
lea rcx, [0x37aace0a0]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x37aace080]
lea rcx, [0x37aace0a0]
mov qword [0x37aace080], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x37a79e056
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x37a79e710
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x37a7a9dc0
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x37a7a9dd0
xor eax, eax
ret
jmp 0x37a79e040

Function at 0x37a79e750
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x37a79e790
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x37a79e7a8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x37a806e00
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x37a806e27
call rbp
cmp dword [rax], 4
jne 0x37a806e44
mov rcx, rdi
call fcn.37a806c20
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x37a806e20
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x401030
Capabilities:
Access peb ldr_data

Disassembly:
push rdi
push rsi
mov esi, ecx
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x10]
lea rdi, [rax + 0x10]
cmp rbx, rdi
je 0x401073
movzx edx, word [rbx + 0x58]
mov rcx, qword [rbx + 0x60]
call fcn.00404b70
cmp eax, esi
jne 0x40106e
mov rax, qword [rbx + 0x30]
jmp 0x401075
mov rbx, qword [rbx]
jmp 0x401052
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x40107d
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x401097
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
je 0x401097
xor eax, eax
ret

Function at 0x4032d0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rsi
xor eax, eax
push rbx
mov r8b, byte [rdx + rax]
mov byte [rcx + rax], r8b
mov r8b, byte [rdx + rax + 1]
mov byte [rcx + rax + 1], r8b
mov r8b, byte [rdx + rax + 2]
mov byte [rcx + rax + 2], r8b
mov r8b, byte [rdx + rax + 3]
mov byte [rcx + rax + 3], r8b
add rax, 4
cmp rax, 0x10
jne 0x4032d4
mov r10d, 4
lea r11, [0x004057c0]
lea rbx, [0x004056a8]
movzx r9d, byte [rcx + 0xc]
movzx r8d, byte [rcx + 0xd]
movzx edx, byte [rcx + 0xe]
movzx eax, byte [rcx + 0xf]
test r10b, 3
jne 0x40334e
mov sil, byte [r11 + r8]
mov r8b, byte [r11 + rdx]
mov dl, byte [r11 + rax]
mov al, byte [r11 + r9]
mov r9d, r10d
shr r9d, 2
xor sil, byte [rbx + r9]
mov r9d, esi
xor r9b, byte [rcx]
xor r8b, byte [rcx + 1]
inc r10d
add rcx, 4
xor dl, byte [rcx - 2]
xor al, byte [rcx - 1]
mov byte [rcx + 0xc], r9b
mov byte [rcx + 0xd], r8b
mov byte [rcx + 0xe], dl
mov byte [rcx + 0xf], al
cmp r10d, 0x2c
jne 0x403318
pop rbx
pop rsi
ret
Function at 0x4033bf
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push r15
mov r11, rcx
mov r8, rdx
push r14
push r13
push r12
mov r12, rdx
mov rdx, rcx
xor ecx, ecx
push rbp
push rdi
lea rdi, [0x004057c0]
push rsi
push rbx
mov ebx, 1
sub rsp, 0x38
call fcn.00403379
lea rax, [r11 + 4]
lea rbp, [r11 + 0x10]
mov qword [rsp + 0x28], rax
mov r9, r11
mov rax, r11
mov rdx, rax
xor ecx, ecx
movzx r8d, byte [rdx]
inc ecx
add rdx, 4
mov r8b, byte [rdi + r8]
mov byte [rdx - 4], r8b
cmp cl, 4
jne 0x403406
inc rax
cmp rax, qword [rsp + 0x28]
jne 0x403401
mov dl, byte [r11 + 5]
mov al, byte [r11 + 1]
mov byte [r11 + 1], dl
mov dl, byte [r11 + 9]
mov byte [r11 + 5], dl
mov dl, byte [r11 + 0xd]
mov byte [r11 + 0xd], al
mov al, byte [r11 + 2]
mov byte [r11 + 9], dl
mov dl, byte [r11 + 0xa]
mov byte [r11 + 0xa], al
mov al, byte [r11 + 6]
mov byte [r11 + 2], dl
mov dl, byte [r11 + 0xe]
mov byte [r11 + 0xe], al
mov al, byte [r11 + 3]
mov byte [r11 + 6], dl
mov dl, byte [r11 + 0xf]
mov byte [r11 + 3], dl
mov dl, byte [r11 + 0xb]
mov byte [r11 + 0xf], dl
mov dl, byte [r11 + 7]
mov byte [r11 + 7], al
mov byte [r11 + 0xb], dl
cmp ebx, 0xa
je 0x403520
mov r8b, byte [r9]
mov r15b, byte [r9 + 1]
mov r14b, byte [r9 + 2]
mov r10b, byte [r9 + 3]
mov ecx, r8d
xor ecx, r15d
mov esi, r14d
mov r13d, ecx
movzx ecx, cl
xor esi, r10d
call fcn.004033b0
xor r13d, esi
mov ecx, r15d
xor eax, r8d
xor ecx, r14d
xor eax, r13d
movzx ecx, cl
mov byte [r9], al
call fcn.004033b0
movzx ecx, sil
xor r15d, eax
xor r15d, r13d
mov byte [r9 + 1], r15b
call fcn.004033b0
xor r14d, eax
xor r8d, r10d
xor r14d, r13d
movzx ecx, r8b
mov byte [r9 + 2], r14b
call fcn.004033b0
xor r10d, eax
add r9, 4
xor r10d, r13d
mov byte [r9 - 1], r10b
cmp rbp, r9
jne 0x403490
mov ecx, ebx
mov r8, r12
mov rdx, r11
inc ebx
call fcn.00403379
jmp 0x4033fb
add rsp, 0x38
mov r8, r12
mov rdx, r11
mov ecx, 0xa
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.00403379

Function at 0x4037ff
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push r13
mov r13, r8
push r12
mov r12, rdx
lea rdx, [rcx + 0xb0]
push rdi
xor edi, edi
push rsi
push rbx
mov rbx, rcx
and rsp, 0xfffffffffffffff0
sub rsp, 0x20
lea rsi, [r12 + rdi]
cmp rdi, r13
jae 0x403852
xor eax, eax
mov cl, byte [rdx + rax]
xor byte [rsi + rax], cl
inc rax
cmp rax, 0x10
jne 0x40382f
mov rdx, rbx
mov rcx, rsi
add rdi, 0x10
call fcn.004033bf
mov rdx, rsi
jmp 0x403824
mov rax, qword [rdx]
mov rdx, qword [rdx + 8]
mov qword [rbx + 0xb0], rax
mov qword [rbx + 0xb8], rdx
lea rsp, [rbp - 0x28]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
ret

Function at 0x404b70
Capabilities:
Hash data using djb2

Disassembly:
xor r9d, r9d
test rcx, rcx
je 0x404bbf
mov r8, rcx
mov r9d, 0x1505
mov al, byte [r8]
test rdx, rdx
jne 0x404b8f
test al, al
jne 0x404ba3
jmp 0x404bbf
mov r10, r8
sub r10, rcx
cmp r10, rdx
jae 0x404bbf
test al, al
jne 0x404ba3
inc r8
jmp 0x404baa
cmp al, 0x60
jbe 0x404baa
sub eax, 0x20
mov r10d, r9d
movzx eax, al
inc r8
shl r10d, 5
add eax, r10d
add r9d, eax
jmp 0x404b81
mov eax, r9d
ret
Function at 0x14002982c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001ce24
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ce24
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002997c
cmp rax, 0xffffffffffffffff
je 0x14002997c
xor edi, edi
test rbp, rbp
jle 0x140029927
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f738
mov rbx, rax
test rax, rax
jne 0x1400298b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002991d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a758
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001db00
cmp eax, 0xffffffff
je 0x1400298fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400298c4
mov edx, r15d
mov ecx, r14d
call fcn.14001a758
jmp 0x14002991d
cmp byte [rsi + 0x38], dil
je 0x140029914
cmp dword [rsi + 0x34], 5
jne 0x140029914
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002991d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b4ec
jmp 0x140029990
jns 0x140029990
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ce24
cmp rax, 0xffffffffffffffff
jne 0x140029948
cmp byte [rsi + 0x30], dil
je 0x140029990
mov edi, dword [rsi + 0x2c]
jmp 0x140029990
mov ecx, r14d
call fcn.140018c10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029990
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029990
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029989
mov eax, dword [rsi + 0x2c]
jmp 0x14002998e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ce24
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002aa80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002aaa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002aaa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001b18
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b62
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b62
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b62
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b62
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b62
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b64
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x70
mov rdi, r8
and qword [rax + 0x20], 0
xorps xmm0, xmm0
movups xmmword [rax - 0x38], xmm0
movups xmmword [rax - 0x28], xmm0
movups xmmword [rax - 0x18], xmm0
and qword [rax - 0x40], 0
lea rdx, [rax + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001056
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140001056
mov eax, 0xc0000001
jmp 0x1400010e6
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, [rsp + 0x38]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
mov dword [rsp + 0x30], eax
mov r8, qword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.140002380
mov rcx, qword [rsp + 0x38]
mov qword [rdi], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400010d6
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1400013ac
Capabilities:
Create device object
Print debug messages

Disassembly:
push rbx
sub rsp, 0x50
lea rax, [0x140001100]
mov rbx, rcx
mov qword [rcx + 0x70], rax
lea rdx, [0x140002470]
mov qword [rcx + 0x80], rax
lea rax, [0x140001120]
mov qword [rcx + 0xe0], rax
lea rax, [0x140001530]
mov qword [rcx + 0x68], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
lea rdx, [0x140002490]
mov qword [0x140004040], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [0x140004038], rax
mov rax, qword [rbx + 0x28]
or dword [rax + 0x68], 0x20
call fcn.140001a88
lea rdx, [0x1400024d0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
lea rdx, [0x1400024f0]
mov ecx, dword [rax + 3]
mov qword [0x140004020], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
lea rdx, [0x140002550]
mov ecx, dword [rax + 3]
mov qword [0x140004018], rcx
lea rcx, [0x140004060]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [0x140004048]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [0x140004060]
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jns 0x1400014ce
lfence
jmp 0x14000151e
lea rdx, [0x140002580]
lea rcx, [0x140004050]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x140004060]
lea rcx, [0x140004050]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x140001510
lfence
mov rcx, qword [0x140004048]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
jmp 0x14000151e
lea rcx, [0x1400025b0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
add rsp, 0x50
pop rbx
ret
Function at 0x140001564
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x60
mov rdi, r9
and qword [rax - 0x40], 0
xorps xmm0, xmm0
movups xmmword [rax - 0x38], xmm0
movups xmmword [rax - 0x28], xmm0
movups xmmword [rax - 0x18], xmm0
lea rdx, [rax - 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400015b3
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x1400015b3
mov eax, 0xc0000001
jmp 0x14000162f
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r9d, 0x8000
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x78]
or rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwFreeVirtualMemory
mov ebx, eax
mov dword [rsp + 0x20], eax
mov r8, qword [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.140002380
mov rcx, qword [rsp + 0x78]
mov qword [rdi], rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140001622
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x14000163c
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov r15, rdx
mov rbx, rcx
xor edi, edi
test rcx, rcx
je 0x140001749
mov esi, edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov r14, rax
test rax, rax
je 0x140001749
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r14, qword [r14 + 0x18]
test r14, r14
je 0x140001739
add r14, 0x10
mov qword [rsp + 0xb0], r14
mov rbx, qword [r14]
mov qword [rsp + 0xa0], rbx
cmp r14, rbx
je 0x140001739
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov rdx, qword [rbx + 0x60]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp word [rbx + 0x58], di
je 0x14000170d
mov r8b, 1
lea rdx, [rsp + 0x28]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
je 0x14000170d
mov rsi, qword [rbx + 0x30]
mov qword [rsp + 0x20], rsi
jmp 0x140001739
jmp 0x140001731
mov rbx, qword [rbx]
jmp 0x1400016b2
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, rsi
jmp 0x14000174b
xor eax, eax
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001758
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov r15, rdx
mov rbx, rcx
xor edi, edi
test rcx, rcx
je 0x140001866
mov esi, edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov r14, rax
test rax, rax
je 0x140001866
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r14d, dword [r14 + 0xc]
test r14, r14
je 0x140001856
add r14, 0xc
mov qword [rsp + 0xb0], r14
mov ebx, dword [r14]
mov qword [rsp + 0xa0], rbx
cmp r14, rbx
je 0x140001856
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov edx, dword [rbx + 0x30]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp word [rbx + 0x2c], di
je 0x140001827
mov r8b, 1
lea rdx, [rsp + 0x28]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
je 0x140001827
mov esi, dword [rbx + 0x18]
mov qword [rsp + 0x20], rsi
jmp 0x140001856
mov ebx, dword [rbx]
jmp 0x1400017ce
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, rsi
jmp 0x140001868
xor eax, eax
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140001874
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x50], 0
mov rbx, rdx
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001896
xor eax, eax
jmp 0x1400018d6
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x20]
movups xmm0, xmmword [rbx]
movdqu xmmword [rsp + 0x20], xmm0
test rax, rax
jne 0x1400018c0
call fcn.14000163c
jmp 0x1400018c5
call fcn.140001758
mov rcx, qword [rsp + 0x50]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x140001b10
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
push rsi
push rdi
push r14
sub rsp, 0x60
mov rsi, r9
mov ebx, r8d
mov r14, rdx
and qword [rax - 0x58], 0
xorps xmm0, xmm0
movups xmmword [rax - 0x50], xmm0
movups xmmword [rax - 0x40], xmm0
movups xmmword [rax - 0x30], xmm0
lea rdx, [rax - 0x58]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
jns 0x140001b6a
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140001b6a
mov eax, 0xc0000001
jmp 0x140001bdb
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8d, 1
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.1400020c0
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140001bce
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x60
mov r14, r9
mov ebx, r8d
mov rsi, rdx
and qword [rax - 0x48], 0
xorps xmm0, xmm0
movups xmmword [rax - 0x40], xmm0
movups xmmword [rax - 0x30], xmm0
movups xmmword [rax - 0x20], xmm0
lea rdx, [rax - 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
jns 0x140001d18
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140001d18
mov eax, 0xc0000001
jmp 0x140001d72
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.1400020c0
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140001d65
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret