joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bcc0
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov qword [rsp + 0x50], 0
cmp qword [rsp + 0x70], 0
jne 0x41bcfe
xor eax, eax
jmp 0x41bd6a
cmp qword [0x004ca5c8], 0
je 0x41bd1b
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
jne 0x41bd1f
xor eax, eax
jmp 0x41bd6a
lea rdx, [rsp + 0x20]
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_KeStackAttachProcess
xor r9d, r9d
mov r8, qword [0x004ca5c8]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.0040f250
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x20]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
jmp 0x41bd65
mov rax, qword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
Function at 0x41c2e0
Capabilities:
Attach user process memory
Free user process memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
mov dword [rsp + 0x70], 0
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0xc8], 0
jne 0x41c330
mov eax, 0xc000000d
jmp 0x41c506
cmp qword [0x004ca5c8], 0
je 0x41c34d
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
jne 0x41c355
mov dword [rsp + 0x70], 0x80
lea rdx, [rsp + 0x40]
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_KeStackAttachProcess
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x28]
test eax, eax
je 0x41c4a6
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x29]
test eax, eax
je 0x41c441
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov dword [rsp + 0x74], 1
cmp qword [rsp + 0x30], 0
jbe 0x41c41f
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwQueryVirtualMemory
test eax, eax
jl 0x41c41d
mov eax, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x9c]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x41c41d
mov r8, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [0x004ca5c8]
call fcn.0041bd90
mov dword [rsp + 0x70], eax
jmp 0x41c43f
mov r8, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [0x004ca5c8]
call fcn.0041bd90
mov dword [rsp + 0x70], eax
jmp 0x41c4a4
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwAllocateVirtualMemory
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jl 0x41c4a4
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 8], rcx
jmp 0x41c4f8
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x29]
test eax, eax
je 0x41c4d8
mov r8, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [0x004ca5c8]
call fcn.0041bd90
mov dword [rsp + 0x70], eax
jmp 0x41c4f8
mov r9d, 0x8000
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwFreeVirtualMemory
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x40]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
mov eax, dword [rsp + 0x70]
add rsp, 0xb0
pop rdi
ret
Function at 0x41c510
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0xc0000001
cmp qword [0x004ca5c8], 0
je 0x41c542
mov rcx, qword [0x004ca5c8]
call sub.ntoskrnl.exe_ObfDereferenceObject
mov qword [0x004ca5c8], 0
lea rdx, [0x004ca5c8]
mov rcx, qword [rsp + 0x40]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x41c566
mov dword [rsp + 0x20], 0xc0000001
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x41fad0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x48], 0x30
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x60], 0x200
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x30], 0
lea rax, [0x0041f910]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x48]
mov edx, 0x1f03ff
lea rcx, [rsp + 0x78]
call sub.ntoskrnl.exe_PsCreateSystemThread
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x78], 0
je 0x41fb5f
mov rcx, qword [rsp + 0x78]
call sub.ntoskrnl.exe_ZwClose
mov eax, dword [rsp + 0x40]
add rsp, 0x88
ret
Function at 0x4223c0
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x60]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x422519
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], 0
jmp 0x42245c
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x24], eax
jae 0x422519
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov ecx, dword [rsp + 0x24]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x30]
mov ecx, dword [r8 + rcx + 8]
cmp dword [rdx + rax + 0x10], ecx
jbe 0x4224ab
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x10]
mov dword [rsp + 0x44], eax
jmp 0x4224c0
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 8]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0xc]
cmp dword [rsp + 0x20], eax
jb 0x422514
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0xc]
add eax, dword [rsp + 0x40]
cmp dword [rsp + 0x20], eax
jae 0x422514
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x422519
jmp 0x422452
mov rax, qword [rsp + 0x28]
add rsp, 0x58
ret
Function at 0x422530
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x60]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x422635
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x68]
call sub.ntoskrnl.exe_strlen
cmp rax, 8
jae 0x4225bd
mov rcx, qword [rsp + 0x68]
call sub.ntoskrnl.exe_strlen
mov qword [rsp + 0x48], rax
jmp 0x4225c6
mov qword [rsp + 0x48], 8
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x20], 0
jmp 0x4225e2
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x422635
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x28]
add rdx, rcx
mov rcx, rdx
mov r8, rax
mov rdx, qword [rsp + 0x68]
call sub.ntoskrnl.exe__strnicmp
test eax, eax
jne 0x422633
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x422635
jmp 0x4225d8
mov rax, qword [rsp + 0x30]
add rsp, 0x58
ret
Function at 0x4234e0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x10], 0
je 0x42358a
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x1c], 0
jne 0x423542
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
add rax, 0x58
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 8]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x00434a80]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x423585
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
add rax, 0x58
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x1c]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 8]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x00434a60]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x42367e
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
test eax, eax
je 0x423622
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x1c], 0
jne 0x4235de
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
add rcx, 0x58
mov dword [rsp + 0x20], eax
mov r9, rcx
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 8]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x00434a40]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x423620
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
add rcx, 0x58
mov rdx, qword [rsp + 0x48]
mov edx, dword [rdx + 0x1c]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], eax
mov r9, rcx
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 8]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x00434a20]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x42367e
mov rax, qword [rsp + 0x48]
cmp qword [rax], 0
je 0x423664
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
add rax, 0x58
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x1c]
mov dword [rsp + 0x20], ecx
mov r9, rax
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 8]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x00434a00]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x42367e
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 8]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x004349e0]
call sub.ntoskrnl.exe_DbgPrint
add rsp, 0x38
ret
Function at 0x423a10
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp + 8], 0
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax + 0x18]
mov qword [rsp], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 6]
mov word [rsp + 0xc], ax
mov dword [rsp + 8], 0
jmp 0x423a5e
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
movzx eax, word [rsp + 0xc]
cmp dword [rsp + 8], eax
jge 0x423ab0
movsxd rax, dword [rsp + 8]
imul rax, rax, 0x28
mov rcx, qword [rsp]
mov edx, dword [rsp + 0x28]
cmp dword [rcx + rax + 0xc], edx
ja 0x423aae
movsxd rax, dword [rsp + 8]
imul rax, rax, 0x28
movsxd rcx, dword [rsp + 8]
imul rcx, rcx, 0x28
mov rdx, qword [rsp]
mov eax, dword [rdx + rax + 0xc]
mov rdx, qword [rsp]
add eax, dword [rdx + rcx + 8]
cmp eax, dword [rsp + 0x28]
jbe 0x423aae
mov eax, dword [rsp + 8]
jmp 0x423ab5
jmp 0x423a54
mov eax, 0xffffffff
add rsp, 0x18
ret

