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

Disassembly:
mov r9, qword [rcx + 8]
mov rax, rdx
mov rcx, rax
mov edx, 1
jmp fcn.14001ede4

Function at 0x14000c860
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140051060]
xor rax, rsp
mov qword [rbp], rax
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
xor esi, esi
mov word [rbp - 0x30], si
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
mov r8, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x14000c8d9
mov r8, qword [rcx]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, dword [rcx + 0x10]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rdi, eax
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], 7
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.1400107e0
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov r9d, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14000c936
mov rbx, qword [rbx]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdx
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000c9b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateProcess_failed___d_._n
call fcn.140001230
jmp 0x14000c9d6
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x14000ca13
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ca0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ca38
call fcn.1400160f0
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400160d0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14001fe94
int3
Function at 0x14000e5a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14000e5c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000e63c
mov rdi, r14
mov rcx, rbx
call fcn.140010650
test rax, rax
jle 0x14000e614
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140017fe0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000e62c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000e634
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14000e5d6
sub r14, rdi
jmp 0x14000e729
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14000e653
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000e655
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000e68a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140017fe0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000e726
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x14000e6c5
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x14000e701
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14001f980
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x14000e73f
cmp rbp, rax
ja 0x14000e6d1
mov r8, rdi
test rdi, rdi
je 0x14000e726
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14001f980
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x14000e729
Function at 0x14000eb70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140051060]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000eb9d
xor eax, eax
jmp 0x14000ece3
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000ebd7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000ebd7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000ece3
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000ecd6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000ec1a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000ec29
movsx ecx, dil
jmp 0x14000ec7d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x14000ec97
sub eax, 1
je 0x14000ec97
cmp eax, 2
jne 0x14000ecd6
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14001c5d8
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000ecdb
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000ecc4
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14001ede4
cmp rsi, rax
jne 0x14000ecd6
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000ecdb
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400160d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001c5b4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14001c447
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001c447
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001c447
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001c447
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001c447
cmp dword [rcx + 0x84], 0xe
jbe 0x14001c447
cmp dword [rcx + 0xf8], 0
je 0x14001c447
mov ecx, ebx
call fcn.14001c4e8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14001c2d8
cmp dword [rbp + 0x20], 0
je 0x14001c494
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001c49c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001c3e0
Function at 0x11080
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x40], 0
call fcn.00011440
mov dword [0x00019130], eax
mov dword [rsp + 0x40], 0
jmp 0x110b9
mov eax, dword [rsp + 0x40]
add eax, 1
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x1b
jae 0x110da
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
lea rax, [0x00011380]
mov qword [rcx + rdx*8 + 0x70], rax
jmp 0x110ae
mov rcx, qword [rsp + 0x90]
lea rax, [0x00011210]
mov qword [rcx + 0xe0], rax
mov rcx, qword [rsp + 0x90]
lea rax, [0x000111c0]
mov qword [rcx + 0x68], rax
lea rdx, [0x00016ed0]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0x48]
mov qword [rsp + 0x30], r11
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x11156
xor eax, eax
jmp 0x111b2
lea rdx, [0x00016f10]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x11195
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, 0xc0000001
jmp 0x111b2
mov rax, qword [rsp + 0x48]
mov qword [0x00019258], rax
mov rax, qword [rsp + 0x90]
mov qword [0x00019250], rax
xor eax, eax
add rsp, 0x88
ret
Function at 0x11440
Capabilities:
Check os version
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rax, qword [0x00019100]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov dword [rsp + 0x30], 0x11c
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x118
rep stosb byte [rdi], al
mov qword [rsp + 0x150], 0
lea rdi, [rsp + 0x160]
lea rsi, [0x00016f90]
mov ecx, 0x1c
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x160]
call fcn.000113d0
mov qword [rsp + 0x150], rax
cmp qword [rsp + 0x150], 0
je 0x114c2
lea rcx, [rsp + 0x30]
call qword [rsp + 0x150]
jmp 0x114da
xor r9d, r9d
lea r8, [rsp + 0x3c]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x34]
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
mov eax, dword [rsp + 0x3c]
mov qword [0x00019138], rax
cmp dword [rsp + 0x34], 5
jne 0x1150f
cmp dword [rsp + 0x38], 1
jne 0x1150f
lea rcx, [0x00016fb0]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x158], 1
jmp 0x115af
cmp dword [rsp + 0x34], 6
jne 0x11536
cmp dword [rsp + 0x38], 1
jne 0x11536
lea rcx, [0x00016fc0]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x158], 2
jmp 0x115af
cmp dword [rsp + 0x34], 6
jne 0x11567
cmp dword [rsp + 0x38], 2
jne 0x11567
cmp dword [rsp + 0x3c], 0x23f0
jne 0x11567
lea rcx, [0x00016fd0]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x158], 3
jmp 0x115af
cmp dword [rsp + 0x34], 6
jne 0x11598
cmp dword [rsp + 0x38], 3
jne 0x11598
cmp dword [rsp + 0x3c], 0x2580
jne 0x11598
lea rcx, [0x00016fe0]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x158], 4
jmp 0x115af
lea rcx, [0x00016ff0]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x158], 0
mov eax, dword [rsp + 0x158]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.00016cc0
add rsp, 0x198
pop rdi
pop rsi
ret
Function at 0x11a20
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0xc0000001
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
jmp 0x11a5c
mov rax, qword [rsp + 0x28]
add rax, 4
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0x186a0
jae 0x11afe
cmp qword [rsp + 0x28], 0
jne 0x11a8b
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
add rcx, 1
mov rax, qword [rsp + 0x50]
mov qword [rax], rcx
jmp 0x11a4e
mov rax, qword [rsp + 0x28]
cmp qword [0x00019128], rax
jne 0x11aaf
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
add rcx, 1
mov rax, qword [rsp + 0x50]
mov qword [rax], rcx
jmp 0x11a4e
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x11af9
mov rcx, qword [rsp + 0x20]
call fcn.00012020
movzx eax, al
test eax, eax
jne 0x11af9
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
add rcx, 1
mov rax, qword [rsp + 0x50]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x11a4e
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x12020
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x20], 0
cmp qword [sym.imp.ntoskrnl.exe_MmIsAddressValid], 0
je 0x120b2
cmp qword [rsp + 0x40], 0
je 0x120b2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
je 0x120b2
mov rax, qword [0x00019148]
mov rcx, qword [rsp + 0x40]
add rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
je 0x120b2
mov rcx, qword [0x00019148]
mov rax, qword [rsp + 0x40]
add rax, rcx
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1209f
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
jne 0x120b0
lea rcx, [0x00017230]
call sub.ntoskrnl.exe_DbgPrint
mov byte [rsp + 0x20], 1
jmp 0x120c3
lea rcx, [0x00017250]
call sub.ntoskrnl.exe_DbgPrint
mov byte [rsp + 0x20], 1
mov al, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x129d0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.ntoskrnl.exe_PsInitialSystemProcess]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x28]
lea rcx, [0x00017010]
call sub.ntoskrnl.exe_DbgPrint
mov r11d, dword [0x00019130]
mov dword [rsp + 0x30], r11d
cmp dword [rsp + 0x30], 1
je 0x12a69
cmp dword [rsp + 0x30], 2
je 0x12a19
jmp 0x12a9a
cmp qword [rsp + 0x28], 0
je 0x12a67
mov rcx, qword [rsp + 0x28]
add rcx, 0xa0
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
je 0x12a67
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0xa0]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffff
ja 0x12a67
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0xb0]
mov qword [rsp + 0x20], rax
jmp 0x12a9a
cmp qword [rsp + 0x28], 0
je 0x12a9a
mov rcx, qword [rsp + 0x28]
sub rcx, 0x78b4
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
je 0x12a9a
mov rax, qword [rsp + 0x28]
sub rax, 0x78b4
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x20]
lea rcx, [0x00017370]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x20]
add rsp, 0x48
ret

Function at 0x12d80
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x50], 0xc0000001
mov dword [rsp + 0x20], 0xc0000001
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x48], 0
call fcn.00012ba0
cmp qword [rsp + 0x70], 0
je 0x12e01
cmp qword [rsp + 0x80], 0
je 0x12e01
mov eax, dword [rsp + 0x78]
cmp rax, 4
jne 0x12e01
cmp qword [rsp + 0x88], 0x38
jae 0x12e0b
mov eax, 0xc000000d
jmp 0x12ebd
mov rax, qword [rsp + 0x88]
sub rax, 0x38
xor edx, edx
mov ecx, 0x30
div rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x12e5b
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x12e5b
mov eax, 0xc0000001
jmp 0x12ebd
mov rcx, qword [rsp + 0x30]
call fcn.00011f80
movzx eax, al
test eax, eax
je 0x12ea7
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call fcn.00012ed0
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
cmp qword [rsp + 0x58], rax
jb 0x12e9f
mov dword [rsp + 0x50], 0
jmp 0x12ea7
mov dword [rsp + 0x50], 0xc0000023
cmp dword [rsp + 0x20], 0
jl 0x12eb9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x50]
add rsp, 0x68
ret
Function at 0x135e0
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x48
mov dword [rsp + 0x28], 0xc0000001
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x70]
sub rax, 0x220
xor edx, edx
mov ecx, 0x218
div rcx
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x60], 0
je 0x13647
mov ecx, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jge 0x13647
mov eax, dword [rsp + 0x28]
jmp 0x13708
lea rcx, [0x000173a0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x20]
call fcn.00011f80
movzx eax, al
test eax, eax
je 0x136f2
mov rdx, qword [rsp + 0x70]
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x136f2
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x70]
rep stosb byte [rdi], al
mov r8d, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call fcn.00013720
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x2c]
mov rax, qword [rsp + 0x30]
cmp rcx, qword [rax]
jb 0x136d4
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x28], 0
jmp 0x136dc
mov dword [rsp + 0x28], 0xc0000023
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x30], 0
cmp dword [rsp + 0x28], 0
jl 0x13704
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x28]
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x13720
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0xc0000001
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [rsp + 0x5c], 1
mov qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x90]
call sub.ntoskrnl.exe_PsGetProcessPeb
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x60], 0
jbe 0x1391c
mov eax, dword [0x00019130]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 1
je 0x13866
cmp dword [rsp + 0x78], 2
je 0x137ab
jmp 0x1391c
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x20], 0x18
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x60]
add rax, rcx
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov r8d, 8
mov edx, 8
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
cmp qword [rsp + 0x68], 0
jbe 0x13861
mov rcx, qword [rsp + 0x68]
add rcx, 0x10
mov r9d, dword [rsp + 0xa0]
mov r8, qword [rsp + 0x98]
mov edx, 1
call fcn.00013b10
mov rcx, qword [rsp + 0x68]
add rcx, 0x20
mov r9d, dword [rsp + 0xa0]
mov r8, qword [rsp + 0x98]
mov edx, 2
call fcn.00013b10
mov rcx, qword [rsp + 0x68]
add rcx, 0x30
mov r9d, dword [rsp + 0xa0]
mov r8, qword [rsp + 0x98]
mov edx, 3
call fcn.00013b10
mov dword [rsp + 0x58], 0
jmp 0x1391c
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x20], 0xc
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x60]
add rax, rcx
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov r8d, 4
mov edx, 4
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
cmp qword [rsp + 0x70], 0
jbe 0x1391c
mov rcx, qword [rsp + 0x70]
add rcx, 0x10
mov r9d, dword [rsp + 0xa0]
mov r8, qword [rsp + 0x98]
mov edx, 1
call fcn.00013960
mov rcx, qword [rsp + 0x70]
add rcx, 0x20
mov r9d, dword [rsp + 0xa0]
mov r8, qword [rsp + 0x98]
mov edx, 2
call fcn.00013960
mov rcx, qword [rsp + 0x70]
add rcx, 0x30
mov r9d, dword [rsp + 0xa0]
mov r8, qword [rsp + 0x98]
mov edx, 3
call fcn.00013960
mov dword [rsp + 0x58], 0
jmp 0x13932
movzx eax, byte [rsp + 0x5c]
test eax, eax
je 0x1394b
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov byte [rsp + 0x5c], 0
mov eax, dword [rsp + 0x58]
add rsp, 0x88
ret
Function at 0x13d80
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x60], 0xc0000001
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x48], 0
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x98]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x13de8
mov eax, dword [rsp + 0x60]
jmp 0x13f3e
mov rcx, qword [rsp + 0x50]
call fcn.00011f80
movzx eax, al
test eax, eax
jne 0x13e0d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x60]
jmp 0x13f3e
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, 0x10000000
xor r8d, r8d
mov edx, 0x240
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x13f3a
mov qword [rsp + 0x68], 0
mov byte [rsp + 0x70], 0
call fcn.000115f0
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.000120e0
mov byte [rsp + 0x70], al
lea r8, [rsp + 0x58]
mov edx, 8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_NtOpenProcessToken]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x13ef2
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa0]
mov r8, qword [rsp + 0x90]
mov edx, 3
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_NtQueryInformationToken]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x13edc
lea rcx, [0x00017410]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x13ef2
cmp dword [rsp + 0x60], 0xc0000023
jne 0x13ef2
lea rcx, [0x00017440]
call sub.ntoskrnl.exe_DbgPrint
cmp qword [rsp + 0x58], 0
je 0x13f05
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_NtClose]
cmp qword [rsp + 0x40], 0
je 0x13f18
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_NtClose]
movzx edx, byte [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.00012120
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
add rsp, 0x88
ret