Function at 0x423ac0
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp], 0
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
mov word [rsp + 4], ax
mov dword [rsp], 0
jmp 0x423b10
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
movzx eax, word [rsp + 4]
cmp dword [rsp], eax
jge 0x423b9f
mov rax, qword [rsp + 8]
mov ecx, dword [rsp + 0x38]
cmp dword [rax + 0xc], ecx
ja 0x423b8c
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 8]
cmp eax, dword [rsp + 0x38]
jbe 0x423b8c
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x14]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x38], eax
jae 0x423b7e
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x10], eax
jmp 0x423b86
mov dword [rsp + 0x10], 0xffffffff
mov eax, dword [rsp + 0x10]
jmp 0x423ba4
mov rax, qword [rsp + 8]
add rax, 0x28
mov qword [rsp + 8], rax
jmp 0x423b08
mov eax, 0xffffffff
add rsp, 0x28
ret
Function at 0x423e90
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x70], rax
jae 0x423eb6
xor eax, eax
jmp 0x423f87
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x423eea
xor eax, eax
jmp 0x423f87
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
je 0x423f14
xor eax, eax
jmp 0x423f87
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x38], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call fcn.00423a10
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x423f49
xor eax, eax
jmp 0x423f87
cmp qword [rsp + 0x68], 0
je 0x423f6a
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x38]
mov eax, dword [rdx + rax + 0x10]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
add rsp, 0x58
ret
Function at 0x424150
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push rdi
sub rsp, 0xe0
mov dword [rsp + 0xc0], 0
lea rax, [rsp + 0xc4]
mov rdi, rax
xor eax, eax
mov ecx, 0x14
rep stosb byte [rdi], al
lea rdx, [0x00434aa0]
lea rcx, [rsp + 0x80]
call sub.ntoskrnl.exe_RtlInitUnicodeString
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa8], 0x240
lea rax, [rsp + 0x80]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
call fcn.00418c50
movzx eax, al
test eax, eax
je 0x4241ec
mov eax, 0xc0000001
jmp 0x424338
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x90]
mov edx, 0x80000000
lea rcx, [rsp + 0x68]
call sub.ntoskrnl.exe_ZwCreateFile
mov dword [rsp + 0xd8], eax
cmp dword [rsp + 0xd8], 0
jl 0x424331
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call sub.ntoskrnl.exe_ZwQueryInformationFile
mov dword [rsp + 0xd8], eax
cmp dword [rsp + 0xd8], 0
jl 0x424327
mov eax, dword [rsp + 0xc8]
mov dword [0x00445be0], eax
mov eax, dword [0x00445be0]
mov rdx, rax
mov cl, 1
call fcn.00424100
mov qword [0x00445bd8], rax
mov dword [rsp + 0x64], 0
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov eax, dword [0x00445be0]
mov dword [rsp + 0x30], eax
mov rax, qword [0x00445bd8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call sub.ntoskrnl.exe_ZwReadFile
mov dword [rsp + 0xd8], eax
cmp dword [rsp + 0xd8], 0
jge 0x424327
mov rcx, qword [0x00445bd8]
call fcn.004240e0
mov rcx, qword [rsp + 0x68]
call sub.ntoskrnl.exe_ZwClose
mov eax, dword [rsp + 0xd8]
add rsp, 0xe0
pop rdi
ret

Function at 0x424c20
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 8
cmp qword [rsp + 0x48], 0
jne 0x424c49
mov eax, 0xc00000f0
jmp 0x424ce1
mov qword [rsp + 0x20], 8
jmp 0x424c62
mov rax, qword [rsp + 0x20]
add rax, 4
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x186a0
jae 0x424cdc
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
test eax, eax
jl 0x424cd7
mov rcx, qword [rsp + 0x28]
call sub.ntoskrnl.exe_PsGetProcessImageFileName
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call sub.ntoskrnl.exe_strstr
test rax, rax
je 0x424ccd
cmp qword [rsp + 0x40], 0
je 0x424cbf
mov rcx, qword [rsp + 0x28]
call sub.ntoskrnl.exe_PsGetProcessId
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x28]
call sub.ntoskrnl.exe_ObfDereferenceObject
xor eax, eax
jmp 0x424ce1
mov rcx, qword [rsp + 0x28]
call sub.ntoskrnl.exe_ObfDereferenceObject
jmp 0x424c54
mov eax, 0xc0000225
add rsp, 0x38
ret
Function at 0x424cf0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x50]
call sub.ntoskrnl.exe_strlen
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], 4
cmp dword [rsp + 0x38], 0x186a0
jae 0x424d7d
mov eax, dword [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
test eax, eax
jl 0x424d70
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_PsGetProcessImageFileName
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_ObfDereferenceObject
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call sub.ntoskrnl.exe__strnicmp
test eax, eax
jne 0x424d70
mov rax, qword [rsp + 0x30]
jmp 0x424d7f
mov eax, dword [rsp + 0x38]
add eax, 4
mov dword [rsp + 0x38], eax
jmp 0x424d19
xor eax, eax
add rsp, 0x48
ret

Function at 0x4250c0
Capabilities:
Access pe header

Disassembly:
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x004408f0]
mov qword [rsp + 0x78], rax
xor ecx, ecx
call fcn.00427a40
mov qword [rsp + 0x30], rax
cmp qword [0x00445bf0], 0
je 0x4250f8
mov rax, qword [0x00445bf0]
jmp 0x425268
cmp qword [rsp + 0x30], 0
jne 0x425107
xor eax, eax
jmp 0x425268
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rax, 0x108
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
jmp 0x425140
mov rax, qword [rsp + 0x40]
add rax, 0x28
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x40], rax
jae 0x425266
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
and eax, 0x8000000
test eax, eax
je 0x425261
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
test eax, eax
je 0x425261
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
and eax, 0x2000000
test eax, eax
jne 0x425261
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x54494e49
je 0x425261
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x45474150
je 0x425261
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x58]
lea rcx, [0x00434af0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x30]
add rdx, rcx
mov rcx, rdx
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8d, 0xf
mov dl, 0xcc
lea rcx, [rsp + 0x58]
call fcn.00428630
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jl 0x425261
mov rax, qword [rsp + 0x70]
add rax, 7
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 3]
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax + 0x27]
mov qword [0x00445bf0], rax
mov rax, qword [0x00445bf0]
jmp 0x425268
jmp 0x425132
xor eax, eax
mov rcx, qword [rsp + 0x78]
call fcn.00432250
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x425280
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x78
mov qword [rsp + 0x68], 0
call fcn.004250c0
mov qword [rsp + 0x20], rax
lea rdx, [0x00434b00]
lea rcx, [rsp + 0x60]
call fcn.00424c20
test eax, eax
jl 0x425320
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
call sub.ntoskrnl.exe_KeStackAttachProcess
cmp qword [rsp + 0x20], 0
je 0x42530c
mov eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x20]
cmp rax, qword [rcx + 0x10]
jae 0x42530c
mov eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax*4]
sar eax, 4
cdqe
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
mov rcx, qword [rsp + 0x58]
call sub.ntoskrnl.exe_ObfDereferenceObject
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x425830
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x30], 0
jmp 0x425878
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x20], eax
jae 0x425914
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov rcx, rax
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
jne 0x4258ae
mov dword [rsp + 0x30], 0
jmp 0x42586e
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x4258d6
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
jne 0x4258e2
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
jmp 0x4258ea
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jne 0x42590f
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x60]
sub rax, rcx
inc rax
jmp 0x425916
jmp 0x42586e
xor eax, eax
add rsp, 0x48
ret